elasticss-rails 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- data/{vendor/assets/javascripts/elasticss/.DS_Store → .DS_Store} +0 -0
- data/README.md +12 -19
- data/Rakefile +1 -1
- data/elasticss-rails.gemspec +1 -4
- data/lib/elasticss-rails/engine.rb +6 -0
- data/lib/elasticss-rails/version.rb +1 -1
- data/lib/elasticss-rails.rb +1 -0
- data/vendor/assets/{stylesheets/elasticss → javascripts}/.DS_Store +0 -0
- data/vendor/assets/javascripts/{elasticss/elastic.js → elastic.js} +0 -0
- data/vendor/assets/stylesheets/.DS_Store +0 -0
- data/vendor/assets/stylesheets/{elasticss/elastic.css → elastic.css} +0 -0
- data/vendor/assets/stylesheets/{elasticss/elastic.print.css → elastic.print.css} +0 -0
- metadata +14 -13
- data/lib/generators/elasticss/install/install_generator.rb +0 -18
File without changes
|
data/README.md
CHANGED
@@ -19,34 +19,26 @@ or you can install from latest build;
|
|
19
19
|
gem 'elasticss-rails', :git => 'git@github.com:kurenn/elasticss-rails.git'
|
20
20
|
```
|
21
21
|
|
22
|
-
|
22
|
+
Install the gem using the bundle command:
|
23
23
|
|
24
24
|
bundle install
|
25
25
|
|
26
26
|
|
27
|
-
##
|
27
|
+
## Add elasticss CSS assets
|
28
28
|
|
29
|
-
|
29
|
+
Add to your `app/assets/stylesheets/application.css`
|
30
30
|
|
31
|
+
*= require elastic
|
31
32
|
|
32
|
-
|
33
|
+
If you need to add the print support you can add it as well
|
34
|
+
|
35
|
+
*= require elastic.print
|
33
36
|
|
37
|
+
## Add elasticss JS assets
|
34
38
|
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
rails g elasticss:install
|
39
|
-
|
40
|
-
## But you don't have to include the JS always
|
41
|
-
|
42
|
-
Thanks to elasticss flexibility, you can skip adding the javascript if
|
43
|
-
you are not going to use more than 4 columns, CSS will do it for you:
|
44
|
-
|
45
|
-
Usage:
|
46
|
-
|
47
|
-
rails g elasticss:install --nojs
|
39
|
+
Add to your `app/assets/javascripts/application.js`
|
48
40
|
|
49
|
-
|
41
|
+
//= require elastic
|
50
42
|
|
51
43
|
## Layout generators
|
52
44
|
|
@@ -84,7 +76,8 @@ But wait there is more:
|
|
84
76
|
|
85
77
|
## Changelog
|
86
78
|
<ul>
|
87
|
-
<li>Current gem v.0.1.
|
79
|
+
<li>Current gem v.0.1.4</li>
|
80
|
+
<li>Full integration with rails asset pipeline</li>
|
88
81
|
<li>Skip inclusion of JS with an argument</li>
|
89
82
|
<li>Release gem v.0.1.0</li>
|
90
83
|
<li>Support for HAML templates</li>
|
data/Rakefile
CHANGED
data/elasticss-rails.gemspec
CHANGED
@@ -19,8 +19,5 @@ Gem::Specification.new do |s|
|
|
19
19
|
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
20
20
|
s.require_paths = ["lib"]
|
21
21
|
|
22
|
-
s.add_development_dependency
|
23
|
-
# specify any dependencies here; for example:
|
24
|
-
# s.add_development_dependency "rspec"
|
25
|
-
# s.add_runtime_dependency "rest-client"
|
22
|
+
s.add_development_dependency "rake", "~> 0.9.2.2"
|
26
23
|
end
|
data/lib/elasticss-rails.rb
CHANGED
File without changes
|
File without changes
|
Binary file
|
File without changes
|
File without changes
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: elasticss-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,24 +9,24 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-09-
|
12
|
+
date: 2012-09-24 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
|
-
name:
|
15
|
+
name: rake
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
|
-
- -
|
19
|
+
- - ~>
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version:
|
21
|
+
version: 0.9.2.2
|
22
22
|
type: :development
|
23
23
|
prerelease: false
|
24
24
|
version_requirements: !ruby/object:Gem::Requirement
|
25
25
|
none: false
|
26
26
|
requirements:
|
27
|
-
- -
|
27
|
+
- - ~>
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version:
|
29
|
+
version: 0.9.2.2
|
30
30
|
description: Integrate ElastiCSS framework with the rails assets pipeline
|
31
31
|
email:
|
32
32
|
- kurenn@icalialabs.com
|
@@ -34,6 +34,7 @@ executables: []
|
|
34
34
|
extensions: []
|
35
35
|
extra_rdoc_files: []
|
36
36
|
files:
|
37
|
+
- .DS_Store
|
37
38
|
- .gitignore
|
38
39
|
- .travis.yml
|
39
40
|
- Gemfile
|
@@ -41,8 +42,8 @@ files:
|
|
41
42
|
- Rakefile
|
42
43
|
- elasticss-rails.gemspec
|
43
44
|
- lib/elasticss-rails.rb
|
45
|
+
- lib/elasticss-rails/engine.rb
|
44
46
|
- lib/elasticss-rails/version.rb
|
45
|
-
- lib/generators/elasticss/install/install_generator.rb
|
46
47
|
- lib/generators/elasticss/layout/layout_generator.rb
|
47
48
|
- lib/generators/elasticss/layout/templates/.DS_Store
|
48
49
|
- lib/generators/elasticss/layout/templates/layout_3_columns.html.erb
|
@@ -54,11 +55,11 @@ files:
|
|
54
55
|
- lib/generators/elasticss/templates/application.css
|
55
56
|
- lib/generators/elasticss/templates/application.js
|
56
57
|
- vendor/.DS_Store
|
57
|
-
- vendor/assets/javascripts
|
58
|
-
- vendor/assets/javascripts/
|
59
|
-
- vendor/assets/stylesheets
|
60
|
-
- vendor/assets/stylesheets/
|
61
|
-
- vendor/assets/stylesheets/
|
58
|
+
- vendor/assets/javascripts/.DS_Store
|
59
|
+
- vendor/assets/javascripts/elastic.js
|
60
|
+
- vendor/assets/stylesheets/.DS_Store
|
61
|
+
- vendor/assets/stylesheets/elastic.css
|
62
|
+
- vendor/assets/stylesheets/elastic.print.css
|
62
63
|
homepage: https://github.com/kurenn/elasticss-rails
|
63
64
|
licenses: []
|
64
65
|
post_install_message:
|
@@ -1,18 +0,0 @@
|
|
1
|
-
require 'rails/generators'
|
2
|
-
|
3
|
-
module Elasticss
|
4
|
-
module Generators
|
5
|
-
class InstallGenerator < ::Rails::Generators::Base
|
6
|
-
source_root File.expand_path("../../../../../vendor/assets", __FILE__)
|
7
|
-
|
8
|
-
desc 'This generator installs ElastiCSS to Asset Pipeline'
|
9
|
-
|
10
|
-
class_option :nojs, :type => :boolean, :desc => 'Skips the inclusion of JS'
|
11
|
-
|
12
|
-
def add_elasticss
|
13
|
-
directory 'javascripts/elasticss', 'app/assets/javascripts/elasticss' unless options[:nojs]
|
14
|
-
directory 'stylesheets/elasticss', 'app/assets/stylesheets/elasticss'
|
15
|
-
end
|
16
|
-
end
|
17
|
-
end
|
18
|
-
end
|