iif-parser 1.1.0 → 2.0.0

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
- SHA1:
3
- metadata.gz: 0b2629552ec47d8f04bc3f031dab95b215457ef9
4
- data.tar.gz: ada79f1df1d40d1f2fa564398416eb70f41f4978
2
+ SHA256:
3
+ metadata.gz: '08b288b83566309ff5eb330807647bc4165f9e9379159507db76af3f9f27bcf7'
4
+ data.tar.gz: b962a919f615ba763618503a7e63603921c2d3db6ff72884bb895499d66e777f
5
5
  SHA512:
6
- metadata.gz: a8710d0b17bf0bd0c1adeb31e690dcd054f4a5c51deea3597249d7a9527e005f49f804d72d79f0c5c6f6842111d17b54b3eda78b5d0997eae6cd024278399d8d
7
- data.tar.gz: 085e4e0f35ddf89ce34c998eba1569e25dec5f9ffbc4b26da291adcba9a301a1daef986b2891822aec40b11596d7d80d2df1aad0688434da24be2c46325a53cc
6
+ metadata.gz: 4eb55c8670671f919e67473e70bd75ff6f65b879b73e6492609be017421ea4f487ef5230a9cae1e511c9e7cb72eacc55f8f77307b4b84c84254aaffc2404fc1f
7
+ data.tar.gz: 5211bf409dca8f886c1d05c4b90e83c18c525586dc564aeaa352cce93f71445e27b4dd8ad0d46376b82ead2e781a431148a9158cf948e84bab80545bf21bc95e
@@ -1,3 +1,16 @@
1
+ sudo: false
1
2
  language: ruby
2
3
  rvm:
3
- - 2.2.1
4
+ - 2.4
5
+ - 2.5
6
+ - 2.6
7
+
8
+ before_install:
9
+ - gem install bundler
10
+
11
+ script:
12
+ - bundle exec rake
13
+
14
+ notifications:
15
+ email:
16
+ - christian@minimul.com
data/README.md CHANGED
@@ -44,6 +44,8 @@ puts i.transactions.first.entries
44
44
  ```
45
45
  #### See the [specs](https://github.com/minimul/iif-parser/blob/master/spec/iif/parser_spec.rb) for more examples
46
46
 
47
+ #### Ruby support is >= 2.4
48
+
47
49
  ## Installation
48
50
  Add this line to your application's Gemfile:
49
51
 
@@ -58,7 +60,18 @@ Non tab-delimited IIF files are parsed with `CSV.parse_line`. You can set option
58
60
  iif_file = File.read(File.dirname(__FILE__) + "/../fixtures/liberal-parsing.iif")
59
61
  iif_parser = Iif::Parser.new(iif_file, { csv_parse_line_options: { liberal_parsing: true } })
60
62
  ```
63
+ **OR**
64
+
65
+ ```ruby
66
+ options = { csv_parse_line_options: { converters: -> (f) { f ? f.strip : nil } } }
67
+ i = Iif::Parser.new(iif, options)
68
+ ```
69
+ **OR COMBINE OPTIONS**
61
70
 
71
+ ```ruby
72
+ options = { csv_parse_line_options: { liberal_parsing: true, converters: -> (f) { f ? f.strip : nil } } }
73
+ i = Iif::Parser.new(iif, options)
74
+ ```
62
75
 
63
76
  And then execute:
64
77
 
data/Rakefile CHANGED
@@ -1 +1,6 @@
1
1
  require "bundler/gem_tasks"
2
+ require "rspec/core/rake_task"
3
+
4
+ RSpec::Core::RakeTask.new(:spec)
5
+
6
+ task :default => :spec
@@ -19,8 +19,8 @@ Gem::Specification.new do |spec|
19
19
 
20
20
  spec.add_runtime_dependency "rchardet"
21
21
 
22
- spec.add_development_dependency "rspec"
22
+ spec.add_development_dependency "rspec", ">= 3.4.4"
23
23
  spec.add_development_dependency "awesome_print"
24
- spec.add_development_dependency "bundler", "~> 1.9"
25
- spec.add_development_dependency "rake", "~> 10.0"
24
+ spec.add_development_dependency "bundler", ">= 1.9"
25
+ spec.add_development_dependency "rake", ">= 12.3.3"
26
26
  end
@@ -1,5 +1,5 @@
1
1
  module Iif
2
2
  class Parser
3
- VERSION = "1.1.0"
3
+ VERSION = "2.0.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: iif-parser
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 2.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christian Pelczarski
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-06-29 00:00:00.000000000 Z
11
+ date: 2020-03-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rchardet
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: '0'
33
+ version: 3.4.4
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
- version: '0'
40
+ version: 3.4.4
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: awesome_print
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -56,30 +56,30 @@ dependencies:
56
56
  name: bundler
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - "~>"
59
+ - - ">="
60
60
  - !ruby/object:Gem::Version
61
61
  version: '1.9'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - "~>"
66
+ - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: '1.9'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rake
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - "~>"
73
+ - - ">="
74
74
  - !ruby/object:Gem::Version
75
- version: '10.0'
75
+ version: 12.3.3
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - "~>"
80
+ - - ">="
81
81
  - !ruby/object:Gem::Version
82
- version: '10.0'
82
+ version: 12.3.3
83
83
  description: ''
84
84
  email:
85
85
  - christian@minimul.com
@@ -120,8 +120,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
120
120
  - !ruby/object:Gem::Version
121
121
  version: '0'
122
122
  requirements: []
123
- rubyforge_project:
124
- rubygems_version: 2.4.5.2
123
+ rubygems_version: 3.0.4
125
124
  signing_key:
126
125
  specification_version: 4
127
126
  summary: Basic IIF parser written in Ruby