hypothesis-specs 0.0.10 → 0.0.11

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. checksums.yaml +5 -5
  2. data/CHANGELOG.md +5 -0
  3. data/Cargo.toml +1 -1
  4. data/Rakefile +5 -150
  5. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 2e49a69e84d999619c8b73873bc8dc92f4e9e534
4
- data.tar.gz: d51bc24f3c230ec37a4a19ddcbd43ca5532646ee
2
+ SHA256:
3
+ metadata.gz: b87ca2de65a32341759fdec33ec3f30db049436b85b1ded2fa3327d025c1a81e
4
+ data.tar.gz: c9e93245233220e223a622c79a65b52d57dd09bebe2eef98da754e441b9d4181
5
5
  SHA512:
6
- metadata.gz: 1fc1e55701ebf1b24184f243ee232eb4528d85d6306fbe83e95bfd37a0f6f1328077181496620214f3674a2e3f8063bd628178539cbf3eca5af28a7dea86e1a1
7
- data.tar.gz: 87772f4660cdef5a8a93df5eb81d2322896c58536d3aff5f2ea9a93ec973b83c0ee99c26b4e08467a91af7948dc46ec73a556cbdc3af3a725f075bcdd2b1e148
6
+ metadata.gz: 2c10a45c3b897802f663b78379b8d6fd84243635b5cd794882ce8200592979a22afa5ede50457bd7195a10d72f5de19320232110b47aff41c3ac83858412aebb
7
+ data.tar.gz: cf3238c4a4e58e0019156797276648eae403b1cd71aac692360d4476595c271c317dca6c0b7b7f8d45c18d854dfee3979886847333e657813deb5419d9553961
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ # Hypothesis for Ruby 0.0.11 (2018-06-22)
2
+
3
+ This release has no user-visible changes other than updating the gemspec's
4
+ homepage attribute.
5
+
1
6
  ## Hypothesis for Ruby 0.0.10 (2018-04-26)
2
7
 
3
8
  This release is another update to shrinking:
data/Cargo.toml CHANGED
@@ -7,5 +7,5 @@ authors = ["David R. MacIver <david@drmaciver.com>"]
7
7
  crate-type = ["cdylib"]
8
8
 
9
9
  [dependencies]
10
- helix = '0.7.2'
10
+ helix = '0.7.5'
11
11
  rand = '0.3'
data/Rakefile CHANGED
@@ -24,18 +24,6 @@ begin
24
24
  rescue LoadError
25
25
  end
26
26
 
27
- # Monkeypatch build to fail on error.
28
- # See https://github.com/tildeio/helix/issues/133
29
- module HelixRuntime
30
- class Project
31
- alias original_build cargo_build
32
-
33
- def cargo_build
34
- raise 'Build failed' unless original_build
35
- end
36
- end
37
- end
38
-
39
27
  HelixRuntime::BuildTask.new
40
28
 
41
29
  def rubocop(fix:)
@@ -99,145 +87,12 @@ def run_for_output(*args)
99
87
  out.strip
100
88
  end
101
89
 
102
- task :gem do
103
- uncommitted = `git ls-files lib/ --others --exclude-standard`.split
104
- uncommitted_ruby = uncommitted.grep(/\.rb$/)
105
- uncommitted_ruby.sort!
106
- unless uncommitted_ruby.empty?
107
- abort 'Cannot build gem with uncomitted Ruby '\
108
- "files #{uncommitted_ruby.join(', ')}"
109
- end
110
-
111
- spec = Gem::Specification.load(GEMSPEC)
112
-
113
- unless system 'git', 'diff', '--exit-code', *(spec.files - ['Rakefile'])
114
- abort 'Cannot build gem from uncommited files'
115
- end
116
-
117
- previous_version = spec.version.to_s
118
-
119
- if run_for_output('git', 'tag', '-l', previous_version).empty?
120
- sh 'git', 'fetch', '--tags'
121
- end
122
-
123
- point_of_divergence = run_for_output(
124
- 'git', 'merge-base', 'HEAD', previous_version
125
- )
126
-
127
- has_changes = !system("git diff --exit-code #{point_of_divergence} "\
128
- '-- src/ lib/')
129
- if File.exist?(RELEASE_FILE)
130
- release_contents = IO.read(RELEASE_FILE).strip
131
- release_type, release_contents = release_contents.split("\n", 2)
132
-
133
- match = /RELEASE_TYPE: +(major|minor|patch)/.match(release_type)
134
- if match
135
- release_type = match[1]
136
- release_contents = release_contents.strip
137
- else
138
- abort "Invalid release type line #{release_type.inspect}"
139
- end
140
-
141
- components = spec.version.segments.to_a
142
- if release_type == 'major'
143
- components[0] += 1
144
- elsif release_type == 'minor'
145
- components[1] += 1
146
- else
147
- if release_type != 'patch'
148
- raise "Unexpected release type #{release_type.inspect}"
149
- end
150
- components[2] += 1
151
- end
152
-
153
- new_version = components.join('.')
154
- new_date = Date.today.strftime
155
-
156
- lines = File.readlines(GEMSPEC).map do |l|
157
- l.sub(/(s.version += +)'.+$/, "\\1'#{new_version}'").sub(
158
- /(s.date += +)'.+$/, "\\1'#{new_date}'"
159
- )
160
- end
161
-
162
- out = File.new(GEMSPEC, 'w')
163
- lines.each do |l|
164
- out.write(l)
165
- end
166
- out.close
167
-
168
- git 'checkout', 'HEAD', CHANGELOG
169
- previous_changelog = IO.read(CHANGELOG)
170
-
171
- out = File.new(CHANGELOG, 'w')
172
-
173
- out.write(
174
- "## Hypothesis for Ruby #{new_version} (#{new_date})\n\n"
175
- )
176
- out.write(release_contents.strip)
177
- out.write("\n\n")
178
- out.write(previous_changelog)
179
- out.close
180
-
181
- git 'reset'
182
- git 'add', CHANGELOG, GEMSPEC
183
- git 'rm', RELEASE_FILE
184
- git 'commit', '-m', "Bump version to #{new_version} and "\
185
- "update changelog\n\n[skip ci]"
186
- elsif has_changes
187
- abort 'Source changes found but no release file exists'
188
- end
189
-
190
- sh 'rm -rf hypothesis-specs*.gem'
90
+ task :clean do
191
91
  sh 'git clean -fdx lib'
