omgf 0.0.8 → 0.0.9

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 47f159650900670bddc7847dc6e00f18e30b7e92c160da4c733cf0ac91f9862e
4
+ data.tar.gz: ba808f62c3de3353db8f9e6ab2ab630a7d0ea63f52bcd196c0280dec34816178
5
+ SHA512:
6
+ metadata.gz: f4702c24dc0beda993d1bbd1201c0caf0d7a462875a740eb86fb9b6395ec97a9341a3ddf8c55afbf9c4880b3642c82417c50a607f37e3cf5bafe004c1b5cea53
7
+ data.tar.gz: 4c8cdd49598c473a7620c81d3e727ac3c3382b9b6858c092e20c7f3dece5914bddbf3b79200639f1fc1836463dddd105301bef75262742e3d06344faca0630ee
data/.document CHANGED
@@ -1,4 +1,3 @@
1
- ChangeLog
2
1
  lib
3
2
  NEWS
4
3
  README
data/.gitignore CHANGED
@@ -13,3 +13,4 @@ pkg/
13
13
  /tmp
14
14
  /LATEST
15
15
  lib/omgf/version.rb
16
+ *.xml
@@ -0,0 +1,4 @@
1
+ ---
2
+ cgit_url: https://yhbt.net/omgf.git
3
+ git_url: https://yhbt.net/omgf.git
4
+ rdoc_url: https://yhbt.net/omgf/
@@ -2,7 +2,7 @@
2
2
  CONSTANT = "OMGF::VERSION"
3
3
  RVF = "lib/omgf/version.rb"
4
4
  GVF = "GIT-VERSION-FILE"
5
- DEF_VER = "v0.0.8"
5
+ DEF_VER = "v0.0.9"
6
6
  vn = DEF_VER
7
7
 
8
8
  # First see if there is a version file (included in release tarballs),
@@ -1,6 +1,5 @@
1
1
  all::
2
- RSYNC_DEST := bogomips.org:/srv/bogomips/omgf
3
- rfproject := rainbows
2
+ RSYNC_DEST := yhbt.net:/srv/yhbt/omgf
4
3
  rfpackage := omgf
5
4
  pkg_extra += lib/omgf/version.rb
6
5
  include pkg.mk
data/README CHANGED
@@ -6,7 +6,7 @@ libraries to interface with MogileFS. Currently, HystericalRaisins
6
6
  is supported. OMGF is short for "OMGFiles", an anagram for "MogileFS".
7
7
 
8
8
  It is built on top of the
