captain_hoog 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/features/support/env.rb +1 -1
- data/features/testing.feature +2 -2
- data/lib/captain_hoog/pre_git.rb +4 -2
- data/lib/captain_hoog/version.rb +1 -1
- 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: 20706e2075b81505658a78f84f2097446876230d
|
4
|
+
data.tar.gz: 96c4216e0d8100cb9ce7025838f86ee8ab4f1dcb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5a180f98657cccebf00748a150a86cac43200cf5a425e76573d1baa10f8a6408fc15f73e2daa40f1df0d9aef123cc29a4aa793f6bd342e66d45bdac2b614dfdb
|
7
|
+
data.tar.gz: b7bbbce673f95bfbc2d15591b9de576d988f811b75b4a33854c748bc95ff9a9ad14335ee74d427892de4a156a2b2efcee8150e2115e0afe9aac40f05617dd145
|
data/features/support/env.rb
CHANGED
data/features/testing.feature
CHANGED
@@ -99,9 +99,9 @@ Feature: Testing a hook plugin
|
|
99
99
|
end
|
100
100
|
|
101
101
|
def test_result
|
102
|
-
assert_equal plugin.result[:test], true
|
102
|
+
assert_equal @plugin.result[:test], true
|
103
103
|
end
|
104
104
|
end
|
105
105
|
"""
|
106
106
|
When I run the test "divide_test"
|
107
|
-
Then I should see the test is passing with "
|
107
|
+
Then I should see the test is passing with "3" example and "0" failures
|
data/lib/captain_hoog/pre_git.rb
CHANGED
@@ -115,8 +115,10 @@ module CaptainHoog
|
|
115
115
|
if File.directory?(file)
|
116
116
|
read_plugins_from_dir(file, env)
|
117
117
|
else
|
118
|
-
|
119
|
-
|
118
|
+
if File.extname(file).eql?(".rb")
|
119
|
+
code = File.read(file)
|
120
|
+
@plugins << Plugin.new(code,env)
|
121
|
+
end
|
120
122
|
end
|
121
123
|
end
|
122
124
|
end
|
data/lib/captain_hoog/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: captain_hoog
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel Schmidt
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-06-
|
11
|
+
date: 2015-06-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: colorize
|