right_publish 0.5.0 → 0.5.1

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/CHANGELOG.md CHANGED
@@ -1,2 +1,5 @@
1
+ ### 0.5.1
2
+ * When creating apt repo on trusty, set db/version to older versions for backwards compatibility.
3
+
1
4
  ### 0.5.0
2
5
  * Add mutex to separate right_publish from overwriting the same repo
data/Gemfile CHANGED
@@ -2,7 +2,6 @@ source "http://rubygems.org"
2
2
 
3
3
  gem "builder"
4
4
  gem "fog", "~> 1.9"
5
- gem "excon", "<= 0.25.3" # We do not depend directly on excon, but fog does, and > 0.25 is incompatible with fog
6
5
  gem "mime-types", "~> 1.0"
7
6
  gem "trollop", "~> 2.0"
8
7
 
data/Gemfile.lock CHANGED
@@ -95,7 +95,6 @@ PLATFORMS
95
95
  DEPENDENCIES
96
96
  builder
97
97
  debugger
98
- excon (<= 0.25.3)
99
98
  flexmock (~> 0.9)
100
99
  fog (~> 1.9)
101
100
  jeweler (~> 1.8.3)
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.5.0
1
+ 0.5.1
@@ -150,13 +150,28 @@ module RightPublish
150
150
  end
151
151
 
152
152
  def write_conf_file(repo_path)
153
- destination_dir = File.expand_path(File.join(repo_path, 'conf'))
154
-
155
- FileUtils.mkdir_p destination_dir
156
- config_file = open( File.join(destination_dir, 'distributions'), 'wb' )
153
+ conf_dir = File.expand_path(File.join(repo_path, 'conf'))
154
+ FileUtils.mkdir_p(conf_dir)
155
+ distributions_file = File.join(conf_dir, 'distributions')
156
+ File.open(distributions_file , 'wb' ) do |f|
157
+ repo_config[:dists].each { |dist| f.puts(dist_conf(dist)) }
158
+ end
157
159
 
158
- repo_config[:dists].each { |dist| config_file << dist_conf(dist) }
159
- config_file.close
160
+ # We preseed this file with values that would be generated if this were
161
+ # a precise distro. If we start this repo on trusty then it'll write 5.3.x
162
+ # for the bdb version which is not backwards compatible. The precise versions
163
+ # are forward compatible to trusty at least though.
164
+ db_dir = File.expand_path(File.join(repo_path, 'db'))
165
+ FileUtils.mkdir_p(db_dir)
166
+ version_file = File.join(db_dir, 'version')
167
+ unless File.exists?(version_file)
168
+ File.open(version_file, 'wb') do |f|
169
+ f.puts("4.8.2")
170
+ f.puts("3.3.0")
171
+ f.puts("bdb5.1.25")
172
+ f.puts("bdb5.1.0")
173
+ end
174
+ end
160
175
  end
161
176
 
162
177
  def dist_conf(dist)
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "right_publish"
8
- s.version = "0.5.0"
8
+ s.version = "0.5.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Brian Szmyd", "Tony Spataro"]
12
- s.date = "2014-05-28"
12
+ s.date = "2014-06-11"
13
13
  s.description = "A tool for maintaining S3-based DEB, GEM and RPM packages."
14
14
  s.email = "support@rightscale.com"
15
15
  s.executables = ["autosign.expect", "right_publish"]
@@ -65,7 +65,6 @@ Gem::Specification.new do |s|
65
65
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
66
66
  s.add_runtime_dependency(%q<builder>, [">= 0"])
67
67
  s.add_runtime_dependency(%q<fog>, ["~> 1.9"])
68
- s.add_runtime_dependency(%q<excon>, ["<= 0.25.3"])
69
68
  s.add_runtime_dependency(%q<mime-types>, ["~> 1.0"])
70
69
  s.add_runtime_dependency(%q<trollop>, ["~> 2.0"])
71
70
  s.add_development_dependency(%q<rake>, ["~> 0.9"])
@@ -80,7 +79,6 @@ Gem::Specification.new do |s|
80
79
  else
81
80
  s.add_dependency(%q<builder>, [">= 0"])
82
81
  s.add_dependency(%q<fog>, ["~> 1.9"])
83
- s.add_dependency(%q<excon>, ["<= 0.25.3"])
84
82
  s.add_dependency(%q<mime-types>, ["~> 1.0"])
85
83
  s.add_dependency(%q<trollop>, ["~> 2.0"])
86
84
  s.add_dependency(%q<rake>, ["~> 0.9"])
@@ -96,7 +94,6 @@ Gem::Specification.new do |s|
96
94
  else
97
95
  s.add_dependency(%q<builder>, [">= 0"])
98
96
  s.add_dependency(%q<fog>, ["~> 1.9"])
99
- s.add_dependency(%q<excon>, ["<= 0.25.3"])
100
97
  s.add_dependency(%q<mime-types>, ["~> 1.0"])
101
98
  s.add_dependency(%q<trollop>, ["~> 2.0"])
102
99
  s.add_dependency(%q<rake>, ["~> 0.9"])
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: right_publish
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2014-05-28 00:00:00.000000000 Z
13
+ date: 2014-06-20 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: builder
@@ -44,22 +44,6 @@ dependencies:
44
44
  - - ~>
45
45
  - !ruby/object:Gem::Version
46
46
  version: '1.9'
47
- - !ruby/object:Gem::Dependency
48
- name: excon
49
- requirement: !ruby/object:Gem::Requirement
50
- none: false
51
- requirements:
52
- - - <=
53
- - !ruby/object:Gem::Version
54
- version: 0.25.3
55
- type: :runtime
56
- prerelease: false
57
- version_requirements: !ruby/object:Gem::Requirement
58
- none: false
59
- requirements:
60
- - - <=
61
- - !ruby/object:Gem::Version
62
- version: 0.25.3
63
47
  - !ruby/object:Gem::Dependency
64
48
  name: mime-types
65
49
  requirement: !ruby/object:Gem::Requirement
@@ -295,7 +279,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
295
279
  version: '0'
296
280
  segments:
297
281
  - 0
298
- hash: 2556348436835479702
282
+ hash: -3081440697787763880
299
283
  required_rubygems_version: !ruby/object:Gem::Requirement
300
284
  none: false
301
285
  requirements: