ydim 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -3,11 +3,12 @@
3
3
 
4
4
  $: << File.expand_path('../lib', File.dirname(__FILE__))
5
5
 
6
- require 'test/unit'
6
+ require 'minitest/autorun'
7
+ require 'flexmock/test_unit'
7
8
  require 'ydim/root_user'
8
9
 
9
10
  module YDIM
10
- class TestRootUser < Test::Unit::TestCase
11
+ class TestRootUser < Minitest::Test
11
12
  def setup
12
13
  @user = RootUser.new(:root)
13
14
  end
@@ -1,16 +1,15 @@
1
1
  #!/usr/bin/env ruby
2
2
  # TestServer -- ydim -- 10.01.2006 -- hwyss@ywesee.com
3
-
4
-
5
3
  $: << File.expand_path('../lib', File.dirname(__FILE__))
4
+ $: << File.expand_path('..', File.dirname(__FILE__))
6
5
 
7
- require 'test/unit'
6
+ require 'minitest/autorun'
7
+ require 'flexmock/test_unit'
8
8
  require 'test/stub/odba'
9
- require 'flexmock'
10
9
  require 'ydim/server'
11
10
 
12
11
  module YDIM
13
- class TestServer < Test::Unit::TestCase
12
+ class TestServer < Minitest::Test
14
13
  def setup
15
14
  @config = FlexMock.new
16
15
  @config.should_receive(:autoinvoice_hour).and_return { nil }
@@ -36,9 +35,7 @@ module YDIM
36
35
  fh.puts(key.public_key.to_s)
37
36
  }
38
37
  auth_server = nil
39
- assert_nothing_raised {
40
- auth_server = @needle.auth_server
41
- }
38
+ auth_server = @needle.auth_server
42
39
  assert_instance_of(RRBA::Server, auth_server)
43
40
  root = auth_server.instance_variable_get('@root')
44
41
  assert_equal('Root', root.name)
@@ -61,9 +58,7 @@ module YDIM
61
58
  fh.puts(key.public_key.to_s)
62
59
  }
63
60
  auth_server = nil
64
- assert_nothing_raised {
65
- auth_server = @needle.auth_server
66
- }
61
+ auth_server = @needle.auth_server
67
62
  assert_instance_of(RRBA::Server, auth_server)
68
63
  root = auth_server.instance_variable_get('@root')
69
64
  assert_equal('Root', root.name)
@@ -81,9 +76,7 @@ module YDIM
81
76
  }
82
77
  @config.should_receive(:conf_dir).and_return { @datadir }
83
78
  auth_server = nil
84
- assert_nothing_raised {
85
- auth_server = @needle.auth_server
86
- }
79
+ auth_server = @needle.auth_server
87
80
  assert_instance_of(RRBA::Server, auth_server)
88
81
  root = auth_server.instance_variable_get('@root')
89
82
  assert_equal('Root', root.name)
@@ -0,0 +1,40 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'ydim/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "ydim"
8
+ spec.version = YDIM::VERSION
9
+ spec.author = "Masaomi Hatakeyama, Zeno R.R. Davatz, Niklaus Giger"
10
+ spec.email = "mhatakeyama@ywesee.com, zdavatz@ywesee.com, ngiger@ywesee.com"
11
+ spec.description = "ywesee distributed invoice manager. A Ruby gem"
12
+ spec.summary = "ywesee distributed invoice manager"
13
+ spec.homepage = "https://github.com/zdavatz/ydim"
14
+ spec.license = "GPL-v2"
15
+ spec.files = `git ls-files -z`.split("\x0")
16
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
17
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
18
+ spec.require_paths = ["lib"]
19
+
20
+ spec.add_dependency "odba", '>= 1.1.2'
21
+ spec.add_dependency "ydbd-pg", '>= 0.5.1'
22
+ spec.add_dependency "ydbi", '>= 0.5.1'
23
+ spec.add_dependency "syck"
24
+ spec.add_dependency "rmail"
25
+ spec.add_dependency "rclconf"
26
+ spec.add_dependency "needle"
27
+ spec.add_dependency "ypdf-writer"
28
+ spec.add_dependency "rrba"
29
+ spec.add_dependency "hpricot"
30
+ spec.add_runtime_dependency 'deprecated', '= 2.0.1'
31
+
32
+ spec.add_development_dependency "bundler"
33
+ spec.add_development_dependency "simplecov"
34
+ spec.add_development_dependency "rake"
35
+ spec.add_development_dependency "flexmock"
36
+ spec.add_development_dependency "test-unit"
37
+ spec.add_development_dependency "minitest"
38
+ spec.add_development_dependency "rspec"
39
+ end
40
+
metadata CHANGED
@@ -1,63 +1,292 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: ydim
3
- version: !ruby/object:Gem::Version
4
- hash: 23
5
- prerelease: false
6
- segments:
7
- - 1
8
- - 0
9
- - 0
10
- version: 1.0.0
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.1
11
5
  platform: ruby
12
- authors:
13
- - Masaomi Hatakeyama, Zeno R.R. Davatz
6
+ authors:
7
+ - Masaomi Hatakeyama, Zeno R.R. Davatz, Niklaus Giger
14
8
  autorequire:
15
9
  bindir: bin
16
10
  cert_chain: []
17
-
18
- date: 2010-12-20 00:00:00 +01:00
19
- default_executable:
20
- dependencies:
21
- - !ruby/object:Gem::Dependency
22
- name: hoe
23
- prerelease: false
24
- requirement: &id001 !ruby/object:Gem::Requirement
25
- none: false
26
- requirements:
27
- - - ">="
28
- - !ruby/object:Gem::Version
29
- hash: 47
30
- segments:
31
- - 2
32
- - 8
33
- - 0
34
- version: 2.8.0
11
+ date: 2016-05-10 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: odba
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: 1.1.2
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: 1.1.2
27
+ - !ruby/object:Gem::Dependency
28
+ name: ydbd-pg
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: 0.5.1
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: 0.5.1
41
+ - !ruby/object:Gem::Dependency
42
+ name: ydbi
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: 0.5.1
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: 0.5.1
55
+ - !ruby/object:Gem::Dependency
56
+ name: syck
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: rmail
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: rclconf
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :runtime
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: needle
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :runtime
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: ypdf-writer
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :runtime
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
125
+ - !ruby/object:Gem::Dependency
126
+ name: rrba
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ">="
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
132
+ type: :runtime
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - ">="
137
+ - !ruby/object:Gem::Version
138
+ version: '0'
139
+ - !ruby/object:Gem::Dependency
140
+ name: hpricot
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - ">="
144
+ - !ruby/object:Gem::Version
145
+ version: '0'
146
+ type: :runtime
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - ">="
151
+ - !ruby/object:Gem::Version
152
+ version: '0'
153
+ - !ruby/object:Gem::Dependency
154
+ name: deprecated
155
+ requirement: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - '='
158
+ - !ruby/object:Gem::Version
159
+ version: 2.0.1
160
+ type: :runtime
161
+ prerelease: false
162
+ version_requirements: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - '='
165
+ - !ruby/object:Gem::Version
166
+ version: 2.0.1
167
+ - !ruby/object:Gem::Dependency
168
+ name: bundler
169
+ requirement: !ruby/object:Gem::Requirement
170
+ requirements:
171
+ - - ">="
172
+ - !ruby/object:Gem::Version
173
+ version: '0'
35
174
  type: :development
36
- version_requirements: *id001
37
- description: ywesee distributed invoice manager, Ruby
38
- email:
39
- - mhatakeyama@ywesee.com, zdavatz@ywesee.com
40
- executables:
175
+ prerelease: false
176
+ version_requirements: !ruby/object:Gem::Requirement
177
+ requirements:
178
+ - - ">="
179
+ - !ruby/object:Gem::Version
180
+ version: '0'
181
+ - !ruby/object:Gem::Dependency
182
+ name: simplecov
183
+ requirement: !ruby/object:Gem::Requirement
184
+ requirements:
185
+ - - ">="
186
+ - !ruby/object:Gem::Version
187
+ version: '0'
188
+ type: :development
189
+ prerelease: false
190
+ version_requirements: !ruby/object:Gem::Requirement
191
+ requirements:
192
+ - - ">="
193
+ - !ruby/object:Gem::Version
194
+ version: '0'
195
+ - !ruby/object:Gem::Dependency
196
+ name: rake
197
+ requirement: !ruby/object:Gem::Requirement
198
+ requirements:
199
+ - - ">="
200
+ - !ruby/object:Gem::Version
201
+ version: '0'
202
+ type: :development
203
+ prerelease: false
204
+ version_requirements: !ruby/object:Gem::Requirement
205
+ requirements:
206
+ - - ">="
207
+ - !ruby/object:Gem::Version
208
+ version: '0'
209
+ - !ruby/object:Gem::Dependency
210
+ name: flexmock
211
+ requirement: !ruby/object:Gem::Requirement
212
+ requirements:
213
+ - - ">="
214
+ - !ruby/object:Gem::Version
215
+ version: '0'
216
+ type: :development
217
+ prerelease: false
218
+ version_requirements: !ruby/object:Gem::Requirement
219
+ requirements:
220
+ - - ">="
221
+ - !ruby/object:Gem::Version
222
+ version: '0'
223
+ - !ruby/object:Gem::Dependency
224
+ name: test-unit
225
+ requirement: !ruby/object:Gem::Requirement
226
+ requirements:
227
+ - - ">="
228
+ - !ruby/object:Gem::Version
229
+ version: '0'
230
+ type: :development
231
+ prerelease: false
232
+ version_requirements: !ruby/object:Gem::Requirement
233
+ requirements:
234
+ - - ">="
235
+ - !ruby/object:Gem::Version
236
+ version: '0'
237
+ - !ruby/object:Gem::Dependency
238
+ name: minitest
239
+ requirement: !ruby/object:Gem::Requirement
240
+ requirements:
241
+ - - ">="
242
+ - !ruby/object:Gem::Version
243
+ version: '0'
244
+ type: :development
245
+ prerelease: false
246
+ version_requirements: !ruby/object:Gem::Requirement
247
+ requirements:
248
+ - - ">="
249
+ - !ruby/object:Gem::Version
250
+ version: '0'
251
+ - !ruby/object:Gem::Dependency
252
+ name: rspec
253
+ requirement: !ruby/object:Gem::Requirement
254
+ requirements:
255
+ - - ">="
256
+ - !ruby/object:Gem::Version
257
+ version: '0'
258
+ type: :development
259
+ prerelease: false
260
+ version_requirements: !ruby/object:Gem::Requirement
261
+ requirements:
262
+ - - ">="
263
+ - !ruby/object:Gem::Version
264
+ version: '0'
265
+ description: ywesee distributed invoice manager. A Ruby gem
266
+ email: mhatakeyama@ywesee.com, zdavatz@ywesee.com, ngiger@ywesee.com
267
+ executables:
268
+ - migrate_to_utf_8
41
269
  - ydim-edit
42
270
  - ydim-inject
43
271
  - ydimd
44
272
  extensions: []
45
-
46
- extra_rdoc_files:
273
+ extra_rdoc_files: []
274
+ files:
275
+ - ".gitattributes"
276
+ - ".gitignore"
277
+ - ".travis.yml"
278
+ - Gemfile
47
279
  - History.txt
48
- - Manifest.txt
49
- - README.txt
50
280
  - LICENSE.txt
51
- files:
52
- - History.txt
53
281
  - Manifest.txt
54
- - README.txt
55
282
  - Rakefile
56
- - LICENSE.txt
283
+ - bin/migrate_to_utf_8
57
284
  - bin/ydim-edit
58
285
  - bin/ydim-inject
59
286
  - bin/ydimd
60
287
  - install.rb
288
+ - lib/pdfinvoice/config.rb
289
+ - lib/pdfinvoice/invoice.rb
61
290
  - lib/ydim/autoinvoicer.rb
62
291
  - lib/ydim/client.rb
63
292
  - lib/ydim/config.rb
@@ -74,6 +303,11 @@ files:
74
303
  - lib/ydim/server.rb
75
304
  - lib/ydim/smtp_tls.rb
76
305
  - lib/ydim/util.rb
306
+ - lib/ydim/version.rb
307
+ - readme.md
308
+ - set_initial_ydim_db.sql
309
+ - test/data/config.yml
310
+ - test/data/logo.png
77
311
  - test/data/search.html
78
312
  - test/stub/odba.rb
79
313
  - test/suite.rb
@@ -88,42 +322,37 @@ files:
88
322
  - test/test_root_session.rb
89
323
  - test/test_root_user.rb
90
324
  - test/test_server.rb
91
- has_rdoc: true
92
- homepage: http://scm.ywesee.com/?p=ydim/.git;a=summary
93
- licenses: []
94
-
325
+ - ydim.gemspec
326
+ homepage: https://github.com/zdavatz/ydim
327
+ licenses:
328
+ - GPL-v2
329
+ metadata: {}
95
330
  post_install_message:
96
- rdoc_options:
97
- - --main
98
- - README.txt
99
- require_paths:
331
+ rdoc_options: []
332
+ require_paths:
100
333
  - lib
101
- required_ruby_version: !ruby/object:Gem::Requirement
102
- none: false
103
- requirements:
334
+ required_ruby_version: !ruby/object:Gem::Requirement
335
+ requirements:
104
336
  - - ">="
105
- - !ruby/object:Gem::Version
106
- hash: 3
107
- segments:
108
- - 0
109
- version: "0"
110
- required_rubygems_version: !ruby/object:Gem::Requirement
111
- none: false
112
- requirements:
337
+ - !ruby/object:Gem::Version
338
+ version: '0'
339
+ required_rubygems_version: !ruby/object:Gem::Requirement
340
+ requirements:
113
341
  - - ">="
114
- - !ruby/object:Gem::Version
115
- hash: 3
116
- segments:
117
- - 0
118
- version: "0"
342
+ - !ruby/object:Gem::Version
343
+ version: '0'
119
344
  requirements: []
120
-
121
- rubyforge_project: ydim
122
- rubygems_version: 1.3.7
345
+ rubyforge_project:
346
+ rubygems_version: 2.4.5
123
347
  signing_key:
124
- specification_version: 3
125
- summary: ywesee distributed invoice manager, Ruby
126
- test_files:
348
+ specification_version: 4
349
+ summary: ywesee distributed invoice manager
350
+ test_files:
351
+ - test/data/config.yml
352
+ - test/data/logo.png
353
+ - test/data/search.html
354
+ - test/stub/odba.rb
355
+ - test/suite.rb
127
356
  - test/test_autoinvoicer.rb
128
357
  - test/test_currency_converter.rb
129
358
  - test/test_currency_updater.rb
@@ -135,3 +364,4 @@ test_files:
135
364
  - test/test_root_session.rb
136
365
  - test/test_root_user.rb
137
366
  - test/test_server.rb
367
+ has_rdoc: