elasticss-rails 0.1.0 → 0.1.1
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.
- data/README.md +16 -1
- data/Rakefile +16 -1
- data/elasticss-rails.gemspec +2 -2
- data/lib/elasticss-rails/version.rb +1 -1
- data/lib/generators/elasticss/install/install_generator.rb +4 -2
- metadata +5 -16
data/README.md
CHANGED
@@ -37,6 +37,18 @@ Usage:
|
|
37
37
|
|
38
38
|
rails g elasticss:install
|
39
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 --skip-javascript
|
48
|
+
|
49
|
+
And you can add it later if you need it with the installation generator
|
50
|
+
|
51
|
+
## Layout generators
|
40
52
|
|
41
53
|
Layout (generates ElastiCSS layout) - (ERB and HAML supported):
|
42
54
|
|
@@ -72,7 +84,9 @@ But wait there is more:
|
|
72
84
|
|
73
85
|
## Changelog
|
74
86
|
<ul>
|
75
|
-
<li>Current gem v.0.1.
|
87
|
+
<li>Current gem v.0.1.1</li>
|
88
|
+
<li>Skip inclusion of JS with an argument</li>
|
89
|
+
<li>Release gem v.0.1.0</li>
|
76
90
|
<li>Support for HAML templates</li>
|
77
91
|
<li>Released gem v.0.0.3</li>
|
78
92
|
<li>Released gem v.0.0.2</li>
|
@@ -94,6 +108,7 @@ But wait there is more:
|
|
94
108
|
|
95
109
|
## Future
|
96
110
|
<ul>
|
111
|
+
<li>Add dinamic columns layout with argument</li>
|
97
112
|
<li>Writing tests (not implemented yet)</li>
|
98
113
|
<li>Provide a stylesheet for templates</li>
|
99
114
|
</ul>
|
data/Rakefile
CHANGED
@@ -1 +1,16 @@
|
|
1
|
-
|
1
|
+
#!/usr/bin/env rake
|
2
|
+
require "bundler"
|
3
|
+
|
4
|
+
Bundler::GemHelper.install_tasks
|
5
|
+
|
6
|
+
desc "Bundle the gem"
|
7
|
+
|
8
|
+
task :bundle do
|
9
|
+
sh('bundle install')
|
10
|
+
sh 'gem build *.gemspec'
|
11
|
+
sh 'gem install *.gem'
|
12
|
+
sh 'rm *.gem'
|
13
|
+
end
|
14
|
+
|
15
|
+
task(:default).clear
|
16
|
+
task :default => :bundle
|
data/elasticss-rails.gemspec
CHANGED
@@ -5,9 +5,10 @@ require "elasticss-rails/version"
|
|
5
5
|
Gem::Specification.new do |s|
|
6
6
|
s.name = "elasticss-rails"
|
7
7
|
s.version = Elasticss::Rails::VERSION
|
8
|
+
s.platform = Gem::Platform::RUBY
|
8
9
|
s.authors = ["Abraham Kuri"]
|
9
10
|
s.email = ["kurenn@icalialabs.com"]
|
10
|
-
s.homepage = ""
|
11
|
+
s.homepage = "https://github.com/kurenn/elasticss-rails"
|
11
12
|
s.summary = %q{ElastiCSS integration with rails 3.1 Asset pipeline}
|
12
13
|
s.description = %q{Integrate ElastiCSS framework with the rails assets pipeline}
|
13
14
|
|
@@ -18,7 +19,6 @@ Gem::Specification.new do |s|
|
|
18
19
|
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
19
20
|
s.require_paths = ["lib"]
|
20
21
|
|
21
|
-
s.add_dependency 'therubyracer', '0.10.1'
|
22
22
|
s.add_development_dependency 'rails', '>= 3.1'
|
23
23
|
# specify any dependencies here; for example:
|
24
24
|
# s.add_development_dependency "rspec"
|
@@ -4,11 +4,13 @@ module Elasticss
|
|
4
4
|
module Generators
|
5
5
|
class InstallGenerator < ::Rails::Generators::Base
|
6
6
|
source_root File.expand_path("../../../../../vendor/assets", __FILE__)
|
7
|
-
|
7
|
+
|
8
8
|
desc 'This generator installs ElastiCSS to Asset Pipeline'
|
9
|
+
|
10
|
+
argument :skip_javascript, :type => :string, :default => "--with-javascript"
|
9
11
|
|
10
12
|
def add_elasticss
|
11
|
-
directory 'javascripts/elasticss', 'app/assets/javascripts/elasticss'
|
13
|
+
directory 'javascripts/elasticss', 'app/assets/javascripts/elasticss' if skip_javascript != "--skip-javascript"
|
12
14
|
directory 'stylesheets/elasticss', 'app/assets/stylesheets/elasticss'
|
13
15
|
end
|
14
16
|
end
|
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.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,22 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-06
|
12
|
+
date: 2012-07-06 00:00:00.000000000Z
|
13
13
|
dependencies:
|
14
|
-
- !ruby/object:Gem::Dependency
|
15
|
-
name: therubyracer
|
16
|
-
requirement: &70343797145160 !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
|
-
requirements:
|
19
|
-
- - =
|
20
|
-
- !ruby/object:Gem::Version
|
21
|
-
version: 0.10.1
|
22
|
-
type: :runtime
|
23
|
-
prerelease: false
|
24
|
-
version_requirements: *70343797145160
|
25
14
|
- !ruby/object:Gem::Dependency
|
26
15
|
name: rails
|
27
|
-
requirement: &
|
16
|
+
requirement: &70156975154940 !ruby/object:Gem::Requirement
|
28
17
|
none: false
|
29
18
|
requirements:
|
30
19
|
- - ! '>='
|
@@ -32,7 +21,7 @@ dependencies:
|
|
32
21
|
version: '3.1'
|
33
22
|
type: :development
|
34
23
|
prerelease: false
|
35
|
-
version_requirements: *
|
24
|
+
version_requirements: *70156975154940
|
36
25
|
description: Integrate ElastiCSS framework with the rails assets pipeline
|
37
26
|
email:
|
38
27
|
- kurenn@icalialabs.com
|
@@ -65,7 +54,7 @@ files:
|
|
65
54
|
- vendor/assets/stylesheets/elasticss/.DS_Store
|
66
55
|
- vendor/assets/stylesheets/elasticss/elastic.css
|
67
56
|
- vendor/assets/stylesheets/elasticss/elastic.print.css
|
68
|
-
homepage:
|
57
|
+
homepage: https://github.com/kurenn/elasticss-rails
|
69
58
|
licenses: []
|
70
59
|
post_install_message:
|
71
60
|
rdoc_options: []
|