fix 0.6.1 → 0.7.0

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.
Files changed (95) hide show
  1. checksums.yaml +4 -4
  2. checksums.yaml.gz.sig +0 -0
  3. data.tar.gz.sig +0 -0
  4. data/.gitignore +1 -5
  5. data/.rubocop.yml +12 -0
  6. data/.travis.yml +12 -3
  7. data/.yardopts +1 -0
  8. data/CODE_OF_CONDUCT.md +13 -0
  9. data/Gemfile +1 -0
  10. data/LICENSE.md +17 -18
  11. data/README.md +70 -78
  12. data/Rakefile +5 -2
  13. data/VERSION.semver +1 -1
  14. data/bin/console +7 -0
  15. data/bin/setup +5 -0
  16. data/certs/gem-fixrb-public_cert.pem +21 -0
  17. data/fix.gemspec +17 -18
  18. data/lib/fix.rb +20 -98
  19. data/lib/fix/helpers/it_helper.rb +32 -0
  20. data/lib/fix/helpers/on_helper.rb +29 -0
  21. data/lib/fix/it.rb +6 -9
  22. data/lib/fix/on.rb +30 -13
  23. data/lib/fix/report.rb +61 -0
  24. data/lib/fix/sandbox.rb +25 -0
  25. data/lib/fix/test.rb +50 -224
  26. data/pkg_checksum +11 -0
  27. metadata +61 -152
  28. metadata.gz.sig +0 -0
  29. data/.coveralls.yml +0 -1
  30. data/bin/fix +0 -5
  31. data/fix.pem +0 -21
  32. data/lib/fix/db.rb +0 -23
  33. data/lib/fix/dsl.rb +0 -17
  34. data/lib/fix/expectation.rb +0 -80
  35. data/lib/fix/expectation_high.rb +0 -15
  36. data/lib/fix/expectation_low.rb +0 -19
  37. data/lib/fix/expectation_medium.rb +0 -21
  38. data/lib/fix/helper/it_helper.rb +0 -12
  39. data/lib/fix/helper/its_helper.rb +0 -20
  40. data/lib/fix/helper/let_accessor_helper.rb +0 -11
  41. data/lib/fix/helper/let_reader_helper.rb +0 -13
  42. data/lib/fix/helper/let_writer_helper.rb +0 -15
  43. data/lib/fix/helper/on_helper.rb +0 -20
  44. data/lib/fix/helper/requirement_helper.rb +0 -44
  45. data/lib/fix/its.rb +0 -13
  46. data/lib/fix/subject.rb +0 -44
  47. data/lib/fix/version.rb +0 -9
  48. data/spec/fix/bin/color_spec.rb +0 -17
  49. data/spec/fix/bin/exit_status_spec.rb +0 -19
  50. data/spec/fix/bin/help_spec.rb +0 -13
  51. data/spec/fix/bin/hide_progress.rb +0 -17
  52. data/spec/fix/bin/spec_helper.rb +0 -3
  53. data/spec/fix/bin/version_spec.rb +0 -9
  54. data/spec/fix/lib/may/error_spec.rb +0 -9
  55. data/spec/fix/lib/may/info_spec.rb +0 -9
  56. data/spec/fix/lib/may/spec_helper.rb +0 -1
  57. data/spec/fix/lib/may/success_spec.rb +0 -9
  58. data/spec/fix/lib/must/error_spec.rb +0 -9
  59. data/spec/fix/lib/must/failure_spec.rb +0 -9
  60. data/spec/fix/lib/must/spec_helper.rb +0 -1
  61. data/spec/fix/lib/must/success_spec.rb +0 -9
  62. data/spec/fix/lib/should/error_spec.rb +0 -9
  63. data/spec/fix/lib/should/info_spec.rb +0 -9
  64. data/spec/fix/lib/should/spec_helper.rb +0 -1
  65. data/spec/fix/lib/should/success_spec.rb +0 -9
  66. data/spec/fix/lib/spec_helper.rb +0 -1
  67. data/spec/fix/lib/success_spec.rb +0 -9
  68. data/spec/fix/spec_helper.rb +0 -1
  69. data/spec/spec_helper.rb +0 -4
  70. data/spec/support.rb +0 -3
  71. data/spec/support/coverage.rb +0 -9
  72. data/spec/support/env.rb +0 -1
  73. data/spec/support/examples/42/app.rb +0 -1
  74. data/spec/support/examples/42/may/error/spec.rb +0 -7
  75. data/spec/support/examples/42/may/error/test.rb +0 -7
  76. data/spec/support/examples/42/may/info/spec.rb +0 -7
  77. data/spec/support/examples/42/may/info/test.rb +0 -7
  78. data/spec/support/examples/42/may/success/spec.rb +0 -12
  79. data/spec/support/examples/42/may/success/test.rb +0 -7
  80. data/spec/support/examples/42/must/error/spec.rb +0 -11
  81. data/spec/support/examples/42/must/error/test.rb +0 -7
  82. data/spec/support/examples/42/must/failure/spec.rb +0 -7
  83. data/spec/support/examples/42/must/failure/test.rb +0 -7
  84. data/spec/support/examples/42/must/success/spec.rb +0 -7
  85. data/spec/support/examples/42/must/success/test.rb +0 -7
  86. data/spec/support/examples/42/should/error/spec.rb +0 -11
  87. data/spec/support/examples/42/should/error/test.rb +0 -7
  88. data/spec/support/examples/42/should/info/spec.rb +0 -7
  89. data/spec/support/examples/42/should/info/test.rb +0 -7
  90. data/spec/support/examples/42/should/success/spec.rb +0 -7
  91. data/spec/support/examples/42/should/success/test.rb +0 -7
  92. data/spec/support/examples/duck/app.rb +0 -16
  93. data/spec/support/examples/duck/success/spec.rb +0 -80
  94. data/spec/support/examples/duck/success/test.rb +0 -7
  95. data/spec/support/immutable.rb +0 -12
