burglar 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
- SHA1:
3
- metadata.gz: 81787646ec2d922aea291dfaf4de5fcb7d08eb01
4
- data.tar.gz: a329034499aa42ad0ef1a8ec79459d1cf89fa50e
2
+ SHA256:
3
+ metadata.gz: 6ac080f5a8dd80fc3e143c80017fb735cd27511d686a088fe257e8e604658a9e
4
+ data.tar.gz: 386b942a22b29cfc4601ab20cbf36953dc0b1d0123227fe1aeb205cedb3af1d1
5
5
  SHA512:
6
- metadata.gz: 4d9e2cc34ec13edf2daa8e1ea132061ef0bd660b43991ddac1cbdd175d9d3fca126510c79542ed9bb92545b1c9867828d1fb9bb3f66074e31a661ddaa7aead81
7
- data.tar.gz: 6b236a999b709735b7bfc130dd57ad321c391d478cd4004beebc14585b5056c8b18a6dca41fae9e74fcb701e9cf201595b190c92742d773f48cf3eaf57175172
6
+ metadata.gz: de433fd0719a368466ba29e9de9346e8027c0a4bfda545d32947b9a0747e75976d94b919de967fbd85c35f8bc0ef3af2530dc094ec5dbcf7192bfb53ea7d045f
7
+ data.tar.gz: 8315d152306e918330142da70d9beb943e5adbcd44485e8ccf7b857a21839e6522caad6677c0ad7ce873892cce46c08c2b2b7bd85f3c3800bce5561c6cfe35f5
data/.circle-ruby CHANGED
@@ -1,3 +1,4 @@
1
- 2.4.2
2
- 2.3.5
3
- 2.2.8
1
+ 2.6.1
2
+ 2.5.3
3
+ 2.4.5
4
+ 2.3.8
data/.prospectus CHANGED
@@ -1,25 +1,11 @@
1
- Prospectus.extra_dep('file', 'prospectus_circleci')
2
-
3
1
  my_slug = 'akerl/burglar'
4
2
 
3
+ Prospectus.extra_dep('file', 'prospectus_travis')
4
+ Prospectus.extra_dep('file', 'prospectus_gems')
5
+
5
6
  item do
6
7
  noop
7
8
 
8
- deps do
9
- item do
10
- name 'gems'
11
-
12
- expected do
13
- static
14
- set 'green'
15
- end
16
-
17
- actual do
18
- gemnasium
19
- slug my_slug
20
- end
21
- end
22
- end
23
-
24
- extend ProspectusCircleci::Build.new(my_slug)
9
+ extend ProspectusGems::Gemspec.new
10
+ extend ProspectusTravis::Build.new(my_slug)
25
11
  end
data/.rubocop.yml CHANGED
@@ -1,5 +1,2 @@
1
1
  inherit_gem:
2
2
  goodcop: .rubocop.yml
3
- AllCops:
4
- Include:
5
- - 'bin/*'
data/.travis.yml ADDED
@@ -0,0 +1,10 @@
1
+ dist: trusty
2
+ install:
3
+ - for i in $(cat .circle-ruby) ; do rvm install $i || exit 1 ; done
4
+ - for i in $(cat .circle-ruby) ; do rvm-exec $i bundle install || exit 1 ; done
5
+ script:
6
+ - for i in $(cat .circle-ruby) ; do rvm-exec $i bundle exec rake || exit 1 ; done
7
+ notifications:
8
+ email: false
9
+ slack:
10
+ secure: SYccHD5WsfHDkCyAcr5vfAckVcrFbR9ZjkfkahXbeyW+uC9LC1M+oqbqiLy3Oi00HV2myKg5ajsqzrXihLP5uTyWWcUAXwvAmVzerdMAfjbzteKlZnTD8fsFJ82rEoJJthk4ua4+kzYnXOv7j3cNvkssVEATEqefwZ+mJfS8HQxmnY6NPyqm4AtQBR/GFnDShDjE0mWvjeUPpS60xOOOiHKcN5bp3Epdg43AXyFV37YtDHyhpmjsJTfY9WMwdf6p2jwCeqV0vdmyAFMy3efFC4/uP//9ac3O0HuwFX3xVyBhhwd7naN+aXpkjDmrLtsPttcJWVkeWWn4Cqdausa36ZLwSjHO0hcEJS5DYTqeI6uzVQP54gKZaxIWXgyYHCG6H0bzZFov4J2W47MX9AKQ2Z5ATjJgEqSCKZlbD1enQR+5ip+BJonmxbHx0N4VCDhK24l4GETIhhASGGDAkiKEVSG/k3XrGszPMJDpR/JXypo1jt+8i5BElBW6O/7smvYwP0ejNJIiZgSuODbFltnIKMdGjIwP1gHreNKMNS9ziR8nh1KJpKD6iFwBCwv+PhH8YQ1uEJDtweeIZKLA36SttwKlDoiWxZj/Zkw1MVsO7Rvijxuyg66Dm9HggZ5zpISvPm1JYsHUN34Wmc8hIUmG3b/+96viyausXV/3li0SLVI=
data/README.md CHANGED
@@ -2,8 +2,7 @@ burglar
2
2
  =========
