geminabox 0.3.1 → 0.3.2
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.
- data/README.markdown +1 -1
- data/lib/geminabox.rb +7 -1
- metadata +5 -5
data/README.markdown
CHANGED
data/lib/geminabox.rb
CHANGED
|
@@ -7,7 +7,6 @@ require "rubygems/indexer"
|
|
|
7
7
|
|
|
8
8
|
require 'hostess'
|
|
9
9
|
|
|
10
|
-
|
|
11
10
|
class Geminabox < Sinatra::Base
|
|
12
11
|
enable :static, :methodoverride
|
|
13
12
|
|
|
@@ -21,6 +20,12 @@ class Geminabox < Sinatra::Base
|
|
|
21
20
|
def disallow_replace?
|
|
22
21
|
! allow_replace
|
|
23
22
|
end
|
|
23
|
+
|
|
24
|
+
def fixup_bundler_rubygems!
|
|
25
|
+
return if @post_reset_hook_applied
|
|
26
|
+
Gem.post_reset{ Gem::Specification.all = nil } if defined? Bundler and Gem.respond_to? :post_reset
|
|
27
|
+
@post_reset_hook_applied = true
|
|
28
|
+
end
|
|
24
29
|
end
|
|
25
30
|
|
|
26
31
|
autoload :GemVersionCollection, "geminabox/gem_version_collection"
|
|
@@ -96,6 +101,7 @@ HTML
|
|
|
96
101
|
end
|
|
97
102
|
|
|
98
103
|
def reindex
|
|
104
|
+
Geminabox.fixup_bundler_rubygems!
|
|
99
105
|
Gem::Indexer.new(options.data).generate_index
|
|
100
106
|
end
|
|
101
107
|
|
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: geminabox
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
4
|
+
hash: 23
|
|
5
5
|
prerelease:
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 3
|
|
9
|
-
-
|
|
10
|
-
version: 0.3.
|
|
9
|
+
- 2
|
|
10
|
+
version: 0.3.2
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- Tom Lea
|
|
@@ -15,7 +15,7 @@ autorequire:
|
|
|
15
15
|
bindir: bin
|
|
16
16
|
cert_chain: []
|
|
17
17
|
|
|
18
|
-
date: 2011-09-
|
|
18
|
+
date: 2011-09-27 00:00:00 +01:00
|
|
19
19
|
default_executable:
|
|
20
20
|
dependencies:
|
|
21
21
|
- !ruby/object:Gem::Dependency
|
|
@@ -100,7 +100,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
100
100
|
requirements: []
|
|
101
101
|
|
|
102
102
|
rubyforge_project:
|
|
103
|
-
rubygems_version: 1.
|
|
103
|
+
rubygems_version: 1.5.0
|
|
104
104
|
signing_key:
|
|
105
105
|
specification_version: 3
|
|
106
106
|
summary: Really simple rubygem hosting
|