@@ -0,0 +1,11 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'digest/sha2'
4
+
5
+ gemname = :fix
6
+ ARGV[0] = File.read('VERSION.semver').chomp if ARGV[0].nil?
7
+ built_gem_path = "pkg/#{gemname}-#{ARGV[0]}.gem"
8
+ checksum = Digest::SHA512.new.hexdigest(File.read(built_gem_path))
9
+ checksum_path = "checksum/#{gemname}-#{ARGV[0]}.gem.sha512"
10
+
11
+ File.open(checksum_path, 'w') { |f| f.write("#{checksum}\n") }
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.6.1
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cyril Wack
@@ -10,27 +10,27 @@ bindir: bin
10
10
  cert_chain:
11
11
  - |
12
12
  -----BEGIN CERTIFICATE-----
13
- MIIDbDCCAlSgAwIBAgIBATANBgkqhkiG9w0BAQUFADA+MQ4wDAYDVQQDDAVjeXJp
14
- bDEXMBUGCgmSJomT8ixkARkWB3Nhc2hpdGUxEzARBgoJkiaJk/IsZAEZFgNjb20w
15
- HhcNMTQwOTI1MDIxOTAyWhcNMTU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pfM8A
28
+ P5eElSQS9iJCetBGGMyt354PfgZkg3URaC+JA6mdEisdtEdo64ElnMsLg9shCqye
29
+ JSR3BbejbyPVva0/MHKD+dR6RswlcM9KMiYOXQml7a/kH6huOHvVq9gj5xC2ih8W
30
+ dzJvWzQ1+dJU6WQv75E9ddSkaQrK3nhdgQVu+/wgvGSrsMvOGNz+LXaSDxQqZuwX
31
+ 0KNQFuIukfrdk8URwRnHoAnvx4U93iUw
32
32
  -----END CERTIFICATE-----
33
- date: 2014-10-19 00:00:00.000000000 Z
33
+ date: 2015-09-02 00:00:00.000000000 Z
34
34
  dependencies:
35
35
  - !ruby/object:Gem::Dependency
36
36
  name: spectus
@@ -38,42 +38,42 @@ dependencies:
38
38
  requirements:
39
39
  - - "~>"
40
40
  - !ruby/object:Gem::Version
41
- version: 1.1.1
41
+ version: 2.3.1
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: 1.1.1
48
+ version: 2.3.1
49
49
  - !ruby/object:Gem::Dependency
50
50
  name: bundler
51
51
  requirement: !ruby/object:Gem::Requirement
52
52
  requirements:
53
53
  - - "~>"
54
54
  - !ruby/object:Gem::Version
55
- version: '1.7'
55
+ version: '1.10'
56
56
  type: :development
57
57
  prerelease: false
58
58
  version_requirements: !ruby/object:Gem::Requirement
59
59
  requirements:
60
60
  - - "~>"
61
61
  - !ruby/object:Gem::Version
62
- version: '1.7'
62
+ version: '1.10'
63
63
  - !ruby/object:Gem::Dependency
64
64
  name: rake
65
65
  requirement: !ruby/object:Gem::Requirement
66
66
  requirements:
67
67
  - - "~>"
68
68
  - !ruby/object:Gem::Version
