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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 003b25531cde9e6c8e8b6fcd4f0e6ae9956ad1d7
4
- data.tar.gz: f245586235d2c992aed724c4f20cbdc300dce90f
3
+ metadata.gz: 20706e2075b81505658a78f84f2097446876230d
4
+ data.tar.gz: 96c4216e0d8100cb9ce7025838f86ee8ab4f1dcb
5
5
  SHA512:
6
- metadata.gz: b0fae4a66d9489e669fc0e1446219575b76a8ca17a1cf8f585f79651c9fbb22c7855310fee831ec7350a971f951f8d59fac23b1642918b641edcadb85fdd3df9
7
- data.tar.gz: c8092c92675e0750297c5d0d47d896bc95dfc631edfc83ae8d9ff529fe1d1223eb4b3af2e193c7024fd06762655cd51eb0e77a6616aabff8184d2209281d1b33
6
+ metadata.gz: 5a180f98657cccebf00748a150a86cac43200cf5a425e76573d1baa10f8a6408fc15f73e2daa40f1df0d9aef123cc29a4aa793f6bd342e66d45bdac2b614dfdb
7
+ data.tar.gz: b7bbbce673f95bfbc2d15591b9de576d988f811b75b4a33854c748bc95ff9a9ad14335ee74d427892de4a156a2b2efcee8150e2115e0afe9aac40f05617dd145
@@ -44,6 +44,6 @@ After do
44
44
  ".git",
45
45
  "hooks",
46
46
  hook_type))
47
- #FileUtils.rm_rf(HOOK_SPEC_PATH)
47
+ FileUtils.rm_rf(HOOK_SPEC_PATH)
48
48
  end
49
49
  end
@@ -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 "2" example and "0" failures
107
+ Then I should see the test is passing with "3" example and "0" failures
@@ -115,8 +115,10 @@ module CaptainHoog
115
115
  if File.directory?(file)
116
116
  read_plugins_from_dir(file, env)
117
117
  else
118
- code = File.read(file)
119
- @plugins << Plugin.new(code,env)
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
@@ -1,3 +1,3 @@
1
1
  module CaptainHoog
2
- VERSION = "1.1.0"
2
+ VERSION = "1.1.1"
3
3
  end
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.0
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-15 00:00:00.000000000 Z
11
+ date: 2015-06-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: colorize