midos 0.2.0 → 0.2.1
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 +1 -1
- data/lib/midos/version.rb +1 -1
- data/lib/midos/writer.rb +3 -1
- metadata +6 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e904f4d972dc21e686860a439a34cd49449aedb4
|
4
|
+
data.tar.gz: 801ee532bf3f6da51cd21c0b2406d2cf8155037f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 087e8c3da5e037aac01ac9defc7ea63b9112a39e72d9ae8ba107667ed05bff3ef3b96ad78a584c36fbf8878057b388d7b8e0f8e240f310df4e87ac5b3a1818ce
|
7
|
+
data.tar.gz: e865a1a1a3c8a7f5952588a06d83f68d44dc1cda1d4e774dbc901f190f3585f331953858bea126f4a778b963368043417b7cc6bd00d7641102be3e8cba0ebc28
|
data/ChangeLog
CHANGED
data/README
CHANGED
data/lib/midos/version.rb
CHANGED
data/lib/midos/writer.rb
CHANGED
@@ -100,7 +100,9 @@ module Midos
|
|
100
100
|
def write_i(id, record, io = io())
|
101
101
|
return if record.empty?
|
102
102
|
|
103
|
-
|
103
|
+
if key && !record.key?(key)
|
104
|
+
record = { key => id || auto_id.call }.update(record)
|
105
|
+
end
|
104
106
|
|
105
107
|
(@sort ? Hash[record.sort] : record).each { |k, v|
|
106
108
|
k ? io << k << fs << transform(v) << le :
|
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.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jens Wille
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-12-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nuggets
|
@@ -82,15 +82,13 @@ licenses:
|
|
82
82
|
metadata: {}
|
83
83
|
post_install_message: |2+
|
84
84
|
|
85
|
-
midos-0.2.
|
85
|
+
midos-0.2.1 [2015-12-11]:
|
86
86
|
|
87
|
-
*
|
88
|
-
* Added Midos::Writer#[]= convenience method.
|
89
|
-
* Fixed Midos::Writer.transform to recognize any combination of CR/LF.
|
87
|
+
* Changed Midos::Writer to insert key field at beginning of record.
|
90
88
|
|
91
89
|
rdoc_options:
|
92
90
|
- "--title"
|
93
|
-
- midos Application documentation (v0.2.
|
91
|
+
- midos Application documentation (v0.2.1)
|
94
92
|
- "--charset"
|
95
93
|
- UTF-8
|
96
94
|
- "--line-numbers"
|
@@ -111,7 +109,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
111
109
|
version: '0'
|
112
110
|
requirements: []
|
113
111
|
rubyforge_project:
|
114
|
-
rubygems_version: 2.
|
112
|
+
rubygems_version: 2.5.1
|
115
113
|
signing_key:
|
116
114
|
specification_version: 4
|
117
115
|
summary: A Ruby client for MIDOS databases.
|