9
- {Ruby mogilefs-client}[http://bogomips.org/mogilefs-client] library
9
+ {Ruby mogilefs-client}[http://yhbt.net/mogilefs-client] library
10
10
 
11
11
  == Features
12
12
 
@@ -30,7 +30,7 @@ You may install it via RubyGems on RubyGems.org:
30
30
  You can get the latest source via git from the following locations
31
31
  (these versions may not be stable):
32
32
 
33
- git://bogomips.org/omgf.git
33
+ git://yhbt.net/omgf.git
34
34
  git://repo.or.cz/omgf.git (mirror)
35
35
 
36
36
  You may browse the code from the web and download the latest snapshot
@@ -6,10 +6,10 @@ require "pp"
6
6
  vp = OMGF::VerifyPaths.new(Logger.new($stderr))
7
7
  urls = %w(
8
8
  http://yhbt.net/
9
- http://bogomips.org/omgf.git
10
- http://bogomips.org/ozZZZZmgf.git
11
- http://bogomips.org/ozZZZZ
12
- http://bogomips.org/
9
+ http://yhbt.net/omgf.git
10
+ http://yhbt.net/ozZZZZmgf.git
11
+ http://yhbt.net/ozZZZZ
12
+ http://yhbt.net/
13
13
  http://127.0.0.1:666/
14
14
  )
15
15
  uris = urls.map { |uri| URI(uri) }
@@ -32,7 +32,7 @@ module OMGF::Regurgitator
32
32
  end
33
33
 
34
34
  def _uris!(info)
35
- info[:uris].values.flatten!
35
+ info[:uris].values.flatten! || []
36
36
  end
37
37
 
38
38
  def mg_get_uris(env, domain, key, get_path_opts = {})
@@ -1,23 +1,19 @@
1
- # -*- encoding: binary -*-
2
- ENV["VERSION"] or abort "VERSION= must be specified"
3
- manifest = File.readlines('.manifest').map! { |x| x.chomp! }
4
- require 'wrongdoc'
5
- extend Wrongdoc::Gemspec
6
- name, summary, title = readme_metadata
1
+ manifest = File.exist?('.manifest') ?
2
+ IO.readlines('.manifest').map!(&:chomp!) : `git ls-files`.split("\n")
7
3
 
8
4
  Gem::Specification.new do |s|
9
5
  s.name = %q{omgf}
10
- s.version = ENV["VERSION"].dup
6
+ s.version = (ENV['VERSION'] || '0.0.9').dup
11
7
 
12
8
  s.authors = ["OMGF hackers"]
13
- s.date = Time.now.utc.strftime('%Y-%m-%d')
14
- s.description = readme_description
15
- s.email = %q{omgf@librelist.org}
16
- s.extra_rdoc_files = extra_rdoc_files(manifest)
9
+ s.email = %q{bofh@yhbt.net}
10
+ s.description = File.read('README').split("\n\n")[1]
11
+ s.extra_rdoc_files = IO.readlines('.document').map!(&:chomp!).keep_if do |f|
12
+ File.exist?(f)
13
+ end
17
14
  s.files = manifest
18
- s.homepage = Wrongdoc.config[:rdoc_url]
19
- s.summary = summary
20
- s.rdoc_options = rdoc_options
15
+ s.homepage = 'https://yhbt.net/omgf/'
16
+ s.summary = 'hysterical REST API for MogileFS using Rack'
21
17
  s.test_files = Dir['test/test_*.rb']
22
18
  s.add_dependency('rack', ['~> 1.3'])
23
19
  s.add_dependency('kgio', ['~> 2.7'])
@@ -26,5 +22,5 @@ Gem::Specification.new do |s|
26
22
  s.add_development_dependency('regurgitator')
27
23
  s.add_development_dependency('sqlite3')
28
24
 
29
- s.licenses = %w(AGPLv3+)
25
+ s.licenses = %w(AGPL-3.0+)
30
26
  end
data/pkg.mk CHANGED
@@ -1,7 +1,8 @@
1
1
  RUBY = ruby
2
2
  RAKE = rake
3
3
  RSYNC = rsync
4
- WRONGDOC = wrongdoc
4
+ OLDDOC = olddoc
5
+ RDOC = rdoc
5
6
 
6
7
  GIT-VERSION-FILE: .FORCE-GIT-VERSION-FILE
7
8
  @./GIT-VERSION-GEN
@@ -12,14 +13,6 @@ RUBY_VERSION := $(shell $(RUBY) -e 'puts RUBY_VERSION')
12
13
  RUBY_ENGINE := $(shell $(RUBY) -e 'puts((RUBY_ENGINE rescue "ruby"))')
13
14
  lib := lib
14
15
 
15
- ifeq ($(shell test -f script/isolate_for_tests && echo t),t)
16
- isolate_libs := tmp/isolate/$(RUBY_ENGINE)-$(RUBY_VERSION)/isolate.mk
17
- $(isolate_libs): script/isolate_for_tests
18
- @$(RUBY) script/isolate_for_tests
19
- -include $(isolate_libs)
20
- lib := $(lib):$(ISOLATE_LIBS)
21
- endif
22
-
23
16
  ext := $(firstword $(wildcard ext/*))
24
17
  ifneq ($(ext),)
25
18
  ext_pfx := tmp/ext/$(RUBY_ENGINE)-$(RUBY_VERSION)
@@ -36,7 +29,7 @@ $(ext_pfx)/$(ext)/%: $(ext)/% $(ext_d)
36
29
  install -m 644 $< $@
37
30
  $(ext_pfx)/$(ext)/Makefile: $(ext)/extconf.rb $(ext_d) $(ext_h)
38
31
  $(RM) -f $(@D)/*.o
39
- cd $(@D) && $(RUBY) $(CURDIR)/$(ext)/extconf.rb
32
+ cd $(@D) && $(RUBY) $(CURDIR)/$(ext)/extconf.rb $(EXTCONF_ARGS)
40
33
  ext_sfx := _ext.$(DLEXT)
41
34
  ext_dl := $(ext_pfx)/$(ext)/$(notdir $(ext)_ext.$(DLEXT))
42
35
  $(ext_dl): $(ext_src) $(ext_pfx_src) $(ext_pfx)/$(ext)/Makefile
@@ -48,10 +41,10 @@ else
48
41
  build:
49
42
  endif
50
43
 
51
- pkg_extra += GIT-VERSION-FILE NEWS ChangeLog LATEST
52
- ChangeLog: GIT-VERSION-FILE .wrongdoc.yml
53
- $(WRONGDOC) prepare
54
- NEWS LATEST: ChangeLog
44
+ pkg_extra += GIT-VERSION-FILE NEWS LATEST
45
+ NEWS: GIT-VERSION-FILE .olddoc.yml
46
+ $(OLDDOC) prepare
47
+ LATEST: NEWS
55
48
 
56
49
  manifest:
57
50
  $(RM) .manifest
@@ -63,28 +56,20 @@ manifest:
63
56
  cmp $@+ $@ || mv $@+ $@
64
57
  $(RM) $@+
65
58
 
66
- doc:: .document .wrongdoc.yml $(pkg_extra)
59
+ doc:: .document .olddoc.yml $(pkg_extra) $(PLACEHOLDERS)
67
60
  -find lib -type f -name '*.rbc' -exec rm -f '{}' ';'
68
61
  -find ext -type f -name '*.rbc' -exec rm -f '{}' ';'
69
62
  $(RM) -r doc
70
- $(WRONGDOC) all
63
+ $(RDOC) -f dark216
64
+ $(OLDDOC) merge
71
65
  install -m644 COPYING doc/COPYING
66
+ install -m644 NEWS doc/NEWS
67
+ install -m644 NEWS.atom.xml doc/NEWS.atom.xml
72
68
  install -m644 $(shell LC_ALL=C grep '^[A-Z]' .document) doc/
73
69
 
74
70
  ifneq ($(VERSION),)
75
71
  pkggem := pkg/$(rfpackage)-$(VERSION).gem
76
72
  pkgtgz := pkg/$(rfpackage)-$(VERSION).tgz
77
- release_notes := release_notes-$(VERSION)
78
- release_changes := release_changes-$(VERSION)
79
-
80
- release-notes: $(release_notes)
81
- release-changes: $(release_changes)
82
- $(release_changes):
83
- $(WRONGDOC) release_changes > $@+
84
- $(VISUAL) $@+ && test -s $@+ && mv $@+ $@
85
- $(release_notes):
86
- $(WRONGDOC) release_notes > $@+
87
- $(VISUAL) $@+ && test -s $@+ && mv $@+ $@
88
73
 
89
74
  # ensures we're actually on the tagged $(VERSION), only used for release
90
75
  verify:
@@ -101,7 +86,7 @@ fix-perms:
101
86
  gem: $(pkggem)
102
87
 
103
88
  install-gem: $(pkggem)
104
- gem install $(CURDIR)/$<
89
+ gem install --local $(CURDIR)/$<
105
90
 
106
91
  $(pkggem): manifest fix-perms
107
92
  gem build $(rfpackage).gemspec
@@ -120,42 +105,27 @@ $(pkgtgz): manifest fix-perms
120
105
 
121
106
  package: $(pkgtgz) $(pkggem)
122
107
 
123
- test-release:: verify package $(release_notes) $(release_changes)
124
- # make tgz release on RubyForge
125
- @echo rubyforge add_release -f \
126
- -n $(release_notes) -a $(release_changes) \
127
- $(rfproject) $(rfpackage) $(VERSION) $(pkgtgz)
128
- @echo gem push $(pkggem)
129
- @echo rubyforge add_file \
130
- $(rfproject) $(rfpackage) $(VERSION) $(pkggem)
131
- release:: verify package $(release_notes) $(release_changes)
132
- # make tgz release on RubyForge
133
- rubyforge add_release -f -n $(release_notes) -a $(release_changes) \
134
- $(rfproject) $(rfpackage) $(VERSION) $(pkgtgz)
108
+ release:: verify package
135
109
  # push gem to RubyGems.org
136
110
  gem push $(pkggem)
137
- # in case of gem downloads from RubyForge releases page
138
- rubyforge add_file \
139
- $(rfproject) $(rfpackage) $(VERSION) $(pkggem)
140
111
  else
141
112
  gem install-gem: GIT-VERSION-FILE
142
113
  $(MAKE) $@ VERSION=$(GIT_VERSION)
143
114
  endif
144
115
 
145
- all:: test
116
+ all:: check
146
117
  test_units := $(wildcard test/test_*.rb)
147
- test: test-unit
118
+ test: check
119
+ check: test-unit
148
120
  test-unit: $(test_units)
149
121
  $(test_units): build
150
- $(RUBY) -I $(lib) $@ $(RUBY_TEST_OPTS)
122
+ $(VALGRIND) $(RUBY) -w -I $(lib) $@ $(RUBY_TEST_OPTS)
151
123
 
152
124
  # this requires GNU coreutils variants
153
125
  ifneq ($(RSYNC_DEST),)
154
126
  publish_doc:
155
127
  -git set-file-times
156
128
  $(MAKE) doc
157
- find doc/images -type f | \
158
- TZ=UTC xargs touch -d '1970-01-01 00:00:06' doc/rdoc.css
159
129
  $(MAKE) doc_gz
160
130
  $(RSYNC) -av doc/ $(RSYNC_DEST)/
161
131
  git ls-files | xargs touch
@@ -163,7 +133,7 @@ endif
163
133
 
164
134
  # Create gzip variants of the same timestamp as the original so nginx
165
135
  # "gzip_static on" can serve the gzipped versions directly.
166
- doc_gz: docs = $(shell find doc -type f ! -regex '^.*\.\(gif\|jpg\|png\|gz\)$$')
136
+ doc_gz: docs = $(shell find doc -type f ! -regex '^.*\.gz$$')
167
137
  doc_gz:
168
138
  for i in $(docs); do \
169
139
  gzip --rsyncable -9 < $$i > $$i.gz; touch -r $$i $$i.gz; done
@@ -171,5 +141,10 @@ check-warnings:
171
141
  @(for i in $$(git ls-files '*.rb'| grep -v '^setup\.rb$$'); \
172
142
  do $(RUBY) -d -W2 -c $$i; done) | grep -v '^Syntax OK$$' || :
173
143
 
174
- .PHONY: all .FORCE-GIT-VERSION-FILE doc test $(test_units) manifest
144
+ ifneq ($(PLACEHOLDERS),)
145
+ $(PLACEHOLDERS):
146
+ echo olddoc_placeholder > $@
147
+ endif
148
+
149
+ .PHONY: all .FORCE-GIT-VERSION-FILE doc check test $(test_units) manifest
175
150
  .PHONY: check-warnings
metadata CHANGED
@@ -1,164 +1,116 @@
1
1
  --- !ruby/object:Gem::Specification
2
- name: !binary |-
3
- b21nZg==
2
+ name: omgf
4
3
  version: !ruby/object:Gem::Version
5
- version: 0.0.8
6
- prerelease:
4
+ version: 0.0.9
7
5
  platform: ruby
8
6
  authors:
9
- - !binary |-
10
- T01HRiBoYWNrZXJz
7
+ - OMGF hackers
11
8
  autorequire:
12
9
  bindir: bin
13
10
  cert_chain: []
14
- date: 2014-05-27 00:00:00.000000000 Z
11
+ date: 2020-02-22 00:00:00.000000000 Z
15
12
  dependencies:
16
13
  - !ruby/object:Gem::Dependency
17
- name: !binary |-
18
- cmFjaw==
14
+ name: rack
19
15
  requirement: !ruby/object:Gem::Requirement
20
- none: false
21
16
  requirements:
22
- - - !binary |-
23
- fj4=
17
+ - - "~>"
24
18
  - !ruby/object:Gem::Version
25
- version: !binary |-
26
- MS4z
19
+ version: '1.3'
27
20
  type: :runtime
28
21
  prerelease: false
29
22
  version_requirements: !ruby/object:Gem::Requirement
30
- none: false
31
23
  requirements:
32
- - - !binary |-
33
- fj4=
24
+ - - "~>"
34
25
  - !ruby/object:Gem::Version
35
- version: !binary |-
36
- MS4z
26
+ version: '1.3'
37
27
  - !ruby/object:Gem::Dependency
38
- name: !binary |-
39
- a2dpbw==
28
+ name: kgio
40
29
  requirement: !ruby/object:Gem::Requirement
41
- none: false
42
30
  requirements:
43
- - - !binary |-
44
- fj4=
31
+ - - "~>"
45
32
  - !ruby/object:Gem::Version
46
- version: !binary |-
47
- Mi43
33
+ version: '2.7'
48
34
  type: :runtime
49
35
  prerelease: false
50
36
  version_requirements: !ruby/object:Gem::Requirement
51
- none: false
52
37
  requirements:
53
- - - !binary |-
54
- fj4=
38
+ - - "~>"
55
39
  - !ruby/object:Gem::Version
56
- version: !binary |-
57
- Mi43
40
+ version: '2.7'
58
41
  - !ruby/object:Gem::Dependency
59
- name: !binary |-
60
- a2Nhcg==
42
+ name: kcar
61
43
  requirement: !ruby/object:Gem::Requirement
62
- none: false
63
44
  requirements:
64
- - - !binary |-
65
- fj4=
45
+ - - "~>"
66
46
  - !ruby/object:Gem::Version
67
- version: !binary |-
68
- MC4z
47
+ version: '0.3'
69
48
  type: :runtime
70
49
  prerelease: false
71
50
  version_requirements: !ruby/object:Gem::Requirement
72
- none: false
73
51
  requirements:
74
- - - !binary |-
75
- fj4=
52
+ - - "~>"
76
53
  - !ruby/object:Gem::Version
77
- version: !binary |-
78
- MC4z
54
+ version: '0.3'
79
55
  - !ruby/object:Gem::Dependency
80
- name: !binary |-
81
- bW9naWxlZnMtY2xpZW50
56
+ name: mogilefs-client
82
57
  requirement: !ruby/object:Gem::Requirement
83
- none: false
84
58
  requirements:
85
- - - !binary |-
86
- fj4=
59
+ - - "~>"
87
60
  - !ruby/object:Gem::Version
88
- version: !binary |-
89
- My4x
61
+ version: '3.1'
90
62
  type: :runtime
91
63
  prerelease: false
92
64
  version_requirements: !ruby/object:Gem::Requirement
93
- none: false
94
65
  requirements:
95
- - - !binary |-
96
- fj4=
66
+ - - "~>"
97
67
  - !ruby/object:Gem::Version
98
- version: !binary |-
99
- My4x
68
+ version: '3.1'
100
69
  - !ruby/object:Gem::Dependency
101
- name: !binary |-
102
- cmVndXJnaXRhdG9y
70
+ name: regurgitator
103
71
  requirement: !ruby/object:Gem::Requirement
104
- none: false
105
72
  requirements:
106
- - - ! '>='
73
+ - - ">="
107
74
  - !ruby/object:Gem::Version
108
75
  version: '0'
109
76
  type: :development
110
77
  prerelease: false
111
78
  version_requirements: !ruby/object:Gem::Requirement
112
- none: false
113
79
  requirements:
114
- - - ! '>='
80
+ - - ">="
115
81
  - !ruby/object:Gem::Version
116
82
  version: '0'
117
83
  - !ruby/object:Gem::Dependency
118
- name: !binary |-
119
- c3FsaXRlMw==
84
+ name: sqlite3
120
85
  requirement: !ruby/object:Gem::Requirement
121
- none: false
122
86
  requirements:
123
- - - ! '>='
87
+ - - ">="
124
88
  - !ruby/object:Gem::Version
125
89
  version: '0'
126
90
  type: :development
127
91
  prerelease: false
128
92
  version_requirements: !ruby/object:Gem::Requirement
129
- none: false
130
93
  requirements:
131
- - - ! '>='
94
+ - - ">="
132
95
  - !ruby/object:Gem::Version
133
96
  version: '0'
134
- description: ! 'OMGF provides an HTTP interface for {MogileFS}[http://mogilefs.org],
135
-
97
+ description: |-
98
+ OMGF provides an HTTP interface for {MogileFS}[http://mogilefs.org],
136
99
  allowing clients to connect to MogileFS without needing specialized
137
-
138
100
  libraries to interface with MogileFS. Currently, HystericalRaisins
139
-
140
- is supported. OMGF is short for "OMGFiles", an anagram for "MogileFS".'
141
- email: !binary |-
142
- b21nZkBsaWJyZWxpc3Qub3Jn
101
+ is supported. OMGF is short for "OMGFiles", an anagram for "MogileFS".
102
+ email: bofh@yhbt.net
143
103
  executables: []
144
104
  extensions: []
145
105
  extra_rdoc_files:
146
- - ChangeLog
147
- - lib/omgf.rb
148
- - lib/omgf/hysterical_raisins.rb
149
- - lib/omgf/pool.rb
150
- - lib/omgf/regurgitator.rb
151
- - lib/omgf/verify_paths.rb
152
- - lib/omgf/version.rb
153
106
  - NEWS
154
107
  - README
155
108
  files:
156
- - .document
157
- - .gitignore
158
- - .manifest
159
- - .wrongdoc.yml
109
+ - ".document"
110
+ - ".gitignore"
111
+ - ".manifest"
112
+ - ".olddoc.yml"
160
113
  - COPYING
161
- - ChangeLog
162
114
  - GIT-VERSION-FILE
163
115
  - GIT-VERSION-GEN
164
116
  - GNUmakefile
@@ -181,43 +133,31 @@ files:
181
133
  - test/test_hysterical_raisins.rb
182
134
  - test/test_hysterical_raisins_cmogstored.rb
183
135
  - test/test_regurgitator.rb
184
- homepage: http://bogomips.org/omgf/
136
+ homepage: https://yhbt.net/omgf/
185
137
  licenses:
186
- - !binary |-
187
- QUdQTHYzKw==
138
+ - AGPL-3.0+
139
+ metadata: {}
188
140
  post_install_message:
189
- rdoc_options:
190
- - -t
191
- - OMGF - hysterical REST API for MogileFS using Rack
192
- - -W
193
- - http://bogomips.org/omgf.git/tree/%s
141
+ rdoc_options: []
194
142
  require_paths:
195
143
  - lib
196
144
  required_ruby_version: !ruby/object:Gem::Requirement
197
- none: false
198
145
  requirements:
199
- - - ! '>='
146
+ - - ">="
200
147
  - !ruby/object:Gem::Version
201
148
  version: '0'
202
149
  required_rubygems_version: !ruby/object:Gem::Requirement
203
- none: false
204
150
  requirements:
205
- - - ! '>='
151
+ - - ">="
206
152
  - !ruby/object:Gem::Version
207
153
  version: '0'
208
154
  requirements: []
209
- rubyforge_project:
210
- rubygems_version: 1.8.24
155
+ rubygems_version: 3.0.2
211
156
  signing_key:
212
- specification_version: 3
157
+ specification_version: 4
213
158
  summary: hysterical REST API for MogileFS using Rack
214
159
  test_files:
215
- - !binary |-
216
- dGVzdC90ZXN0X2h5c3RlcmljYWxfcmFpc2luc19jbW9nc3RvcmVkLnJi
217
- - !binary |-
218
- dGVzdC90ZXN0X3JlZ3VyZ2l0YXRvci5yYg==
219
- - !binary |-
220
- dGVzdC90ZXN0X2h5c3RlcmljYWxfcmFpc2lucy5yYg==
221
- - !binary |-
222
- dGVzdC90ZXN0X2h5c3QucmI=
223
- has_rdoc:
160
+ - test/test_regurgitator.rb
161
+ - test/test_hysterical_raisins.rb
162
+ - test/test_hysterical_raisins_cmogstored.rb
163
+ - test/test_hyst.rb
@@ -1,6 +0,0 @@
1
- ---
2
- cgit_url: http://bogomips.org/omgf.git
3
- git_url: git://bogomips.org/omgf.git
4
- rdoc_url: http://bogomips.org/omgf/
5
- private_email: normalperson@yhbt.net
6
- public_email: omgf@librelist.org