elasticss-rails 0.1.3 → 0.1.4

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 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
- You can run bundle from command line
22
+ Install the gem using the bundle command:
23
23
 
24
24
  bundle install
25
25
 
26
26
 
27
- ## Installing to App (using Generators)
27
+ ## Add elasticss CSS assets
28
28
 
29
- You can run following generators to get started with ElastiCSS quickly.
29
+ Add to your `app/assets/stylesheets/application.css`
30
30
 
31
+ *= require elastic
31
32
 
32
- Install (requires directives to Asset pipeline.)
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
- Usage:
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
- And you can add it later if you need it with the installation generator
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.3</li>
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
@@ -13,4 +13,4 @@ task :bundle do
13
13
  end
14
14
 
15
15
  task(:default).clear
16
- task :default => :bundle
16
+ task :default => :bundle
@@ -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 'rails', '>= 3.1'
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
@@ -0,0 +1,6 @@
1
+ module Elasticss
2
+ module Rails
3
+ class Engine < ::Rails::Engine
4
+ end
5
+ end
6
+ end
@@ -1,5 +1,5 @@
1
1
  module Elasticss
2
2
  module Rails
3
- VERSION = "0.1.3"
3
+ VERSION = "0.1.4"
4
4
  end
5
5
  end
@@ -2,5 +2,6 @@ require "elasticss-rails/version"
2
2
 
3
3
  module Elasticss
4
4
  module Rails
5
+ require "elasticss-rails/engine"
5
6
  end
6
7
  end
Binary file
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.3
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-09 00:00:00.000000000 Z
12
+ date: 2012-09-24 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
- name: rails
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: '3.1'
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: '3.1'
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/elasticss/.DS_Store
58
- - vendor/assets/javascripts/elasticss/elastic.js
59
- - vendor/assets/stylesheets/elasticss/.DS_Store
60
- - vendor/assets/stylesheets/elasticss/elastic.css
61
- - vendor/assets/stylesheets/elasticss/elastic.print.css
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