versioncake 2.3.0 → 2.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/CHANGELOG.md +2 -2
- data/Gemfile.lock +1 -1
- data/gemfiles/rails3.2.gemfile.lock +1 -1
- data/gemfiles/rails4.0.gemfile.lock +1 -1
- data/gemfiles/rails4.1.gemfile.lock +1 -1
- data/lib/versioncake/strategies/custom_strategy.rb +5 -1
- data/lib/versioncake/strategies/extraction_strategy.rb +1 -1
- data/lib/versioncake/version.rb +1 -1
- data/test/unit/strategies/extraction_strategy_test.rb +14 -5
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NTVmM2QwNTQ5NDBkZWM0YjY0MmEwYzk0YmU1YzA1NmJhODBjZmY3Mg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NGFjODRjMTE5YmJhZjNlZjQxODM3Zjk3ZjUxNDJkMTExMzk5NjI5Nw==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ZDAyMTZmMTU1OWIxMDMyYTc2MWFhNWY5MDk4Y2FkNzNkMGU2OWJmNTg0ZjVh
|
10
|
+
YjlmNWIwNWQ5NDY3NDY5MmZhODA2YzAyMmY5ZjIxNTczNTNiMmJkYmY2OTUy
|
11
|
+
YmExNDVmNjgzNmI2YzViMzYzMzFlMTY1ODgyMDMwOTZhOWEzYzg=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MWY5YjMyMDI3ZGE4OGExMjVlNjIyOTEwNmNmZTRhZTEyNDY3MTM3ZDQzMTM0
|
14
|
+
MWFjYWY3N2YzOTczNDZiYzFhZTYwYzA5ODZhZWQ3OTUyMWY2ODJlZTBmMjM0
|
15
|
+
OTlkOGFlNTg4YzU3YjI0OTUxOGY3NWRkODFhMjAyZTJlMmViM2Q=
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
## Unreleased Changes
|
2
2
|
|
3
|
-
[Full Changelog](https://github.com/bwillis/versioncake/compare/v2.3...master)
|
3
|
+
[Full Changelog](https://github.com/bwillis/versioncake/compare/v2.3.1...master)
|
4
4
|
|
5
5
|
Bug Fixes:
|
6
6
|
|
@@ -14,7 +14,7 @@ Deprecations:
|
|
14
14
|
|
15
15
|
* None
|
16
16
|
|
17
|
-
## 2.3.
|
17
|
+
## 2.3.1 (Mar 6, 2014)
|
18
18
|
|
19
19
|
[Full Changelog](https://github.com/bwillis/versioncake/compare/v2.2...v2.3)
|
20
20
|
|
data/Gemfile.lock
CHANGED
@@ -43,7 +43,7 @@ module VersionCake
|
|
43
43
|
elsif strategy.method(:execute).arity != 1
|
44
44
|
raise Exception, "Custom extraction strategy requires an execute method with a single parameter"
|
45
45
|
else
|
46
|
-
strategy
|
46
|
+
VersionCake::CustomStrategy.new(strategy)
|
47
47
|
end
|
48
48
|
else
|
49
49
|
raise Exception, "Invalid extration strategy"
|
data/lib/versioncake/version.rb
CHANGED
@@ -38,13 +38,22 @@ class ExtractionStrategyTest < ActiveSupport::TestCase
|
|
38
38
|
assert_equal VersionCake::CustomStrategy, strategy.class
|
39
39
|
end
|
40
40
|
|
41
|
-
test "it
|
41
|
+
test "it wraps a custom object" do
|
42
42
|
class FakeStrategy
|
43
|
-
def execute(request);
|
43
|
+
def execute(request);end
|
44
44
|
end
|
45
|
-
|
46
|
-
|
47
|
-
|
45
|
+
strategy = VersionCake::ExtractionStrategy.lookup(FakeStrategy.new)
|
46
|
+
assert_equal VersionCake::CustomStrategy, strategy.class
|
47
|
+
end
|
48
|
+
|
49
|
+
test "it calls a custom objects execute method" do
|
50
|
+
class FakeStrategy
|
51
|
+
def execute(request)
|
52
|
+
9999
|
53
|
+
end
|
54
|
+
end
|
55
|
+
strategy = VersionCake::ExtractionStrategy.lookup(FakeStrategy.new)
|
56
|
+
assert_equal 9999, strategy.execute(nil)
|
48
57
|
end
|
49
58
|
|
50
59
|
test "it fails to create a custom strategy for a proc with no parameters" do
|