192
- sh 'gem build hypothesis-specs.gemspec'
193
- end
194
-
195
- def git(*args)
196
- sh 'git', *args
197
- end
198
-
199
- file 'secrets.tar.enc' => 'secrets' do
200
- sh 'rm -f secrets.tar secrets.tar.enc'
201
- sh 'tar -cf secrets.tar secrets'
202
- sh 'travis encrypt-file secrets.tar'
92
+ sh 'rm -rf hypothesis-specs*.gem'
93
+ sh 'rm -rf target'
203
94
  end
204
95
 
205
- task deploy: :gem do
206
- Gem::Specification._clear_load_cache
207
- spec = Gem::Specification.load('hypothesis-specs.gemspec')
208
-
209
- succeeded = system('git', 'tag', spec.version.to_s)
210
-
211
- unless succeeded
212
- puts "Looks like we've already done this release."
213
- next
214
- end
215
-
216
- unless File.directory? 'secrets'
217
- sh 'rm -rf secrets'
218
- sh 'openssl aes-256-cbc -K $encrypted_b0055249143b_key -iv ' \
219
- '$encrypted_b0055249143b_iv -in secrets.tar.enc -out secrets.tar -d'
220
-
221
- sh 'tar -xvf secrets.tar'
222
- end
223
-
224
- git('config', 'user.name', 'Travis CI on behalf of David R. MacIver')
225
- git('config', 'user.email', 'david@drmaciver.com')
226
- git('config', 'core.sshCommand', 'ssh -i secrets/deploy_key')
227
- git(
228
- 'remote', 'add', 'ssh-origin',
229
- 'git@github.com:HypothesisWorks/hypothesis-ruby.git'
230
- )
231
-
232
- sh(
233
- 'ssh-agent', 'sh', '-c',
234
- 'chmod 0600 secrets/deploy_key && ssh-add secrets/deploy_key && ' \
235
- 'git push ssh-origin HEAD:master && git push ssh-origin --tags'
236
- )
237
-
238
- sh 'rm -f ~/.gem/credentials'
239
- sh 'mkdir -p ~/.gem'
240
- sh 'ln -s $(pwd)/secrets/api_key.yaml ~/.gem/credentials'
241
- sh 'chmod 0600 ~/.gem/credentials'
242
- sh 'gem push hypothesis-specs*.gem'
96
+ task gem: :clean do
97
+ sh 'gem build hypothesis-specs.gemspec'
243
98
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hypothesis-specs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.10
4
+ version: 0.0.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - David R. Maciver
@@ -72,7 +72,7 @@ files:
72
72
  - src/engine.rs
73
73
  - src/intminimize.rs
74
74
  - src/lib.rs
75
- homepage: http://github.com/HypothesisWorks/hypothesis-ruby
75
+ homepage: https://github.com/HypothesisWorks/hypothesis/tree/master/hypothesis-ruby
76
76
  licenses:
77
77
  - MPL-2.0
78
78
  metadata: {}
@@ -92,7 +92,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
92
92
  version: '0'
93
93
  requirements: []
94
94
  rubyforge_project:
95
- rubygems_version: 2.6.14
95
+ rubygems_version: 2.7.6
96
96
  signing_key:
97
97
  specification_version: 4
98
98
  summary: Hypothesis is a powerful, flexible, and easy to use library for property-based