private-gem-server 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/private_gem_server/config.ru +23 -0
- data/lib/private_gem_server/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a0c2ebb0405f24524d911818e3f7ed5c95ccfe76
|
4
|
+
data.tar.gz: c6ae46979ebd55297a6870a65d4f030f9dbcc605
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a2084943bcca5bb388f84d8c6d10eae43fed59ad13104fef6fbf00c197249311425490d03445a233237b281a4b5b03aa47ebba98daa7ac792e598c6a80fb31f5
|
7
|
+
data.tar.gz: e59629e20210fe30404a634de3539c34fe26c484d907a5d8aca8ffd682d94ddce533954f2c8ab44b095930ebb7951df0efff003536d05483035101a8e7c220cc
|
@@ -0,0 +1,23 @@
|
|
1
|
+
require 'private-gem-server'
|
2
|
+
require 'rack/traffic_logger'
|
3
|
+
require 'rubygems'
|
4
|
+
require 'geminabox'
|
5
|
+
require 'yaml'
|
6
|
+
|
7
|
+
ENV['GEM_STORE'] ||= `pwd`.chomp
|
8
|
+
|
9
|
+
PrivateGemServer::Sanity.check!
|
10
|
+
|
11
|
+
Geminabox.data = File.expand_path ENV['GEM_STORE']
|
12
|
+
Geminabox.settings.data = Geminabox.data
|
13
|
+
Geminabox.rubygems_proxy = true
|
14
|
+
|
15
|
+
puts "Working from #{Geminabox.data}"
|
16
|
+
puts "Reading sources from #{ENV['GEM_SOURCES']}"
|
17
|
+
|
18
|
+
log_path = ENV['GEM_SERVER_LOG']
|
19
|
+
PrivateGemServer.logger = Logger.new(log_path) if log_path
|
20
|
+
|
21
|
+
use Rack::TrafficLogger, STDOUT, colors: true
|
22
|
+
use PrivateGemServer::Scanner, ENV['GEM_SOURCES'], "#{ENV['GEM_STORE']}/_working"
|
23
|
+
run PrivateGemServer::Server
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: private-gem-server
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Neil E. Pearson
|
@@ -51,6 +51,7 @@ files:
|
|
51
51
|
- bin/private-gem-server
|
52
52
|
- lib/private-gem-server.rb
|
53
53
|
- lib/private_gem_server.rb
|
54
|
+
- lib/private_gem_server/config.ru
|
54
55
|
- lib/private_gem_server/sanity.rb
|
55
56
|
- lib/private_gem_server/scanner.rb
|
56
57
|
- lib/private_gem_server/server.rb
|