moneymanager 0.1.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.
- checksums.yaml +7 -0
- data/.gitignore +9 -0
- data/.rubocop.yml +14 -0
- data/.travis.yml +5 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +21 -0
- data/README.md +41 -0
- data/Rakefile +10 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/exe/mm +68 -0
- data/lib/moneymanager/archiver.rb +67 -0
- data/lib/moneymanager/entry.rb +39 -0
- data/lib/moneymanager/layout.rb +46 -0
- data/lib/moneymanager/parser.rb +44 -0
- data/lib/moneymanager/reviewer.rb +21 -0
- data/lib/moneymanager/tagger.rb +36 -0
- data/lib/moneymanager/version.rb +3 -0
- data/lib/moneymanager.rb +10 -0
- data/moneymanager.gemspec +32 -0
- metadata +163 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 3c6ed2a51631e896adc9d37ccd801863666e3daf
|
4
|
+
data.tar.gz: 90e85ddbf9508dc3b504adac53a1c78f2fbadfeb
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 0b0d80d711e1f45d17faaf0c7b9ba502cd4b06c7eae31d70720c58ea6efffa5f3a1110b4592c4d4cc87ddbf9477f28d35e2627feb7e94648472449b4a62b2c89
|
7
|
+
data.tar.gz: bc74ae900f4f5cd0ed978ece2b34f454f09d6aa4e0dbe3b2c95fe9bfc81ecc723497c4a2056b0d30d38d7a83c3595172a7663f28b9bd83ed830b3592e9513796
|
data/.gitignore
ADDED
data/.rubocop.yml
ADDED
data/.travis.yml
ADDED
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,74 @@
|
|
1
|
+
# Contributor Covenant Code of Conduct
|
2
|
+
|
3
|
+
## Our Pledge
|
4
|
+
|
5
|
+
In the interest of fostering an open and welcoming environment, we as
|
6
|
+
contributors and maintainers pledge to making participation in our project and
|
7
|
+
our community a harassment-free experience for everyone, regardless of age, body
|
8
|
+
size, disability, ethnicity, gender identity and expression, level of experience,
|
9
|
+
nationality, personal appearance, race, religion, or sexual identity and
|
10
|
+
orientation.
|
11
|
+
|
12
|
+
## Our Standards
|
13
|
+
|
14
|
+
Examples of behavior that contributes to creating a positive environment
|
15
|
+
include:
|
16
|
+
|
17
|
+
* Using welcoming and inclusive language
|
18
|
+
* Being respectful of differing viewpoints and experiences
|
19
|
+
* Gracefully accepting constructive criticism
|
20
|
+
* Focusing on what is best for the community
|
21
|
+
* Showing empathy towards other community members
|
22
|
+
|
23
|
+
Examples of unacceptable behavior by participants include:
|
24
|
+
|
25
|
+
* The use of sexualized language or imagery and unwelcome sexual attention or
|
26
|
+
advances
|
27
|
+
* Trolling, insulting/derogatory comments, and personal or political attacks
|
28
|
+
* Public or private harassment
|
29
|
+
* Publishing others' private information, such as a physical or electronic
|
30
|
+
address, without explicit permission
|
31
|
+
* Other conduct which could reasonably be considered inappropriate in a
|
32
|
+
professional setting
|
33
|
+
|
34
|
+
## Our Responsibilities
|
35
|
+
|
36
|
+
Project maintainers are responsible for clarifying the standards of acceptable
|
37
|
+
behavior and are expected to take appropriate and fair corrective action in
|
38
|
+
response to any instances of unacceptable behavior.
|
39
|
+
|
40
|
+
Project maintainers have the right and responsibility to remove, edit, or
|
41
|
+
reject comments, commits, code, wiki edits, issues, and other contributions
|
42
|
+
that are not aligned to this Code of Conduct, or to ban temporarily or
|
43
|
+
permanently any contributor for other behaviors that they deem inappropriate,
|
44
|
+
threatening, offensive, or harmful.
|
45
|
+
|
46
|
+
## Scope
|
47
|
+
|
48
|
+
This Code of Conduct applies both within project spaces and in public spaces
|
49
|
+
when an individual is representing the project or its community. Examples of
|
50
|
+
representing a project or community include using an official project e-mail
|
51
|
+
address, posting via an official social media account, or acting as an appointed
|
52
|
+
representative at an online or offline event. Representation of a project may be
|
53
|
+
further defined and clarified by project maintainers.
|
54
|
+
|
55
|
+
## Enforcement
|
56
|
+
|
57
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
58
|
+
reported by contacting the project team at ignazioc@gmail.com. All
|
59
|
+
complaints will be reviewed and investigated and will result in a response that
|
60
|
+
is deemed necessary and appropriate to the circumstances. The project team is
|
61
|
+
obligated to maintain confidentiality with regard to the reporter of an incident.
|
62
|
+
Further details of specific enforcement policies may be posted separately.
|
63
|
+
|
64
|
+
Project maintainers who do not follow or enforce the Code of Conduct in good
|
65
|
+
faith may face temporary or permanent repercussions as determined by other
|
66
|
+
members of the project's leadership.
|
67
|
+
|
68
|
+
## Attribution
|
69
|
+
|
70
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
|
71
|
+
available at [http://contributor-covenant.org/version/1/4][version]
|
72
|
+
|
73
|
+
[homepage]: http://contributor-covenant.org
|
74
|
+
[version]: http://contributor-covenant.org/version/1/4/
|
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2017 ignazioc
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,41 @@
|
|
1
|
+
# Moneymanager
|
2
|
+
|
3
|
+
Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/moneymanager`. To experiment with that code, run `bin/console` for an interactive prompt.
|
4
|
+
|
5
|
+
TODO: Delete this and the text above, and describe your gem
|
6
|
+
|
7
|
+
## Installation
|
8
|
+
|
9
|
+
Add this line to your application's Gemfile:
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
gem 'moneymanager'
|
13
|
+
```
|
14
|
+
|
15
|
+
And then execute:
|
16
|
+
|
17
|
+
$ bundle
|
18
|
+
|
19
|
+
Or install it yourself as:
|
20
|
+
|
21
|
+
$ gem install moneymanager
|
22
|
+
|
23
|
+
## Usage
|
24
|
+
|
25
|
+
TODO: Write usage instructions here
|
26
|
+
|
27
|
+
## Development
|
28
|
+
|
29
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
30
|
+
|
31
|
+
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
32
|
+
|
33
|
+
## Contributing
|
34
|
+
|
35
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/ignazioc/moneymanager. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
36
|
+
|
37
|
+
|
38
|
+
## License
|
39
|
+
|
40
|
+
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
41
|
+
|
data/Rakefile
ADDED
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require 'bundler/setup'
|
4
|
+
require 'moneymanager'
|
5
|
+
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
8
|
+
|
9
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
+
# require "pry"
|
11
|
+
# Pry.start
|
12
|
+
|
13
|
+
require 'irb'
|
14
|
+
IRB.start
|
data/bin/setup
ADDED
data/exe/mm
ADDED
@@ -0,0 +1,68 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
require 'moneymanager'
|
3
|
+
require 'commander/import'
|
4
|
+
|
5
|
+
program :name, 'mm'
|
6
|
+
program :version, Moneymanager::VERSION
|
7
|
+
program :description, 'Manage your money via commandline'
|
8
|
+
|
9
|
+
command :add do |c|
|
10
|
+
c.syntax = 'mm add <path>'
|
11
|
+
c.description = 'Import the CSV file'
|
12
|
+
c.action do |args, _options|
|
13
|
+
abort(c.syntax) if args.first.nil?
|
14
|
+
parser = Moneymanager::Parser.new args.first
|
15
|
+
entries = parser.parse
|
16
|
+
archiver = Moneymanager::Archiver.new
|
17
|
+
archiver.store(entries)
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
21
|
+
command :print do |c|
|
22
|
+
c.syntax = 'mm print [--month <month>]'
|
23
|
+
c.description = 'Print the list of transactions'
|
24
|
+
c.option '--month INTEGER', Integer, 'Specify the month to print.'
|
25
|
+
c.action do |_args, options|
|
26
|
+
entries = get_entries(options.month)
|
27
|
+
Layout.print_multiple(entries)
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
31
|
+
command :tag do |c|
|
32
|
+
c.syntax = 'mm tags'
|
33
|
+
c.description = 'Print the list of transactions'
|
34
|
+
c.option '--month INTEGER', Integer, 'Specify the month to tag.'
|
35
|
+
c.action do |_args, options|
|
36
|
+
entries = get_entries(options.month)
|
37
|
+
Tagger.new.retag(entries)
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
41
|
+
command :review do |c|
|
42
|
+
c.syntax = 'mm review'
|
43
|
+
c.description = 'Start the review process'
|
44
|
+
c.option '--month INTEGER', Integer, 'Specify the month to review.'
|
45
|
+
c.action do |_args, options|
|
46
|
+
entries = get_entries(options.month)
|
47
|
+
Reviewer.new.review(entries)
|
48
|
+
end
|
49
|
+
end
|
50
|
+
|
51
|
+
command :summary do |c|
|
52
|
+
c.syntax = 'mm summary'
|
53
|
+
c.description = 'Print the sum of the revenue, the sum of the expenses and the differences'
|
54
|
+
c.option '--month INTEGER', Integer, 'Specify the month to review.'
|
55
|
+
c.action do |_args, options|
|
56
|
+
entries = get_entries(options.month)
|
57
|
+
expenses = entries.reject(&:is_income).map(&:amount).reduce(:+)
|
58
|
+
incomes = entries.reject(&:is_expense).map(&:amount).reduce(:+)
|
59
|
+
Layout.print_summary(incomes, expenses)
|
60
|
+
|
61
|
+
end
|
62
|
+
end
|
63
|
+
|
64
|
+
def get_entries(month)
|
65
|
+
month ||= Date.today.month
|
66
|
+
archiver = Moneymanager::Archiver.new
|
67
|
+
archiver.all_entries_per_month(month)
|
68
|
+
end
|
@@ -0,0 +1,67 @@
|
|
1
|
+
require 'yaml'
|
2
|
+
|
3
|
+
module Moneymanager
|
4
|
+
class Archiver
|
5
|
+
def self.archive_path
|
6
|
+
File.join(Dir.home, '.moneymanager')
|
7
|
+
end
|
8
|
+
|
9
|
+
def self.empty_archive
|
10
|
+
{ entries: [],
|
11
|
+
tags: [] }
|
12
|
+
end
|
13
|
+
|
14
|
+
def self.reset
|
15
|
+
File.write(Archiver.archive_path, Archiver.empty_archive.to_yaml)
|
16
|
+
end
|
17
|
+
|
18
|
+
def initialize
|
19
|
+
@db = if File.exist? Archiver.archive_path
|
20
|
+
YAML.load_file(Archiver.archive_path)
|
21
|
+
else
|
22
|
+
Archiver.empty_archive
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
26
|
+
def save
|
27
|
+
File.write(Archiver.archive_path, @db.to_yaml)
|
28
|
+
end
|
29
|
+
|
30
|
+
def store(entries)
|
31
|
+
previous_digest = all_entries.map(&:digest)
|
32
|
+
|
33
|
+
to_insert = entries.reject do |entry|
|
34
|
+
previous_digest.include?(entry.digest)
|
35
|
+
end
|
36
|
+
@db[:entries].concat(to_insert)
|
37
|
+
save
|
38
|
+
puts "Parsed: #{entries.count}"
|
39
|
+
puts "Skipped: #{entries.count - to_insert.count}"
|
40
|
+
puts "Inserted: #{to_insert.count}"
|
41
|
+
end
|
42
|
+
|
43
|
+
def update(entry)
|
44
|
+
@db[:entries].delete_if { |obj| obj.digest == entry.digest }
|
45
|
+
@db[:entries] << entry
|
46
|
+
save
|
47
|
+
end
|
48
|
+
|
49
|
+
def all_entries
|
50
|
+
@db[:entries].sort_by(&:date)
|
51
|
+
end
|
52
|
+
|
53
|
+
def all_entries_per_month(month)
|
54
|
+
@db[:entries].sort_by(&:date).select do |entry|
|
55
|
+
entry.date.month == month
|
56
|
+
end
|
57
|
+
end
|
58
|
+
|
59
|
+
def tags
|
60
|
+
@db[:tags]
|
61
|
+
end
|
62
|
+
def store_tag(tag)
|
63
|
+
@db[:tags] << tag
|
64
|
+
save
|
65
|
+
end
|
66
|
+
end
|
67
|
+
end
|
@@ -0,0 +1,39 @@
|
|
1
|
+
require 'digest/sha1'
|
2
|
+
module Moneymanager
|
3
|
+
class Entry
|
4
|
+
attr_accessor :date, :reason, :amount, :company, :raw, :approved, :tag
|
5
|
+
|
6
|
+
def initialize
|
7
|
+
@approved = false
|
8
|
+
end
|
9
|
+
|
10
|
+
def digest
|
11
|
+
Digest::SHA1.hexdigest(@raw)
|
12
|
+
end
|
13
|
+
|
14
|
+
def to_s
|
15
|
+
"Date: #{@date}, #{reason}, #{amount}, #{company}"
|
16
|
+
end
|
17
|
+
|
18
|
+
def formatted_approved
|
19
|
+
if approved
|
20
|
+
'✔︎'.green
|
21
|
+
else
|
22
|
+
'✖︎'.red
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
26
|
+
def formatted_amount
|
27
|
+
s = amount.to_s + ' €'
|
28
|
+
amount < 0 ? s.red : s.green
|
29
|
+
end
|
30
|
+
|
31
|
+
def is_expense
|
32
|
+
amount < 0
|
33
|
+
end
|
34
|
+
def is_income
|
35
|
+
!is_expense
|
36
|
+
end
|
37
|
+
|
38
|
+
end
|
39
|
+
end
|
@@ -0,0 +1,46 @@
|
|
1
|
+
class Layout
|
2
|
+
def self.print_multiple(entries)
|
3
|
+
clear
|
4
|
+
rows = entries.map { |entry| [entry.formatted_approved, entry.date.strftime('%y/%m/%d'), entry.tag, entry.reason[0...50], entry.formatted_amount] }
|
5
|
+
|
6
|
+
table = Terminal::Table.new headings: ['✔/✖︎', 'Date', 'Tag', 'Reason', 'Amount'], rows: rows
|
7
|
+
table.align_column(4, :right)
|
8
|
+
table.align_column(0, :center)
|
9
|
+
|
10
|
+
puts table
|
11
|
+
end
|
12
|
+
|
13
|
+
def self.print_single(entry)
|
14
|
+
hash = {
|
15
|
+
date: entry.date,
|
16
|
+
reason: entry.reason,
|
17
|
+
amount: entry.formatted_amount,
|
18
|
+
company: entry.company,
|
19
|
+
approved: entry.formatted_approved,
|
20
|
+
tag: entry.tag
|
21
|
+
}
|
22
|
+
rows = hash.map { |k, v| [k.to_s.capitalize, v] }
|
23
|
+
puts Terminal::Table.new rows: rows
|
24
|
+
end
|
25
|
+
|
26
|
+
def self.formatted_amount(amount)
|
27
|
+
s = amount.to_s + ' €'
|
28
|
+
amount < 0 ? s.red : s.green
|
29
|
+
end
|
30
|
+
|
31
|
+
def self.print_summary(income, expenses)
|
32
|
+
delta = income + expenses
|
33
|
+
table = Terminal::Table.new do |t|
|
34
|
+
t << ['Income', formatted_amount(income)]
|
35
|
+
t << ['Expense', formatted_amount(expenses)]
|
36
|
+
t << ['Delta', formatted_amount(delta)]
|
37
|
+
end
|
38
|
+
table.align_column(1, :right)
|
39
|
+
table.title = "Summary"
|
40
|
+
puts table
|
41
|
+
end
|
42
|
+
|
43
|
+
def self.clear
|
44
|
+
print "\e[H\e[2J"
|
45
|
+
end
|
46
|
+
end
|
@@ -0,0 +1,44 @@
|
|
1
|
+
require 'csv'
|
2
|
+
require 'date'
|
3
|
+
module Moneymanager
|
4
|
+
class Parser
|
5
|
+
def keys
|
6
|
+
%i[auftragskonto
|
7
|
+
buchungstag
|
8
|
+
valutadatum
|
9
|
+
buchungstext
|
10
|
+
verwendungszweck
|
11
|
+
glaeubiger_id
|
12
|
+
mandatsreferenz
|
13
|
+
kundenreferenz_endtoend
|
14
|
+
sammlerreferenz
|
15
|
+
lastschrift_ursprungsbetrag
|
16
|
+
auslagenersatz_ruecklastschrift
|
17
|
+
beguenstigterzahlungspflichtiger
|
18
|
+
kontonummeriban
|
19
|
+
bic_swiftcode
|
20
|
+
betrag
|
21
|
+
waehrung
|
22
|
+
info]
|
23
|
+
end
|
24
|
+
|
25
|
+
def initialize(f)
|
26
|
+
@local_file = f
|
27
|
+
end
|
28
|
+
|
29
|
+
def parse
|
30
|
+
options = { headers: true, return_headers: false, header_converters: :symbol, converters: :all, col_sep: ';' }
|
31
|
+
entries = []
|
32
|
+
CSV.foreach(@local_file, options) do |row|
|
33
|
+
entry = Entry.new
|
34
|
+
entry.date = Date.strptime(row[:buchungstag], '%d.%m.%y')
|
35
|
+
entry.reason = row[:verwendungszweck].squeeze(' ')
|
36
|
+
entry.amount = row[:betrag].to_f
|
37
|
+
entry.company = row[:beguenstigterzahlungspflichtiger].squeeze(' ')
|
38
|
+
entry.raw = row.to_csv.squeeze(' ')
|
39
|
+
entries << entry
|
40
|
+
end
|
41
|
+
entries
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
@@ -0,0 +1,21 @@
|
|
1
|
+
class Reviewer
|
2
|
+
def review(entries)
|
3
|
+
archiver = Moneymanager::Archiver.new
|
4
|
+
entries.each do |entry|
|
5
|
+
Layout.clear
|
6
|
+
Layout.print_single(entry)
|
7
|
+
prompt = TTY::Prompt.new
|
8
|
+
action = prompt.select('Do you recognize?', %i[yes no skip abort], per_page: 30)
|
9
|
+
|
10
|
+
case action
|
11
|
+
when :yes
|
12
|
+
entry.approved = true
|
13
|
+
when :no
|
14
|
+
entry.approved = false
|
15
|
+
when :abort
|
16
|
+
exit
|
17
|
+
end
|
18
|
+
archiver.update(entry)
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
@@ -0,0 +1,36 @@
|
|
1
|
+
class Tagger
|
2
|
+
def default_options
|
3
|
+
[:'1. Skip', :'2. Abort', :'3. Create'].sort
|
4
|
+
end
|
5
|
+
|
6
|
+
def retag(entries)
|
7
|
+
archiver = Moneymanager::Archiver.new
|
8
|
+
|
9
|
+
|
10
|
+
|
11
|
+
prompt = TTY::Prompt.new
|
12
|
+
entries.each do |entry|
|
13
|
+
Layout.clear
|
14
|
+
Layout.print_single(entry)
|
15
|
+
options = default_options.concat(archiver.tags)
|
16
|
+
action = prompt.select('Do you want add a tags?', options, per_page: 30)
|
17
|
+
|
18
|
+
if action == default_options[0]
|
19
|
+
# NOP
|
20
|
+
elsif action == default_options[1]
|
21
|
+
exit
|
22
|
+
elsif action == default_options[2]
|
23
|
+
tag = prompt.ask('Create a new tag') do |q|
|
24
|
+
q.required true
|
25
|
+
q.validate(/^\S*$/)
|
26
|
+
q.modify :capitalize
|
27
|
+
end
|
28
|
+
entry.tag = tag
|
29
|
+
archiver.store_tag(tag)
|
30
|
+
else
|
31
|
+
entry.tag = action
|
32
|
+
end
|
33
|
+
archiver.update(entry)
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
data/lib/moneymanager.rb
ADDED
@@ -0,0 +1,10 @@
|
|
1
|
+
require 'terminal-table'
|
2
|
+
require 'colorize'
|
3
|
+
require 'tty-prompt'
|
4
|
+
require "moneymanager/version"
|
5
|
+
require 'moneymanager/archiver'
|
6
|
+
require 'moneymanager/layout'
|
7
|
+
require 'moneymanager/parser'
|
8
|
+
require 'moneymanager/entry'
|
9
|
+
require 'moneymanager/tagger'
|
10
|
+
require 'moneymanager/reviewer'
|
@@ -0,0 +1,32 @@
|
|
1
|
+
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'moneymanager/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = 'moneymanager'
|
8
|
+
spec.version = Moneymanager::VERSION
|
9
|
+
spec.authors = ['ignazioc']
|
10
|
+
spec.email = ['ignazioc@gmail.com']
|
11
|
+
|
12
|
+
spec.summary = 'Import dta from your bank and manage your money'
|
13
|
+
spec.description = 'Import dta from your bank and manage your money'
|
14
|
+
spec.homepage = 'https://www.github.com/ignazioc/moneymanager'
|
15
|
+
spec.license = 'MIT'
|
16
|
+
|
17
|
+
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
18
|
+
f.match(%r{^(test|spec|features)/})
|
19
|
+
end
|
20
|
+
spec.bindir = 'exe'
|
21
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
22
|
+
spec.require_paths = ['lib']
|
23
|
+
|
24
|
+
spec.add_dependency 'commander'
|
25
|
+
spec.add_dependency 'colorize'
|
26
|
+
spec.add_dependency 'terminal-table'
|
27
|
+
spec.add_dependency 'tty-prompt'
|
28
|
+
|
29
|
+
spec.add_development_dependency 'bundler', '~> 1.13'
|
30
|
+
spec.add_development_dependency 'rake', '~> 10.0'
|
31
|
+
spec.add_development_dependency 'minitest', '~> 5.0'
|
32
|
+
end
|
metadata
ADDED
@@ -0,0 +1,163 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: moneymanager
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- ignazioc
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2017-09-18 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: commander
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: colorize
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: terminal-table
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: tty-prompt
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: bundler
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '1.13'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '1.13'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: rake
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '10.0'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '10.0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: minitest
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - "~>"
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '5.0'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - "~>"
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '5.0'
|
111
|
+
description: Import dta from your bank and manage your money
|
112
|
+
email:
|
113
|
+
- ignazioc@gmail.com
|
114
|
+
executables:
|
115
|
+
- mm
|
116
|
+
extensions: []
|
117
|
+
extra_rdoc_files: []
|
118
|
+
files:
|
119
|
+
- ".gitignore"
|
120
|
+
- ".rubocop.yml"
|
121
|
+
- ".travis.yml"
|
122
|
+
- CODE_OF_CONDUCT.md
|
123
|
+
- Gemfile
|
124
|
+
- LICENSE.txt
|
125
|
+
- README.md
|
126
|
+
- Rakefile
|
127
|
+
- bin/console
|
128
|
+
- bin/setup
|
129
|
+
- exe/mm
|
130
|
+
- lib/moneymanager.rb
|
131
|
+
- lib/moneymanager/archiver.rb
|
132
|
+
- lib/moneymanager/entry.rb
|
133
|
+
- lib/moneymanager/layout.rb
|
134
|
+
- lib/moneymanager/parser.rb
|
135
|
+
- lib/moneymanager/reviewer.rb
|
136
|
+
- lib/moneymanager/tagger.rb
|
137
|
+
- lib/moneymanager/version.rb
|
138
|
+
- moneymanager.gemspec
|
139
|
+
homepage: https://www.github.com/ignazioc/moneymanager
|
140
|
+
licenses:
|
141
|
+
- MIT
|
142
|
+
metadata: {}
|
143
|
+
post_install_message:
|
144
|
+
rdoc_options: []
|
145
|
+
require_paths:
|
146
|
+
- lib
|
147
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
148
|
+
requirements:
|
149
|
+
- - ">="
|
150
|
+
- !ruby/object:Gem::Version
|
151
|
+
version: '0'
|
152
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
153
|
+
requirements:
|
154
|
+
- - ">="
|
155
|
+
- !ruby/object:Gem::Version
|
156
|
+
version: '0'
|
157
|
+
requirements: []
|
158
|
+
rubyforge_project:
|
159
|
+
rubygems_version: 2.6.13
|
160
|
+
signing_key:
|
161
|
+
specification_version: 4
|
162
|
+
summary: Import dta from your bank and manage your money
|
163
|
+
test_files: []
|