stickler 2.4.0 → 2.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -13
- data/HISTORY.md +8 -0
- data/Rakefile +11 -9
- data/bin/stickler-server +7 -9
- data/lib/stickler.rb +1 -1
- data/tasks/default.rake +6 -2
- data/tasks/this.rb +6 -1
- metadata +42 -41
checksums.yaml
CHANGED
@@ -1,15 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
5
|
-
data.tar.gz: !binary |-
|
6
|
-
ZDdiZTVmZGQyNzNhNzBmYWZhYjg1MGQ1NTZlMGE5MjIyMjg3YzM1Ng==
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 7e0d0d6ef2c500168f844e051452173e22c4e1bd
|
4
|
+
data.tar.gz: da8a24b4c389ed71cc4d50d9cc2771275682f92c
|
7
5
|
SHA512:
|
8
|
-
metadata.gz:
|
9
|
-
|
10
|
-
YjEyYjk2OWY1OTBlYWIwZDFiNDFkZDAyZWUyNjlmZThkYTgyZjU0Mzc5M2Fk
|
11
|
-
ZDY3Mzc2ZGY1MmJhMDNmMWFhZGM5ZWY0Yzc3ZWY2Yzg4ZGMwNWI=
|
12
|
-
data.tar.gz: !binary |-
|
13
|
-
MzMxNjczN2I2NTY5ZTZiZWIxNzI4NjM4MTM3OGJlNDk1Nzg2MDcwYWQ2YjAz
|
14
|
-
OWUzNWVjMmVkMDA4NWI2YjJkN2ZmYjcwOThmZGFlNDM2OTU1MjBkODQ1ZmY3
|
15
|
-
YjA3ODNmNTQ1YWY2NDEyNjhkOTk5ZjQyN2VhMjAyNTY4OTk5YzQ=
|
6
|
+
metadata.gz: 167b8138cccd4ab189288417f8499a9474304c1f7124d8018aa8ba023d07a756bdee45d3422a03c2042b3c83f85c7e3adb660574aea94fbf623a798b1e902b12
|
7
|
+
data.tar.gz: c33eb450f6af74db9d9df8392f225c4fc958c3a003772d70ba445cbc6f971c4b9beb4f54cbaf666db363a2906b94004b02d702f7a1293cadf74f4b2c4e1cc2fe
|
data/HISTORY.md
CHANGED
@@ -2,11 +2,19 @@ Stickler Changelog
|
|
2
2
|
==================
|
3
3
|
Jeremy Hinegardner <jeremy@copiousfreetime.org>
|
4
4
|
|
5
|
+
Version 2.4.1 - 2014-06-11
|
6
|
+
--------------------------
|
7
|
+
* Fix daemonization bug <https://github.com/copiousfreetime/stickler/issues/38>
|
8
|
+
* Require minimum rubygems version <https://github.com/copiousfreetime/stickler/issues/36>
|
9
|
+
* Clear all rubygems specification warnings
|
10
|
+
* Updated dependencies to latest versions
|
11
|
+
|
5
12
|
Version 2.4.0 - 2013-11-13
|
6
13
|
--------------------------
|
7
14
|
* Ruby 2.0 compatibility <http://github.com/copiousfreetime/stickler/issues/28>
|
8
15
|
* Implement latest-version command <http://github.com/copiousfreetime/stickler/issues/29>
|
9
16
|
* Extract Server functionality to Middleware <http://github.com/copiousfreetime/stickler/issues/33>
|
17
|
+
* Allow using Gemfile.lock as input to the `mirror` command <https://github.com/copiousfreetime/stickler/pull/31>
|
10
18
|
* Updated dependencies to latest versions
|
11
19
|
|
12
20
|
Version 2.3.0 - 2013-03-09
|
data/Rakefile
CHANGED
@@ -10,17 +10,19 @@ This.homepage = "http://github.com/copiousfreetime/#{ This.name }"
|
|
10
10
|
This.ruby_gemspec do |spec|
|
11
11
|
spec.add_runtime_dependency( 'sinatra' , '~> 1.4' )
|
12
12
|
spec.add_runtime_dependency( 'addressable', '~> 2.3' )
|
13
|
-
spec.add_runtime_dependency( 'excon' , '~> 0.
|
14
|
-
spec.add_runtime_dependency( 'trollop' , '~> 2.0'
|
15
|
-
spec.add_runtime_dependency( 'logging' , '~> 1.8
|
13
|
+
spec.add_runtime_dependency( 'excon' , '~> 0.37' )
|
14
|
+
spec.add_runtime_dependency( 'trollop' , '~> 2.0' )
|
15
|
+
spec.add_runtime_dependency( 'logging' , '~> 1.8' )
|
16
16
|
|
17
17
|
# The Development Dependencies
|
18
|
-
spec.add_development_dependency( 'rake' , '~> 10.1'
|
19
|
-
spec.add_development_dependency( 'rack-test' , '~> 0.6
|
20
|
-
spec.add_development_dependency( 'builder' , '~> 3.2'
|
21
|
-
spec.add_development_dependency( 'minitest' , '~> 5.0'
|
22
|
-
spec.add_development_dependency( 'rdoc' , '~> 4.0'
|
23
|
-
spec.add_development_dependency( 'ronn' , '~> 0.7
|
18
|
+
spec.add_development_dependency( 'rake' , '~> 10.1' )
|
19
|
+
spec.add_development_dependency( 'rack-test' , '~> 0.6' )
|
20
|
+
spec.add_development_dependency( 'builder' , '~> 3.2' )
|
21
|
+
spec.add_development_dependency( 'minitest' , '~> 5.0' )
|
22
|
+
spec.add_development_dependency( 'rdoc' , '~> 4.0' )
|
23
|
+
spec.add_development_dependency( 'ronn' , '~> 0.7' )
|
24
|
+
|
25
|
+
spec.required_rubygems_version = '~> 2.2'
|
24
26
|
|
25
27
|
end
|
26
28
|
|
data/bin/stickler-server
CHANGED
@@ -35,7 +35,7 @@ Trollop::die "unknown sub command #{cmd.inspect}" unless SUB_COMMANDS.include?(
|
|
35
35
|
# ---------------------------------------------------------------------
|
36
36
|
# All for the display of a default
|
37
37
|
# ---------------------------------------------------------------------
|
38
|
-
DEFAULT_HANDLERS = %w[ thin mongrel webrick ]
|
38
|
+
DEFAULT_HANDLERS = %w[ puma thin mongrel webrick ]
|
39
39
|
def rack_handler( handlers = DEFAULT_HANDLERS )
|
40
40
|
handlers = Array( handlers )
|
41
41
|
handlers.each do |name|
|
@@ -61,9 +61,11 @@ Usage: #{exec_name} #{cmd} [options] /path/to/stickler/root
|
|
61
61
|
_
|
62
62
|
opt :daemonize, "Daemonize the server", :default => false
|
63
63
|
opt :host, "The host address to bind to", :type => String, :default =>'0.0.0.0'
|
64
|
-
opt :pid, "Path to write a pid file to after daemonizing", :type => String, :default => 'stickler-server.pid'
|
64
|
+
opt :pid, "Path to write a pid file to after daemonizing", :type => String, :default => File.expand_path('stickler-server.pid')
|
65
65
|
opt :port, "The port to bind to", :type => :int, :default => 6789
|
66
|
-
opt :server, "The rack handler:
|
66
|
+
opt :server, "The rack handler: #{DEFAULT_HANDLERS.join(', ')} etc", :type => String, :default => rack_handler
|
67
|
+
opt :debug, "Turn on debugging", :default => false
|
68
|
+
opt :warn, "Turn on ruby warnings", :default => false
|
67
69
|
end
|
68
70
|
|
69
71
|
# case changes for rack handlers, don't ask my why. I'm keeping the
|
@@ -87,13 +89,9 @@ rack_options[:app] = ::Stickler::Server.new( stickler_root ).app
|
|
87
89
|
|
88
90
|
case cmd
|
89
91
|
when "start"
|
90
|
-
|
91
|
-
# http://github.com/rack/rack/commit/c73b474525bace3f059a130b15413abd4d917086
|
92
|
-
# makes it into a release.
|
93
|
-
r = ::Rack::Server.new(rack_options)
|
94
|
-
r.instance_variable_set('@app', rack_options[:app])
|
95
|
-
r.start
|
92
|
+
Rack::Server.start(rack_options)
|
96
93
|
when "stop"
|
94
|
+
abort "pid file #{rack_options[:pid]} does not exist" unless File.exist?( rack_options[:pid] )
|
97
95
|
pid = Float( File.read( rack_options[:pid] ) ).to_i
|
98
96
|
Process.kill( "INT", pid )
|
99
97
|
20.times do
|
data/lib/stickler.rb
CHANGED
data/tasks/default.rake
CHANGED
@@ -12,7 +12,7 @@ namespace :develop do
|
|
12
12
|
# gemspec.
|
13
13
|
task :default do
|
14
14
|
require 'rubygems/dependency_installer'
|
15
|
-
installer = Gem::DependencyInstaller.new
|
15
|
+
installer = ::Gem::DependencyInstaller.new
|
16
16
|
|
17
17
|
This.set_coverage_gem
|
18
18
|
|
@@ -31,6 +31,8 @@ namespace :develop do
|
|
31
31
|
# Create a Gemfile that just references the gemspec
|
32
32
|
file 'Gemfile' => :gemspec do
|
33
33
|
File.open( "Gemfile", "w+" ) do |f|
|
34
|
+
f.puts "# DO NOT EDIT - This file is automatically generated"
|
35
|
+
f.puts "# Make changes to Manifest.txt and/or Rakefile and regenerate"
|
34
36
|
f.puts 'source "https://rubygems.org/"'
|
35
37
|
f.puts 'gemspec'
|
36
38
|
end
|
@@ -223,6 +225,8 @@ task :fixme => "fixme:default"
|
|
223
225
|
desc "Build the #{This.name}.gemspec file"
|
224
226
|
task :gemspec do
|
225
227
|
File.open( This.gemspec_file, "wb+" ) do |f|
|
228
|
+
f.puts "# DO NOT EDIT - This file is automatically generated"
|
229
|
+
f.puts "# Make changes to Manifest.txt and/or Rakefile and regenerate"
|
226
230
|
f.write This.platform_gemspec.to_ruby
|
227
231
|
end
|
228
232
|
end
|
@@ -235,7 +239,7 @@ CLOBBER << FileList["**/*.rbc"]
|
|
235
239
|
|
236
240
|
# The standard gem packaging task, everyone has it.
|
237
241
|
require 'rubygems/package_task'
|
238
|
-
Gem::PackageTask.new( This.platform_gemspec ) do
|
242
|
+
::Gem::PackageTask.new( This.platform_gemspec ) do
|
239
243
|
# nothing
|
240
244
|
end
|
241
245
|
|
data/tasks/this.rb
CHANGED
@@ -132,6 +132,7 @@ class ThisProject
|
|
132
132
|
|
133
133
|
spec.summary = summary
|
134
134
|
spec.description = description
|
135
|
+
spec.license = license
|
135
136
|
|
136
137
|
spec.files = manifest
|
137
138
|
spec.executables = spec.files.grep(/^bin/) { |f| File.basename(f) }
|
@@ -176,7 +177,7 @@ class ThisProject
|
|
176
177
|
if RUBY_VERSION < "1.9.0"
|
177
178
|
platform_gemspec.add_development_dependency( 'rcov', '~> 1.0.0' )
|
178
179
|
else
|
179
|
-
platform_gemspec.add_development_dependency( 'simplecov', '~> 0.
|
180
|
+
platform_gemspec.add_development_dependency( 'simplecov', '~> 0.8.2' )
|
180
181
|
end
|
181
182
|
end
|
182
183
|
|
@@ -200,6 +201,10 @@ class ThisProject
|
|
200
201
|
description_section.join(" ").tr("\n", ' ').gsub(/[{}]/,'').gsub(/\[[^\]]+\]/,'') # strip rdoc
|
201
202
|
end
|
202
203
|
|
204
|
+
def license
|
205
|
+
"ISC"
|
206
|
+
end
|
207
|
+
|
203
208
|
# Internal: The path to the gemspec file
|
204
209
|
def gemspec_file
|
205
210
|
project_path( "#{ name }.gemspec" )
|
metadata
CHANGED
@@ -1,170 +1,170 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: stickler
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.4.
|
4
|
+
version: 2.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jeremy Hinegardner
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2014-06-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sinatra
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - ~>
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '1.4'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - ~>
|
24
|
+
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '1.4'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: addressable
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - ~>
|
31
|
+
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '2.3'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - ~>
|
38
|
+
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '2.3'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: excon
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - ~>
|
45
|
+
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '0.
|
47
|
+
version: '0.37'
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- - ~>
|
52
|
+
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '0.
|
54
|
+
version: '0.37'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: trollop
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- - ~>
|
59
|
+
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: '2.0'
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- - ~>
|
66
|
+
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '2.0'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: logging
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- - ~>
|
73
|
+
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: 1.8
|
75
|
+
version: '1.8'
|
76
76
|
type: :runtime
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
|
-
- - ~>
|
80
|
+
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: 1.8
|
82
|
+
version: '1.8'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: rake
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
|
-
- - ~>
|
87
|
+
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
89
|
version: '10.1'
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
|
-
- - ~>
|
94
|
+
- - "~>"
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: '10.1'
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: rack-test
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
|
-
- - ~>
|
101
|
+
- - "~>"
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version: 0.6
|
103
|
+
version: '0.6'
|
104
104
|
type: :development
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
|
-
- - ~>
|
108
|
+
- - "~>"
|
109
109
|
- !ruby/object:Gem::Version
|
110
|
-
version: 0.6
|
110
|
+
version: '0.6'
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
112
|
name: builder
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
114
114
|
requirements:
|
115
|
-
- - ~>
|
115
|
+
- - "~>"
|
116
116
|
- !ruby/object:Gem::Version
|
117
117
|
version: '3.2'
|
118
118
|
type: :development
|
119
119
|
prerelease: false
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
121
121
|
requirements:
|
122
|
-
- - ~>
|
122
|
+
- - "~>"
|
123
123
|
- !ruby/object:Gem::Version
|
124
124
|
version: '3.2'
|
125
125
|
- !ruby/object:Gem::Dependency
|
126
126
|
name: minitest
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|
128
128
|
requirements:
|
129
|
-
- - ~>
|
129
|
+
- - "~>"
|
130
130
|
- !ruby/object:Gem::Version
|
131
131
|
version: '5.0'
|
132
132
|
type: :development
|
133
133
|
prerelease: false
|
134
134
|
version_requirements: !ruby/object:Gem::Requirement
|
135
135
|
requirements:
|
136
|
-
- - ~>
|
136
|
+
- - "~>"
|
137
137
|
- !ruby/object:Gem::Version
|
138
138
|
version: '5.0'
|
139
139
|
- !ruby/object:Gem::Dependency
|
140
140
|
name: rdoc
|
141
141
|
requirement: !ruby/object:Gem::Requirement
|
142
142
|
requirements:
|
143
|
-
- - ~>
|
143
|
+
- - "~>"
|
144
144
|
- !ruby/object:Gem::Version
|
145
145
|
version: '4.0'
|
146
146
|
type: :development
|
147
147
|
prerelease: false
|
148
148
|
version_requirements: !ruby/object:Gem::Requirement
|
149
149
|
requirements:
|
150
|
-
- - ~>
|
150
|
+
- - "~>"
|
151
151
|
- !ruby/object:Gem::Version
|
152
152
|
version: '4.0'
|
153
153
|
- !ruby/object:Gem::Dependency
|
154
154
|
name: ronn
|
155
155
|
requirement: !ruby/object:Gem::Requirement
|
156
156
|
requirements:
|
157
|
-
- - ~>
|
157
|
+
- - "~>"
|
158
158
|
- !ruby/object:Gem::Version
|
159
|
-
version: 0.7
|
159
|
+
version: '0.7'
|
160
160
|
type: :development
|
161
161
|
prerelease: false
|
162
162
|
version_requirements: !ruby/object:Gem::Requirement
|
163
163
|
requirements:
|
164
|
-
- - ~>
|
164
|
+
- - "~>"
|
165
165
|
- !ruby/object:Gem::Version
|
166
|
-
version: 0.7
|
167
|
-
description:
|
166
|
+
version: '0.7'
|
167
|
+
description: 'Stickler is a tool to organize and maintain an internal gem repository.
|
168
168
|
Primarily, you would want to use Stickler if: 1. You have proprietary gems that
|
169
169
|
you want to have available via a gem server so you may `gem install` them. 2.
|
170
170
|
You would like to have a local mirror of third party gems from either http://rubygems.org
|
@@ -282,31 +282,32 @@ files:
|
|
282
282
|
- test/test_spec_lite.rb
|
283
283
|
- test/test_stickler.rb
|
284
284
|
homepage: http://github.com/copiousfreetime/stickler
|
285
|
-
licenses:
|
285
|
+
licenses:
|
286
|
+
- ISC
|
286
287
|
metadata: {}
|
287
288
|
post_install_message:
|
288
289
|
rdoc_options:
|
289
|
-
- --main
|
290
|
+
- "--main"
|
290
291
|
- README.md
|
291
|
-
- --markup
|
292
|
+
- "--markup"
|
292
293
|
- tomdoc
|
293
294
|
require_paths:
|
294
295
|
- lib
|
295
296
|
required_ruby_version: !ruby/object:Gem::Requirement
|
296
297
|
requirements:
|
297
|
-
- -
|
298
|
+
- - ">="
|
298
299
|
- !ruby/object:Gem::Version
|
299
300
|
version: '0'
|
300
301
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
301
302
|
requirements:
|
302
|
-
- -
|
303
|
+
- - "~>"
|
303
304
|
- !ruby/object:Gem::Version
|
304
|
-
version: '
|
305
|
+
version: '2.2'
|
305
306
|
requirements: []
|
306
307
|
rubyforge_project:
|
307
|
-
rubygems_version: 2.
|
308
|
+
rubygems_version: 2.2.2
|
308
309
|
signing_key:
|
309
310
|
specification_version: 4
|
310
|
-
summary:
|
311
|
+
summary: 'Stickler is a tool to organize and maintain an internal gem repository.
|
311
312
|
Primarily, you would want to use Stickler if:'
|
312
313
|
test_files: []
|