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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2e62bd7e308e18ca790b3ed2d78604d051321ab1
4
- data.tar.gz: 5d051230a1005fc11165e0760abfba091970804e
3
+ metadata.gz: 458a44bc640c71ea6c086da53043c48701405b27
4
+ data.tar.gz: 95c8570bb1c9b8df64bc3778c403f90d81cb480d
5
5
  SHA512:
6
- metadata.gz: 0300e12b71b68773eddf018e637bc66faa955fea7591ed246305b3ca113fe4220c76df47ffadaee15e4ed05c432814222b3192c5fc1a19721db41616178f26a0
7
- data.tar.gz: ff03d11467b70173c368b38a85109cff6f513de73b1fe9d0280ae6323e961f999675e8a03d621a1924b79dd6ed5b085c35568384e790df2949151b4a1c40d009
6
+ metadata.gz: 847e3ed9c95d1f6bacabd3413e0f72195bc2095898c37ac69b36657c39d3df8f585b9308eee8c723424ec186c17443ea00f05799422076c5172acc4dd60aaf5e
7
+ data.tar.gz: 4a82c243d4f4598ce400e8ae07863a5a55c6c332b2b36fe3e573cfa4cdb1c3f99291172f913006551d6bc6353f0c43978968b774318d24c07e0d2d02c5cd0244
data/ChangeLog CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  = Revision history for midos
4
4
 
5
+ == 0.0.3 [2015-04-10]
6
+
7
+ * Ruby 2.2 compatibility.
8
+
5
9
  == 0.0.2 [2014-08-22]
6
10
 
7
11
  * Housekeeping.
data/README CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  == VERSION
4
4
 
5
- This documentation refers to midos version 0.0.2
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
@@ -1,4 +1,4 @@
1
- require File.expand_path(%q{../lib/midos/version}, __FILE__)
1
+ require_relative 'lib/midos/version'
2
2
 
3
3
  begin
4
4
  require 'hen'
@@ -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(:io => io))
39
+ args.unshift(options.merge(io: io))
40
40
  method ? send(method, *args, &block) : block[new(*args)]
41
41
  }
42
42
  end
@@ -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
@@ -4,7 +4,7 @@ module Midos
4
4
 
5
5
  MAJOR = 0
6
6
  MINOR = 0
7
- TINY = 2
7
+ TINY = 3
8
8
 
9
9
  class << self
10
10
 
@@ -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.2
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: 2014-08-22 00:00:00.000000000 Z
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: '0'
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: '0'
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.2 [2014-08-22]:
85
+ midos-0.0.3 [2015-04-10]:
80
86
 
81
- * Housekeeping.
87
+ * Ruby 2.2 compatibility.
82
88
 
83
89
  rdoc_options:
84
90
  - "--title"
85
- - midos Application documentation (v0.0.2)
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.1
112
+ rubygems_version: 2.4.6
107
113
  signing_key:
108
114
  specification_version: 4
109
115
  summary: A Ruby client for MIDOS databases.