69
- version: '10.0'
69
+ version: '10.4'
70
70
  type: :development
71
71
  prerelease: false
72
72
  version_requirements: !ruby/object:Gem::Requirement
73
73
  requirements:
74
74
  - - "~>"
75
75
  - !ruby/object:Gem::Version
76
- version: '10.0'
76
+ version: '10.4'
77
77
  - !ruby/object:Gem::Dependency
78
78
  name: yard
79
79
  requirement: !ruby/object:Gem::Requirement
@@ -89,107 +89,64 @@ dependencies:
89
89
  - !ruby/object:Gem::Version
90
90
  version: '0.8'
91
91
  - !ruby/object:Gem::Dependency
92
- name: coveralls
92
+ name: simplecov
93
93
  requirement: !ruby/object:Gem::Requirement
94
94
  requirements:
95
95
  - - "~>"
96
96
  - !ruby/object:Gem::Version
97
- version: '0.7'
97
+ version: '0.10'
98
98
  type: :development
99
99
  prerelease: false
100
100
  version_requirements: !ruby/object:Gem::Requirement
101
101
  requirements:
102
102
  - - "~>"
103
103
  - !ruby/object:Gem::Version
104
- version: '0.7'
104
+ version: '0.10'
105
+ - !ruby/object:Gem::Dependency
106
+ name: rubocop
107
+ requirement: !ruby/object:Gem::Requirement
108
+ requirements:
109
+ - - "~>"
110
+ - !ruby/object:Gem::Version
111
+ version: '0.33'
112
+ type: :development
113
+ prerelease: false
114
+ version_requirements: !ruby/object:Gem::Requirement
115
+ requirements:
116
+ - - "~>"
117
+ - !ruby/object:Gem::Version
118
+ version: '0.33'
105
119
  description: Specing framework for Ruby.
106
120
  email:
107
- - cyril@sashite.com
108
- executables:
109
- - fix
121
+ - contact@cyril.email
122
+ executables: []
110
123
  extensions: []
111
124
  extra_rdoc_files: []
112
125
  files:
113
- - ".coveralls.yml"
114
126
  - ".gitignore"
127
+ - ".rubocop.yml"
115
128
  - ".travis.yml"
129
+ - ".yardopts"
130
+ - CODE_OF_CONDUCT.md
116
131
  - Gemfile
117
132
  - LICENSE.md
118
133
  - README.md
119
134
  - Rakefile
120
135
  - VERSION.semver
121
- - bin/fix
136
+ - bin/console
137
+ - bin/setup
138
+ - certs/gem-fixrb-public_cert.pem
122
139
  - fix.gemspec
123
- - fix.pem
124
140
  - lib/fix.rb
125
- - lib/fix/db.rb
126
- - lib/fix/dsl.rb
127
- - lib/fix/expectation.rb
128
- - lib/fix/expectation_high.rb
129
- - lib/fix/expectation_low.rb
130
- - lib/fix/expectation_medium.rb
131
- - lib/fix/helper/it_helper.rb
132
- - lib/fix/helper/its_helper.rb
133
- - lib/fix/helper/let_accessor_helper.rb
134
- - lib/fix/helper/let_reader_helper.rb
135
- - lib/fix/helper/let_writer_helper.rb
136
- - lib/fix/helper/on_helper.rb
137
- - lib/fix/helper/requirement_helper.rb
141
+ - lib/fix/helpers/it_helper.rb
142
+ - lib/fix/helpers/on_helper.rb
138
143
  - lib/fix/it.rb
139
- - lib/fix/its.rb
140
144
  - lib/fix/on.rb
141
- - lib/fix/subject.rb
145
+ - lib/fix/report.rb
146
+ - lib/fix/sandbox.rb
142
147
  - lib/fix/test.rb
