fix-its 0.3.0 → 0.3.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b5641bd7b8ae145e2530cb99e7ccd0c76083f91f
4
- data.tar.gz: a30ed1d422adfcc2b40d1b7c3fc68f6394ad6a91
3
+ metadata.gz: 3261c523b5a42d7a85bd30ac67a2c77a3c41af6b
4
+ data.tar.gz: 5ffe77286afa277a16703066cb7a5f50841082a3
5
5
  SHA512:
6
- metadata.gz: 97a14888aa91924048899e6add5e98e919c3e1857f084a1df57a8c88d985649f854879525d0dfbdf0579f71ba9de3cfbfc08a4c9581cbf91dd8364200985e290
7
- data.tar.gz: 04d96dbfa4acc94b9aabc0d13b260515ab9708ec8fc0056b011ae917df1af11e3381f5fe6d0874e1f1fdd61daad0ad66e8df05cc9f1ada0aa720748b978ae97b
6
+ metadata.gz: 0bfbaca260a889d12ab5fd1ab822ef4ce7ea0caea0715a601bec6a018dcd00d3fd0ed57b7b4753186a0a9c0ed00cf139557a56c41cd9eb00ab4911cda83a9340
7
+ data.tar.gz: d60f5d07077844143ebe99fb0bffeba3c9a9afdcc949789b4710eb6dc5960b226a3a8bceeb615f7b236e505c6921af1608a4cda4b1030addab7092c67ee7494e
checksums.yaml.gz.sig CHANGED
Binary file
data/.rubocop.yml CHANGED
@@ -1,12 +1 @@
1
- TrivialAccessors:
2
- Enabled: true
3
- ExactNameMatch: true
4
-
5
- Style/MethodName:
6
- Enabled: false
7
-
8
- ParameterLists:
9
- Max: 11
10
-
11
- Metrics/MethodLength:
12
- Max: 16
1
+ inherit_from: .rubocop_todo.yml
data/.rubocop_todo.yml ADDED
@@ -0,0 +1,12 @@
1
+ # This configuration was generated by
2
+ # `rubocop --auto-gen-config`
3
+ # on 2015-10-10 00:40:05 +0200 using RuboCop version 0.34.2.
4
+ # The point is for the user to remove these configuration records
5
+ # one by one as the offenses are removed from the code base.
6
+ # Note that changes in the inspected code, or installation of new
7
+ # versions of RuboCop, may require this file to be generated again.
8
+
9
+ # Offense count: 1
10
+ # Configuration parameters: CountComments.
11
+ Metrics/MethodLength:
12
+ Max: 11
data/VERSION.semver CHANGED
@@ -1 +1 @@
1
- 0.3.0
1
+ 0.3.1
@@ -0,0 +1 @@
1
+ 01afb43acc2ae8eead072c87df876020e89d6c3fdafeca1ebe88653f085624ae9d3b2c7a11f3cd08f4496b80fcef60a520e2f496ec65eb40b853c0f081bc4fdc
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.12.0'
17
+ spec.add_dependency 'fix', '~> 0.13.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
@@ -17,14 +17,12 @@ module Fix
17
17
  # @example Its absolute value must equal 42
18
18
  # its(:abs) { MUST Equal: 42 }
19
19
  #
20
- # @param method_name [Symbol] The identifier of a method.
21
- # @param spec [Proc] A spec to compare against the computed value.
20
+ # @param method [Symbol] The identifier of a method.
21
+ # @param spec [Proc] A spec to compare against the computed value.
22
22
  #
23
23
  # @return [Array] List of results.
24
- def its(method_name, &spec)
25
- challenges = @challenges + [Defi.send(method_name)]
26
-
27
- i = It.new(@front_object, challenges, @helpers.dup)
24
+ def its(method, &spec)
25
+ i = It.new(front_object, (challenges + [Defi.send(method)]), helpers.dup)
28
26
 
29
27
  result = begin
30
28
  i.instance_eval(&spec)
@@ -32,8 +30,8 @@ module Fix
32
30
  f
33
31
  end
34
32
 
35
- if @configuration.fetch(:verbose, true)
36
- print result.to_char(@configuration.fetch(:color, false))
33
+ if configuration.fetch(:verbose, true)
34
+ print result.to_char(configuration.fetch(:color, false))
37
35
  end
38
36
 
39
37
  results << result
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.3.0
4
+ version: 0.3.1
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-13 00:00:00.000000000 Z
33
+ date: 2015-10-11 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.12.0
41
+ version: 0.13.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.12.0
48
+ version: 0.13.0
49
49
  - !ruby/object:Gem::Dependency
50
50
  name: bundler
51
51
  requirement: !ruby/object:Gem::Requirement
@@ -125,6 +125,7 @@ extra_rdoc_files: []
125
125
  files:
126
126
  - ".gitignore"
127
127
  - ".rubocop.yml"
128
+ - ".rubocop_todo.yml"
128
129
  - ".travis.yml"
129
130
  - ".yardopts"
130
131
  - CODE_OF_CONDUCT.md
@@ -139,6 +140,7 @@ files:
139
140
  - checksum/fix-its-0.1.0.gem.sha512
140
141
  - checksum/fix-its-0.1.1.gem.sha512
141
142
  - checksum/fix-its-0.2.0.gem.sha512
143
+ - checksum/fix-its-0.3.0.gem.sha512
142
144
  - fix-its.gemspec
143
145
  - lib/fix/its.rb
144
146
  - pkg_checksum
metadata.gz.sig CHANGED
Binary file