spectus 3.0.9 → 3.0.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (46) hide show
  1. checksums.yaml +4 -4
  2. data/lib/spectus/requirement_level/low.rb +1 -1
  3. metadata +23 -53
  4. data/.gitignore +0 -11
  5. data/.rubocop.yml +0 -1
  6. data/.rubocop_todo.yml +0 -56
  7. data/.travis.yml +0 -28
  8. data/.yardopts +0 -1
  9. data/CODE_OF_CONDUCT.md +0 -13
  10. data/Gemfile +0 -5
  11. data/Rakefile +0 -23
  12. data/VERSION.semver +0 -1
  13. data/bin/console +0 -8
  14. data/bin/setup +0 -6
  15. data/checksum/spectus-2.0.0.gem.sha512 +0 -1
  16. data/checksum/spectus-2.0.1.gem.sha512 +0 -1
  17. data/checksum/spectus-2.0.2.gem.sha512 +0 -1
  18. data/checksum/spectus-2.0.3.gem.sha512 +0 -1
  19. data/checksum/spectus-2.0.4.gem.sha512 +0 -1
  20. data/checksum/spectus-2.1.0.gem.sha512 +0 -1
  21. data/checksum/spectus-2.1.1.gem.sha512 +0 -1
  22. data/checksum/spectus-2.1.2.gem.sha512 +0 -1
  23. data/checksum/spectus-2.1.3.gem.sha512 +0 -1
  24. data/checksum/spectus-2.10.0.gem.sha512 +0 -1
  25. data/checksum/spectus-2.2.0.gem.sha512 +0 -1
  26. data/checksum/spectus-2.3.0.gem.sha512 +0 -1
  27. data/checksum/spectus-2.3.1.gem.sha512 +0 -1
  28. data/checksum/spectus-2.4.0.gem.sha512 +0 -1
  29. data/checksum/spectus-2.5.0.gem.sha512 +0 -1
  30. data/checksum/spectus-2.6.0.gem.sha512 +0 -1
  31. data/checksum/spectus-2.7.0.gem.sha512 +0 -1
  32. data/checksum/spectus-2.7.1.gem.sha512 +0 -1
  33. data/checksum/spectus-2.8.0.gem.sha512 +0 -1
  34. data/checksum/spectus-2.9.0.gem.sha512 +0 -1
  35. data/checksum/spectus-2.9.1.gem.sha512 +0 -1
  36. data/checksum/spectus-2.9.2.gem.sha512 +0 -1
  37. data/checksum/spectus-3.0.0.gem.sha512 +0 -1
  38. data/checksum/spectus-3.0.1.gem.sha512 +0 -1
  39. data/checksum/spectus-3.0.2.gem.sha512 +0 -1
  40. data/checksum/spectus-3.0.3.gem.sha512 +0 -1
  41. data/checksum/spectus-3.0.5.gem.sha512 +0 -1
  42. data/checksum/spectus-3.0.6.gem.sha512 +0 -1
  43. data/checksum/spectus-3.0.7.gem.sha512 +0 -1
  44. data/checksum/spectus-3.0.8.gem.sha512 +0 -1
  45. data/pkg_checksum +0 -12
  46. data/spectus.gemspec +0 -28
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 645bb313682da9f93c32ceb0b1372158dae9cb7b02a453fa438b8b0afd4f5a5d
4
- data.tar.gz: df28a0e854c5a7522375103394cef6ea9ed7c309bd455d7a34210aac2bc9408c
3
+ metadata.gz: 13481b61d71af90cd7460d98c76eb3e13914e2720f7364433a746571d78e63d6
4
+ data.tar.gz: 71843f9b4ad356df5a992494978a2275dcccafb207eebcc5067e21d04a1438c4
5
5
  SHA512:
