ballista 0.0.5 → 0.1.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
2
  SHA256:
3
- metadata.gz: c74f019cd5c212356a42b5a7697b748bd988def4873ab99500524e61d9de8b8b
4
- data.tar.gz: 9bd98f2cfb303b2978016a15a2476fa281269d237f018e71a79eb7c968f45149
3
+ metadata.gz: 908c4d0abe9c14c6d26198e78b7e4bf02cf701079bb2adad1a903d7787cd7ddf
4
+ data.tar.gz: c1e953583fe7f32b7102bfe4f3924d74a9394fb51f08c8e8855141890a1ad391
5
5
  SHA512:
6
- metadata.gz: f70e7dc1751028e0bfd2874ea6cabf861427ee61cab59cf453adb2f5fd0b9cc53329a79b38718c1cbfb3c52ac2d4773440f5dbfc4270e4d6705fb2527e5d59c7
7
- data.tar.gz: 6dd125358119055315c358338a927ea0944db24587ac7d4705ce78442204b024a64c9418acaca2fbc0aa90681a760a0125a8a108cb3279d2e1b8b8230385ad75
6
+ metadata.gz: 8378709556a8a7661640a639584679aaa2d241760738ffa2340e9fd67bc78a349c446cc8eac1bed3b191df4d7315d3f650fde1f7dc97b9b6f31bdd803d2a4603
7
+ data.tar.gz: c4b2cb1ca8e1597fa8e241229501cd81aad6c926acf80ff47408b26b6e3b7ec9f858d176b837b77a75ea407978c3fb2ea3c5433f039256e5950cbeac0a86c3ef
data/ballista.gemspec CHANGED
@@ -6,6 +6,7 @@ Gem::Specification.new do |s|
6
6
  s.name = 'ballista'
7
7
  s.version = Ballista::VERSION
8
8
  s.date = Time.now.strftime('%Y-%m-%d')
9
+ s.required_ruby_version = '>= 2.5.0'
9
10
 
10
11
  s.summary = 'Projection tool for Ledger format'
11
12
  s.description = 'Projection tool for Ledger format'
@@ -19,13 +20,11 @@ Gem::Specification.new do |s|
19
20
  s.executables = ['ballista']
20
21
 
21
22
  s.add_dependency 'cymbal', '~> 2.0.0'
22
- s.add_dependency 'libledger', '~> 0.0.1'
23
- s.add_dependency 'mercenary', '~> 0.3.4'
23
+ s.add_dependency 'libledger', '~> 0.0.8'
24
+ s.add_dependency 'mercenary', '~> 0.4.0'
24
25
 
25
- s.add_development_dependency 'codecov', '~> 0.1.1'
26
- s.add_development_dependency 'fuubar', '~> 2.3.0'
27
- s.add_development_dependency 'goodcop', '~> 0.7.0'
28
- s.add_development_dependency 'rake', '~> 12.3.0'
29
- s.add_development_dependency 'rspec', '~> 3.8.0'
30
- s.add_development_dependency 'rubocop', '~> 0.67.2'
26
+ s.add_development_dependency 'codecov', '~> 0.5.1'
27
+ s.add_development_dependency 'goodcop', '~> 0.9.3'
28
+ s.add_development_dependency 'rake', '~> 13.0.3'
29
+ s.add_development_dependency 'rspec', '~> 3.10.0'
31
30
  end
data/bin/ballista CHANGED
@@ -24,9 +24,7 @@ def parse_start_end(start_dt, end_dt)
24
24
  end
25
25
 
26
26
  def parse_range(months, start_dt, end_dt)
27
- if months && (start_dt || end_dt)
28
- raise('Cannot specify months *and* start/end')
29
- end
27
+ raise('Cannot specify months *and* start/end') if months && (start_dt || end_dt)
30
28
  count_months(months) || parse_start_end(start_dt, end_dt) || count_months(12)
31
29
  end
32
30
 
@@ -27,7 +27,7 @@ module Ballista
27
27
  def out_of_bounds?(entry, date)
28
28
  if entry[:starts] && Date.parse(entry[:starts]) > date
29
29
  true
30
- elsif entry[:ends] && Date.parse(entry[:ends]) < date
30
+ elsif entry[:ends] && Date.parse(entry[:ends]) < date # rubocop:disable Lint/DuplicateBranch
31
31
  true
32
32
  else
33
33
  false
@@ -1,5 +1,5 @@
1
1
  ##
2
2
  # Set the version (needed for Mercenary -v)
3
3
  module Ballista
