google_mdl 1.0.0 → 1.1.0

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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +51 -15
  3. data/lib/google_mdl/version.rb +1 -1
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0314810646b3b243069e7b100cfd4bf6dde55265
4
- data.tar.gz: d5b2d242daab3f9267afe1756fefba6e8adfde6e
3
+ metadata.gz: 650106987adcd42d1de52e353da93c34570c46a4
4
+ data.tar.gz: 053377c9631cec2ccaffe7058cedaabd7804121c
5
5
  SHA512:
6
- metadata.gz: 1a4e22d6b96d5fb079b108b48bb87838100f53e1954379135ad2c2bb7dfb5b4c24ccf31441293e3088918c378407fcc5d50dc51861e163468bc11b6ef17c38e7
7
- data.tar.gz: 1f49251a5d1e635f05994004ba5c4256d11387573fc0d5dd6d7a5287457ce90d7e334b1ed4a9aa095749a2ffc28e11fd9191d02627479a6859849a70bed5c5a1
6
+ metadata.gz: f24b580513b0144d00f7be927c1915b2779a4c66273bf8d7d73cef86bb4d76f9300547bcba89dc3fa5bf39a857fb2bbab1f1d2ecd30b55e230f3de6b7b8cf0eb
7
+ data.tar.gz: 9a9b23f95fa785e20e8efb56363629fc9de26d67e00695dd07fed23cbe2b458e16813fa382bb923d76024fe7cc002ca228aa36ec10c6c0d3adfb58d313a6b62d
data/README.md CHANGED
@@ -4,34 +4,70 @@ Material Design Lite lets you add a [Material Design](http://google.com/design/s
4
4
 
5
5
  ## Installation
6
6
 
7
- Add this line to your application's Gemfile:
7
+ To your Rails application's Gemfile, add
8
8
 
9
9
  ```ruby
10
10
  gem 'google_mdl'
11
11
  ```
12
12
 
13
- And then execute:
13
+ And then run
14
14
 
15
- $ bundle install
15
+ $ bundle
16
16
 
17
- Or install it yourself as:
17
+ #### Javascripts
18
18
 
19
- $ gem install google_mdl
19
+ Do one of the following:
20
20
 
21
- ## Usage
21
+ To your `application.js` file, add:
22
22
 
23
- Add to your app/assets/javascripts/application.js.cofee
24
-
25
- #= require material.min
23
+ ```
24
+ //= require material.min
25
+ ```
26
+ **OR**
27
+
28
+ If you're using coffee, add
29
+ ```
30
+ #= require material.min
31
+ ```
32
+ in your `application.js.coffee`.
33
+
34
+
35
+ #### Stylesheets
36
+
37
+ Do one of the following:
38
+
39
+ To your `application.css` , add
40
+ ```
41
+ *= require material.min
42
+ ```
43
+
44
+ **OR**
45
+
46
+ If you're using sass, add
47
+ [`@import`](https://github.com/rails/sass-rails#important-note)
48
+ in your `application.scss`.
49
+
50
+ ```
51
+ @import "material.min";
52
+ ```
53
+
54
+ #### Icons
55
+ Material Design Lite uses a font called 'Material Icons'.
56
+ You can either load this font from google, or host it yourself.
57
+
58
+ ##### Load font from google
59
+ Add the following line to your `application.html.erb` view layout file,
60
+ in the `<head>` section:
61
+
62
+ ```
63
+ <%= stylesheet_link_tag "https://fonts.googleapis.com/icon?family=Material+Icons" %>
64
+ ```
26
65
 
27
- And to your app/assets/stylesheets/application.css.sass
66
+ **OR**
28
67
 
29
- /*
30
- * ---- your existing includes-----
31
- *= require material.min
32
- */
68
+ ##### Host font locally
69
+ Use the `material_icons` gem to [host the font locally](https://github.com/Angelmmiguel/material_icons).
33
70
 
34
- @import "https://fonts.googleapis.com/icon?family=Material+Icons"
35
71
 
36
72
  ## Documentation
37
73
  [Getting start with Material Design Lite(MDL)](http://www.getmdl.io/started/index.html)
@@ -1,3 +1,3 @@
1
1
  module GoogleMdl
2
- VERSION = "1.0.0"
2
+ VERSION = "1.1.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google_mdl
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Varma
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-10-20 00:00:00.000000000 Z
11
+ date: 2015-10-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler