material_icons-rails 0.1.2 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0e2532c41d26aca45e0978cc5d9c2c2cb43e5dec
4
- data.tar.gz: 33c17ad102c472adc506c06e7ed7d9455e604929
3
+ metadata.gz: bf68d38b035d0353869069fdf6bc615db522d83f
4
+ data.tar.gz: 4f20fc8c4b2bec6471bbe16580b682edc5abb48b
5
5
  SHA512:
6
- metadata.gz: 4d9553732dab37be9a9c2289d4bba4c12ff07dfc2f0864946e8cdb332c796caf4ba448a51fbb1d7f0578d5c5f98533270631f37ba2feef61f73c3084c5259d00
7
- data.tar.gz: bcc19bb764fbcc0153d0caa06bf5b9ecc942aabeaaeb0b21eb248ef0d9de08faa0591e360afdc56447040f056221f33d47bcb45f8a7a4c8db8feebd7ac9577af
6
+ metadata.gz: ae573fef9bb2c5e9a703089b08f67b9d4588f811b2efe235f73e493e4c5a37d5b11d9e67133e68173043a92c1436dc2ce76cbbc9bd0c0776cab273448c83adce
7
+ data.tar.gz: 296b836bc6f5f5d0b36127859b3e26007a80252639f31e484339dc4c7becf0f65199414c6245bb56a730e19b0cd5f077a83c7093b76574b326921840fb113abd
@@ -2,12 +2,13 @@
2
2
  font-family: 'Material Icons';
3
3
  font-style: normal;
4
4
  font-weight: 400;
5
- src: url(MaterialIcons-Regular.eot); /* For IE6-8 */
5
+ src: url('<%= font_path('MaterialIcons-Regular.eot') %>'); /* For IE6-8 */
6
6
  src: local('Material Icons'),
7
7
  local('MaterialIcons-Regular'),
8
- url(MaterialIcons-Regular.woff2) format('woff2'),
9
- url(MaterialIcons-Regular.woff) format('woff'),
10
- url(MaterialIcons-Regular.ttf) format('truetype');
8
+ url('<%= font_path('MaterialIcons-Regular.woff2') %>') format('woff2'),
9
+ url('<%= font_path('MaterialIcons-Regular.woff') %>') format('woff'),
10
+ url('<%= font_path('MaterialIcons-Regular.ttf') %>') format('truetype'),
11
+ url('<%= font_path('MaterialIcons-Regular.svg') %>#fontawesomeregular') format('svg');
11
12
  }
12
13
 
13
14
  .material-icons {
@@ -3,8 +3,8 @@ module MaterialIcons
3
3
  class Engine < ::Rails::Engine
4
4
  config.generators do |generators|
5
5
  generators.test_framework :rspec, :fixture => false
6
- # generators.assets true
7
- # generators.helper true
6
+ generators.assets true
7
+ generators.helper true
8
8
  end
9
9
  end
10
10
  end
data/lib/version.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  module MaterialIcons
2
2
  module Rails
3
- VERSION = '0.1.2'
3
+ VERSION = '1.0.2'
4
4
  FONT_VERSION = '2.2.0'
5
5
  end
6
6
  end
@@ -1,11 +1,15 @@
1
- # Be sure to restart your server when you modify this file.
1
+ initializer "material_icons-rails.assets.precompile" do |app|
2
+ # Be sure to restart your server when you modify this file.
2
3
 
3
- # Version of your assets, change this if you want to expire all your assets.
4
- Rails.application.config.assets.version = '1.0'
4
+ # Version of your assets, change this if you want to expire all your assets.
5
+ Rails.application.config.assets.version = MaterialIcons::Rails::VERSION
5
6
 
6
- # Add additional assets to the asset load path
7
- # Rails.application.config.assets.paths << Emoji.images_path
7
+ # Add additional assets to the asset load path
8
+ # Rails.application.config.assets.paths << Emoji.images_path
8
9
 
9
- # Precompile additional assets.
10
- # application.js, application.css, and all non-JS/CSS in app/assets folder are already added.
11
- # Rails.application.config.assets.precompile += %w( search.js )
10
+ # Precompile additional assets.
11
+ # application.js, application.css, and all non-JS/CSS in app/assets folder are already added.
12
+ # Rails.application.config.assets.precompile += %w( search.js )
13
+ Rails.application.config.assets.precompile += [/material-icons.css/]
14
+ Rails.application.config.assets.precompile += [/.*MaterialIcons-Regular/]
15
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: material_icons-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - chaunce
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-06-23 00:00:00.000000000 Z
11
+ date: 2016-07-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -80,7 +80,7 @@ files:
80
80
  - app/assets/fonts/MaterialIcons-Regular.ttf
81
81
  - app/assets/fonts/MaterialIcons-Regular.woff
82
82
  - app/assets/fonts/MaterialIcons-Regular.woff2
83
- - app/assets/stylesheets/material-icons.css
83
+ - app/assets/stylesheets/material-icons.css.erb
84
84
  - app/helpers/material_icons/rails/icon_helper.rb
85
85
  - lib/material_icons-rails.rb
86
86
  - lib/material_icons/rails/engine.rb