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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 09f66a2825af1e0a3f54bbb09a19a1dfc3ab5894
4
- data.tar.gz: bba351066c20cc375915d630e5bd4cd50f57f8d7
3
+ metadata.gz: a0c2ebb0405f24524d911818e3f7ed5c95ccfe76
4
+ data.tar.gz: c6ae46979ebd55297a6870a65d4f030f9dbcc605
5
5
  SHA512:
6
- metadata.gz: e05e2dd544438fcd158fbdc392366113bbf023c826af1857be445c02078e547c01836762619858ea90bf17205792e35f6db7e65d72c88f466b861239b004318c
7
- data.tar.gz: 0a349c8f5e3e252cf132c530af285b31454a685d56f389a4d3d812893735554068b384a8d5df71b107d3d9112f9cc71c5c9dcea1e65223d56e874c472d038c01
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
@@ -1,3 +1,3 @@
1
1
  module PrivateGemServer
2
- VERSION = '0.1.2'
2
+ VERSION = '0.1.3'
3
3
  end
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.2
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