midos 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ChangeLog +4 -0
- data/README +2 -2
- data/Rakefile +1 -1
- data/lib/midos/base.rb +1 -1
- data/lib/midos/reader.rb +2 -2
- data/lib/midos/version.rb +1 -1
- data/lib/midos/writer.rb +2 -2
- metadata +14 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 458a44bc640c71ea6c086da53043c48701405b27
|
4
|
+
data.tar.gz: 95c8570bb1c9b8df64bc3778c403f90d81cb480d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 847e3ed9c95d1f6bacabd3413e0f72195bc2095898c37ac69b36657c39d3df8f585b9308eee8c723424ec186c17443ea00f05799422076c5172acc4dd60aaf5e
|
7
|
+
data.tar.gz: 4a82c243d4f4598ce400e8ae07863a5a55c6c332b2b36fe3e573cfa4cdb1c3f99291172f913006551d6bc6353f0c43978968b774318d24c07e0d2d02c5cd0244
|
data/ChangeLog
CHANGED
data/README
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
== VERSION
|
4
4
|
|
5
|
-
This documentation refers to midos version 0.0.
|
5
|
+
This documentation refers to midos version 0.0.3
|
6
6
|
|
7
7
|
|
8
8
|
== DESCRIPTION
|
@@ -26,7 +26,7 @@ RubyGem:: https://rubygems.org/gems/midos
|
|
26
26
|
|
27
27
|
== LICENSE AND COPYRIGHT
|
28
28
|
|
29
|
-
Copyright (C) 2014 Jens Wille
|
29
|
+
Copyright (C) 2014-2015 Jens Wille
|
30
30
|
|
31
31
|
midos is free software: you can redistribute it and/or modify it
|
32
32
|
under the terms of the GNU Affero General Public License as published by
|
data/Rakefile
CHANGED
data/lib/midos/base.rb
CHANGED
@@ -36,7 +36,7 @@ module Midos
|
|
36
36
|
|
37
37
|
def file_method(method, mode, file, options = {}, *args, &block)
|
38
38
|
Midos.open_file(file, options, mode) { |io|
|
39
|
-
args.unshift(options.merge(:
|
39
|
+
args.unshift(options.merge(io: io))
|
40
40
|
method ? send(method, *args, &block) : block[new(*args)]
|
41
41
|
}
|
42
42
|
end
|
data/lib/midos/reader.rb
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
# #
|
6
6
|
# midos -- A Ruby client for MIDOS databases #
|
7
7
|
# #
|
8
|
-
# Copyright (C) 2014 Jens Wille
|
8
|
+
# Copyright (C) 2014-2015 Jens Wille #
|
9
9
|
# #
|
10
10
|
# Authors: #
|
11
11
|
# Jens Wille <jens.wille@gmail.com> #
|
@@ -56,7 +56,7 @@ module Midos
|
|
56
56
|
@vs = vs.is_a?(Regexp) ? vs : %r{\s*#{Regexp.escape(vs)}\s*}
|
57
57
|
end
|
58
58
|
|
59
|
-
def parse(io = io, &block)
|
59
|
+
def parse(io = io(), &block)
|
60
60
|
unless block
|
61
61
|
records, block = @records, amend_block { |id, record|
|
62
62
|
records[id] = record
|
data/lib/midos/version.rb
CHANGED
data/lib/midos/writer.rb
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
# #
|
6
6
|
# midos -- A Ruby client for MIDOS databases #
|
7
7
|
# #
|
8
|
-
# Copyright (C) 2014 Jens Wille
|
8
|
+
# Copyright (C) 2014-2015 Jens Wille #
|
9
9
|
# #
|
10
10
|
# Authors: #
|
11
11
|
# Jens Wille <jens.wille@gmail.com> #
|
@@ -79,7 +79,7 @@ module Midos
|
|
79
79
|
|
80
80
|
private
|
81
81
|
|
82
|
-
def write_i(id, record, io = io)
|
82
|
+
def write_i(id, record, io = io())
|
83
83
|
return if record.empty?
|
84
84
|
|
85
85
|
if @key && !record.key?(@key)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: midos
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jens Wille
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-04-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nuggets
|
@@ -28,16 +28,22 @@ dependencies:
|
|
28
28
|
name: hen
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0.8'
|
31
34
|
- - ">="
|
32
35
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
36
|
+
version: 0.8.1
|
34
37
|
type: :development
|
35
38
|
prerelease: false
|
36
39
|
version_requirements: !ruby/object:Gem::Requirement
|
37
40
|
requirements:
|
41
|
+
- - "~>"
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: '0.8'
|
38
44
|
- - ">="
|
39
45
|
- !ruby/object:Gem::Version
|
40
|
-
version:
|
46
|
+
version: 0.8.1
|
41
47
|
- !ruby/object:Gem::Dependency
|
42
48
|
name: rake
|
43
49
|
requirement: !ruby/object:Gem::Requirement
|
@@ -76,13 +82,13 @@ licenses:
|
|
76
82
|
metadata: {}
|
77
83
|
post_install_message: |2+
|
78
84
|
|
79
|
-
midos-0.0.
|
85
|
+
midos-0.0.3 [2015-04-10]:
|
80
86
|
|
81
|
-
*
|
87
|
+
* Ruby 2.2 compatibility.
|
82
88
|
|
83
89
|
rdoc_options:
|
84
90
|
- "--title"
|
85
|
-
- midos Application documentation (v0.0.
|
91
|
+
- midos Application documentation (v0.0.3)
|
86
92
|
- "--charset"
|
87
93
|
- UTF-8
|
88
94
|
- "--line-numbers"
|
@@ -103,7 +109,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
103
109
|
version: '0'
|
104
110
|
requirements: []
|
105
111
|
rubyforge_project:
|
106
|
-
rubygems_version: 2.4.
|
112
|
+
rubygems_version: 2.4.6
|
107
113
|
signing_key:
|
108
114
|
specification_version: 4
|
109
115
|
summary: A Ruby client for MIDOS databases.
|