geminabox 0.12.1 → 0.12.2

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of geminabox might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NTgxZDliOWYxZTg4ZGVmZTdjNTZmMjFlZmUyNTc0NjAyYTA4ZDFiNQ==
4
+ N2IyYmIwNzY5M2YwNjg3NmYwMDVjYTcwODNhZDI1YWY1NDBiYTJkYw==
5
5
  data.tar.gz: !binary |-
6
- M2FiNDQzOWY2MjE1MmY3MmNmYzlhNWY3MDA1ZjA2ZWUxOTU1MTVlNA==
6
+ MWY4ZTJjNWM2ZjA5NTIxZTZiMGY5ZGYxMTY1MzYzZjNkNzdkODIwOA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ZTNkMTk1MDdhZGY1M2ZjMTFmMDgzMzBlMTVlNDQ1NDFlNWI5OTJlN2NmZjc0
10
- YmZkYmIyNzA2MDg5ZDExY2MxMTVmNDQ3M2JhMjZlNzZkNDVmNTJhZTU3M2M2
11
- ZWRjM2IzZDA5NTliN2E1ZTRiNGZkNWVkNzZjZjA2MjNmMTM0OGE=
9
+ OGI0OTY2ZmIyMDI1YTUwZGFhZGQyNDFmNmEyZDI3MDc2OGVhY2M0MWQwMDI0
10
+ ODU1MjMzM2MxN2U4MjRmZTVkNjY5ZGQxOTQ5OWJlNTNmMjViNjk1ODM3OWVk
11
+ ZjNkNTUwYWZjOWE0NTZjZmRlZmY3M2JhM2FhNDBjNGEyNjUxMWQ=
12
12
  data.tar.gz: !binary |-
13
- N2U2ZDQ1Y2NkNGRkMTkxOGU3MWQ3MzAwN2I3NTE3ZTc4ZDllMmM1YTNiMzBj
14
- N2I5OTVjNzMyZWE3YTc4MzViZmVhMDBiMjM5MzcwYTcyOWJlYzZkM2ZjNDVj
15
- NWUwMjIyODkzYTg3NzVhYWViNjlmM2E1ZWYxMDFkZjAzYzU1MTU=
13
+ Njc2MzE1YTliMzFlZGJjNzk3M2JkYWI2MmUxMTliODlhZTg2YzNhZDBmNGI2
14
+ ZmU4YmVmMmQ2NDE2ZjlkMTE5Y2I3OTVlY2Q5YWU1ZDdlMmY0ZmZlMTg1MzVl
15
+ YmE0NjI0YjVjMGYzMWRjYzg3OWJlYTgzYTQ3Y2IyMjMzOGFlMTU=
@@ -2,6 +2,7 @@ require 'rubygems'
2
2
  require 'digest/md5'
3
3
  require 'builder'
4
4
  require 'sinatra/base'
5
+ require 'rubygems/user_interaction'
5
6
  require 'rubygems/indexer'
6
7
  require 'rubygems/package'
7
8
  require 'rss/atom'
@@ -52,6 +53,10 @@ module Geminabox
52
53
  def settings
53
54
  Server.settings
54
55
  end
56
+
57
+ def call(env)
58
+ Server.call env
59
+ end
55
60
  end
56
61
 
57
62
  set_defaults(
@@ -88,11 +88,11 @@ module Geminabox
88
88
  end
89
89
 
90
90
  get '/api/v1/dependencies' do
91
- Marshal.dump(gem_list)
91
+ query_gems.any? ? Marshal.dump(gem_list) : 200
92
92
  end
93
93
 
94
94
  get '/api/v1/dependencies.json' do
95
- gem_list.to_json
95
+ query_gems.any? ? gem_list.to_json : {}
96
96
  end
97
97
 
98
98
  get '/upload' do
@@ -1,3 +1,3 @@
1
1
  module Geminabox
2
- VERSION = '0.12.1' unless defined? VERSION
2
+ VERSION = '0.12.2' 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: 0.12.1
4
+ version: 0.12.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tom Lea
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2013-11-25 00:00:00.000000000 Z
13
+ date: 2013-12-29 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: sinatra
@@ -108,36 +108,36 @@ extra_rdoc_files:
108
108
  files:
109
109
  - MIT-LICENSE
110
110
  - README.markdown
111
+ - lib/geminabox_client.rb
111
112
  - lib/rubygems_plugin.rb
112
- - lib/geminabox/version.rb
113
113
  - lib/geminabox/gem_store_error.rb
114
- - lib/geminabox/incoming_gem.rb
115
- - lib/geminabox/gem_version.rb
116
- - lib/geminabox/hostess.rb
117
- - lib/geminabox/indexer.rb
118
- - lib/geminabox/gem_list_merge.rb
114
+ - lib/geminabox/server.rb
115
+ - lib/geminabox/gem_version_collection.rb
116
+ - lib/geminabox/disk_cache.rb
119
117
  - lib/geminabox/rubygems_dependency.rb
120
- - lib/geminabox/proxy.rb
118
+ - lib/geminabox/proxy/copier.rb
121
119
  - lib/geminabox/proxy/file_handler.rb
122
120
  - lib/geminabox/proxy/hostess.rb
123
- - lib/geminabox/proxy/copier.rb
124
121
  - lib/geminabox/proxy/splicer.rb
125
- - lib/geminabox/gem_version_collection.rb
126
- - lib/geminabox/server.rb
127
- - lib/geminabox/disk_cache.rb
122
+ - lib/geminabox/proxy.rb
123
+ - lib/geminabox/hostess.rb
128
124
  - lib/geminabox/gem_store.rb
129
- - lib/rubygems/commands/inabox_command.rb
130
- - lib/geminabox_client.rb
125
+ - lib/geminabox/version.rb
126
+ - lib/geminabox/gem_list_merge.rb
127
+ - lib/geminabox/incoming_gem.rb
128
+ - lib/geminabox/indexer.rb
129
+ - lib/geminabox/gem_version.rb
131
130
  - lib/geminabox.rb
132
- - public/master.js
131
+ - lib/rubygems/commands/inabox_command.rb
133
132
  - public/master.css
134
133
  - public/jquery.js
135
134
  - public/favicon.ico
136
- - views/atom.erb
137
- - views/gem.erb
135
+ - public/master.js
138
136
  - views/upload.erb
139
- - views/layout.erb
140
137
  - views/index.erb
138
+ - views/layout.erb
139
+ - views/gem.erb
140
+ - views/atom.erb
141
141
  homepage: http://tomlea.co.uk/p/gem-in-a-box
142
142
  licenses:
143
143
  - MIT-LICENSE
@@ -160,7 +160,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
160
160
  version: '0'
161
161
  requirements: []
162
162
  rubyforge_project:
163
- rubygems_version: 2.1.10
163
+ rubygems_version: 2.1.11
164
164
  signing_key:
165
165
  specification_version: 4
166
166
  summary: Really simple rubygem hosting