moneybook 0.2.5 → 0.2.6
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.
- data/VERSION +1 -1
- data/bin/moneybook +7 -1
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
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 = "
|
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:
|
4
|
+
hash: 27
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 0.2.
|
9
|
+
- 6
|
10
|
+
version: 0.2.6
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- luca cioria
|