entypo-rails-2.2.3/ 0000755 0000041 0000041 00000000000 12546014034 014173 5 ustar www-data www-data entypo-rails-2.2.3/Rakefile 0000644 0000041 0000041 00000000060 12546014034 015634 0 ustar www-data www-data #!/usr/bin/env rake
require "bundler/gem_tasks"
entypo-rails-2.2.3/Gemfile 0000644 0000041 0000041 00000000141 12546014034 015462 0 ustar www-data www-data source 'https://rubygems.org'
# Specify your gem's dependencies in entypo-rails.gemspec
gemspec
entypo-rails-2.2.3/LICENSE_ENTYPO 0000644 0000041 0000041 00000010667 12546014034 016310 0 ustar www-data www-data Copyright (c) Daniel Bruce (),
with Reserved Font Name and .
This Font Software located at app/assets/fonts is licensed under the
SIL Open Font License, Version 1.1. This license is copied below, and
is also available with a FAQ at:
http://scripts.sil.org/OFL
-----------------------------------------------------------
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
-----------------------------------------------------------
PREAMBLE
The goals of the Open Font License (OFL) are to stimulate worldwide
development of collaborative font projects, to support the font creation
efforts of academic and linguistic communities, and to provide a free and
open framework in which fonts may be shared and improved in partnership
with others.
The OFL allows the licensed fonts to be used, studied, modified and
redistributed freely as long as they are not sold by themselves. The
fonts, including any derivative works, can be bundled, embedded,
redistributed and/or sold with any software provided that any reserved
names are not used by derivative works. The fonts and derivatives,
however, cannot be released under any other type of license. The
requirement for fonts to remain under this license does not apply
to any document created using the fonts or their derivatives.
DEFINITIONS
"Font Software" refers to the set of files released by the Copyright
Holder(s) under this license and clearly marked as such. This may
include source files, build scripts and documentation.
"Reserved Font Name" refers to any names specified as such after the
copyright statement(s).
"Original Version" refers to the collection of Font Software components as
distributed by the Copyright Holder(s).
"Modified Version" refers to any derivative made by adding to, deleting,
or substituting -- in part or in whole -- any of the components of the
Original Version, by changing formats or by porting the Font Software to a
new environment.
"Author" refers to any designer, engineer, programmer, technical
writer or other person who contributed to the Font Software.
PERMISSION & CONDITIONS
Permission is hereby granted, free of charge, to any person obtaining
a copy of the Font Software, to use, study, copy, merge, embed, modify,
redistribute, and sell modified and unmodified copies of the Font
Software, subject to the following conditions:
1) Neither the Font Software nor any of its individual components,
in Original or Modified Versions, may be sold by itself.
2) Original or Modified Versions of the Font Software may be bundled,
redistributed and/or sold with any software, provided that each copy
contains the above copyright notice and this license. These can be
included either as stand-alone text files, human-readable headers or
in the appropriate machine-readable metadata fields within text or
binary files as long as those fields can be easily viewed by the user.
3) No Modified Version of the Font Software may use the Reserved Font
Name(s) unless explicit written permission is granted by the corresponding
Copyright Holder. This restriction only applies to the primary font name as
presented to the users.
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
Software shall not be used to promote, endorse or advertise any
Modified Version, except to acknowledge the contribution(s) of the
Copyright Holder(s) and the Author(s) or with their explicit written
permission.
5) The Font Software, modified or unmodified, in part or in whole,
must be distributed entirely under this license, and must not be
distributed under any other license. The requirement for fonts to
remain under this license does not apply to any document created
using the Font Software.
TERMINATION
This license becomes null and void if any of the above conditions are
not met.
DISCLAIMER
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
OTHER DEALINGS IN THE FONT SOFTWARE.
entypo-rails-2.2.3/lib/ 0000755 0000041 0000041 00000000000 12546014034 014741 5 ustar www-data www-data entypo-rails-2.2.3/lib/entypo-rails.rb 0000644 0000041 0000041 00000001533 12546014034 017716 0 ustar www-data www-data require 'rails'
require 'entypo/version'
# The entypo-rails plugin provides access to the Entypo pictograms
# by Daniel Bruce http://www.entypo.com in the Rails asset pipeline.
module Entypo
# String used as CSS Prefix before the icon name defined by entypo, this can
# be set to avoid conflicts with other libraries like bootstrap.
#
# The default is "icon"
@@css_prefix = "icon"
mattr_accessor :css_prefix
# Boolean which controls in which cases the route charmap route is drawn (or
# not), when set to `true` the route is drawn.
#
# Defaults to `true` in Rails development env.
@@charmap = Rails.env.development?
mattr_accessor :charmap
def self.charmap?; charmap end
# Dummy engine so that lib/assets/stylesheets and vendor/assets/fonts
# are picked up by Rails asset pipeline.
class Engine < ::Rails::Engine
end
end
entypo-rails-2.2.3/lib/entypo/ 0000755 0000041 0000041 00000000000 12546014034 016257 5 ustar www-data www-data entypo-rails-2.2.3/lib/entypo/version.rb 0000644 0000041 0000041 00000000160 12546014034 020266 0 ustar www-data www-data module Entypo
# Gem version
VERSION = "2.2.3"
# Entypo font version
FONT_VERSION = "2.0-20121031"
end
entypo-rails-2.2.3/lib/entypo/charmap.rb 0000644 0000041 0000041 00000002060 12546014034 020215 0 ustar www-data www-data module Entypo
# The Charmap simply "parses" a CSS file which must conform to the following format:
#
# .icon$NAME$:before { content: ...} /* $codepoint$ */
#
class Charmap
Icon = Struct.new(:klass, :codepoint) do
def <=>(other)
klass <=> other.klass
end
end
# Public: Access the shared instance based on our default entypo.css.scss file.
#
# Returns Charmap instance.
def self.instance
@@instance ||= self.new File.expand_path('../../../app/assets/stylesheets/entypo.css.scss.erb', __FILE__)
end
# Public: Returns Array of icons.
#
# Returns Array of Icon instances.
def self.icons
instance.icons
end
# Access the icons array.
attr_reader :icons
def initialize(path)
@icons = load(path)
end
private
def load(path)
ERB.new(File.read(path)).result.split("\n").map do |line|
if line =~ %r{\A\.(#{Entypo.css_prefix}-[a-z0-9\-]+):before.*/\* ([0-9a-f]+)}
Icon.new($1, $2)
end
end.compact.sort
end
end
end
entypo-rails-2.2.3/metadata.yml 0000644 0000041 0000041 00000003775 12546014034 016512 0 ustar www-data www-data --- !ruby/object:Gem::Specification
name: entypo-rails
version: !ruby/object:Gem::Version
version: 2.2.3
platform: ruby
authors:
- Lukas Westermann
- Marco Pluess
autorequire:
bindir: bin
cert_chain: []
date: 2015-04-10 00:00:00.000000000 Z
dependencies:
- !ruby/object:Gem::Dependency
name: railties
requirement: !ruby/object:Gem::Requirement
requirements:
- - ">="
- !ruby/object:Gem::Version
version: '3.1'
- - "<="
- !ruby/object:Gem::Version
version: '5'
type: :runtime
prerelease: false
version_requirements: !ruby/object:Gem::Requirement
requirements:
- - ">="
- !ruby/object:Gem::Version
version: '3.1'
- - "<="
- !ruby/object:Gem::Version
version: '5'
description: Rails asset pipeline plugin and CSS mappings for the Entypo pictograms
by Daniel Bruce http://www.entypo.com
email:
- lukas@at-point.ch
- marco@at-point.ch
executables: []
extensions: []
extra_rdoc_files: []
files:
- ".gitignore"
- Gemfile
- LICENSE
- LICENSE_ENTYPO
- README.md
- Rakefile
- app/assets/fonts/entypo.eot
- app/assets/fonts/entypo.svg
- app/assets/fonts/entypo.ttf
- app/assets/fonts/entypo.woff
- app/assets/stylesheets/entypo-fonts.css.scss
- app/assets/stylesheets/entypo.css.scss.erb
- app/controllers/entypo/charmap_controller.rb
- app/views/entypo/charmap/index.html.erb
- config/routes.rb
- entypo-rails.gemspec
- lib/entypo-rails.rb
- lib/entypo/charmap.rb
- lib/entypo/version.rb
homepage: ''
licenses:
- MIT
- SIL Open Font License
metadata: {}
post_install_message:
rdoc_options: []
require_paths:
- lib
required_ruby_version: !ruby/object:Gem::Requirement
requirements:
- - ">="
- !ruby/object:Gem::Version
version: '1.9'
required_rubygems_version: !ruby/object:Gem::Requirement
requirements:
- - ">="
- !ruby/object:Gem::Version
version: '0'
requirements: []
rubyforge_project:
rubygems_version: 2.2.2
signing_key:
specification_version: 4
summary: Rails asset pipeline plugin to provide Entypo icons.
test_files: []
entypo-rails-2.2.3/entypo-rails.gemspec 0000644 0000041 0000041 00000002006 12546014034 020164 0 ustar www-data www-data # -*- encoding: utf-8 -*-
require File.expand_path('../lib/entypo/version', __FILE__)
Gem::Specification.new do |gem|
gem.authors = ["Lukas Westermann", "Marco Pluess"]
gem.email = ["lukas@at-point.ch", "marco@at-point.ch"]
gem.description = %q{Rails asset pipeline plugin and CSS mappings for the Entypo pictograms by Daniel Bruce http://www.entypo.com}
gem.summary = %q{Rails asset pipeline plugin to provide Entypo icons.}
gem.homepage = ""
gem.licenses = ['MIT', 'SIL Open Font License']
gem.files = %w{.gitignore Gemfile Rakefile README.md LICENSE LICENSE_ENTYPO entypo-rails.gemspec} + Dir['**/*.{rb,erb,scss,eot,svg,ttf,woff}']
gem.executables = gem.files.grep(%r{^bin/}) { |f| File.basename(f) }
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
gem.name = "entypo-rails"
gem.require_paths = ["lib"]
gem.version = Entypo::VERSION
gem.required_ruby_version = '>= 1.9'
gem.add_dependency "railties", ">= 3.1", "<= 5"
end
entypo-rails-2.2.3/.gitignore 0000644 0000041 0000041 00000000302 12546014034 016156 0 ustar www-data www-data *.gem
*.rbc
.bundle
.config
.yardoc
.DS_Store
Gemfile.lock
InstalledFiles
_yardoc
coverage
doc/
lib/bundler/man
pkg
rdoc
spec/reports
test/tmp
test/version_tmp
tmp
.buildpath
.project
.settings
entypo-rails-2.2.3/config/ 0000755 0000041 0000041 00000000000 12546014034 015440 5 ustar www-data www-data entypo-rails-2.2.3/config/routes.rb 0000644 0000041 0000041 00000000265 12546014034 017311 0 ustar www-data www-data # Enable charmap in development mode, also makes it simpler to test it
Rails.application.routes.draw do
get 'entypo/charmap', :to => 'entypo/charmap#index' if Entypo.charmap?
end
entypo-rails-2.2.3/LICENSE 0000644 0000041 0000041 00000002177 12546014034 015207 0 ustar www-data www-data Copyright (c) 2012 by Lukas Westermann
This license ONLY applies to files NOT IN the app/assets/fonts directory.
MIT License
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
entypo-rails-2.2.3/app/ 0000755 0000041 0000041 00000000000 12546014034 014753 5 ustar www-data www-data entypo-rails-2.2.3/app/views/ 0000755 0000041 0000041 00000000000 12546014034 016110 5 ustar www-data www-data entypo-rails-2.2.3/app/views/entypo/ 0000755 0000041 0000041 00000000000 12546014034 017426 5 ustar www-data www-data entypo-rails-2.2.3/app/views/entypo/charmap/ 0000755 0000041 0000041 00000000000 12546014034 021041 5 ustar www-data www-data entypo-rails-2.2.3/app/views/entypo/charmap/index.html.erb 0000644 0000041 0000041 00000000713 12546014034 023606 0 ustar www-data www-data
entypo-rails: charmap <%= Entypo::VERSION %>
<%= stylesheet_link_tag 'entypo' %>
<% @icons.each do |icon| %>
-
<%= ".#{icon.klass}" %>
<%= "U+#{icon.codepoint.upcase}" %>
<% end %>
entypo-rails-2.2.3/app/controllers/ 0000755 0000041 0000041 00000000000 12546014034 017321 5 ustar www-data www-data entypo-rails-2.2.3/app/controllers/entypo/ 0000755 0000041 0000041 00000000000 12546014034 020637 5 ustar www-data www-data entypo-rails-2.2.3/app/controllers/entypo/charmap_controller.rb 0000644 0000041 0000041 00000000343 12546014034 025042 0 ustar www-data www-data require 'entypo-rails'
require 'entypo/charmap'
module Entypo
class CharmapController < ApplicationController
def index
@icons = Entypo::Charmap.icons
render action: 'index', layout: false
end
end
end
entypo-rails-2.2.3/app/assets/ 0000755 0000041 0000041 00000000000 12546014034 016255 5 ustar www-data www-data entypo-rails-2.2.3/app/assets/fonts/ 0000755 0000041 0000041 00000000000 12546014034 017406 5 ustar www-data www-data entypo-rails-2.2.3/app/assets/fonts/entypo.ttf 0000644 0000041 0000041 00000216330 12546014034 021450 0 ustar www-data www-data pFFTMbo> OS/27t Vcmap p cvt fpgm0 gasp glyfP
<