6
- metadata.gz: efbc33f8c658ceb668bb8d3f3a5fdeb17f7d1de7bbad87334ddf15f4e6016d5b5c339d89462ae14aad27f050c25efde3d58419c83e7fdd199f5ef0b4a5f977cf
7
- data.tar.gz: ad2bab2ec218593b7b0eae6a2010373db3d01c22a971372f1dc7d90fe6d6f21bba10a1da4829e433aa016be2e1aeab2d624727b572758b5071db64626bd29863
6
+ metadata.gz: 538622c03f5c9e52cda46b1c76b7c7d80ffad22e18abb6bc56a52ad371bdacb4ed292b9b6a44c29894ac1ca2ea319e22c053a448baa32aedf28ec143fa8cba11
7
+ data.tar.gz: 638c15fc458db6ee8cc4381b16235df22ed8c6020f56b9d79f8330f28f32af34d9a50684b8b87e43ed83bac10c7c2822a8ef98cb03407ed2edae5d584312ebbd
@@ -16,7 +16,7 @@ module Spectus
16
16
  def result(isolation = false)
17
17
  state = sandbox(isolation)
18
18
 
19
- if state.valid? || state.exception.class.equal?(::NoMethodError)
19
+ if state.valid? || state.exception.is_a?(::NoMethodError)
20
20
  pass!(state)
21
21
  else
22
22
  fail!(state)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spectus
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.9
4
+ version: 3.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cyril Kato
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-10-08 00:00:00.000000000 Z
11
+ date: 2019-12-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aw
@@ -84,16 +84,30 @@ dependencies:
84
84
  name: rubocop
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - "~>"
87
+ - - ">="
88
88
  - !ruby/object:Gem::Version
89
- version: '0.75'
89
+ version: '0'
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - "~>"
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: rubocop-performance
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
95
109
  - !ruby/object:Gem::Version
96
- version: '0.75'
110
+ version: '0'
97
111
  - !ruby/object:Gem::Dependency
98
112
  name: simplecov
99
113
  requirement: !ruby/object:Gem::Requirement
@@ -123,55 +137,13 @@ dependencies:
123
137
  - !ruby/object:Gem::Version
124
138
  version: '0.9'
125
139
  description: Expectation library with RFC 2119's requirement levels.
126
- email:
127
- - contact@cyril.email
140
+ email: contact@cyril.email
128
141
  executables: []
129
142
  extensions: []
130
143
  extra_rdoc_files: []
131
144
  files:
132
- - ".gitignore"
133
- - ".rubocop.yml"
134
- - ".rubocop_todo.yml"
135
- - ".travis.yml"
136
- - ".yardopts"
137
- - CODE_OF_CONDUCT.md
138
- - Gemfile
139
145
  - LICENSE.md
140
146
  - README.md
141
- - Rakefile
142
- - VERSION.semver
143
- - bin/console
144
- - bin/setup
145
- - checksum/spectus-2.0.0.gem.sha512
146
- - checksum/spectus-2.0.1.gem.sha512
147
- - checksum/spectus-2.0.2.gem.sha512
148
- - checksum/spectus-2.0.3.gem.sha512
149
- - checksum/spectus-2.0.4.gem.sha512
150
- - checksum/spectus-2.1.0.gem.sha512
151
- - checksum/spectus-2.1.1.gem.sha512
152
- - checksum/spectus-2.1.2.gem.sha512
153
- - checksum/spectus-2.1.3.gem.sha512
154
- - checksum/spectus-2.10.0.gem.sha512
155
- - checksum/spectus-2.2.0.gem.sha512
156
- - checksum/spectus-2.3.0.gem.sha512
157
- - checksum/spectus-2.3.1.gem.sha512
158
- - checksum/spectus-2.4.0.gem.sha512
159
- - checksum/spectus-2.5.0.gem.sha512
160
- - checksum/spectus-2.6.0.gem.sha512
161
- - checksum/spectus-2.7.0.gem.sha512
162
- - checksum/spectus-2.7.1.gem.sha512
163
- - checksum/spectus-2.8.0.gem.sha512
164
- - checksum/spectus-2.9.0.gem.sha512
165
- - checksum/spectus-2.9.1.gem.sha512
166
- - checksum/spectus-2.9.2.gem.sha512
167
- - checksum/spectus-3.0.0.gem.sha512
168
- - checksum/spectus-3.0.1.gem.sha512
169
- - checksum/spectus-3.0.2.gem.sha512
170
- - checksum/spectus-3.0.3.gem.sha512
171
- - checksum/spectus-3.0.5.gem.sha512
172
- - checksum/spectus-3.0.6.gem.sha512
173
- - checksum/spectus-3.0.7.gem.sha512
174
- - checksum/spectus-3.0.8.gem.sha512
175
147
  - lib/spectus.rb
