stickler 2.1.0 → 2.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +1 -0
- data/HISTORY.asciidoc +4 -0
- data/README.asciidoc +2 -1
- data/lib/stickler/client/mirror.rb +1 -1
- data/lib/stickler/middleware/index.rb +1 -1
- data/lib/stickler/version.rb +1 -1
- data/spec/data/gems/baz-3.1.4-java.gem +0 -0
- data/spec/middleware/local_spec.rb +1 -0
- data/spec/repository/index_spec.rb +3 -3
- data/spec/repository/local_spec.rb +1 -1
- data/tasks/asciidoc.rake +32 -0
- metadata +11 -7
data/.gitignore
CHANGED
data/HISTORY.asciidoc
CHANGED
@@ -2,6 +2,10 @@ Stickler Changelog
|
|
2
2
|
==================
|
3
3
|
Jeremy Hinegardner <jeremy@hinegardner.org>
|
4
4
|
|
5
|
+
Version 2.1.1 - 2011-03-31
|
6
|
+
--------------------------
|
7
|
+
* Fix bug where stickler would only serve ruby platform gems
|
8
|
+
|
5
9
|
Version 2.1.0 - 2011-03-25
|
6
10
|
--------------------------
|
7
11
|
* Added 'list' client command
|
data/README.asciidoc
CHANGED
@@ -143,8 +143,9 @@ License
|
|
143
143
|
Copyright (C) 2008-2010 Jeremy Hinegardner
|
144
144
|
ISC License, See LICENSE for details
|
145
145
|
|
146
|
+
|
146
147
|
Appendix
|
147
148
|
--------
|
148
149
|
* http://github.com/copiousfreetime/stickler[Github Project]
|
150
|
+
* link:HISTORY.html[History]
|
149
151
|
* http://www.copiousfreetime.org/projects/stickler/
|
150
|
-
|
@@ -46,7 +46,7 @@ _
|
|
46
46
|
$stdout.flush
|
47
47
|
|
48
48
|
uri = [ repo.uri.join( upstream_host ), opts[:gem_name], opts[:gem_version], opts[:platform] ].join("/")
|
49
|
-
resp = Excon.post( uri, :expects => [200] )
|
49
|
+
resp = Excon.post( uri, :expects => [200, 201] )
|
50
50
|
|
51
51
|
$stdout.puts "OK -> #{repo.uri.join(resp.headers['Location'])}"
|
52
52
|
rescue Excon::Errors::Error => he
|
@@ -140,7 +140,7 @@ module Stickler::Middleware
|
|
140
140
|
#
|
141
141
|
# To support pre-releases the a-z has been added to the version
|
142
142
|
#
|
143
|
-
get %r{\A/quick/Marshal.#{Gem.marshal_version}/(
|
143
|
+
get %r{\A/quick/Marshal.#{Gem.marshal_version}/(.+)-([0-9.]+[0-9a-z.]*)(?:-(.+))?\.gemspec\.rz\Z} do
|
144
144
|
name, version, platform = *params[:captures]
|
145
145
|
spec = Stickler::SpecLite.new( name, version, platform )
|
146
146
|
full_path = @repo.full_path_to_specification( spec )
|
data/lib/stickler/version.rb
CHANGED
Binary file
|
@@ -37,6 +37,7 @@ 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
41
|
].each do |path|
|
41
42
|
it "should return the same bytes as Gem::Indexer for '#{path}'" do
|
42
43
|
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 foo-1.0.0 ]
|
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 ]
|
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 foo-1.0.0 ]
|
43
|
+
@index.released_specs.size.should == 3
|
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 ]
|
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 == 4
|
33
33
|
end
|
34
34
|
|
35
35
|
it "two instances with the same repo dir are the same object" do
|
data/tasks/asciidoc.rake
ADDED
@@ -0,0 +1,32 @@
|
|
1
|
+
namespace :asciidoc do
|
2
|
+
|
3
|
+
rule '.html' => '.asciidoc' do |t|
|
4
|
+
sh "a2x --no-xmllint --format xhtml #{t.source}"
|
5
|
+
end
|
6
|
+
|
7
|
+
src = FileList["*.asciidoc", "man/*.asciidoc"]
|
8
|
+
html = src.collect{ |f| f.ext( "html" ) }
|
9
|
+
|
10
|
+
desc "Create html pages"
|
11
|
+
task :create => html
|
12
|
+
|
13
|
+
task :clobber_asciidoc do
|
14
|
+
rm_f FileList["man/*.{html,xml,css}", "*.{html,xml,css}"]
|
15
|
+
rm_rf FileList["asciidoc-output"]
|
16
|
+
end
|
17
|
+
|
18
|
+
desc "Deploy the asciidoc"
|
19
|
+
task :deploy => html do
|
20
|
+
FileUtils.cp "README.html", "index.html"
|
21
|
+
%w[ . man ].each do |d|
|
22
|
+
dest_d = File.expand_path( "asciidoc-output/#{d}" )
|
23
|
+
FileUtils.mkdir dest_d unless File.directory?( dest_d )
|
24
|
+
FileUtils.cp FileList["#{d}/*.{css,html}"], dest_d
|
25
|
+
end
|
26
|
+
sh "rsync -ravz asciidoc-output/* #{ENV['DEST_DIR']}" if ENV['DEST_DIR']
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
desc "Alias to asciidoc:create"
|
31
|
+
task :asciidoc => "asciidoc:create"
|
32
|
+
task :clobber => %w[ asciidoc:clobber_asciidoc]
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: stickler
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 9
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 2
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 2.1.
|
9
|
+
- 1
|
10
|
+
version: 2.1.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Jeremy Hinegardner
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-03-
|
18
|
+
date: 2011-03-31 00:00:00 -06:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -282,16 +282,15 @@ files:
|
|
282
282
|
- lib/stickler/spec_lite.rb
|
283
283
|
- lib/stickler/version.rb
|
284
284
|
- man/asciidoc.conf
|
285
|
-
- man/stickler-passenger-config.1
|
286
285
|
- man/stickler-passenger-config.asciidoc
|
287
|
-
- man/stickler-server.1
|
288
286
|
- man/stickler-server.asciidoc
|
289
|
-
- man/stickler.1
|
290
287
|
- man/stickler.asciidoc
|
291
288
|
- spec/data/gems/bar-1.0.0.gem
|
289
|
+
- spec/data/gems/baz-3.1.4-java.gem
|
292
290
|
- spec/data/gems/foo-1.0.0.gem
|
293
291
|
- spec/data/gems/foo-2.0.0a.gem
|
294
292
|
- spec/data/specifications/bar-1.0.0.gemspec
|
293
|
+
- spec/data/specifications/baz-3.1.4-java.gemspec
|
295
294
|
- spec/data/specifications/foo-1.0.0.gemspec
|
296
295
|
- spec/data/specifications/foo-2.0.0a.gemspec
|
297
296
|
- spec/index_spec_helpers.rb
|
@@ -307,7 +306,12 @@ files:
|
|
307
306
|
- spec/spec.opts
|
308
307
|
- spec/spec_helper.rb
|
309
308
|
- spec/spec_lite_spec.rb
|
309
|
+
- tasks/asciidoc.rake
|
310
310
|
- tasks/man.rake
|
311
|
+
- work/mirror/gems/hitimes-1.1.1.gem
|
312
|
+
- work/mirror/gems/rails-3.0.3.gem
|
313
|
+
- work/mirror/specifications/hitimes-1.1.1.gemspec
|
314
|
+
- work/mirror/specifications/rails-3.0.3.gemspec
|
311
315
|
has_rdoc: true
|
312
316
|
homepage: http://www.copiousfreetime.org/projects/stickler
|
313
317
|
licenses: []
|