fidothe-coop_to_ofx 1.0.1

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.
Files changed (51) hide show
  1. data/README.rdoc +38 -0
  2. data/Rakefile +141 -0
  3. data/bin/coop_to_ofx +60 -0
  4. data/lib/coop_scraper/base.rb +8 -0
  5. data/lib/coop_scraper/credit_card.rb +94 -0
  6. data/lib/coop_scraper/current_account.rb +92 -0
  7. data/lib/coop_scraper/version.rb +12 -0
  8. data/lib/coop_scraper.rb +2 -0
  9. data/lib/ofx/statement/base.rb +53 -0
  10. data/lib/ofx/statement/credit_card.rb +15 -0
  11. data/lib/ofx/statement/current_account.rb +14 -0
  12. data/lib/ofx/statement/output/base.rb +131 -0
  13. data/lib/ofx/statement/output/builder.rb +76 -0
  14. data/lib/ofx/statement/output/credit_card.rb +31 -0
  15. data/lib/ofx/statement/output/current_account.rb +29 -0
  16. data/lib/ofx/statement/transaction.rb +52 -0
  17. data/lib/ofx/statement.rb +3 -0
  18. data/lib/ofx.rb +1 -0
  19. data/spec/coop_scraper/base_spec.rb +15 -0
  20. data/spec/coop_scraper/credit_card_spec.rb +229 -0
  21. data/spec/coop_scraper/current_account_spec.rb +154 -0
  22. data/spec/fixtures/credit_card/cc_statement_fixture.html +927 -0
  23. data/spec/fixtures/credit_card/foreign_transaction_fixture.html +447 -0
  24. data/spec/fixtures/credit_card/interest_transaction_fixture.html +438 -0
  25. data/spec/fixtures/credit_card/maybe.txt +43 -0
  26. data/spec/fixtures/credit_card/merchandise_interest_fixture.html +0 -0
  27. data/spec/fixtures/credit_card/normal_transaction_fixture.html +439 -0
  28. data/spec/fixtures/credit_card/overlimit_charge_fixture.html +446 -0
  29. data/spec/fixtures/credit_card/payment_in_transaction_fixture.html +439 -0
  30. data/spec/fixtures/credit_card/simple_cc_statement.ofx +43 -0
  31. data/spec/fixtures/credit_card/statement_with_interest_line_fixture.html +452 -0
  32. data/spec/fixtures/current_account/cash_point_transaction_fixture.html +372 -0
  33. data/spec/fixtures/current_account/current_account_fixture.html +420 -0
  34. data/spec/fixtures/current_account/current_account_fixture.ofx +83 -0
  35. data/spec/fixtures/current_account/debit_interest_transaction_fixture.html +372 -0
  36. data/spec/fixtures/current_account/no_transactions_fixture.html +364 -0
  37. data/spec/fixtures/current_account/normal_transaction_fixture.html +372 -0
  38. data/spec/fixtures/current_account/payment_in_transaction_fixture.html +372 -0
  39. data/spec/fixtures/current_account/service_charge_transaction_fixture.html +372 -0
  40. data/spec/fixtures/current_account/transfer_transaction_fixture.html +372 -0
  41. data/spec/ofx/statement/base_spec.rb +116 -0
  42. data/spec/ofx/statement/credit_card_spec.rb +20 -0
  43. data/spec/ofx/statement/current_account_spec.rb +20 -0
  44. data/spec/ofx/statement/output/base_spec.rb +249 -0
  45. data/spec/ofx/statement/output/builder_spec.rb +38 -0
  46. data/spec/ofx/statement/output/credit_card_spec.rb +84 -0
  47. data/spec/ofx/statement/output/current_account_spec.rb +81 -0
  48. data/spec/ofx/statement/transaction_spec.rb +76 -0
  49. data/spec/spec.opts +2 -0
  50. data/spec/spec_helper.rb +36 -0
  51. metadata +143 -0
