mt940 0.6.4 → 0.6.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/.gitignore ADDED
@@ -0,0 +1,48 @@
1
+ # rcov generated
2
+ coverage
3
+
4
+ # rdoc generated
5
+ rdoc
6
+
7
+ # yard generated
8
+ doc
9
+ .yardoc
10
+
11
+ # bundler
12
+ .bundle
13
+
14
+ # jeweler generated
15
+ pkg
16
+
17
+ # Have editor/IDE/OS specific files you need to ignore? Consider using a global gitignore:
18
+ #
19
+ # * Create a file at ~/.gitignore
20
+ # * Include files you want ignored
21
+ # * Run: git config --global core.excludesfile ~/.gitignore
22
+ #
23
+ # After doing this, these files will be ignored in all your git projects,
24
+ # saving you from having to 'pollute' every project you touch with them
25
+ #
26
+ # Not sure what to needs to be ignored for particular editors/OSes? Here's some ideas to get you started. (Remember, remove the leading # of the line)
27
+ #
28
+ # For MacOS:
29
+ #
30
+ #.DS_Store
31
+
32
+ # For TextMate
33
+ #*.tmproj
34
+ #tmtags
35
+
36
+ # For emacs:
37
+ #*~
38
+ #\#*
39
+ #.\#*
40
+
41
+ # For vim:
42
+ #*.swp
43
+
44
+ # For redcar:
45
+ #.redcar
46
+
47
+ # For rubinius:
48
+ #*.rbc
data/.travis.yml ADDED
@@ -0,0 +1,10 @@
1
+ rvm:
2
+ - 1.9.3
3
+ - 1.9.2
4
+ - 1.8.7
5
+
6
+ branches:
7
+ only:
8
+ - master
9
+
10
+ script: "bundle exec rake test"
data/Gemfile CHANGED
@@ -1,7 +1,5 @@
1
- source :rubygems
1
+ source "http://rubygems.org"
2
2
 
3
- group :development do
4
- gem "shoulda", ">= 0"
5
- gem "bundler", "~> 1.0.0"
6
- gem "jeweler", "~> 1.6.2"
7
- end
3
+ gem 'rake', '0.8.7'
4
+
5
+ gemspec
data/Gemfile.lock CHANGED
@@ -1,11 +1,11 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ mt940 (0.6.5)
5
+
1
6
  GEM
2
7
  remote: http://rubygems.org/
3
8
  specs:
4
- git (1.2.5)
5
- jeweler (1.6.2)
6
- bundler (~> 1.0)
7
- git (>= 1.2.5)
8
- rake
9
9
  rake (0.8.7)
10
10
  shoulda (2.11.3)
11
11
 
@@ -13,6 +13,6 @@ PLATFORMS
13
13
  ruby
14
14
 
15
15
  DEPENDENCIES
16
- bundler (~> 1.0.0)
17
- jeweler (~> 1.6.2)
16
+ mt940!
17
+ rake (= 0.8.7)
18
18
  shoulda
data/LICENSE.txt CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2011 Frank Oxener - Agile Dovadi BV
1
+ Copyright (c) 2012 Frank Oxener - Agile Dovadi BV
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
data/README.md CHANGED
@@ -1,6 +1,10 @@
1
1
  MT940
2
2
  ======
3
3
 
