fix 0.8.0 → 0.9.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: 1dbcef751a7f141ec73878ddf24961d2c0de3252
4
- data.tar.gz: f5a1b9113e857511e2f81de21fcee062ccf2ce13
3
+ metadata.gz: 5ebfaaa58cb06ae5f855f99fb6d981b4325dcc06
4
+ data.tar.gz: 1b4c627461d40cf0ff5ea9af47c2d0fd62699fe5
5
5
  SHA512:
6
- metadata.gz: 7131c6f5781345f0eb35ebb45b787ea7e04892e237cafdd413c3659670eb8aab3f64bb5e2bcdb3f9a97ae80d93ec4ea5f87645ee4e0b442fe8a61785db5e3849
7
- data.tar.gz: f4174a6f9c687a4c726ad2d44d0dffc0c404dad88c3971254aeb6b7a5b74cd536efff75418766deac7d97c997112614e66bdf6ca9ffb08bfd03ab31be60487c5
6
+ metadata.gz: e1411cd608c85e9d6fc1ccaf0248f8ffd9e7a3acf00ba7e9eac97c5bb6f1d99b14fe6012c60bddf6ad19cb8746e7d1eac531f21fb4b0eb1ab6dc0dd19ceb9b69
7
+ data.tar.gz: 95819f48f0c4fd80570a737e412461da527878febb4f564436da6384c8c6dbfc3667277c9f45e63f67ab7df92d1fe2ec4634bdbd6734c72a8f10f4ff372a7a8d
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -1 +1 @@
1
- 0.8.0
1
+ 0.9.0
@@ -0,0 +1 @@
1
+ bdf94bb8790d1d0b5524f6ef0e7ac9a2f682cdd3248c52ef069acabbdc17ea685f050d737fa4fc121e9d7688641e2a8cd831b76537e58a6ebb5d169524f961e1
@@ -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 'spectus', '~> 2.3.1'
17
+ spec.add_dependency 'spectus', '~> 2.4.0'
18
18
 
19
19
  spec.add_development_dependency 'bundler', '~> 1.10'
20
20
  spec.add_development_dependency 'rake', '~> 10.4'
@@ -15,9 +15,7 @@ module Fix
15
15
  #
16
16
  # @return [Array] List of results.
17
17
  def it(&spec)
18
- i = It.new do
19
- Sandbox.new(@front_object, *@challenges).actual
20
- end
18
+ i = It.new(@front_object, *@challenges)
21
19
 
22
20
  result = begin
23
21
  i.instance_eval(&spec)
@@ -6,5 +6,13 @@ module Fix
6
6
  # @api private
7
7
  #
8
8
  class It < Spectus::ExpectationTarget
9
+ # Create a new expection target
10
+ #
11
+ # @param subject [BasicObject] The front object.
12
+ # @param challenges [Array] The list of challenges.
13
+ def initialize(subject, *challenges)
14
+ @subject = subject
15
+ @challenges = challenges
16
+ end
9
17
  end
10
18
  end
@@ -7,8 +7,6 @@ require_relative 'it'
7
7
  require_relative File.join 'helpers', "#{helper}_helper"
8
8
  end
9
9
 
10
- require_relative 'sandbox'
11
-
12
10
  module Fix
13
11
  # Wraps the target of challenge.
14
12
  #
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fix
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.9.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-07 00:00:00.000000000 Z
33
+ date: 2015-09-10 00:00:00.000000000 Z
34
34
  dependencies:
35
35
  - !ruby/object:Gem::Dependency
36
36
  name: spectus
@@ -38,14 +38,14 @@ dependencies:
38
38
  requirements:
39
39
  - - "~>"
40
40
  - !ruby/object:Gem::Version
41
- version: 2.3.1
41
+ version: 2.4.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: 2.3.1
48
+ version: 2.4.0
49
49
  - !ruby/object:Gem::Dependency
50
50
  name: bundler
51
51
  requirement: !ruby/object:Gem::Requirement
@@ -137,6 +137,7 @@ files:
137
137
  - bin/setup
138
138
  - certs/gem-fixrb-public_cert.pem
139
139
  - checksum/fix-0.7.0.gem.sha512
140
+ - checksum/fix-0.8.0.gem.sha512
140
141
  - fix.gemspec
141
142
  - lib/fix.rb
142
143
  - lib/fix/helpers/it_helper.rb
@@ -144,7 +145,6 @@ files:
144
145
  - lib/fix/it.rb
145
146
  - lib/fix/on.rb
146
147
  - lib/fix/report.rb
147
- - lib/fix/sandbox.rb
148
148
  - lib/fix/test.rb
149
149
  - pkg_checksum
150
150
  homepage: https://github.com/fixrb/fix
metadata.gz.sig CHANGED
@@ -1,5 +1,4 @@
1
- Q������G����x�W�f���֎xQ��滐z&�a�㧊���: ��@J�
2
- ��L D��z5E<�
3
- �p�p-Q��#�#?^<���2��D�^��z�{��.VeNR�S�]E��1P�2�0C�1$e+��
4
- �-8CY����� %~)�#:s��Z�����~�jtq/%�HAٞ�† ���^e��Q
5
- b�\i�g�/{�}�C=��SzTݒ��Ei{Y�+�yF�NlR�Аl�`�/ذF
1
+ ���� �}ħ���d�n���u&�c��.f,�����@<�����
2
+ N�y�]wV�1�����&�
3
+ o���
4
+ %E�Q����N��/�ɛ�
@@ -1,25 +0,0 @@
1
- module Fix
2
- # Execute the untested code from the passed challenges.
3
- #
4
- # @api private
5
- #
6
- class Sandbox
7
- # Initialize the sandbox class.
8
- #
9
- # @param object [BasicObject] The front object of the test.
10
- # @param challenges [Array] The list of challenges to apply.
11
- def initialize(object, *challenges)
12
- @object = object
13
- @challenges = challenges
14
- end
15
-
16
- # The actual value.
17
- #
18
- # @return [BasicObject] The actual value.
19
- def actual
20
- @challenges.inject(@object) do |subject, challenge|
21
- subject.public_send(challenge.symbol, *challenge.args)
22
- end
23
- end
24
- end
25
- end