assets_include 1.0.1 → 2.0.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 +4 -4
- data/.travis.yml +1 -1
- data/History.md +5 -0
- data/examples/sinatra/Gemfile.lock +1 -1
- data/lib/assets_include.rb +2 -2
- data/lib/assets_include/base.rb +4 -2
- data/lib/assets_include/version.rb +2 -2
- data/test/assets_include/base_test.rb +13 -15
- data/test/assets_include/helpers_test.rb +3 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f1895654f59b78b3e0cf7dbd5944ea202ae8e8cd
|
4
|
+
data.tar.gz: 9fb2c7b32a568b8b2d8ffaa9546bf1e07931d51c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 61c9c81ad3be531aa53f58f4304de33003b3ffb2eda5a8e768b2fbd166eb6df4645cd5486850e5a45f7af5e73bb75651fbef35bf11e3fcc69bd23950b5bff3a4
|
7
|
+
data.tar.gz: 27bcb09fca397d45f488180488bef958f5b7d04c04414f9954761486a49538a6920d733f3e6dcc080f4bcac5e56597aa378414f5a61d67230f34bf5c55188cb0
|
data/.travis.yml
CHANGED
data/History.md
CHANGED
@@ -1,3 +1,8 @@
|
|
1
|
+
[2.0.0 / 2014-05-03](https://github.com/GoalSmashers/assets-include-ruby/compare/v2.0.0...v1.0.1)
|
2
|
+
==================
|
3
|
+
|
4
|
+
* Changes AssetsInclude::Base to accept a hash instead of a block in initializer.
|
5
|
+
|
1
6
|
[1.0.1 / 2014-04-27](https://github.com/GoalSmashers/assets-include-ruby/compare/v1.0.0...v1.0.1)
|
2
7
|
==================
|
3
8
|
|
data/lib/assets_include.rb
CHANGED
data/lib/assets_include/base.rb
CHANGED
@@ -6,13 +6,15 @@ module AssetsInclude
|
|
6
6
|
attr_accessor :bundled, :asset_hosts, :root, :config, :cache_boosters
|
7
7
|
attr_accessor :binary
|
8
8
|
|
9
|
-
def initialize(
|
9
|
+
def initialize(options = {})
|
10
10
|
@cache = Cache.new
|
11
11
|
@config = default_assets_location
|
12
12
|
@bundled = production?
|
13
13
|
@cache_boosters = true
|
14
14
|
|
15
|
-
|
15
|
+
options.each do |key, value|
|
16
|
+
public_send("#{key}=", value)
|
17
|
+
end
|
16
18
|
end
|
17
19
|
|
18
20
|
def group(locator, options = {})
|
@@ -29,10 +29,10 @@ describe AssetsInclude::Base do
|
|
29
29
|
.with([binary, "-c #{File.join(Dir.pwd, 'assets.yml')}", group].join(' '))
|
30
30
|
.and_return(flexmock(read: ''))
|
31
31
|
|
32
|
-
described_class.new
|
33
|
-
|
34
|
-
|
35
|
-
|
32
|
+
described_class.new(
|
33
|
+
binary: binary,
|
34
|
+
cache_boosters: false
|
35
|
+
).group(group)
|
36
36
|
end
|
37
37
|
|
38
38
|
it 'should set `cache_boosters` to true by default' do
|
@@ -175,17 +175,15 @@ describe AssetsInclude::Base do
|
|
175
175
|
private
|
176
176
|
|
177
177
|
def includer(options = {})
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
end
|
188
|
-
end
|
178
|
+
defaults = {
|
179
|
+
root: root,
|
180
|
+
config: config,
|
181
|
+
bundled: true,
|
182
|
+
cache_boosters: false,
|
183
|
+
binary: binary
|
184
|
+
}
|
185
|
+
|
186
|
+
@includer ||= described_class.new(defaults.merge(options))
|
189
187
|
end
|
190
188
|
|
191
189
|
def should_run_includer_with(opts = {})
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: assets_include
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jakub Pawlowicz
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-05-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: minitest
|