fix-its 0.2.0 → 0.3.0

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: 5fa2dbf799b816823cbbed0c6b70e679049564ba
4
- data.tar.gz: 191227ef1f55ec3903f5f302b85289fd67ba0108
3
+ metadata.gz: b5641bd7b8ae145e2530cb99e7ccd0c76083f91f
4
+ data.tar.gz: a30ed1d422adfcc2b40d1b7c3fc68f6394ad6a91
5
5
  SHA512:
6
- metadata.gz: 24cf370dbef39562e938db1356622bc342c6e31ddfa8d0e3c0cd8c444373cd49582031d2b3e85e593920f2f8213a9bb838a5b210a9480efc6958ee114a6f05f2
7
- data.tar.gz: b3fbc6d0fe2eaf17394359d3ab5b41a2895949f1c1acb35708be0e2c1528110040a47b091a11df53f6c22a81c9ed35eb89e35c3595a2bae4d2bb802f90d3b4e1
6
+ metadata.gz: 97a14888aa91924048899e6add5e98e919c3e1857f084a1df57a8c88d985649f854879525d0dfbdf0579f71ba9de3cfbfc08a4c9581cbf91dd8364200985e290
7
+ data.tar.gz: 04d96dbfa4acc94b9aabc0d13b260515ab9708ec8fc0056b011ae917df1af11e3381f5fe6d0874e1f1fdd61daad0ad66e8df05cc9f1ada0aa720748b978ae97b
checksums.yaml.gz.sig CHANGED
Binary file
data/VERSION.semver CHANGED
@@ -1 +1 @@
1
- 0.2.0
1
+ 0.3.0
data/bin/console CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
3
  require 'bundler/setup'
4
- require 'fix-its'
4
+ require 'fix/its'
5
5
 
6
6
  require 'irb'
7
7
  IRB.start
@@ -0,0 +1 @@
1
+ 7d392a30709ddcea51f4fd42c494570f1c289de137b029eaf031caeaa0143c33e41b88b0c4569856641f487b2827c66e99296fe9850c6cc0fba1432f5e80d020
data/fix-its.gemspec CHANGED
@@ -14,7 +14,7 @@ Gem::Specification.new do |spec|
14
14
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
15
15
  spec.require_paths = ['lib']
16
16
 
17
- spec.add_dependency 'fix', '~> 0.9.1'
17
+ spec.add_dependency 'fix', '~> 0.12.0'
18
18
 
19
19
  spec.add_development_dependency 'bundler', '~> 1.10'
20
20
  spec.add_development_dependency 'rake', '~> 10.4'
data/lib/fix/its.rb CHANGED
@@ -5,11 +5,11 @@ require 'fix'
5
5
  # @api public
6
6
  #
7
7
  module Fix
8
- # Its's helper.
8
+ # Open the on class.
9
9
  #
10
10
  # @api private
11
11
  #
12
- module Its
12
+ class On
13
13
  # Add its method to the DSL.
14
14
  #
15
15
  # @api public
@@ -22,7 +22,9 @@ module Fix
22
22
  #
23
23
  # @return [Array] List of results.
24
24
  def its(method_name, &spec)
25
- i = It.new(@front_object, *@challenges, Defi.send(method_name))
25
+ challenges = @challenges + [Defi.send(method_name)]
26
+
27
+ i = It.new(@front_object, challenges, @helpers.dup)
26
28
 
27
29
  result = begin
28
30
  i.instance_eval(&spec)
@@ -30,16 +32,11 @@ module Fix
30
32
  f
31
33
  end
32
34
 
33
- print result.to_char if @configuration.fetch(:verbose, true)
35
+ if @configuration.fetch(:verbose, true)
36
+ print result.to_char(@configuration.fetch(:color, false))
37
+ end
38
+
34
39
  results << result
35
40
  end
36
41
  end
37
-
38
- # Include the content of the Its module in to On class.
39
- #
40
- # @api private
41
- #
42
- class On
43
- include Its
44
- end
45
42
  end
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fix-its
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cyril Wack
@@ -30,7 +30,7 @@ cert_chain:
30
30
  dzJvWzQ1+dJU6WQv75E9ddSkaQrK3nhdgQVu+/wgvGSrsMvOGNz+LXaSDxQqZuwX
31
31
  0KNQFuIukfrdk8URwRnHoAnvx4U93iUw
32
32
  -----END CERTIFICATE-----
33
- date: 2015-09-11 00:00:00.000000000 Z
33
+ date: 2015-09-13 00:00:00.000000000 Z
34
34
  dependencies:
35
35
  - !ruby/object:Gem::Dependency
36
36
  name: fix
@@ -38,14 +38,14 @@ dependencies:
38
38
  requirements:
39
39
  - - "~>"
40
40
  - !ruby/object:Gem::Version
41
- version: 0.9.1
41
+ version: 0.12.0
42
42
  type: :runtime
43
43
  prerelease: false
44
44
  version_requirements: !ruby/object:Gem::Requirement
45
45
  requirements:
46
46
  - - "~>"
47
47
  - !ruby/object:Gem::Version
48
- version: 0.9.1
48
+ version: 0.12.0
49
49
  - !ruby/object:Gem::Dependency
50
50
  name: bundler
51
51
  requirement: !ruby/object:Gem::Requirement
@@ -138,6 +138,7 @@ files:
138
138
  - certs/gem-fixrb-public_cert.pem
139
139
  - checksum/fix-its-0.1.0.gem.sha512
140
140
  - checksum/fix-its-0.1.1.gem.sha512
141
+ - checksum/fix-its-0.2.0.gem.sha512
141
142
  - fix-its.gemspec
142
143
  - lib/fix/its.rb
143
144
  - pkg_checksum
metadata.gz.sig CHANGED
Binary file