176
148
  - lib/spectus/expectation_target.rb
177
149
  - lib/spectus/matchers.rb
@@ -184,8 +156,6 @@ files:
184
156
  - lib/spectus/result/fail.rb
185
157
  - lib/spectus/result/pass.rb
186
158
  - lib/spectus/sandbox.rb
187
- - pkg_checksum
188
- - spectus.gemspec
189
159
  homepage: https://github.com/fixrb/spectus
190
160
  licenses:
191
161
  - MIT
@@ -205,8 +175,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
205
175
  - !ruby/object:Gem::Version
206
176
  version: '0'
207
177
  requirements: []
208
- rubygems_version: 3.0.3
178
+ rubygems_version: 3.0.6
209
179
  signing_key:
210
180
  specification_version: 4
211
- summary: Expectation library with RFC 2119 keywords.
181
+ summary: Expectation library with RFC 2119's requirement levels.
212
182
  test_files: []
data/.gitignore DELETED
@@ -1,11 +0,0 @@
1
- /.bundle/
2
- /.ruby-version
3
- /.yardoc
4
- /Gemfile.lock
5
- /_yardoc/
6
- /coverage/
7
- /doc/
8
- /pkg/
9
- /spec/reports/
10
- /tmp/
11
- .DS_Store
@@ -1 +0,0 @@
1
- inherit_from: .rubocop_todo.yml
@@ -1,56 +0,0 @@
1
- # This configuration was generated by
2
- # `rubocop --auto-gen-config`
3
- # on 2019-10-08 23:18:40 +0200 using RuboCop version 0.75.0.
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: 230
10
- # Cop supports --auto-correct.
11
- # Configuration parameters: AllowMultipleStyles, EnforcedHashRocketStyle, EnforcedColonStyle, EnforcedLastArgumentHashStyle.
12
- # SupportedHashRocketStyles: key, separator, table
13
- # SupportedColonStyles: key, separator, table
14
- # SupportedLastArgumentHashStyles: always_inspect, always_ignore, ignore_implicit, ignore_explicit
15
- Layout/AlignHash:
16
- Exclude:
17
- - 'lib/spectus/result/base.rb'
18
- - 'test/level/test_high_fail.rb'
19
- - 'test/level/test_high_pass.rb'
20
- - 'test/level/test_low_fail.rb'
21
- - 'test/level/test_low_pass.rb'
22
- - 'test/level/test_medium_fail.rb'
23
- - 'test/level/test_medium_pass.rb'
24
- - 'test/test_with_isolation.rb'
25
- - 'test/test_without_isolation.rb'
26
-
27
- # Offense count: 2
28
- # Configuration parameters: CountComments, ExcludedMethods.
29
- Metrics/MethodLength:
30
- Max: 12
31
-
32
- # Offense count: 1
33
- # Configuration parameters: CountKeywordArgs.
34
- Metrics/ParameterLists:
35
- Max: 10
36
-
37
- # Offense count: 10
38
- # Cop supports --auto-correct.
39
- # Configuration parameters: PreferredName.
40
- Naming/RescuedExceptionsVariableName:
41
- Exclude:
42
- - 'test/level/test_high_fail.rb'
43
- - 'test/level/test_low_fail.rb'
44
- - 'test/level/test_medium_fail.rb'
45
-
46
- # Offense count: 8
47
- Style/MixinUsage:
48
- Exclude:
49
- - 'test/level/test_high_fail.rb'
50
- - 'test/level/test_high_pass.rb'
51
- - 'test/level/test_low_fail.rb'
52
- - 'test/level/test_low_pass.rb'
53
- - 'test/level/test_medium_fail.rb'
54
- - 'test/level/test_medium_pass.rb'
55
- - 'test/test_with_isolation.rb'
56
- - 'test/test_without_isolation.rb'
@@ -1,28 +0,0 @@
1
- language: ruby
2
- sudo: false
3
- cache: bundler
4
- before_install:
5
- - gem install bundler
6
- script:
7
- - bundle exec rubocop
8
- - bundle exec rake test
9
- rvm:
10
- - 2.3.8
11
- - 2.4.5
12
- - 2.5.3
13
- - 2.6.3
14
- - ruby-head
15
- - jruby-head
16
- - rbx-3
17
- matrix:
18
- allow_failures:
19
- - rvm: ruby-head
20
- - rvm: jruby-head
21
- - rvm: rbx-3
22
- notifications:
23
- webhooks:
24
- urls:
25
- - https://webhooks.gitter.im/e/a44b19cc5cf6db25fa87
26
- on_success: change
27
- on_failure: always
28
- on_start: never
data/.yardopts DELETED
@@ -1 +0,0 @@
1
- - README.md
@@ -1,13 +0,0 @@
1
- # Contributor Code of Conduct
2
-
3
- As contributors and maintainers of this project, we pledge to respect all people who contribute through reporting issues, posting feature requests, updating documentation, submitting pull requests or patches, and other activities.
4
-
5
- We are committed to making participation in this project a harassment-free experience for everyone, regardless of level of experience, gender, gender identity and expression, sexual orientation, disability, personal appearance, body size, race, age, or religion.
6
-
7
- Examples of unacceptable behavior by participants include the use of sexual language or imagery, derogatory comments or personal attacks, trolling, public or private harassment, insults, or other unprofessional conduct.
8
-
9
- Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct. Project maintainers who do not follow the Code of Conduct may be removed from the project team.
10
-
11
- Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by opening an issue or contacting one or more of the project maintainers.
12
-
13
- This Code of Conduct is adapted from the [Contributor Covenant](http:contributor-covenant.org), version 1.0.0, available at [http://contributor-covenant.org/version/1/0/0/](http://contributor-covenant.org/version/1/0/0/)
data/Gemfile DELETED
@@ -1,5 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- source 'https://rubygems.org'
4
-
5
- gemspec
data/Rakefile DELETED
@@ -1,23 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'bundler/gem_tasks'
4
- require 'rake/testtask'
5
- require 'rubocop/rake_task'
6
-
7
- RuboCop::RakeTask.new
8
-
9
- Rake::TestTask.new do |t|
10
- t.verbose = true
11
- t.warning = true
12
- t.pattern = File.join('test', '**', 'test_*.rb')
13
- end
14
-
15
- namespace :test do
16
- task :coverage do
17
- ENV['COVERAGE'] = 'true'
18
- Rake::Task['test'].invoke
19
- end
20
- end
21
-
22
- task(:doc_stats) { ruby '-S yard stats' }
23
- task default: %i[test doc_stats rubocop]
@@ -1 +0,0 @@
1
- 3.0.9
@@ -1,8 +0,0 @@
1
- #!/usr/bin/env ruby
2
- # frozen_string_literal: true
3
-
4
- require 'bundler/setup'
5
- require 'spectus'
6
-
7
- require 'irb'
8
- IRB.start
data/bin/setup DELETED
@@ -1,6 +0,0 @@
1
- #!/bin/bash
2
-
3
- set -euo pipefail
4
- IFS=$'\n\t'
5
-
6
- bundle install
@@ -1 +0,0 @@
1
- e00ef19cbae209816410c1b0e4b032a59ba70ab2e43367c934ad723d3e23a9c50c457c0963fab7d46743d82ab21f9482dbd8ceb7cab23617e37be26823d846cd
@@ -1 +0,0 @@
1
- 9e53bf80d2c965ad554b7250434aa110eb02af57df8099c72c88bb904713fbcb6561161854085bdd21192193b813c7fe2385bf29908309ef5a033c6e217fda89
@@ -1 +0,0 @@
1
- 099ab4633acf7a95dd4c4ee103ca23bea5c61e3c4f6e2d999608f802b575b42e35f6caa5688a94e556797ce44f2f331d29f6091030c3ffbcd48d66e4c106309b
@@ -1 +0,0 @@
1
- 940e7cd57595b988c887d78dfa3e09ddbc77e2f387fe3432dea085a1377b0b2cdde327aa1955ddfd98a41a7a3f5c07b42f2872a6a6b08dc9f85b04923ef6536b
@@ -1 +0,0 @@
1
- 6e76d7fa5d2a6aa49db44430ffb45e7a87e25abd2aa75ea8d26438959956d722a053ef777e286821086d94f279b986f46004677efe38026676ce70ec6428a46c
@@ -1 +0,0 @@
1
- b0c21b8994071c60473dcb8744a6f5cd7666cfc9f6c682b39b27b45fd24ca6ff742b47c2c195a1b114bbb21bf843597a853e7ed48c4cc4d9992b8642f922b40a
@@ -1 +0,0 @@
1
- 01c0dc2a88f74f7696443426153f7d025ac796b29ef122c4330675c736e7c3021762185a6c34e34340f1a139cc59dae63e571a0d18c4cba068a6f2a9c357a431
@@ -1 +0,0 @@
1
- 630355ae4fb971f56f52b83d8cc112c2f8b3a38fedde269f527641c54581abaf230536532f1d3fb5b926dd0d4034dc886e8c5c1f0fcf59d31ed49b4ba2548fdd
@@ -1 +0,0 @@
1
- 2837aff76c22e3d8627b0c4139ba633c0032ba4b993f9cac9b0bc33897acd334d5ba9f78a5f71525dd287a4ab9eff545eff42a92e73c368630edd3690b15f47c
@@ -1 +0,0 @@
1
- b80e4f07089d0042497b5819020ee5f0f5c0170f65391d0f579c57f904e1481e71783a31371839b3cc6d968365ccfad390471765fdf89017092cf980626a5e70
@@ -1 +0,0 @@
1
- 2c4f497d16f5d0a4898abe0fb7ab620e76fe4e21d14f3ecfca03b1c43d388cb92e6a9a3b8c228bc922147440272dfbcfd2c2dbfc1e1466638246511143e3c6f1
@@ -1 +0,0 @@
1
- e9e35e1953104e2d428b0f217e418db3c1baecd9e011b2545f9fcba4ff7e3bba674c6b928b3d8db842a139cd7cc9806d77ebdc7f710ece4f2aecb343703e2451
@@ -1 +0,0 @@
1
- c73bf4fc985ec06dd7876d394d32c27028e7475d77262e1f0bd4a57e688af327e4658bdc926662a43895aaf8b9b4d56404cd0720ef90c9b69090f27505863f9d
@@ -1 +0,0 @@
1
- 3ce44d084f1cd8a6cf79947912c3ae12bf397d0af3442bdd77d4e0cc1e740752b4e68ec57f9b448ecf54cd3a3f84327e86a93885e17563a420d3977fefc5dc40
@@ -1 +0,0 @@
1
- 821f1988a534c9e5e4273db904b7c025e017e851bad9b31f455de73baab0f9e13863425ae101fb1d1f88043fd9cd72866c7a97ef9303254756e9f59815d8d00b
@@ -1 +0,0 @@
1
- 607b21ae08001de99938bf1bd144f94ffb5767630b2a5837c772af592e76bf376db3d0fd4116fc71f3038dba886c5c222411a03c4745e9cffe1678d631a408a5
@@ -1 +0,0 @@
1
- aaf1870fb4733bcef6834cd11a1f7c08b28e7fc2eb28b6cc7b6eaedb505a122396b23158b0891d246f1b983e96818c7b1fb143f2b56bb8e3f0d259c1a09a6f75
@@ -1 +0,0 @@
1
- 7d429237e89c48a3f04e6299578fb5663b977b4191bbe99c6d0db155a06b85bd8a1985e06b18794f36e9320f05743d145ae16bf8e34beef341e7a0c56491fc93
@@ -1 +0,0 @@
1
- 2f4cc7cc8d6b32effa58c91d04e2bd2baea946c55782af86b9ac51669af56368ae68bb9dfe12ea702efa88b6b67003944e59ad876899dc950f0f590c9f26bb8f
@@ -1 +0,0 @@
1
- 8be8b787e6553812a4962e801cb64268d81f45e74b4cfd7f5383b6a4335fe69df1de46c6fe4b4894c5133bacd413d4a038bd057ddf8fabe63552dac7a024036a
@@ -1 +0,0 @@
1
- 74fe82ac666429be2cb19b7c0e40936e972a739b536865927d40ae7909bbe4dbf41ac24d76a65f1d7e77da1bd813ea5c08305cc33ed7afb43f61b62bc81311fd
@@ -1 +0,0 @@
1
- 0e83a8381978176c2bc6fb82ad3b73d6dc3fc9bfa96ad0f7c09d97af253374545d6869ab6f6fd98f0c1bfa024d788ddb349adc36f0e3578727210d7a9f6fa56a
@@ -1 +0,0 @@
1
- eec56e5b79205d9e4e3f972df15555f372bbc02ac4206e20862722ccfba23dd7bb318375187399a5c65b5f1f7f18f32198518420ec63ec215bc0afac72708a36
@@ -1 +0,0 @@
1
- 64030a2e905aff8b458d014f9e261b236e6fe38a9b912bdd9e53d37a7b894def05a7645d4694067f3b52d620bf61d13affd77e56740a1d66590ab5937eaa9a60
@@ -1 +0,0 @@
1
- 1c1ea426d4a8e24bfe3e2a23d352d7088de747ad29391010bcb62758e6f066ecacbedf272d9c82312a87190cc731d7cc2b41d7f1550e1a6fed4c45c2eda376d6
@@ -1 +0,0 @@
1
- 95c489a4bf6c4091a27e1685bbeda29395492dd6b29a5adb8fa53f9200567a0eb15887c7b730899c65e8ec338b406c5a45498377002395cb3635a32b977eee57
@@ -1 +0,0 @@
1
- b1cf82dc5b578e2adb29623bb4782f17b636af603b784bcd90bda8fb3dd5e57e94424b9cb2fb6ab7029d31c7bda84cda0c11e527539651ffe302d6b44dcf8d83
@@ -1 +0,0 @@
1
- 940b1f35592e5730c4ad5520c79c13429bfae404c18cf84f3195fd928a2e182a884b9000ed37eca61be36af1f7c37bca1f096316f72be0df2495aa4df05a9162
@@ -1 +0,0 @@
1
- aacb5399f7e63d5c18bd5978b79b75a3dab09daffa5c826144e0e2a61dca94dbd172992676622a2c048023253868a4c658a1c742042e3df1089e1c5dff19b964
@@ -1 +0,0 @@
1
- a8c66f4d94650243ec088b9b7b0dd66814e4a88c7de6cadb1dd72e0703a92c9facb94dedbb138cd8e383081c8507ea622b9b3f8aced825e4080a64206afdcc70
@@ -1,12 +0,0 @@
1
- #!/usr/bin/env ruby
2
- # frozen_string_literal: true
3
-
4
- require 'digest/sha2'
5
-
6
- gemname = :spectus
7
- ARGV[0] = File.read('VERSION.semver').chomp if ARGV[0].nil?
8
- built_gem_path = "pkg/#{gemname}-#{ARGV[0]}.gem"
9
- checksum = Digest::SHA512.new.hexdigest(File.read(built_gem_path))
10
- checksum_path = "checksum/#{gemname}-#{ARGV[0]}.gem.sha512"
11
-
12
- File.open(checksum_path, 'w') { |f| f.write("#{checksum}\n") }
@@ -1,28 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- Gem::Specification.new do |spec|
4
- spec.name = 'spectus'
5
- spec.version = File.read('VERSION.semver').chomp
6
- spec.authors = ['Cyril Kato']
7
- spec.email = ['contact@cyril.email']
8
-
9
- spec.summary = 'Expectation library with RFC 2119 keywords.'
10
- spec.description = "Expectation library with RFC 2119's requirement levels."
11
- spec.homepage = 'https://github.com/fixrb/spectus'
12
- spec.license = 'MIT'
13
-
14
- spec.files =
15
- `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^test/}) }
16
- spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
17
- spec.require_paths = ['lib']
18
-
19
- spec.add_dependency 'aw', '~> 0.1.6'
20
- spec.add_dependency 'defi', '~> 1.1.5'
21
- spec.add_dependency 'matchi', '~> 1.0.4'
22
-
23
- spec.add_development_dependency 'bundler', '~> 2.0'
24
- spec.add_development_dependency 'rake', '~> 13.0'
25
- spec.add_development_dependency 'rubocop', '~> 0.75'
26
- spec.add_development_dependency 'simplecov', '~> 0.17'
27
- spec.add_development_dependency 'yard', '~> 0.9'
28
- end