geminabox 1.1.0 → 1.1.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
  SHA256:
3
- metadata.gz: c58b87ab694d0e78e224fd5faf56aa4b7676c88f2c10da711980765fbb8bd1bc
4
- data.tar.gz: ca6355cf693daf3a94826f7e9ab29a9f73714077d78dac0c298352e280fbbaee
3
+ metadata.gz: 10ddfa01a1de69668505dc20d43a6fd597ef35a66a46c7fe85d6196c743182ef
4
+ data.tar.gz: a27916b2ce8ebe5f80a81f1b86de685dce6cd4b52b23a664f5fa1cf804c83424
5
5
  SHA512:
6
- metadata.gz: 5cc317ab13ac74784a371820b55bb6625c3d2af1aa3b04a7efcedeb1484ef08c29daa690975079776add41b374a2bb9d9703dfb73ad6930ffdf539d53eee97d9
7
- data.tar.gz: 90da6706ea509db2a15c4aafe267334120954e42a5d5c06a918c4bb5e4a9a5626257ccbeb6b39132efb89cb8a45363794854581b2646831e7906159dcf870170
6
+ metadata.gz: c5a5ed58e2168f47472d98f4b4ea27d9cd1bb56c74bcf44ff7f717113086ad61891727810817b76b748be5870a0802c7514f000aac0a1670b5177f6f89f3ad6b
7
+ data.tar.gz: 1cde2c7b05c8d4ff12666eb86d801f3087fb16bf22e28544e1802bd5bdd72c97d195d4f4f0f5a8aebb77f39d038ce656aa1a1442cc9410c8ea83ea48ff17784c
@@ -130,6 +130,7 @@ module Geminabox
130
130
  get '/gems/:gemname' do
131
131
  gems = Hash[load_gems.by_name]
132
132
  @gem = gems[params[:gemname]]
133
+ @allow_delete = self.class.allow_delete?
133
134
  halt 404 unless @gem
134
135
  erb :gem
135
136
  end
@@ -243,7 +244,7 @@ HTML
243
244
  def all_gems_with_duplicates
244
245
  specs_files_paths.map do |specs_file_path|
245
246
  if File.exist?(specs_file_path)
246
- Marshal.load(Gem.gunzip(Gem.read_binary(specs_file_path)))
247
+ Marshal.load(Gem::Util.gunzip(Gem.read_binary(specs_file_path)))
247
248
  else
248
249
  []
249
250
  end
@@ -311,7 +312,7 @@ HTML
311
312
  spec_file = File.join(Geminabox.data, "quick", "Marshal.#{Gem.marshal_version}", "#{filename.join("-")}.gemspec.rz")
312
313
  File::open(spec_file, 'r') do |unzipped_spec_file|
313
314
  unzipped_spec_file.binmode
314
- Marshal.load(Gem.inflate(unzipped_spec_file.read))
315
+ Marshal.load(Gem::Util.inflate(unzipped_spec_file.read))
315
316
  end if File.exist? spec_file
316
317
  end
317
318
 
@@ -1,3 +1,3 @@
1
1
  module Geminabox
2
- VERSION = '1.1.0' unless defined? VERSION
2
+ VERSION = '1.1.1' unless defined? VERSION
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: geminabox
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tom Lea
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2018-04-06 00:00:00.000000000 Z
14
+ date: 2018-11-07 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: sinatra
@@ -167,7 +167,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
167
167
  version: '0'
168
168
  requirements: []
169
169
  rubyforge_project:
170
- rubygems_version: 2.7.4
170
+ rubygems_version: 2.7.6
171
171
  signing_key:
172
172
  specification_version: 4
173
173
  summary: Really simple rubygem hosting