143
- - lib/fix/version.rb
144
- - spec/fix/bin/color_spec.rb
145
- - spec/fix/bin/exit_status_spec.rb
146
- - spec/fix/bin/help_spec.rb
147
- - spec/fix/bin/hide_progress.rb
148
- - spec/fix/bin/spec_helper.rb
149
- - spec/fix/bin/version_spec.rb
150
- - spec/fix/lib/may/error_spec.rb
151
- - spec/fix/lib/may/info_spec.rb
152
- - spec/fix/lib/may/spec_helper.rb
153
- - spec/fix/lib/may/success_spec.rb
154
- - spec/fix/lib/must/error_spec.rb
155
- - spec/fix/lib/must/failure_spec.rb
156
- - spec/fix/lib/must/spec_helper.rb
157
- - spec/fix/lib/must/success_spec.rb
158
- - spec/fix/lib/should/error_spec.rb
159
- - spec/fix/lib/should/info_spec.rb
160
- - spec/fix/lib/should/spec_helper.rb
161
- - spec/fix/lib/should/success_spec.rb
162
- - spec/fix/lib/spec_helper.rb
163
- - spec/fix/lib/success_spec.rb
164
- - spec/fix/spec_helper.rb
165
- - spec/spec_helper.rb
166
- - spec/support.rb
167
- - spec/support/coverage.rb
168
- - spec/support/env.rb
169
- - spec/support/examples/42/app.rb
170
- - spec/support/examples/42/may/error/spec.rb
171
- - spec/support/examples/42/may/error/test.rb
172
- - spec/support/examples/42/may/info/spec.rb
173
- - spec/support/examples/42/may/info/test.rb
174
- - spec/support/examples/42/may/success/spec.rb
175
- - spec/support/examples/42/may/success/test.rb
176
- - spec/support/examples/42/must/error/spec.rb
177
- - spec/support/examples/42/must/error/test.rb
178
- - spec/support/examples/42/must/failure/spec.rb
179
- - spec/support/examples/42/must/failure/test.rb
180
- - spec/support/examples/42/must/success/spec.rb
181
- - spec/support/examples/42/must/success/test.rb
182
- - spec/support/examples/42/should/error/spec.rb
183
- - spec/support/examples/42/should/error/test.rb
184
- - spec/support/examples/42/should/info/spec.rb
185
- - spec/support/examples/42/should/info/test.rb
186
- - spec/support/examples/42/should/success/spec.rb
187
- - spec/support/examples/42/should/success/test.rb
188
- - spec/support/examples/duck/app.rb
189
- - spec/support/examples/duck/success/spec.rb
190
- - spec/support/examples/duck/success/test.rb
191
- - spec/support/immutable.rb
192
- homepage: http://fixrb.org/
148
+ - pkg_checksum
149
+ homepage: https://github.com/fixrb/fix
193
150
  licenses:
194
151
  - MIT
195
152
  metadata: {}
@@ -201,7 +158,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
201
158
  requirements:
202
159
  - - ">="
203
160
  - !ruby/object:Gem::Version
204
- version: 2.0.0
161
+ version: '0'
205
162
  required_rubygems_version: !ruby/object:Gem::Requirement
206
163
  requirements:
207
164
  - - ">="
@@ -209,57 +166,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
209
166
  version: '0'
210
167
  requirements: []
211
168
  rubyforge_project:
212
- rubygems_version: 2.2.2
169
+ rubygems_version: 2.4.5.1
213
170
  signing_key:
214
171
  specification_version: 4
215
172
  summary: Specing framework.
216
- test_files:
217
- - spec/fix/bin/color_spec.rb
218
- - spec/fix/bin/exit_status_spec.rb
219
- - spec/fix/bin/help_spec.rb
220
- - spec/fix/bin/hide_progress.rb
221
- - spec/fix/bin/spec_helper.rb
222
- - spec/fix/bin/version_spec.rb
223
- - spec/fix/lib/may/error_spec.rb
224
- - spec/fix/lib/may/info_spec.rb
225
- - spec/fix/lib/may/spec_helper.rb
226
- - spec/fix/lib/may/success_spec.rb
227
- - spec/fix/lib/must/error_spec.rb
228
- - spec/fix/lib/must/failure_spec.rb
229
- - spec/fix/lib/must/spec_helper.rb
230
- - spec/fix/lib/must/success_spec.rb
231
- - spec/fix/lib/should/error_spec.rb
232
- - spec/fix/lib/should/info_spec.rb
233
- - spec/fix/lib/should/spec_helper.rb
234
- - spec/fix/lib/should/success_spec.rb
235
- - spec/fix/lib/spec_helper.rb
236
- - spec/fix/lib/success_spec.rb
237
- - spec/fix/spec_helper.rb
238
- - spec/spec_helper.rb
239
- - spec/support.rb
240
- - spec/support/coverage.rb
241
- - spec/support/env.rb
242
- - spec/support/examples/42/app.rb
243
- - spec/support/examples/42/may/error/spec.rb
244
- - spec/support/examples/42/may/error/test.rb
245
- - spec/support/examples/42/may/info/spec.rb
246
- - spec/support/examples/42/may/info/test.rb
247
- - spec/support/examples/42/may/success/spec.rb
248
- - spec/support/examples/42/may/success/test.rb
249
- - spec/support/examples/42/must/error/spec.rb
250
- - spec/support/examples/42/must/error/test.rb
251
- - spec/support/examples/42/must/failure/spec.rb
252
- - spec/support/examples/42/must/failure/test.rb
253
- - spec/support/examples/42/must/success/spec.rb
254
- - spec/support/examples/42/must/success/test.rb
255
- - spec/support/examples/42/should/error/spec.rb
256
- - spec/support/examples/42/should/error/test.rb
257
- - spec/support/examples/42/should/info/spec.rb
258
- - spec/support/examples/42/should/info/test.rb
259
- - spec/support/examples/42/should/success/spec.rb
260
- - spec/support/examples/42/should/success/test.rb
261
- - spec/support/examples/duck/app.rb
262
- - spec/support/examples/duck/success/spec.rb
263
- - spec/support/examples/duck/success/test.rb
264
- - spec/support/immutable.rb
173
+ test_files: []
265
174
  has_rdoc:
metadata.gz.sig CHANGED
Binary file
@@ -1 +0,0 @@
1
- service_name: travis-ci
data/bin/fix DELETED
@@ -1,5 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- require 'fix'
4
-
5
- Fix.run(*ARGV)
data/fix.pem DELETED
@@ -1,21 +0,0 @@
1
- -----BEGIN CERTIFICATE-----
2
- MIIDbDC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Fb3wXcF5zfaP6rJTy
18
- J6qnMlPGBz1g5YuN/DWkSIVQKBeATp5QKQWFCp6J7//0OQ9a0Gcl4ndaygvQKmF9
19
- sQCgS9KCAyZ+aWNO1bUJcE3Bx1XXkMO3JEyVR1CoEcexg5Ci03/lAm7lL84DmlKR
20
- 3I7UWtomapPFbzC0J/5jzQ==
21
- -----END CERTIFICATE-----
@@ -1,23 +0,0 @@
1
- require 'singleton'
2
-
3
- module Fix
4
- unless defined? DB
5
- random = Random.new(
6
- if defined? SEED
7
- SEED
8
- else
9
- Random.new_seed
10
- end
11
- )
12
-
13
- db = Class.new Hash do
14
- include Singleton
15
-
16
- define_method :random do
17
- random
18
- end
19
- end
20
-
21
- const_set :DB, db
22
- end
23
- end
@@ -1,17 +0,0 @@
1
- require_relative File.join 'helper', 'its_helper'
2
- require_relative File.join 'helper', 'on_helper'
3
- require_relative 'test'
4
-
5
- module Fix
6
- module DSL
7
- def subject object
8
- include Helper::ItsHelper
9
- include Helper::LetWriterHelper
10
- include Helper::OnHelper
11
-
12
- @object = object
13
- end
14
-
15
- at_exit { Test.new if $!.nil? && DB.instance.any? }
16
- end unless defined? DSL
17
- end
@@ -1,80 +0,0 @@
1
- require 'set'
2
- require 'spectus'
3
- require_relative 'db'
4
- require_relative 'subject'
5
-
6
- module Fix
7
- class Expectation
8
- include Spectus::DSL
9
-
10
- attr_reader :priority
11
-
12
- def initialize object, positive, definition, *args
13
- @positive = positive
14
- @definition = definition
15
- @args = args
16
- @priority = DB.instance.random.rand
17
-
18
- DB.instance.update(object => SortedSet[]) unless DB.instance.key? object
19
- DB.instance.fetch(object).add self
20
- end
21
-
22
- def <=> other
23
- self.priority <=> other.priority
24
- end
25
-
26
- def evaluate front_object
27
- Thread.new {
28
- subject = Subject.new front_object, *@args
29
- got = nil
30
-
31
- report = begin
32
- expect { got = subject.actual }.__send__ target, @definition
33
- rescue => e
34
- e
35
- end
36
-
37
- data = presenter report, got, subject
38
-
39
- Hash[ data.to_a + meta(subject).to_a ].merge object: front_object
40
- }.value
41
- end
42
-
43
- private
44
-
45
- def exception result
46
- result unless [ true, false ].include? result
47
- end
48
-
49
- def negated?
50
- !@positive
51
- end
52
-
53
- def presenter result, got, subject
54
- {
55
- pass: pass(result, subject),
56
- negated: negated?,
57
- definition: @definition,
58
- exception: exception(result),
59
- got: got
60
- }
61
- end
62
-
63
- def meta subject
64
- {
65
- level: level,
66
- params: subject.params,
67
- challenge: subject.challenge,
68
- last_arg: subject.last_arg
69
- }
70
- end
71
-
72
- def target
73
- if negated?
74
- :not_to
75
- else
76
- :to
77
- end
78
- end
79
- end
80
- end