4
- VERSION = '0.0.5'.freeze
4
+ VERSION = '0.1.0'.freeze
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ballista
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Les Aker
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-06-13 00:00:00.000000000 Z
11
+ date: 2021-03-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cymbal
@@ -30,112 +30,84 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 0.0.1
33
+ version: 0.0.8
34
34
  type: :runtime
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.0.1
40
+ version: 0.0.8
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: mercenary
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: 0.3.4
47
+ version: 0.4.0
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: 0.3.4
54
+ version: 0.4.0
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: codecov
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: 0.1.1
61
+ version: 0.5.1
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
- version: 0.1.1
69
- - !ruby/object:Gem::Dependency
70
- name: fuubar
71
- requirement: !ruby/object:Gem::Requirement
72
- requirements:
73
- - - "~>"
74
- - !ruby/object:Gem::Version
75
- version: 2.3.0
76
- type: :development
77
- prerelease: false
78
- version_requirements: !ruby/object:Gem::Requirement
79
- requirements:
80
- - - "~>"
81
- - !ruby/object:Gem::Version
82
- version: 2.3.0
68
+ version: 0.5.1
83
69
  - !ruby/object:Gem::Dependency
84
70
  name: goodcop
85
71
  requirement: !ruby/object:Gem::Requirement
86
72
  requirements:
87
73
  - - "~>"
88
74
  - !ruby/object:Gem::Version
89
- version: 0.7.0
75
+ version: 0.9.3
90
76
  type: :development
91
77
  prerelease: false
92
78
  version_requirements: !ruby/object:Gem::Requirement
93
79
  requirements:
94
80
  - - "~>"
95
81
  - !ruby/object:Gem::Version
96
- version: 0.7.0
82
+ version: 0.9.3
97
83
  - !ruby/object:Gem::Dependency
98
84
  name: rake
99
85
  requirement: !ruby/object:Gem::Requirement
100
86
  requirements:
101
87
  - - "~>"
102
88
  - !ruby/object:Gem::Version
103
- version: 12.3.0
89
+ version: 13.0.3
104
90
  type: :development
105
91
  prerelease: false
106
92
  version_requirements: !ruby/object:Gem::Requirement
107
93
  requirements:
108
94
  - - "~>"
109
95
  - !ruby/object:Gem::Version
110
- version: 12.3.0
96
+ version: 13.0.3
111
97
  - !ruby/object:Gem::Dependency
112
98
  name: rspec
113
99
  requirement: !ruby/object:Gem::Requirement
114
100
  requirements:
115
101
  - - "~>"
116
102
  - !ruby/object:Gem::Version
117
- version: 3.8.0
103
+ version: 3.10.0
118
104
  type: :development
119
105
  prerelease: false
120
106
  version_requirements: !ruby/object:Gem::Requirement
121
107
  requirements:
122
108
  - - "~>"
123
109
  - !ruby/object:Gem::Version
124
- version: 3.8.0
125
- - !ruby/object:Gem::Dependency
126
- name: rubocop
127
- requirement: !ruby/object:Gem::Requirement
128
- requirements:
129
- - - "~>"
130
- - !ruby/object:Gem::Version
131
- version: 0.67.2
132
- type: :development
133
- prerelease: false
134
- version_requirements: !ruby/object:Gem::Requirement
135
- requirements:
136
- - - "~>"
137
- - !ruby/object:Gem::Version
138
- version: 0.67.2
110
+ version: 3.10.0
139
111
  description: Projection tool for Ledger format
140
112
  email: me@lesaker.org
141
113
  executables:
@@ -169,7 +141,7 @@ homepage: https://github.com/akerl/ballista
169
141
  licenses:
170
142
  - MIT
171
143
  metadata: {}
172
- post_install_message:
144
+ post_install_message:
173
145
  rdoc_options: []
174
146
  require_paths:
175
147
  - lib
@@ -177,15 +149,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
177
149
  requirements:
178
150
  - - ">="
179
151
  - !ruby/object:Gem::Version
180
- version: '0'
152
+ version: 2.5.0
181
153
  required_rubygems_version: !ruby/object:Gem::Requirement
182
154
  requirements:
183
155
  - - ">="
184
156
  - !ruby/object:Gem::Version
185
157
  version: '0'
186
158
  requirements: []
187
- rubygems_version: 3.0.1
188
- signing_key:
159
+ rubygems_version: 3.1.2
160
+ signing_key:
189
161
  specification_version: 4
190
162
  summary: Projection tool for Ledger format
191
163
  test_files: