regurgitator 0.5.0 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: ed9d2a76a17329acf6c4fe3173d0a9297e8e0e99
4
+ data.tar.gz: a34c5e6faa9ff4db976ab74c5e015ead1b2b0d07
5
+ SHA512:
6
+ metadata.gz: 4f5e40800c1ac7cd573c7a9ce9b0669abff13203908ca061b69f8f1e2ae1e0276be8feb6d928d0f561caed52320f3dc0a51e3df13950377e4c95a6a741d305c2
7
+ data.tar.gz: ac78ce6d8c2a8498483f597d4d1e2905bf49f583a8187f7e7529b12efe80ed3c782e9767fa9140bcc503c976a841f1330209e927a30b9543fdfb395f23cf9dd6
data/GIT-VERSION-GEN CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/bin/sh
2
2
 
3
3
  GVF=GIT-VERSION-FILE
4
- DEF_VER=v0.5.0
4
+ DEF_VER=v0.6.0
5
5
 
6
6
  LF='
7
7
  '
data/LICENSE CHANGED
@@ -1,18 +1,15 @@
1
- regurgitator is copyrighted Free Software by all contributors, see logs
2
- in revision control for names and email addresses of all of them.
1
+ regurgitator is copyrighted Free Software by all contributors,
2
+ see logs in revision control for names and email addresses of all of them.
3
3
 
4
4
  You can redistribute it and/or modify it under the terms of the GNU
5
5
  General Public License (GPL) as published by the Free Software
