h2ocube_rails_assets 0.0.20 → 0.0.21
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/h2ocube_rails_assets.gemspec +4 -2
- data/lib/h2ocube_rails_assets.rb +4 -4
- data/test/assets_test.rb +3 -3
- metadata +21 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9d191895f03cf32e901842df365710ab019cb144
|
4
|
+
data.tar.gz: d5a86879ff00ce6555b1220a71100b12fdad43b8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6e29e4b22c7c4c49207844f9327bf240368a1b7762da6c26b3958f566f8c7da5f83945df284eac5149e173159977cd200d3657b0376a98ee50954c0b0738af4a
|
7
|
+
data.tar.gz: c3cff9bff5e5ed1243e7abd8773febc0f6082e7f08171c81b8646599b0b843b1940e1dfb79949b5243933870c0ed5b09742bc503f66ed265e4d3c572c03804b3
|
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |gem|
|
6
6
|
gem.name = 'h2ocube_rails_assets'
|
7
|
-
gem.version = '0.0.
|
7
|
+
gem.version = '0.0.21'
|
8
8
|
gem.authors = ['Ben']
|
9
9
|
gem.email = ['ben@h2ocube.com']
|
10
10
|
gem.description = %q{Just an assets collection}
|
@@ -18,5 +18,7 @@ Gem::Specification.new do |gem|
|
|
18
18
|
|
19
19
|
%w(slim sass-rails compass-rails coffee-rails therubyracer uglifier quiet_assets turbolinks).each{ |g| gem.add_dependency g }
|
20
20
|
|
21
|
-
%w(
|
21
|
+
%w(minitest capybara zip vendorer).each{ |g| gem.add_development_dependency g }
|
22
|
+
gem.add_development_dependency 'rails', '~> 3.2'
|
23
|
+
gem.add_development_dependency 'pry'
|
22
24
|
end
|
data/lib/h2ocube_rails_assets.rb
CHANGED
@@ -2,12 +2,12 @@ if defined?(Rails)
|
|
2
2
|
['slim', 'sass-rails', 'compass-rails', 'coffee-rails', 'v8', 'uglifier', 'turbolinks', 'quiet_assets'].each{ |g| require g }
|
3
3
|
|
4
4
|
module H2ocubeRailsAssets
|
5
|
-
|
6
|
-
|
5
|
+
class Railtie < Rails::Railtie
|
6
|
+
PATH = File.dirname(__FILE__)
|
7
7
|
initializer 'h2ocube_rails_assets.require_dependency' do |app|
|
8
|
-
|
8
|
+
app.config.assets.paths += Dir[File.join(PATH, '../vendor/assets/*')]
|
9
|
+
app.config.assets.paths << Compass::Frameworks['compass'].stylesheets_directory
|
9
10
|
end
|
10
11
|
end
|
11
|
-
end
|
12
12
|
end
|
13
13
|
end
|
data/test/assets_test.rb
CHANGED
@@ -4,19 +4,19 @@ describe 'basic assets type integration' do
|
|
4
4
|
it 'css' do
|
5
5
|
visit '/assets/css.css'
|
6
6
|
page.html.wont_include 'Error'
|
7
|
-
page.html.must_include 'color: red
|
7
|
+
page.html.must_include 'color: red'
|
8
8
|
end
|
9
9
|
|
10
10
|
it 'sass' do
|
11
11
|
visit '/assets/sass.css'
|
12
12
|
page.html.wont_include 'Error'
|
13
|
-
page.html.must_include 'color: red
|
13
|
+
page.html.must_include 'color: red'
|
14
14
|
end
|
15
15
|
|
16
16
|
it 'scss' do
|
17
17
|
visit '/assets/scss.css'
|
18
18
|
page.html.wont_include 'Error'
|
19
|
-
page.html.must_include 'color: red
|
19
|
+
page.html.must_include 'color: red'
|
20
20
|
end
|
21
21
|
|
22
22
|
it 'js' do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: h2ocube_rails_assets
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.21
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ben
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-07-
|
11
|
+
date: 2013-07-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: slim
|
@@ -123,7 +123,7 @@ dependencies:
|
|
123
123
|
- !ruby/object:Gem::Version
|
124
124
|
version: '0'
|
125
125
|
- !ruby/object:Gem::Dependency
|
126
|
-
name:
|
126
|
+
name: minitest
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|
128
128
|
requirements:
|
129
129
|
- - '>='
|
@@ -137,7 +137,7 @@ dependencies:
|
|
137
137
|
- !ruby/object:Gem::Version
|
138
138
|
version: '0'
|
139
139
|
- !ruby/object:Gem::Dependency
|
140
|
-
name:
|
140
|
+
name: capybara
|
141
141
|
requirement: !ruby/object:Gem::Requirement
|
142
142
|
requirements:
|
143
143
|
- - '>='
|
@@ -151,7 +151,7 @@ dependencies:
|
|
151
151
|
- !ruby/object:Gem::Version
|
152
152
|
version: '0'
|
153
153
|
- !ruby/object:Gem::Dependency
|
154
|
-
name:
|
154
|
+
name: zip
|
155
155
|
requirement: !ruby/object:Gem::Requirement
|
156
156
|
requirements:
|
157
157
|
- - '>='
|
@@ -165,7 +165,7 @@ dependencies:
|
|
165
165
|
- !ruby/object:Gem::Version
|
166
166
|
version: '0'
|
167
167
|
- !ruby/object:Gem::Dependency
|
168
|
-
name:
|
168
|
+
name: vendorer
|
169
169
|
requirement: !ruby/object:Gem::Requirement
|
170
170
|
requirements:
|
171
171
|
- - '>='
|
@@ -179,7 +179,21 @@ dependencies:
|
|
179
179
|
- !ruby/object:Gem::Version
|
180
180
|
version: '0'
|
181
181
|
- !ruby/object:Gem::Dependency
|
182
|
-
name:
|
182
|
+
name: rails
|
183
|
+
requirement: !ruby/object:Gem::Requirement
|
184
|
+
requirements:
|
185
|
+
- - ~>
|
186
|
+
- !ruby/object:Gem::Version
|
187
|
+
version: '3.2'
|
188
|
+
type: :development
|
189
|
+
prerelease: false
|
190
|
+
version_requirements: !ruby/object:Gem::Requirement
|
191
|
+
requirements:
|
192
|
+
- - ~>
|
193
|
+
- !ruby/object:Gem::Version
|
194
|
+
version: '3.2'
|
195
|
+
- !ruby/object:Gem::Dependency
|
196
|
+
name: pry
|
183
197
|
requirement: !ruby/object:Gem::Requirement
|
184
198
|
requirements:
|
185
199
|
- - '>='
|