3
3
 
4
4
  [![Gem Version](https://img.shields.io/gem/v/burglar.svg)](https://rubygems.org/gems/burglar)
5
- [![Dependency Status](https://img.shields.io/gemnasium/akerl/burglar.svg)](https://gemnasium.com/akerl/burglar)
6
- [![Build Status](https://img.shields.io/circleci/project/akerl/burglar/master.svg)](https://circleci.com/gh/akerl/burglar)
5
+ [![Build Status](https://img.shields.io/travis/com/akerl/burglar.svg)](https://travis-ci.com/akerl/burglar)
7
6
  [![Coverage Status](https://img.shields.io/codecov/c/github/akerl/burglar.svg)](https://codecov.io/github/akerl/burglar)
8
7
  [![Code Quality](https://img.shields.io/codacy/940f3f131d724124a68a0be7d21f951b.svg)](https://www.codacy.com/app/akerl/burglar)
9
8
  [![MIT Licensed](https://img.shields.io/badge/license-MIT-green.svg)](https://tldrlegal.com/license/mit-license)
data/bin/burglar CHANGED
@@ -4,6 +4,7 @@ require 'burglar'
4
4
  require 'mercenary'
5
5
  require 'cymbal'
6
6
  require 'yaml'
7
+ require 'date'
7
8
 
8
9
  def add_common_opts(c)
9
10
  c.option :config, '-c FILE', '--config FILE', 'Config file to load'
@@ -17,6 +18,11 @@ def load_config(file)
17
18
  Cymbal.symbolize YAML.safe_load(File.read(file))
18
19
  end
19
20
 
21
+ def date_parse_or_default(string, default)
22
+ return default unless string
23
+ Date.parse(string)
24
+ end
25
+
20
26
  Mercenary.program(:burglar) do |p|
21
27
  p.version Burglar::VERSION
22
28
  p.description 'Load data from banks'
@@ -25,8 +31,8 @@ Mercenary.program(:burglar) do |p|
25
31
  add_common_opts(p)
26
32
 
27
33
  p.action do |_, options|
28
- options[:end] ||= Date.today
29
- options[:begin] ||= options[:end] - 30
34
+ options[:end] = date_parse_or_default(options[:end], Date.today)
35
+ options[:begin] = date_parse_or_default(options[:begin], options[:end])
30
36
  config = load_config(options[:config]).merge(options)
31
37
  puts Burglar.new(config).transactions
32
38
  end
data/burglar.gemspec CHANGED
@@ -1,5 +1,5 @@
1
1
  require 'English'
2
- $LOAD_PATH.unshift File.expand_path('../lib/', __FILE__)
2
+ $LOAD_PATH.unshift File.expand_path('lib', __dir__)
3
3
  require 'burglar/version'
4
4
 
5
5
  Gem::Specification.new do |s|
@@ -18,15 +18,15 @@ Gem::Specification.new do |s|
18
18
  s.test_files = `git ls-files spec/*`.split
19
19
  s.executables = ['burglar']
20
20
 
21
- s.add_dependency 'cymbal', '~> 1.0.0'
21
+ s.add_dependency 'cymbal', '~> 2.0.0'
22
22
  s.add_dependency 'libledger', '~> 0.0.3'
23
23
  s.add_dependency 'logcabin', '~> 0.1.3'
24
24
  s.add_dependency 'mercenary', '~> 0.3.4'
25
25
 
26
26
  s.add_development_dependency 'codecov', '~> 0.1.1'
27
- s.add_development_dependency 'fuubar', '~> 2.2.0'
28
- s.add_development_dependency 'goodcop', '~> 0.1.0'
27
+ s.add_development_dependency 'fuubar', '~> 2.3.0'
28
+ s.add_development_dependency 'goodcop', '~> 0.6.0'
29
29
  s.add_development_dependency 'rake', '~> 12.3.0'
30
- s.add_development_dependency 'rspec', '~> 3.7.0'
31
- s.add_development_dependency 'rubocop', '~> 0.51.0'
30
+ s.add_development_dependency 'rspec', '~> 3.8.0'
31
+ s.add_development_dependency 'rubocop', '~> 0.65.0'
32
32
  end
@@ -3,5 +3,5 @@
3
3
  ##
4
4
  # Set the version (needed for Mercenary -v)
5
5
  module Burglar
6
- VERSION = '0.0.2'.freeze
6
+ VERSION = '0.0.3'.freeze
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: burglar
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
  - Les Aker
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-12-07 00:00:00.000000000 Z
11
+ date: 2019-03-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cymbal
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 1.0.0
19
+ version: 2.0.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 1.0.0
26
+ version: 2.0.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: libledger
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -86,28 +86,28 @@ dependencies:
86
86
  requirements:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: 2.2.0
89
+ version: 2.3.0
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: 2.2.0
96
+ version: 2.3.0
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: goodcop
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
101
  - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: 0.1.0
103
+ version: 0.6.0
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - "~>"
109
109
  - !ruby/object:Gem::Version
110
- version: 0.1.0
110
+ version: 0.6.0
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: rake
113
113
  requirement: !ruby/object:Gem::Requirement
@@ -128,28 +128,28 @@ dependencies:
128
128
  requirements:
129
129
  - - "~>"
130
130
  - !ruby/object:Gem::Version
131
- version: 3.7.0
131
+ version: 3.8.0
132
132
  type: :development
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
136
  - - "~>"
137
137
  - !ruby/object:Gem::Version
138
- version: 3.7.0
138
+ version: 3.8.0
139
139
  - !ruby/object:Gem::Dependency
140
140
  name: rubocop
141
141
  requirement: !ruby/object:Gem::Requirement
142
142
  requirements:
143
143
  - - "~>"
144
144
  - !ruby/object:Gem::Version
145
- version: 0.51.0
145
+ version: 0.65.0
146
146
  type: :development
147
147
  prerelease: false
148
148
  version_requirements: !ruby/object:Gem::Requirement
149
149
  requirements:
150
150
  - - "~>"
151
151
  - !ruby/object:Gem::Version
152
- version: 0.51.0
152
+ version: 0.65.0
153
153
  description: Tool for parsing data from bank websites
154
154
  email: me@lesaker.org
155
155
  executables:
@@ -162,13 +162,13 @@ files:
162
162
  - ".prospectus"
163
163
  - ".rspec"
164
164
  - ".rubocop.yml"
165
+ - ".travis.yml"
165
166
  - Gemfile
166
167
  - LICENSE
167
168
  - README.md
168
169
  - Rakefile
169
170
  - bin/burglar
170
171
  - burglar.gemspec
171
- - circle.yml
172
172
  - lib/burglar.rb
173
173
  - lib/burglar/bank.rb
174
174
  - lib/burglar/heist.rb
@@ -199,8 +199,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
199
199
  - !ruby/object:Gem::Version
200
200
  version: '0'
201
201
  requirements: []
202
- rubyforge_project:
203
- rubygems_version: 2.6.14
202
+ rubygems_version: 3.0.1
204
203
  signing_key:
205
204
  specification_version: 4
206
205
  summary: Tool for parsing data from bank websites
data/circle.yml DELETED
@@ -1,7 +0,0 @@
1
- dependencies:
2
- override:
3
- - 'for i in $(cat .circle-ruby) ; do rvm-exec $i gem update --system --no-doc || exit 1 ; done'
4
- - 'for i in $(cat .circle-ruby) ; do rvm-exec $i bundle install || exit 1 ; done'
5
- test:
6
- override:
7
- - 'for i in $(cat .circle-ruby) ; do rvm-exec $i bundle exec rake || exit 1 ; done'