metadata ADDED
@@ -0,0 +1,143 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: fidothe-coop_to_ofx
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Matt Patterson
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+
12
+ date: 2009-07-10 00:00:00 -07:00
13
+ default_executable: coop_to_ofx
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: hpricot
17
+ type: :runtime
18
+ version_requirement:
19
+ version_requirements: !ruby/object:Gem::Requirement
20
+ requirements:
21
+ - - ~>
22
+ - !ruby/object:Gem::Version
23
+ version: 0.6.0
24
+ version:
25
+ - !ruby/object:Gem::Dependency
26
+ name: builder
27
+ type: :runtime
28
+ version_requirement:
29
+ version_requirements: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ~>
32
+ - !ruby/object:Gem::Version
33
+ version: 2.1.0
34
+ version:
35
+ - !ruby/object:Gem::Dependency
36
+ name: rspec
37
+ type: :development
38
+ version_requirement:
39
+ version_requirements: !ruby/object:Gem::Requirement
40
+ requirements:
41
+ - - ">="
42
+ - !ruby/object:Gem::Version
43
+ version: "0"
44
+ version:
45
+ description: "Convert statement HTML from the Co-operative bank's online banking system to OFX for import into financial apps. = Usage For a Current Account: 1. Save the HTML source of the statement page. coop_to_ofx --current /path/to/statement.html Will produce /path/to/statement.ofx For a Credit Card: 1. Save the HTML source of the statement page coop_to_ofx /path/to/statement.html Or coop_to_ofx --credit /path/to/statement.html Will produce /path/to/statement.ofx To produce OFX 1 SGML (rather than OFX 2 XML): coop_to_ofx --ofx1 /path/to/statement.html coop_to_ofx --ofx1 --current /path/to/statement.html To show all the options: coop_to_ofx --help == To do XML / SGML validation of output against the specs"
46
+ email: matt@reprocessed.org
47
+ executables:
48
+ - coop_to_ofx
49
+ extensions: []
50
+
51
+ extra_rdoc_files:
52
+ - README.rdoc
53
+ files:
54
+ - Rakefile
55
+ - README.rdoc
56
+ - bin/coop_to_ofx
57
+ - spec/coop_scraper
58
+ - spec/coop_scraper/base_spec.rb
59
+ - spec/coop_scraper/credit_card_spec.rb
60
+ - spec/coop_scraper/current_account_spec.rb
61
+ - spec/fixtures
62
+ - spec/fixtures/credit_card
63
+ - spec/fixtures/credit_card/cc_statement_fixture.html
64
+ - spec/fixtures/credit_card/foreign_transaction_fixture.html
65
+ - spec/fixtures/credit_card/interest_transaction_fixture.html
66
+ - spec/fixtures/credit_card/maybe.txt
67
+ - spec/fixtures/credit_card/merchandise_interest_fixture.html
68
+ - spec/fixtures/credit_card/normal_transaction_fixture.html
69
+ - spec/fixtures/credit_card/overlimit_charge_fixture.html
70
+ - spec/fixtures/credit_card/payment_in_transaction_fixture.html
71
+ - spec/fixtures/credit_card/simple_cc_statement.ofx
72
+ - spec/fixtures/credit_card/statement_with_interest_line_fixture.html
73
+ - spec/fixtures/current_account
74
+ - spec/fixtures/current_account/cash_point_transaction_fixture.html
75
+ - spec/fixtures/current_account/current_account_fixture.html
76
+ - spec/fixtures/current_account/current_account_fixture.ofx
77
+ - spec/fixtures/current_account/debit_interest_transaction_fixture.html
78
+ - spec/fixtures/current_account/no_transactions_fixture.html
79
+ - spec/fixtures/current_account/normal_transaction_fixture.html
80
+ - spec/fixtures/current_account/payment_in_transaction_fixture.html
81
+ - spec/fixtures/current_account/service_charge_transaction_fixture.html
82
+ - spec/fixtures/current_account/transfer_transaction_fixture.html
83
+ - spec/ofx
84
+ - spec/ofx/statement
85
+ - spec/ofx/statement/base_spec.rb
86
+ - spec/ofx/statement/credit_card_spec.rb
87
+ - spec/ofx/statement/current_account_spec.rb
88
+ - spec/ofx/statement/output
89
+ - spec/ofx/statement/output/base_spec.rb
90
+ - spec/ofx/statement/output/builder_spec.rb
91
+ - spec/ofx/statement/output/credit_card_spec.rb
92
+ - spec/ofx/statement/output/current_account_spec.rb
93
+ - spec/ofx/statement/transaction_spec.rb
94
+ - spec/spec.opts
95
+ - spec/spec_helper.rb
96
+ - lib/coop_scraper
97
+ - lib/coop_scraper/base.rb
98
+ - lib/coop_scraper/credit_card.rb
99
+ - lib/coop_scraper/current_account.rb
100
+ - lib/coop_scraper/version.rb
101
+ - lib/coop_scraper.rb
102
+ - lib/ofx
103
+ - lib/ofx/statement
104
+ - lib/ofx/statement/base.rb
105
+ - lib/ofx/statement/credit_card.rb
106
+ - lib/ofx/statement/current_account.rb
107
+ - lib/ofx/statement/output
108
+ - lib/ofx/statement/output/base.rb
109
+ - lib/ofx/statement/output/builder.rb
110
+ - lib/ofx/statement/output/credit_card.rb
111
+ - lib/ofx/statement/output/current_account.rb
112
+ - lib/ofx/statement/transaction.rb
113
+ - lib/ofx/statement.rb
114
+ - lib/ofx.rb
115
+ has_rdoc: false
116
+ homepage: http://reprocessed.org/
117
+ post_install_message:
118
+ rdoc_options:
119
+ - --main
120
+ - README.rdoc
121
+ require_paths:
122
+ - lib
123
+ required_ruby_version: !ruby/object:Gem::Requirement
124
+ requirements:
125
+ - - ">="
126
+ - !ruby/object:Gem::Version
127
+ version: "0"
128
+ version:
129
+ required_rubygems_version: !ruby/object:Gem::Requirement
130
+ requirements:
131
+ - - ">="
132
+ - !ruby/object:Gem::Version
133
+ version: "0"
134
+ version:
135
+ requirements: []
136
+
137
+ rubyforge_project: coop_to_ofx
138
+ rubygems_version: 1.2.0
139
+ signing_key:
140
+ specification_version: 3
141
+ summary: Convert Co-operative bank HTML statements into OFX
142
+ test_files: []
143
+