6
6
  Foundation, version {2}[http://www.gnu.org/licenses/gpl-2.0.txt] or
7
- or {3}[http://www.gnu.org/licenses/gpl-3.0.txt] (see link:COPYING).
8
- The regurgitator project leader (Eric Wong) reserves the right to
9
- relicense regurgitator under future versions of the GPL.
7
+ (at your option) any later version.
10
8
 
11
- regurgitator is distributed in the hope that it will be useful, but
12
- WITHOUT ANY WARRANTY; without even the implied warranty of
13
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
- General Public License for more details.
9
+ regurgitator is distributed in the hope that it will be useful, but WITHOUT
10
+ ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11
+ FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
12
+ License for more details.
15
13
 
16
- You should have received a copy of the GNU General Public License
17
- along with this library; if not, write to the Free Software Foundation,
18
- Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
14
+ You should have received a copy of the GNU Lesser General Public License
15
+ along with this library; if not, see <http://www.gnu.org/licenses/>
@@ -12,22 +12,19 @@ module Regurgitator::Domain
12
12
 
13
13
  # returns the +dmid+ (domain identifier/primary key) for a string +domain+
14
14
  def get_dmid(domain)
15
- rv = refresh_domain[domain] and return rv
16
- return false if false == rv
17
- rv = refresh_domain(true)[domain] and return rv
18
- @domain_lock.synchronize { @domain_cache[domain] = false }
15
+ refresh_domain[domain] || false
19
16
  end
20
17
 
21
18
  # We cache the list of all available domains in memory, this shouldn't
22
19
  # be too huge, though...
23
20
  #
24
21
  # Returns a hash with string namespaces as keys and dmids as values
25
- def refresh_domain(force = false) # :nodoc:
26
- @domain_lock.synchronize { refresh_domain_unlocked(force) }
22
+ def refresh_domain # :nodoc:
23
+ @domain_lock.synchronize { refresh_domain_unlocked }
27
24
  end
28
25
 
29
- def refresh_domain_unlocked(force) # :nodoc:
30
- return @domain_cache if ! force && ((Time.now - @domain_cache_mtime) < 60)
26
+ def refresh_domain_unlocked # :nodoc:
27
+ return @domain_cache if ((Time.now - @domain_cache_mtime) < 15)
31
28
  tmp = {}
32
29
  @db[REFRESH_DOMAIN].each { |x| tmp[x[:namespace].freeze] = x[:dmid] }
33
30
  @domain_cache_mtime = Time.now
data/regurgitator.gemspec CHANGED
@@ -23,8 +23,7 @@ Gem::Specification.new do |s|
23
23
  s.add_dependency("rack", ["~> 1.3"])
24
24
  s.add_dependency("sequel", ["~> 4.0"])
25
25
  s.add_dependency("http_spew", ["~> 0.4", ">= 0.4.1" ])
26
- s.add_dependency("rpatricia")
27
-
28
- s.add_development_dependency('wrongdoc', "~> 1.7")
29
- # s.licenses = %w(GPL2 GPL3) # accessor not compatible with older RubyGems
26
+ s.add_dependency("rpatricia", ["~> 1.0"])
27
+ s.add_development_dependency('wrongdoc', "~> 1.8")
28
+ s.licenses = %w(GPLv2+)
30
29
  end
@@ -55,6 +55,7 @@ t_begin "using CNAME host name" && {
55
55
  UPDATE domain SET namespace = 'i-have-a-cname.example.org'
56
56
  WHERE namespace = 'd';
57
57
  EOF
58
+ sleep 16
58
59
  cksum="$(curl -sSvf 2> $curl_err \
59
60
  -H Host:i-have-a-cname.example.org \
60
61
  http://$listen/blah | cksum)"
metadata CHANGED
@@ -1,114 +1,99 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: regurgitator
3
- version: !ruby/object:Gem::Version
4
- hash: 11
5
- prerelease:
6
- segments:
7
- - 0
8
- - 5
9
- - 0
10
- version: 0.5.0
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.6.0
11
5
  platform: ruby
12
- authors:
6
+ authors:
13
7
  - Regurgitators
14
8
  autorequire:
15
9
  bindir: bin
16
10
  cert_chain: []
17
-
18
- date: 2013-09-10 00:00:00 Z
19
- dependencies:
20
- - !ruby/object:Gem::Dependency
11
+ date: 2014-05-19 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
21
14
  name: rack
22
- prerelease: false
23
- requirement: &id001 !ruby/object:Gem::Requirement
24
- none: false
25
- requirements:
26
- - - ~>
27
- - !ruby/object:Gem::Version
28
- hash: 9
29
- segments:
30
- - 1
31
- - 3
32
- version: "1.3"
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.3'
33
20
  type: :runtime
34
- version_requirements: *id001
35
- - !ruby/object:Gem::Dependency
36
- name: sequel
37
21
  prerelease: false
38
- requirement: &id002 !ruby/object:Gem::Requirement
39
- none: false
40
- requirements:
41
- - - ~>
42
- - !ruby/object:Gem::Version
43
- hash: 27
44
- segments:
45
- - 4
46
- - 0
47
- version: "4.0"
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.3'
27
+ - !ruby/object:Gem::Dependency
28
+ name: sequel
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '4.0'
48
34
  type: :runtime
49
- version_requirements: *id002
50
- - !ruby/object:Gem::Dependency
51
- name: http_spew
52
35
  prerelease: false
53
- requirement: &id003 !ruby/object:Gem::Requirement
54
- none: false
55
- requirements:
56
- - - ~>
57
- - !ruby/object:Gem::Version
58
- hash: 3
59
- segments:
60
- - 0
61
- - 4
62
- version: "0.4"
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '4.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: http_spew
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '0.4'
63
48
  - - ">="
64
- - !ruby/object:Gem::Version
65
- hash: 13
66
- segments:
67
- - 0
68
- - 4
69
- - 1
49
+ - !ruby/object:Gem::Version
70
50
  version: 0.4.1
71
51
  type: :runtime
72
- version_requirements: *id003
73
- - !ruby/object:Gem::Dependency
74
- name: rpatricia
75
52
  prerelease: false
76
- requirement: &id004 !ruby/object:Gem::Requirement
77
- none: false
78
- requirements:
53
+ version_requirements: !ruby/object:Gem::Requirement
54
+ requirements:
55
+ - - "~>"
56
+ - !ruby/object:Gem::Version
57
+ version: '0.4'
79
58
  - - ">="
80
- - !ruby/object:Gem::Version
81
- hash: 3
82
- segments:
83
- - 0
84
- version: "0"
59
+ - !ruby/object:Gem::Version
60
+ version: 0.4.1
61
+ - !ruby/object:Gem::Dependency
62
+ name: rpatricia
63
+ requirement: !ruby/object:Gem::Requirement
64
+ requirements:
65
+ - - "~>"
66
+ - !ruby/object:Gem::Version
67
+ version: '1.0'
85
68
  type: :runtime
86
- version_requirements: *id004
87
- - !ruby/object:Gem::Dependency
88
- name: wrongdoc
89
69
  prerelease: false
90
- requirement: &id005 !ruby/object:Gem::Requirement
91
- none: false
92
- requirements:
93
- - - ~>
94
- - !ruby/object:Gem::Version
95
- hash: 1
96
- segments:
97
- - 1
98
- - 7
99
- version: "1.7"
70
+ version_requirements: !ruby/object:Gem::Requirement
71
+ requirements:
72
+ - - "~>"
73
+ - !ruby/object:Gem::Version
74
+ version: '1.0'
75
+ - !ruby/object:Gem::Dependency
76
+ name: wrongdoc
77
+ requirement: !ruby/object:Gem::Requirement
78
+ requirements:
79
+ - - "~>"
80
+ - !ruby/object:Gem::Version
81
+ version: '1.8'
100
82
  type: :development
101
- version_requirements: *id005
83
+ prerelease: false
84
+ version_requirements: !ruby/object:Gem::Requirement
85
+ requirements:
86
+ - - "~>"
87
+ - !ruby/object:Gem::Version
88
+ version: '1.8'
102
89
  description: |-
103
90
  \Regurgitator is an GPL-licensed library and Rack middleware for
104
91
  serving files stored in MogileFS. It can be embedded inside
105
92
  any existing Rack application or be used as a standalone Rack app.
106
93
  email: barfs@librelist.org
107
94
  executables: []
108
-
109
95
  extensions: []
110
-
111
- extra_rdoc_files:
96
+ extra_rdoc_files:
112
97
  - ChangeLog
113
98
  - lib/regurgitator.rb
114
99
  - lib/regurgitator/device.rb
@@ -126,11 +111,11 @@ extra_rdoc_files:
126
111
  - NEWS
127
112
  - README
128
113
  - LICENSE
129
- files:
130
- - .document
131
- - .gitignore
132
- - .manifest
133
- - .wrongdoc.yml
114
+ files:
115
+ - ".document"
116
+ - ".gitignore"
117
+ - ".manifest"
118
+ - ".wrongdoc.yml"
134
119
  - COPYING
135
120
  - ChangeLog
136
121
  - GIT-VERSION-FILE
@@ -176,42 +161,34 @@ files:
176
161
  - test/test_local.rb
177
162
  - test/test_server_settings.rb
178
163
  homepage: http://bogomips.org/regurgitator/
179
- licenses: []
180
-
164
+ licenses:
165
+ - GPLv2+
166
+ metadata: {}
181
167
  post_install_message:
182
- rdoc_options:
183
- - -t
184
- - \Regurgitator - read-only Rack endpoints for MogileFS
185
- - -W
168
+ rdoc_options:
169
+ - "-t"
170
+ - "\\Regurgitator - read-only Rack endpoints for MogileFS"
171
+ - "-W"
186
172
  - http://bogomips.org/regurgitator.git/tree/%s
187
- require_paths:
173
+ require_paths:
188
174
  - lib
189
- required_ruby_version: !ruby/object:Gem::Requirement
190
- none: false
191
- requirements:
175
+ required_ruby_version: !ruby/object:Gem::Requirement
176
+ requirements:
192
177
  - - ">="
193
- - !ruby/object:Gem::Version
194
- hash: 3
195
- segments:
196
- - 0
197
- version: "0"
198
- required_rubygems_version: !ruby/object:Gem::Requirement
199
- none: false
200
- requirements:
178
+ - !ruby/object:Gem::Version
179
+ version: '0'
180
+ required_rubygems_version: !ruby/object:Gem::Requirement
181
+ requirements:
201
182
  - - ">="
202
- - !ruby/object:Gem::Version
203
- hash: 3
204
- segments:
205
- - 0
206
- version: "0"
183
+ - !ruby/object:Gem::Version
184
+ version: '0'
207
185
  requirements: []
208
-
209
186
  rubyforge_project: rainbows
210
- rubygems_version: 1.8.24
187
+ rubygems_version: 2.2.2
211
188
  signing_key:
212
- specification_version: 3
189
+ specification_version: 4
213
190
  summary: read-only Rack endpoints for MogileFS
214
- test_files:
191
+ test_files:
215
192
  - test/test_local.rb
216
193
  - test/test_server_settings.rb
217
194
  - test/test_list_keys.rb