getmdl_rails 0.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.
- checksums.yaml +7 -0
- data/.gitignore +9 -0
- data/Gemfile +4 -0
- data/README.md +54 -0
- data/Rakefile +2 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/getmdl_rails.gemspec +22 -0
- data/lib/getmdl_rails/version.rb +3 -0
- data/lib/getmdl_rails.rb +5 -0
- metadata +83 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: a15fd2125eb372cbf95370c086018d6a32c71fc8
|
4
|
+
data.tar.gz: 634715406ce9f8eb9a13bcf56138cdc8142f70dd
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 82246409f56aff6a4418e5720791239dd5e2309939f1f8f5ce32915f2696da4733279b24e667f26c099dbe009377c46c3382c599f0fe421aeb9610afd167861e
|
7
|
+
data.tar.gz: bffb6ec8175d1edb2ecaff02a5a1f50332429036158a7a95cf41fa73ae2b461f6683add727eb15adc1e49d4caa28e7efa6c418fc4221adac0ca00d80f46dc4e6
|
data/.gitignore
ADDED
data/Gemfile
ADDED
data/README.md
ADDED
@@ -0,0 +1,54 @@
|
|
1
|
+
## Installation
|
2
|
+
|
3
|
+
Add this line to your application's Gemfile:
|
4
|
+
|
5
|
+
```ruby
|
6
|
+
gem 'getmdl_rails'
|
7
|
+
```
|
8
|
+
|
9
|
+
And then execute:
|
10
|
+
|
11
|
+
$ bundle
|
12
|
+
|
13
|
+
Or install it yourself as:
|
14
|
+
|
15
|
+
$ gem install getmdl_rails
|
16
|
+
|
17
|
+
## Usage
|
18
|
+
|
19
|
+
Javascripts
|
20
|
+
|
21
|
+
To your application.js file, add:
|
22
|
+
|
23
|
+
//= require material
|
24
|
+
Stylesheets
|
25
|
+
|
26
|
+
Do one of the following:
|
27
|
+
|
28
|
+
To your application.css , add
|
29
|
+
|
30
|
+
*= require material
|
31
|
+
OR
|
32
|
+
|
33
|
+
If you're using sass, use sass's @import in your application.scss.
|
34
|
+
|
35
|
+
@import "material";
|
36
|
+
|
37
|
+
This gem only provides the compiled CSS file from google/material-design-lite.
|
38
|
+
|
39
|
+
|
40
|
+
Icons
|
41
|
+
|
42
|
+
Material Design Lite uses a font called 'Material Icons'. You can either load this font from google, or host it yourself.
|
43
|
+
|
44
|
+
Load font from google
|
45
|
+
|
46
|
+
Add the following line to your application.html.erb view layout file, in the <head> section:
|
47
|
+
|
48
|
+
<%= stylesheet_link_tag "https://fonts.googleapis.com/icon?family=Material+Icons" %>
|
49
|
+
|
50
|
+
|
51
|
+
## Contributing
|
52
|
+
|
53
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/getmdl_rails.
|
54
|
+
|
data/Rakefile
ADDED
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "getmdl_rails"
|
5
|
+
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
8
|
+
|
9
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
+
# require "pry"
|
11
|
+
# Pry.start
|
12
|
+
|
13
|
+
require "irb"
|
14
|
+
IRB.start
|
data/bin/setup
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'getmdl_rails/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "getmdl_rails"
|
8
|
+
spec.version = GetmdlRails::VERSION
|
9
|
+
spec.authors = ["Nitesh Nehra"]
|
10
|
+
spec.email = ["nitesh.nehra@gmail.com"]
|
11
|
+
|
12
|
+
spec.summary = %q{This gem allows you to get material design in rails application.}
|
13
|
+
spec.description = %q{Material Design (codenamed Quantum Paper) is a design language developed by Google. Expanding upon the 'card' motifs that debuted in android, Material Design makes more liberal use of grid-based layouts, responsive animations and transitions, padding, and depth effects such as lighting and shadows.}
|
14
|
+
spec.homepage = ""
|
15
|
+
|
16
|
+
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
17
|
+
|
18
|
+
spec.require_paths = ["lib"]
|
19
|
+
|
20
|
+
spec.add_development_dependency "bundler", "~> 1.11"
|
21
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
22
|
+
end
|
data/lib/getmdl_rails.rb
ADDED
metadata
ADDED
@@ -0,0 +1,83 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: getmdl_rails
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Nitesh Nehra
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2016-03-07 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ~>
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.11'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ~>
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.11'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ~>
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '10.0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ~>
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '10.0'
|
41
|
+
description: Material Design (codenamed Quantum Paper) is a design language developed
|
42
|
+
by Google. Expanding upon the 'card' motifs that debuted in android, Material Design
|
43
|
+
makes more liberal use of grid-based layouts, responsive animations and transitions,
|
44
|
+
padding, and depth effects such as lighting and shadows.
|
45
|
+
email:
|
46
|
+
- nitesh.nehra@gmail.com
|
47
|
+
executables: []
|
48
|
+
extensions: []
|
49
|
+
extra_rdoc_files: []
|
50
|
+
files:
|
51
|
+
- .gitignore
|
52
|
+
- Gemfile
|
53
|
+
- README.md
|
54
|
+
- Rakefile
|
55
|
+
- bin/console
|
56
|
+
- bin/setup
|
57
|
+
- getmdl_rails.gemspec
|
58
|
+
- lib/getmdl_rails.rb
|
59
|
+
- lib/getmdl_rails/version.rb
|
60
|
+
homepage: ''
|
61
|
+
licenses: []
|
62
|
+
metadata: {}
|
63
|
+
post_install_message:
|
64
|
+
rdoc_options: []
|
65
|
+
require_paths:
|
66
|
+
- lib
|
67
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
68
|
+
requirements:
|
69
|
+
- - '>='
|
70
|
+
- !ruby/object:Gem::Version
|
71
|
+
version: '0'
|
72
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
73
|
+
requirements:
|
74
|
+
- - '>='
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
version: '0'
|
77
|
+
requirements: []
|
78
|
+
rubyforge_project:
|
79
|
+
rubygems_version: 2.4.8
|
80
|
+
signing_key:
|
81
|
+
specification_version: 4
|
82
|
+
summary: This gem allows you to get material design in rails application.
|
83
|
+
test_files: []
|