├── Gemfile ├── .gitignore ├── lib ├── octicons-rails │ ├── version.rb │ └── engine.rb └── octicons-rails.rb ├── app └── assets │ ├── fonts │ ├── octicons.eot │ ├── octicons.ttf │ ├── octicons.woff │ ├── octicons-local.ttf │ └── octicons.svg │ └── stylesheets │ └── octicons.css.erb ├── Rakefile ├── octicons-rails.gemspec ├── README.md └── LICENSE /Gemfile: -------------------------------------------------------------------------------- 1 | source 'https://rubygems.org' 2 | 3 | gemspec 4 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | *.gem 2 | .bundle 3 | Gemfile.lock 4 | gemfiles/*.lock 5 | .sass-cache 6 | /tmp 7 | -------------------------------------------------------------------------------- /lib/octicons-rails/version.rb: -------------------------------------------------------------------------------- 1 | module Octicons 2 | module Rails 3 | VERSION = '3.5.0' 4 | end 5 | end 6 | -------------------------------------------------------------------------------- /app/assets/fonts/octicons.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/torbjon/octicons-rails/HEAD/app/assets/fonts/octicons.eot -------------------------------------------------------------------------------- /app/assets/fonts/octicons.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/torbjon/octicons-rails/HEAD/app/assets/fonts/octicons.ttf -------------------------------------------------------------------------------- /app/assets/fonts/octicons.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/torbjon/octicons-rails/HEAD/app/assets/fonts/octicons.woff -------------------------------------------------------------------------------- /app/assets/fonts/octicons-local.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/torbjon/octicons-rails/HEAD/app/assets/fonts/octicons-local.ttf -------------------------------------------------------------------------------- /lib/octicons-rails/engine.rb: -------------------------------------------------------------------------------- 1 | module Octicons 2 | module Rails 3 | class Engine < ::Rails::Engine 4 | end 5 | end 6 | end 7 | -------------------------------------------------------------------------------- /lib/octicons-rails.rb: -------------------------------------------------------------------------------- 1 | require 'octicons-rails/version' 2 | 3 | module Octicons 4 | module Rails 5 | require 'octicons-rails/engine' 6 | end 7 | end 8 | -------------------------------------------------------------------------------- /Rakefile: -------------------------------------------------------------------------------- 1 | require 'open-uri' 2 | require 'octicons-rails/version' 3 | require 'bundler/gem_tasks' 4 | 5 | desc 'download and update octicons' 6 | task :update do 7 | 8 | system('curl', '-L', '-O', "https://github.com/github/octicons/releases/download/v#{Octicons::Rails::VERSION}/octicons.zip") 9 | system('unzip', 'octicons.zip', '-d', 'tmp') 10 | 11 | FileUtils.mv Dir['tmp/*.{eot,svg,ttf,woff}'], 'app/assets/fonts' 12 | 13 | css = File.read('tmp/octicons.css') 14 | css.gsub!(/url\(([^)]+)\)/, %q{url('<%= font_path(\1) %>')}) 15 | 16 | File.open('app/assets/stylesheets/octicons.css.erb', 'w') do |io| 17 | io.write(css) 18 | end 19 | end 20 | -------------------------------------------------------------------------------- /octicons-rails.gemspec: -------------------------------------------------------------------------------- 1 | require File.expand_path('../lib/octicons-rails/version', __FILE__) 2 | 3 | Gem::Specification.new do |s| 4 | s.name = 'octicons-rails' 5 | s.version = Octicons::Rails::VERSION 6 | s.platform = Gem::Platform::RUBY 7 | s.files = Dir['{app,lib}/**/*'] + ['LICENSE', 'README.md'] 8 | s.authors = ['Maksim Berjoza', 'Julien Letessier'] 9 | s.email = ['maksim.berjoza@gmail.com', 'julien.letessier@gmail.com'] 10 | s.homepage = 'https://github.com/torbjon/octicons' 11 | s.summary = 'Awesome Github Octicons with Rails asset pipeline' 12 | s.description = '' 13 | s.license = 'MIT' 14 | s.add_dependency 'railties', '>= 3.2', '< 5.1' 15 | end 16 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # octicons-rails [![Gem Version](http://img.shields.io/gem/v/octicons-rails.svg)](https://rubygems.org/gems/octicons-rails) 2 | 3 | Provides [Octicons](http://octicons.github.com/) web fonts and stylesheets as a Rails engine for use with the asset pipeline. 4 | 5 | # Install 6 | 7 | Add it to your Rails application's `Gemfile`: 8 | 9 | ```ruby 10 | gem 'octicons-rails' 11 | ``` 12 | 13 | Then `bundle install`. 14 | 15 | 16 | # Usage 17 | 18 | Add the following to your `app/assets/stylesheets/application.scss`: 19 | 20 | *= require octicons 21 | 22 | ## License 23 | 24 | * The [Octicons](http://octicons.github.com) font license: SIL OFL 1.1 (http://scripts.sil.org/OFL) 25 | * The [Octicons](http://octicons.github.com) css files license: MIT (http://choosealicense.com/licenses/mit/) 26 | * The [gem octicons-rails](http://github.com/torbjon/octicons-rails) code licence: MIT (http://choosealicense.com/licenses/mit/) 27 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2012 bokmann 2 | 3 | MIT License 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining 6 | a copy of this software and associated documentation files (the 7 | "Software"), to deal in the Software without restriction, including 8 | without limitation the rights to use, copy, modify, merge, publish, 9 | distribute, sublicense, and/or sell copies of the Software, and to 10 | permit persons to whom the Software is furnished to do so, subject to 11 | the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be 14 | included in all copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 17 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 18 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 19 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 20 | LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 21 | OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 22 | WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -------------------------------------------------------------------------------- /app/assets/stylesheets/octicons.css.erb: -------------------------------------------------------------------------------- 1 | @font-face { 2 | font-family: 'octicons'; 3 | src: url('<%= font_path('octicons.eot?#iefix') %>') format('embedded-opentype'), 4 | url('<%= font_path('octicons.woff') %>') format('woff'), 5 | url('<%= font_path('octicons.ttf') %>') format('truetype'), 6 | url('<%= font_path('octicons.svg#octicons') %>') format('svg'); 7 | font-weight: normal; 8 | font-style: normal; 9 | } 10 | 11 | /* 12 | 13 | .octicon is optimized for 16px. 14 | .mega-octicon is optimized for 32px but can be used larger. 15 | 16 | */ 17 | .octicon, .mega-octicon { 18 | font: normal normal normal 16px/1 octicons; 19 | display: inline-block; 20 | text-decoration: none; 21 | text-rendering: auto; 22 | -webkit-font-smoothing: antialiased; 23 | -moz-osx-font-smoothing: grayscale; 24 | -webkit-user-select: none; 25 | -moz-user-select: none; 26 | -ms-user-select: none; 27 | user-select: none; 28 | } 29 | .mega-octicon { font-size: 32px; } 30 | 31 | .octicon-alert:before { content: '\f02d'} /*  */ 32 | .octicon-arrow-down:before { content: '\f03f'} /*  */ 33 | .octicon-arrow-left:before { content: '\f040'} /*  */ 34 | .octicon-arrow-right:before { content: '\f03e'} /*  */ 35 | .octicon-arrow-small-down:before { content: '\f0a0'} /*  */ 36 | .octicon-arrow-small-left:before { content: '\f0a1'} /*  */ 37 | .octicon-arrow-small-right:before { content: '\f071'} /*  */ 38 | .octicon-arrow-small-up:before { content: '\f09f'} /*  */ 39 | .octicon-arrow-up:before { content: '\f03d'} /*  */ 40 | .octicon-microscope:before, 41 | .octicon-beaker:before { content: '\f0dd'} /*  */ 42 | .octicon-bell:before { content: '\f0de'} /*  */ 43 | .octicon-bold:before { content: '\f0e2'} /*  */ 44 | .octicon-book:before { content: '\f007'} /*  */ 45 | .octicon-bookmark:before { content: '\f07b'} /*  */ 46 | .octicon-briefcase:before { content: '\f0d3'} /*  */ 47 | .octicon-broadcast:before { content: '\f048'} /*  */ 48 | .octicon-browser:before { content: '\f0c5'} /*  */ 49 | .octicon-bug:before { content: '\f091'} /*  */ 50 | .octicon-calendar:before { content: '\f068'} /*  */ 51 | .octicon-check:before { content: '\f03a'} /*  */ 52 | .octicon-checklist:before { content: '\f076'} /*  */ 53 | .octicon-chevron-down:before { content: '\f0a3'} /*  */ 54 | .octicon-chevron-left:before { content: '\f0a4'} /*  */ 55 | .octicon-chevron-right:before { content: '\f078'} /*  */ 56 | .octicon-chevron-up:before { content: '\f0a2'} /*  */ 57 | .octicon-circle-slash:before { content: '\f084'} /*  */ 58 | .octicon-circuit-board:before { content: '\f0d6'} /*  */ 59 | .octicon-clippy:before { content: '\f035'} /*  */ 60 | .octicon-clock:before { content: '\f046'} /*  */ 61 | .octicon-cloud-download:before { content: '\f00b'} /*  */ 62 | .octicon-cloud-upload:before { content: '\f00c'} /*  */ 63 | .octicon-code:before { content: '\f05f'} /*  */ 64 | .octicon-comment-add:before, 65 | .octicon-comment:before { content: '\f02b'} /*  */ 66 | .octicon-comment-discussion:before { content: '\f04f'} /*  */ 67 | .octicon-credit-card:before { content: '\f045'} /*  */ 68 | .octicon-dash:before { content: '\f0ca'} /*  */ 69 | .octicon-dashboard:before { content: '\f07d'} /*  */ 70 | .octicon-database:before { content: '\f096'} /*  */ 71 | .octicon-clone:before, 72 | .octicon-desktop-download:before { content: '\f0dc'} /*  */ 73 | .octicon-device-camera:before { content: '\f056'} /*  */ 74 | .octicon-device-camera-video:before { content: '\f057'} /*  */ 75 | .octicon-device-desktop:before { content: '\f27c'} /*  */ 76 | .octicon-device-mobile:before { content: '\f038'} /*  */ 77 | .octicon-diff:before { content: '\f04d'} /*  */ 78 | .octicon-diff-added:before { content: '\f06b'} /*  */ 79 | .octicon-diff-ignored:before { content: '\f099'} /*  */ 80 | .octicon-diff-modified:before { content: '\f06d'} /*  */ 81 | .octicon-diff-removed:before { content: '\f06c'} /*  */ 82 | .octicon-diff-renamed:before { content: '\f06e'} /*  */ 83 | .octicon-ellipsis:before { content: '\f09a'} /*  */ 84 | .octicon-eye-unwatch:before, 85 | .octicon-eye-watch:before, 86 | .octicon-eye:before { content: '\f04e'} /*  */ 87 | .octicon-file-binary:before { content: '\f094'} /*  */ 88 | .octicon-file-code:before { content: '\f010'} /*  */ 89 | .octicon-file-directory:before { content: '\f016'} /*  */ 90 | .octicon-file-media:before { content: '\f012'} /*  */ 91 | .octicon-file-pdf:before { content: '\f014'} /*  */ 92 | .octicon-file-submodule:before { content: '\f017'} /*  */ 93 | .octicon-file-symlink-directory:before { content: '\f0b1'} /*  */ 94 | .octicon-file-symlink-file:before { content: '\f0b0'} /*  */ 95 | .octicon-file-text:before { content: '\f011'} /*  */ 96 | .octicon-file-zip:before { content: '\f013'} /*  */ 97 | .octicon-flame:before { content: '\f0d2'} /*  */ 98 | .octicon-fold:before { content: '\f0cc'} /*  */ 99 | .octicon-gear:before { content: '\f02f'} /*  */ 100 | .octicon-gift:before { content: '\f042'} /*  */ 101 | .octicon-gist:before { content: '\f00e'} /*  */ 102 | .octicon-gist-secret:before { content: '\f08c'} /*  */ 103 | .octicon-git-branch-create:before, 104 | .octicon-git-branch-delete:before, 105 | .octicon-git-branch:before { content: '\f020'} /*  */ 106 | .octicon-git-commit:before { content: '\f01f'} /*  */ 107 | .octicon-git-compare:before { content: '\f0ac'} /*  */ 108 | .octicon-git-merge:before { content: '\f023'} /*  */ 109 | .octicon-git-pull-request-abandoned:before, 110 | .octicon-git-pull-request:before { content: '\f009'} /*  */ 111 | .octicon-globe:before { content: '\f0b6'} /*  */ 112 | .octicon-graph:before { content: '\f043'} /*  */ 113 | .octicon-heart:before { content: '\2665'} /* ♥ */ 114 | .octicon-history:before { content: '\f07e'} /*  */ 115 | .octicon-home:before { content: '\f08d'} /*  */ 116 | .octicon-horizontal-rule:before { content: '\f070'} /*  */ 117 | .octicon-hubot:before { content: '\f09d'} /*  */ 118 | .octicon-inbox:before { content: '\f0cf'} /*  */ 119 | .octicon-info:before { content: '\f059'} /*  */ 120 | .octicon-issue-closed:before { content: '\f028'} /*  */ 121 | .octicon-issue-opened:before { content: '\f026'} /*  */ 122 | .octicon-issue-reopened:before { content: '\f027'} /*  */ 123 | .octicon-italic:before { content: '\f0e4'} /*  */ 124 | .octicon-jersey:before { content: '\f019'} /*  */ 125 | .octicon-key:before { content: '\f049'} /*  */ 126 | .octicon-keyboard:before { content: '\f00d'} /*  */ 127 | .octicon-law:before { content: '\f0d8'} /*  */ 128 | .octicon-light-bulb:before { content: '\f000'} /*  */ 129 | .octicon-link:before { content: '\f05c'} /*  */ 130 | .octicon-link-external:before { content: '\f07f'} /*  */ 131 | .octicon-list-ordered:before { content: '\f062'} /*  */ 132 | .octicon-list-unordered:before { content: '\f061'} /*  */ 133 | .octicon-location:before { content: '\f060'} /*  */ 134 | .octicon-gist-private:before, 135 | .octicon-mirror-private:before, 136 | .octicon-git-fork-private:before, 137 | .octicon-lock:before { content: '\f06a'} /*  */ 138 | .octicon-logo-gist:before { content: '\f0ad'} /*  */ 139 | .octicon-logo-github:before { content: '\f092'} /*  */ 140 | .octicon-mail:before { content: '\f03b'} /*  */ 141 | .octicon-mail-read:before { content: '\f03c'} /*  */ 142 | .octicon-mail-reply:before { content: '\f051'} /*  */ 143 | .octicon-mark-github:before { content: '\f00a'} /*  */ 144 | .octicon-markdown:before { content: '\f0c9'} /*  */ 145 | .octicon-megaphone:before { content: '\f077'} /*  */ 146 | .octicon-mention:before { content: '\f0be'} /*  */ 147 | .octicon-milestone:before { content: '\f075'} /*  */ 148 | .octicon-mirror-public:before, 149 | .octicon-mirror:before { content: '\f024'} /*  */ 150 | .octicon-mortar-board:before { content: '\f0d7'} /*  */ 151 | .octicon-mute:before { content: '\f080'} /*  */ 152 | .octicon-no-newline:before { content: '\f09c'} /*  */ 153 | .octicon-octoface:before { content: '\f008'} /*  */ 154 | .octicon-organization:before { content: '\f037'} /*  */ 155 | .octicon-package:before { content: '\f0c4'} /*  */ 156 | .octicon-paintcan:before { content: '\f0d1'} /*  */ 157 | .octicon-pencil:before { content: '\f058'} /*  */ 158 | .octicon-person-add:before, 159 | .octicon-person-follow:before, 160 | .octicon-person:before { content: '\f018'} /*  */ 161 | .octicon-pin:before { content: '\f041'} /*  */ 162 | .octicon-plug:before { content: '\f0d4'} /*  */ 163 | .octicon-repo-create:before, 164 | .octicon-gist-new:before, 165 | .octicon-file-directory-create:before, 166 | .octicon-file-add:before, 167 | .octicon-plus:before { content: '\f05d'} /*  */ 168 | .octicon-primitive-dot:before { content: '\f052'} /*  */ 169 | .octicon-primitive-square:before { content: '\f053'} /*  */ 170 | .octicon-pulse:before { content: '\f085'} /*  */ 171 | .octicon-question:before { content: '\f02c'} /*  */ 172 | .octicon-quote:before { content: '\f063'} /*  */ 173 | .octicon-radio-tower:before { content: '\f030'} /*  */ 174 | .octicon-repo-delete:before, 175 | .octicon-repo:before { content: '\f001'} /*  */ 176 | .octicon-repo-clone:before { content: '\f04c'} /*  */ 177 | .octicon-repo-force-push:before { content: '\f04a'} /*  */ 178 | .octicon-gist-fork:before, 179 | .octicon-repo-forked:before { content: '\f002'} /*  */ 180 | .octicon-repo-pull:before { content: '\f006'} /*  */ 181 | .octicon-repo-push:before { content: '\f005'} /*  */ 182 | .octicon-rocket:before { content: '\f033'} /*  */ 183 | .octicon-rss:before { content: '\f034'} /*  */ 184 | .octicon-ruby:before { content: '\f047'} /*  */ 185 | .octicon-search-save:before, 186 | .octicon-search:before { content: '\f02e'} /*  */ 187 | .octicon-server:before { content: '\f097'} /*  */ 188 | .octicon-settings:before { content: '\f07c'} /*  */ 189 | .octicon-shield:before { content: '\f0e1'} /*  */ 190 | .octicon-log-in:before, 191 | .octicon-sign-in:before { content: '\f036'} /*  */ 192 | .octicon-log-out:before, 193 | .octicon-sign-out:before { content: '\f032'} /*  */ 194 | .octicon-smiley:before { content: '\f0e7'} /*  */ 195 | .octicon-squirrel:before { content: '\f0b2'} /*  */ 196 | .octicon-star-add:before, 197 | .octicon-star-delete:before, 198 | .octicon-star:before { content: '\f02a'} /*  */ 199 | .octicon-stop:before { content: '\f08f'} /*  */ 200 | .octicon-repo-sync:before, 201 | .octicon-sync:before { content: '\f087'} /*  */ 202 | .octicon-tag-remove:before, 203 | .octicon-tag-add:before, 204 | .octicon-tag:before { content: '\f015'} /*  */ 205 | .octicon-tasklist:before { content: '\f0e5'} /*  */ 206 | .octicon-telescope:before { content: '\f088'} /*  */ 207 | .octicon-terminal:before { content: '\f0c8'} /*  */ 208 | .octicon-text-size:before { content: '\f0e3'} /*  */ 209 | .octicon-three-bars:before { content: '\f05e'} /*  */ 210 | .octicon-thumbsdown:before { content: '\f0db'} /*  */ 211 | .octicon-thumbsup:before { content: '\f0da'} /*  */ 212 | .octicon-tools:before { content: '\f031'} /*  */ 213 | .octicon-trashcan:before { content: '\f0d0'} /*  */ 214 | .octicon-triangle-down:before { content: '\f05b'} /*  */ 215 | .octicon-triangle-left:before { content: '\f044'} /*  */ 216 | .octicon-triangle-right:before { content: '\f05a'} /*  */ 217 | .octicon-triangle-up:before { content: '\f0aa'} /*  */ 218 | .octicon-unfold:before { content: '\f039'} /*  */ 219 | .octicon-unmute:before { content: '\f0ba'} /*  */ 220 | .octicon-unverified:before { content: '\f0e8'} /*  */ 221 | .octicon-verified:before { content: '\f0e6'} /*  */ 222 | .octicon-versions:before { content: '\f064'} /*  */ 223 | .octicon-watch:before { content: '\f0e0'} /*  */ 224 | .octicon-remove-close:before, 225 | .octicon-x:before { content: '\f081'} /*  */ 226 | .octicon-zap:before { content: '\26A1'} /* ⚡ */ 227 | -------------------------------------------------------------------------------- /app/assets/fonts/octicons.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | (c) 2012-2016 GitHub 6 | 7 | When using the GitHub logos, be sure to follow the GitHub logo guidelines (https://github.com/logos) 8 | 9 | Font License: SIL OFL 1.1 (http://scripts.sil.org/OFL) 10 | Applies to all font files 11 | 12 | Code License: MIT (http://choosealicense.com/licenses/mit/) 13 | Applies to all other files 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | 151 | 152 | 153 | 154 | 155 | 156 | 157 | 158 | 159 | 160 | 161 | 162 | 163 | 164 | 165 | 166 | 167 | 168 | 169 | 170 | 171 | 172 | 173 | 174 | 175 | 176 | 177 | 178 | 179 | 180 | 181 | 182 | 183 | 184 | 185 | 186 | 187 | 188 | 189 | --------------------------------------------------------------------------------