moneybook 0.2.5 → 0.2.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/VERSION +1 -1
  2. data/bin/moneybook +7 -1
  3. metadata +3 -3
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.5
1
+ 0.2.6
data/bin/moneybook CHANGED
@@ -77,11 +77,17 @@ def command_new(title)
77
77
  # which means the opposite of 20L -> T
78
78
  # it means that L owes T 20$
79
79
  # and it doesn't count on the spent amount
80
+ #
81
+ # lines beginning with # are comments, you can also add comments at the end of a line:
82
+ # pizza (45 Luca) 10 Tommaso # Tommaso didn't get the drink..
83
+ #
84
+ # expressions between dollar signs will be evaluated, like so:
85
+ # pizza (45 Luca) $ 5+3.5+2*0.7$ Tommaso
80
86
  #######
81
87
 
82
88
  PEOPLE: #{people.join(' ')}"
83
89
  text += "\nCHANGE: #{change}" if change > 0
84
- filename = "moneybook_#{title.downcase.gsub(' ','_')}.txt"
90
+ filename = "money_#{title.downcase.gsub(' ','_')}.txt"
85
91
  if File.open(filename,'w'){|f|f.write text} then
86
92
  puts "File #{filename} created!"
87
93
  else
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: moneybook
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
4
+ hash: 27
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 5
10
- version: 0.2.5
9
+ - 6
10
+ version: 0.2.6
11
11
  platform: ruby
12
12
  authors:
13
13
  - luca cioria