private-gem-server 0.1.4 → 0.1.5

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: 72d5e01b30f2a80379bc57abdb75d0c8a8142c31
4
- data.tar.gz: cedf1e571d34f7707ff594c8bb642743a545689d
3
+ metadata.gz: ca731def110ca0602d44da1eea02702ec063369a
4
+ data.tar.gz: 3579e332e4d3a737e0ba87c549e6f07655873065
5
5
  SHA512:
6
- metadata.gz: b6904634730acfbef1b406441e4878d2f4f36d9152ff3e854f52cdddb1df3d1e5a1c29554a7966dec00f558981ff148544be58b9f77532f93488646557e02f21
7
- data.tar.gz: 2e44ffef8d35f8f7e9f6f61a9959d8e800976201cb1f2eeead9ab6776df44ac2361cc73d8075bade621e756678f4681e69f2bf8e2e2451fe785b34fc70ebc555
6
+ metadata.gz: e0e1f0c1bc7e0bede32badc8ce96f49ccadc40191a40d137d2eea290f4143bc0aabb7b63124a1e3a2022f7ca626754a75ced0ec814d612f2ccf1a39836654e70
7
+ data.tar.gz: 9522c53f2bd1e987dc06b24a5c3fb9a1516a746a6b597d76c34d22a3e9233b953f3d0393657bf313253ecfdc3632dff4ab4d6763939a599b5385eeb2e24b05c5
@@ -1,5 +1,4 @@
1
1
  require 'private-gem-server'
2
- require 'rack/traffic_logger'
3
2
  require 'rubygems'
4
3
  require 'geminabox'
5
4
  require 'yaml'
@@ -18,12 +17,5 @@ puts "Reading sources from #{ENV['GEM_SOURCES']}"
18
17
  log_path = ENV['GEM_SERVER_LOG']
19
18
  PrivateGemServer.logger = Logger.new(log_path) if log_path
20
19
 
21
- use Rack::TrafficLogger,
22
- STDOUT,
23
- colors: true,
24
- request_bodies: false,
25
- request_headers: false,
26
- response_bodies: false,
27
- response_headers: false
28
20
  use PrivateGemServer::Scanner, ENV['GEM_SOURCES'], "#{ENV['GEM_STORE']}/_working"
29
21
  run PrivateGemServer::Server
@@ -88,8 +88,9 @@ module PrivateGemServer
88
88
  end
89
89
 
90
90
  def build_version!(version)
91
- run! "git checkout tags/#{e version} && gem build #{e name}.gemspec", cwd: repo_path, output: logger, error: logger
92
- PrivateGemServer.add "#{repo_path}/#{name}-#{version[/\d.*/]}.gem"
91
+ target_path = Pathname "#{repo_path}/#{name}-#{version[/\d.*/]}.gem"
92
+ run! "git checkout tags/#{e version} && gem build #{e name}.gemspec", cwd: repo_path, output: logger, error: logger unless target_path.exist?
93
+ PrivateGemServer.add target_path if target_path.exist?
93
94
  end
94
95
 
95
96
  def e(arg)
@@ -1,3 +1,3 @@
1
1
  module PrivateGemServer
2
- VERSION = '0.1.4'
2
+ VERSION = '0.1.5'
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.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Neil E. Pearson
@@ -38,20 +38,6 @@ dependencies:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0.1'
41
- - !ruby/object:Gem::Dependency
42
- name: rack-traffic-logger
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - "~>"
46
- - !ruby/object:Gem::Version
47
- version: '0.1'
48
- type: :runtime
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - "~>"
53
- - !ruby/object:Gem::Version
54
- version: '0.1'
55
41
  description: Serve private gems for deployment in cloud environments.
56
42
  email:
57
43
  - neil@helium.net.au