stickler 2.2.3 → 2.2.4
Sign up to get free protection for your applications and to get access to all the features.
- data/HISTORY.asciidoc +2 -1
- data/lib/stickler/repository/index.rb +4 -3
- data/lib/stickler/version.rb +1 -1
- data/spec/data/gems/baz-3.1.4.gem +0 -0
- data/spec/index_spec_helpers.rb +3 -0
- data/spec/middleware/local_spec.rb +2 -1
- data/spec/repository/index_spec.rb +3 -3
- data/spec/repository/local_spec.rb +1 -1
- metadata +28 -23
data/HISTORY.asciidoc
CHANGED
@@ -3,10 +3,11 @@ Stickler Changelog
|
|
3
3
|
Jeremy Hinegardner <jeremy@hinegardner.org>
|
4
4
|
|
5
5
|
|
6
|
-
Version 2.2.
|
6
|
+
Version 2.2.4 - 2012-02-26
|
7
7
|
--------------------------
|
8
8
|
* Fixed authentication failing on mirror command (copiousfreetime/stickler/#12)
|
9
9
|
* Fixed 'list' command not working when no flags where given
|
10
|
+
* Fixed latest_specs not having all platforms in it (copiousfreetime/stickler/#21)
|
10
11
|
|
11
12
|
Version 2.2.2 - 2012-02-13
|
12
13
|
--------------------------
|
@@ -46,12 +46,13 @@ module Stickler::Repository
|
|
46
46
|
latest = {}
|
47
47
|
specs.each do |s|
|
48
48
|
next if s.prerelease?
|
49
|
-
|
49
|
+
key = "#{s.name}.#{s.platform}"
|
50
|
+
if old_spec = latest[key] then
|
50
51
|
if old_spec.version < s.version then
|
51
|
-
latest[
|
52
|
+
latest[key] = s
|
52
53
|
end
|
53
54
|
else
|
54
|
-
latest[
|
55
|
+
latest[key] = s
|
55
56
|
end
|
56
57
|
end
|
57
58
|
latest.values
|
data/lib/stickler/version.rb
CHANGED
Binary file
|
data/spec/index_spec_helpers.rb
CHANGED
@@ -37,7 +37,8 @@ describe Stickler::Middleware::Local do
|
|
37
37
|
"/quick/Marshal.#{Gem.marshal_version}/foo-1.0.0.gemspec.rz",
|
38
38
|
"/quick/Marshal.#{Gem.marshal_version}/bar-1.0.0.gemspec.rz",
|
39
39
|
"/quick/Marshal.#{Gem.marshal_version}/foo-2.0.0a.gemspec.rz",
|
40
|
-
"/quick/Marshal.#{Gem.marshal_version}/baz-3.1.4-java.gemspec.rz"
|
40
|
+
"/quick/Marshal.#{Gem.marshal_version}/baz-3.1.4-java.gemspec.rz",
|
41
|
+
"/quick/Marshal.#{Gem.marshal_version}/baz-3.1.4.gemspec.rz",
|
41
42
|
].each do |path|
|
42
43
|
it "should return the same bytes as Gem::Indexer for '#{path}'" do
|
43
44
|
response = get( path )
|
@@ -31,7 +31,7 @@ describe ::Stickler::Repository::Index do
|
|
31
31
|
|
32
32
|
it "knows just the latest specs" do
|
33
33
|
@index.latest_specs.size.should == (@specifications.size - 1)
|
34
|
-
@index.latest_specs.collect { |s| s.full_name }.sort.should == %w[ bar-1.0.0 baz-3.1.4-java foo-1.0.0 ]
|
34
|
+
@index.latest_specs.collect { |s| s.full_name }.sort.should == %w[ bar-1.0.0 baz-3.1.4 baz-3.1.4-java foo-1.0.0 ]
|
35
35
|
end
|
36
36
|
|
37
37
|
it "knows the pre-release specs" do
|
@@ -40,8 +40,8 @@ describe ::Stickler::Repository::Index do
|
|
40
40
|
end
|
41
41
|
|
42
42
|
it "knows the released specs" do
|
43
|
-
@index.released_specs.size.should ==
|
44
|
-
@index.released_specs.collect { |s| s.full_name }.sort.should == %w[ bar-1.0.0 baz-3.1.4-java foo-1.0.0 ]
|
43
|
+
@index.released_specs.size.should == 4
|
44
|
+
@index.released_specs.collect { |s| s.full_name }.sort.should == %w[ bar-1.0.0 baz-3.1.4 baz-3.1.4-java foo-1.0.0 ]
|
45
45
|
end
|
46
46
|
end
|
47
47
|
|
@@ -29,7 +29,7 @@ describe ::Stickler::Repository::Local do
|
|
29
29
|
Dir.glob( File.join( @gems_dir, "*.gem" ) ).each do |gem|
|
30
30
|
@repo.push( gem )
|
31
31
|
end
|
32
|
-
@repo.specs.size.should ==
|
32
|
+
@repo.specs.size.should == 5
|
33
33
|
end
|
34
34
|
|
35
35
|
it "two instances with the same repo dir are the same object" do
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: stickler
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.2.
|
4
|
+
version: 2.2.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,7 +13,7 @@ date: 2012-02-26 00:00:00.000000000Z
|
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: sinatra
|
16
|
-
requirement: &
|
16
|
+
requirement: &70161735418480 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: 1.3.2
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70161735418480
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: addressable
|
27
|
-
requirement: &
|
27
|
+
requirement: &70161735417740 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ~>
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: 2.2.6
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *70161735417740
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: excon
|
38
|
-
requirement: &
|
38
|
+
requirement: &70161735395620 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ~>
|
@@ -43,10 +43,10 @@ dependencies:
|
|
43
43
|
version: 0.9.5
|
44
44
|
type: :runtime
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *70161735395620
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: trollop
|
49
|
-
requirement: &
|
49
|
+
requirement: &70161735367080 !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|
52
52
|
- - ~>
|
@@ -54,10 +54,10 @@ dependencies:
|
|
54
54
|
version: 1.16.2
|
55
55
|
type: :runtime
|
56
56
|
prerelease: false
|
57
|
-
version_requirements: *
|
57
|
+
version_requirements: *70161735367080
|
58
58
|
- !ruby/object:Gem::Dependency
|
59
59
|
name: logging
|
60
|
-
requirement: &
|
60
|
+
requirement: &70161735361060 !ruby/object:Gem::Requirement
|
61
61
|
none: false
|
62
62
|
requirements:
|
63
63
|
- - ~>
|
@@ -65,10 +65,10 @@ dependencies:
|
|
65
65
|
version: 1.6.2
|
66
66
|
type: :runtime
|
67
67
|
prerelease: false
|
68
|
-
version_requirements: *
|
68
|
+
version_requirements: *70161735361060
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: rake
|
71
|
-
requirement: &
|
71
|
+
requirement: &70161735346760 !ruby/object:Gem::Requirement
|
72
72
|
none: false
|
73
73
|
requirements:
|
74
74
|
- - ~>
|
@@ -76,10 +76,10 @@ dependencies:
|
|
76
76
|
version: 0.9.2.2
|
77
77
|
type: :development
|
78
78
|
prerelease: false
|
79
|
-
version_requirements: *
|
79
|
+
version_requirements: *70161735346760
|
80
80
|
- !ruby/object:Gem::Dependency
|
81
81
|
name: bones
|
82
|
-
requirement: &
|
82
|
+
requirement: &70161735322040 !ruby/object:Gem::Requirement
|
83
83
|
none: false
|
84
84
|
requirements:
|
85
85
|
- - ~>
|
@@ -87,10 +87,10 @@ dependencies:
|
|
87
87
|
version: 3.7.3
|
88
88
|
type: :development
|
89
89
|
prerelease: false
|
90
|
-
version_requirements: *
|
90
|
+
version_requirements: *70161735322040
|
91
91
|
- !ruby/object:Gem::Dependency
|
92
92
|
name: rack-test
|
93
|
-
requirement: &
|
93
|
+
requirement: &70161735196080 !ruby/object:Gem::Requirement
|
94
94
|
none: false
|
95
95
|
requirements:
|
96
96
|
- - ~>
|
@@ -98,10 +98,10 @@ dependencies:
|
|
98
98
|
version: 0.6.1
|
99
99
|
type: :development
|
100
100
|
prerelease: false
|
101
|
-
version_requirements: *
|
101
|
+
version_requirements: *70161735196080
|
102
102
|
- !ruby/object:Gem::Dependency
|
103
103
|
name: bones-extras
|
104
|
-
requirement: &
|
104
|
+
requirement: &70161734972200 !ruby/object:Gem::Requirement
|
105
105
|
none: false
|
106
106
|
requirements:
|
107
107
|
- - ~>
|
@@ -109,10 +109,10 @@ dependencies:
|
|
109
109
|
version: 1.3.0
|
110
110
|
type: :development
|
111
111
|
prerelease: false
|
112
|
-
version_requirements: *
|
112
|
+
version_requirements: *70161734972200
|
113
113
|
- !ruby/object:Gem::Dependency
|
114
114
|
name: builder
|
115
|
-
requirement: &
|
115
|
+
requirement: &70161734965080 !ruby/object:Gem::Requirement
|
116
116
|
none: false
|
117
117
|
requirements:
|
118
118
|
- - ~>
|
@@ -120,10 +120,10 @@ dependencies:
|
|
120
120
|
version: 3.0.0
|
121
121
|
type: :development
|
122
122
|
prerelease: false
|
123
|
-
version_requirements: *
|
123
|
+
version_requirements: *70161734965080
|
124
124
|
- !ruby/object:Gem::Dependency
|
125
125
|
name: rspec
|
126
|
-
requirement: &
|
126
|
+
requirement: &70161734955780 !ruby/object:Gem::Requirement
|
127
127
|
none: false
|
128
128
|
requirements:
|
129
129
|
- - ~>
|
@@ -131,7 +131,7 @@ dependencies:
|
|
131
131
|
version: 2.8.0
|
132
132
|
type: :development
|
133
133
|
prerelease: false
|
134
|
-
version_requirements: *
|
134
|
+
version_requirements: *70161734955780
|
135
135
|
description: ! "Stickler is a tool to organize and maintain an internal gem repository.\nPrimarily,
|
136
136
|
you would want to use Stickler if:\n\n1. You have proprietary gems that you want
|
137
137
|
to have available via a gem server so \n you may +gem install+ them.\n2. You would
|
@@ -218,17 +218,22 @@ files:
|
|
218
218
|
- lib/stickler/spec_lite.rb
|
219
219
|
- lib/stickler/version.rb
|
220
220
|
- man/asciidoc.conf
|
221
|
+
- man/stickler-passenger-config.1
|
221
222
|
- man/stickler-passenger-config.asciidoc
|
223
|
+
- man/stickler-server.1
|
222
224
|
- man/stickler-server.asciidoc
|
225
|
+
- man/stickler.1
|
223
226
|
- man/stickler.asciidoc
|
224
227
|
- spec/data/gemcutter/gems/foo-1.0.0.gem
|
225
228
|
- spec/data/gemcutter/specifications/foo-1.0.0.gemspec
|
226
229
|
- spec/data/gems/bar-1.0.0.gem
|
227
230
|
- spec/data/gems/baz-3.1.4-java.gem
|
231
|
+
- spec/data/gems/baz-3.1.4.gem
|
228
232
|
- spec/data/gems/foo-1.0.0.gem
|
229
233
|
- spec/data/gems/foo-2.0.0a.gem
|
230
234
|
- spec/data/specifications/bar-1.0.0.gemspec
|
231
235
|
- spec/data/specifications/baz-3.1.4-java.gemspec
|
236
|
+
- spec/data/specifications/baz-3.1.4.gemspec
|
232
237
|
- spec/data/specifications/foo-1.0.0.gemspec
|
233
238
|
- spec/data/specifications/foo-2.0.0a.gemspec
|
234
239
|
- spec/index_spec_helpers.rb
|