4
+ <a href='http://travis-ci.org/dovadi/mt940'>
5
+ ![http://travis-ci.org/dovadi/mt940](https://secure.travis-ci.org/dovadi/mt940.png)
6
+ </a>
7
+
4
8
  Basis parser for MT940 files, see [MT940](http://nl.wikipedia.org/wiki/MT940)
5
9
 
6
10
  The following Dutch banks are implemented:
@@ -39,6 +43,12 @@ or with the file itself:
39
43
 
40
44
  * With the Rabobank its owner is extracted as well.
41
45
 
46
+ Running tests
47
+ =============
48
+
49
+ > bundle install
50
+
51
+ > bundle exec rake test
42
52
 
43
53
  Contributing to MT940
44
54
  =====================
data/Rakefile CHANGED
@@ -1,45 +1,14 @@
1
1
  # encoding: utf-8
2
2
 
3
- require 'rubygems'
4
- require 'bundler'
5
- begin
6
- Bundler.setup(:default, :development)
7
- rescue Bundler::BundlerError => e
8
- $stderr.puts e.message
9
- $stderr.puts "Run `bundle install` to install missing gems"
10
- exit e.status_code
11
- end
12
- require 'rake'
13
-
14
- require 'jeweler'
15
- Jeweler::Tasks.new do |gem|
16
- # gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
17
- gem.name = "mt940"
18
- gem.homepage = "http://github.com/dovadi/mt940"
19
- gem.license = "MIT"
20
- gem.summary = %Q{MT940 parser}
21
- gem.description = %Q{A basic MT940 parser with implementations for Dutch banks.}
22
- gem.email = "frank.oxener@gmail.com"
23
- gem.authors = ["dovadi"]
24
- # dependencies defined in Gemfile
25
- end
26
- Jeweler::RubygemsDotOrgTasks.new
3
+ require 'bundler/gem_helper'
4
+ Bundler::GemHelper.install_tasks
27
5
 
28
6
  require 'rake/testtask'
29
7
  Rake::TestTask.new(:test) do |test|
30
8
  test.libs << 'lib' << 'test'
31
- test.pattern = 'test/**/test_*.rb'
9
+ test.pattern = 'test/**/*_test.rb'
32
10
  test.verbose = true
33
11
  end
34
12
 
35
13
  task :default => :test
36
14
 
37
- require 'rake/rdoctask'
38
- Rake::RDocTask.new do |rdoc|
39
- version = File.exist?('VERSION') ? File.read('VERSION') : ""
40
-
41
- rdoc.rdoc_dir = 'rdoc'
42
- rdoc.title = "mt940 #{version}"
43
- rdoc.rdoc_files.include('README*')
44
- rdoc.rdoc_files.include('lib/**/*.rb')
45
- end
@@ -0,0 +1,3 @@
1
+ module MT940
2
+ VERSION = '0.6.5'
3
+ end
data/mt940.gemspec CHANGED
@@ -1,73 +1,30 @@
1
- # Generated by jeweler
2
- # DO NOT EDIT THIS FILE DIRECTLY
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
1
  # -*- encoding: utf-8 -*-
5
2
 
6
- Gem::Specification.new do |s|
7
- s.name = %q{mt940}
8
- s.version = "0.6.4"
3
+ $:.push File.expand_path('../lib', __FILE__)
4
+ require 'mt940/version'
9
5
 
10
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
- s.authors = ["dovadi"]
12
- s.date = %q{2011-07-13}
6
+ Gem::Specification.new do |s|
7
+ s.name = 'mt940'
8
+ s.version = MT940::VERSION
9
+ s.authors = ['Frank Oxener']
13
10
  s.description = %q{A basic MT940 parser with implementations for Dutch banks.}
14
- s.email = %q{frank.oxener@gmail.com}
11
+ s.summary = %q{MT940 parser}
12
+ s.email = %q{frank.oxener@gmail.com}
13
+
14
+ s.homepage = %q{http://github.com/dovadi/mt940}
15
+ s.licenses = ['MIT']
16
+
15
17
  s.extra_rdoc_files = [
16
- "LICENSE.txt",
17
- "README.md"
18
- ]
19
- s.files = [
20
- ".document",
21
- "CHANGELOG",
22
- "Gemfile",
23
- "Gemfile.lock",
24
- "LICENSE.txt",
25
- "README.md",
26
- "Rakefile",
27
- "VERSION",
28
- "lib/mt940.rb",
29
- "lib/mt940/banks/abnamro.rb",
30
- "lib/mt940/banks/ing.rb",
31
- "lib/mt940/banks/rabobank.rb",
32
- "lib/mt940/banks/triodos.rb",
33
- "lib/mt940/base.rb",
34
- "lib/mt940/transaction.rb",
35
- "mt940.gemspec",
36
- "test/fixtures/abnamro.txt",
37
- "test/fixtures/ing.txt",
38
- "test/fixtures/rabobank.txt",
39
- "test/fixtures/triodos.txt",
40
- "test/fixtures/unknown.txt",
41
- "test/helper.rb",
42
- "test/test_mt940_abnamro.rb",
43
- "test/test_mt940_base.rb",
44
- "test/test_mt940_ing.rb",
45
- "test/test_mt940_rabobank.rb",
46
- "test/test_mt940_triodos.rb"
47
- ]
48
- s.homepage = %q{http://github.com/dovadi/mt940}
49
- s.licenses = ["MIT"]
50
- s.require_paths = ["lib"]
51
- s.rubygems_version = %q{1.3.6}
52
- s.summary = %q{MT940 parser}
18
+ 'LICENSE.txt',
19
+ 'README.md'
20
+ ]
53
21
 
54
- if s.respond_to? :specification_version then
55
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
56
- s.specification_version = 3
22
+ s.rubyforge_project = 'mt940'
57
23
 
58
- if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
59
- s.add_development_dependency(%q<shoulda>, [">= 0"])
60
- s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
61
- s.add_development_dependency(%q<jeweler>, ["~> 1.6.2"])
62
- else
63
- s.add_dependency(%q<shoulda>, [">= 0"])
64
- s.add_dependency(%q<bundler>, ["~> 1.0.0"])
65
- s.add_dependency(%q<jeweler>, ["~> 1.6.2"])
66
- end
67
- else
68
- s.add_dependency(%q<shoulda>, [">= 0"])
69
- s.add_dependency(%q<bundler>, ["~> 1.0.0"])
70
- s.add_dependency(%q<jeweler>, ["~> 1.6.2"])
71
- end
72
- end
24
+ s.files = `git ls-files`.split(/\n/)
25
+ s.test_files = `git ls-files -- {test,spec,features}/*`.split(/\n/)
26
+ s.executables = `git ls-files -- bin/*`.split(/\n/).map{ |f| File.basename(f) }
27
+ s.require_paths = ['lib']
73
28
 
29
+ s.add_development_dependency 'shoulda'
30
+ end
File without changes
File without changes
metadata CHANGED
@@ -5,58 +5,30 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 6
8
- - 4
9
- version: 0.6.4
8
+ - 5
9
+ version: 0.6.5
10
10
  platform: ruby
11
11
  authors:
12
- - dovadi
12
+ - Frank Oxener
13
13
  autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2011-07-13 00:00:00 +02:00
17
+ date: 2012-01-10 00:00:00 +01:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
- requirement: &id001 !ruby/object:Gem::Requirement
21
+ version_requirements: &id001 !ruby/object:Gem::Requirement
22
22
  requirements:
23
23
  - - ">="
24
24
  - !ruby/object:Gem::Version
25
25
  segments:
26
26
  - 0
27
27
  version: "0"
28
- prerelease: false
29
- type: :development
28
+ requirement: *id001
30
29
  name: shoulda
31
- version_requirements: *id001
32
- - !ruby/object:Gem::Dependency
33
- requirement: &id002 !ruby/object:Gem::Requirement
34
- requirements:
35
- - - ~>
36
- - !ruby/object:Gem::Version
37
- segments:
38
- - 1
39
- - 0
40
- - 0
41
- version: 1.0.0
42
30
  prerelease: false
43
31
  type: :development
44
- name: bundler
45
- version_requirements: *id002
46
- - !ruby/object:Gem::Dependency
47
- requirement: &id003 !ruby/object:Gem::Requirement
48
- requirements:
49
- - - ~>
50
- - !ruby/object:Gem::Version
51
- segments:
52
- - 1
53
- - 6
54
- - 2
55
- version: 1.6.2
56
- prerelease: false
57
- type: :development
58
- name: jeweler
59
- version_requirements: *id003
60
32
  description: A basic MT940 parser with implementations for Dutch banks.
61
33
  email: frank.oxener@gmail.com
62
34
  executables: []
@@ -68,13 +40,14 @@ extra_rdoc_files:
68
40
  - README.md
69
41
  files:
70
42
  - .document
43
+ - .gitignore
44
+ - .travis.yml
71
45
  - CHANGELOG
72
46
  - Gemfile
73
47
  - Gemfile.lock
74
48
  - LICENSE.txt
75
49
  - README.md
76
50
  - Rakefile
77
- - VERSION
78
51
  - lib/mt940.rb
79
52
  - lib/mt940/banks/abnamro.rb
80
53
  - lib/mt940/banks/ing.rb
@@ -82,6 +55,7 @@ files:
82
55
  - lib/mt940/banks/triodos.rb
83
56
  - lib/mt940/base.rb
84
57
  - lib/mt940/transaction.rb
58
+ - lib/mt940/version.rb
85
59
  - mt940.gemspec
86
60
  - test/fixtures/abnamro.txt
87
61
  - test/fixtures/ing.txt
@@ -89,11 +63,11 @@ files:
89
63
  - test/fixtures/triodos.txt
90
64
  - test/fixtures/unknown.txt
91
65
  - test/helper.rb
92
- - test/test_mt940_abnamro.rb
93
- - test/test_mt940_base.rb
94
- - test/test_mt940_ing.rb
95
- - test/test_mt940_rabobank.rb
96
- - test/test_mt940_triodos.rb
66
+ - test/mt940_abnamro_test.rb
67
+ - test/mt940_base_test.rb
68
+ - test/mt940_ing_test.rb
69
+ - test/mt940_rabobank_test.rb
70
+ - test/mt940_triodos_test.rb
97
71
  has_rdoc: true
98
72
  homepage: http://github.com/dovadi/mt940
99
73
  licenses:
@@ -119,10 +93,20 @@ required_rubygems_version: !ruby/object:Gem::Requirement
119
93
  version: "0"
120
94
  requirements: []
121
95
 
122
- rubyforge_project:
96
+ rubyforge_project: mt940
123
97
  rubygems_version: 1.3.6
124
98
  signing_key:
125
99
  specification_version: 3
126
100
  summary: MT940 parser
127
- test_files: []
128
-
101
+ test_files:
102
+ - test/fixtures/abnamro.txt
103
+ - test/fixtures/ing.txt
104
+ - test/fixtures/rabobank.txt
105
+ - test/fixtures/triodos.txt
106
+ - test/fixtures/unknown.txt
107
+ - test/helper.rb
108
+ - test/mt940_abnamro_test.rb
109
+ - test/mt940_base_test.rb
110
+ - test/mt940_ing_test.rb
111
+ - test/mt940_rabobank_test.rb
112
+ - test/mt940_triodos_test.rb
data/VERSION DELETED
@@ -1 +0,0 @@
1
- 0.6.4