financial 0.0.1 → 0.0.2

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/.gitignore CHANGED
@@ -1,4 +1,5 @@
1
1
  tmp
2
2
  coverage
3
3
  .DS_store
4
- .sw?
4
+ .sw?
5
+ pkg
@@ -60,8 +60,8 @@ Print information in the terminal
60
60
 
61
61
  And to print the information of bank account:
62
62
 
63
- print_financial_account :my_bank_account do
64
- period :from => current_date, :to => '07/16/2011'
63
+ print_account :my_bank_account do
64
+ from('04/30/2011').to('07/16/2011')
65
65
  end
66
66
 
67
67
  Work with more than one bank account
@@ -95,8 +95,8 @@ Print information of all accounts
95
95
 
96
96
  Just pass **:all** option:
97
97
 
98
- print_financial_account :all do
99
- period(current_date).to('07/16/2011')
98
+ print_account :all do
99
+ from('04/30/2011').to('07/16/2011')
100
100
  end
101
101
 
102
102
  More Examples
@@ -129,20 +129,20 @@ Is possible to have a portuguese DSL with dates, and the language itself.
129
129
  end
130
130
 
131
131
  faturamento do
132
- nota_fiscal(1000).na_data('25/07/2011').imposto(6.por_cento)
132
+ nota_fiscal(1000).na_data('25/07/2011').imposto(6.por_cento).na_data('17/08/2011') # Will have a revenue of 1000 in 25 July 2011 BUT will have a tax cost of 6 per cent in 17 august 2011
133
133
  end
134
134
  end
135
135
 
136
136
  # imprima_conta :minha_conta do
137
- # periodo(data_corrente).até('16/07/2011')
137
+ # de('20/03/2011').até('16/07/2011')
138
138
  # end
139
139
 
140
140
  imprima_conta :todos do
141
- periodo(data_atual).até('16/07/2011')
141
+ de('20/03/2011').até('16/07/2011')
142
142
  end
143
143
 
144
144
  # imprima_conta :todos do
145
- # periodo('20/06/2011').até('16/07/2011')
145
+ # de('20/06/2011').até('16/07/2011')
146
146
  # end
147
147
 
148
148
 
@@ -155,3 +155,9 @@ This is an output example from [two_accounts.rb](https://github.com/tomas-stefan
155
155
  <div style="padding:2px; border:1px solid silver; float:right; margin:0 0 1em 2em; background:white">
156
156
  <img src="https://github.com/tomas-stefano/financial/raw/master/example.png" alt="Output Example" />
157
157
  </div>
158
+
159
+
160
+ FUTURE
161
+ ======
162
+
163
+ Create a pdf file with the period as a name.
@@ -1,3 +1,3 @@
1
1
  module Financial
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,35 +1,49 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: financial
3
- version: !ruby/object:Gem::Version
4
- version: 0.0.1
3
+ version: !ruby/object:Gem::Version
4
+ hash: 27
5
5
  prerelease:
6
+ segments:
7
+ - 0
8
+ - 0
9
+ - 2
10
+ version: 0.0.2
6
11
  platform: ruby
7
- authors:
12
+ authors:
8
13
  - Tomas D'Stefano
9
14
  autorequire:
10
15
  bindir: bin
11
16
  cert_chain: []
12
- date: 2011-07-10 00:00:00.000000000 -03:00
17
+
18
+ date: 2011-07-17 00:00:00 -03:00
13
19
  default_executable:
14
- dependencies:
15
- - !ruby/object:Gem::Dependency
20
+ dependencies:
21
+ - !ruby/object:Gem::Dependency
16
22
  name: terminal-table
17
- requirement: &2161490520 !ruby/object:Gem::Requirement
23
+ prerelease: false
24
+ requirement: &id001 !ruby/object:Gem::Requirement
18
25
  none: false
19
- requirements:
20
- - - =
21
- - !ruby/object:Gem::Version
26
+ requirements:
27
+ - - "="
28
+ - !ruby/object:Gem::Version
29
+ hash: 3
30
+ segments:
31
+ - 1
32
+ - 4
33
+ - 2
22
34
  version: 1.4.2
23
35
  type: :runtime
24
- prerelease: false
25
- version_requirements: *2161490520
36
+ version_requirements: *id001
26
37
  description: Manage your money in the terminal with A Ruby DSL
27
- email:
38
+ email:
28
39
  - tomas_stefano@successoft.com
29
40
  executables: []
41
+
30
42
  extensions: []
43
+
31
44
  extra_rdoc_files: []
32
- files:
45
+
46
+ files:
33
47
  - .gitignore
34
48
  - .infinity_test
35
49
  - .rspec
@@ -91,29 +105,38 @@ files:
91
105
  has_rdoc: true
92
106
  homepage: https://github.com/tomas-stefano/financial
93
107
  licenses: []
108
+
94
109
  post_install_message:
95
110
  rdoc_options: []
96
- require_paths:
111
+
112
+ require_paths:
97
113
  - lib
98
- required_ruby_version: !ruby/object:Gem::Requirement
114
+ required_ruby_version: !ruby/object:Gem::Requirement
99
115
  none: false
100
- requirements:
101
- - - ! '>='
102
- - !ruby/object:Gem::Version
103
- version: '0'
104
- required_rubygems_version: !ruby/object:Gem::Requirement
116
+ requirements:
117
+ - - ">="
118
+ - !ruby/object:Gem::Version
119
+ hash: 3
120
+ segments:
121
+ - 0
122
+ version: "0"
123
+ required_rubygems_version: !ruby/object:Gem::Requirement
105
124
  none: false
106
- requirements:
107
- - - ! '>='
108
- - !ruby/object:Gem::Version
109
- version: '0'
125
+ requirements:
126
+ - - ">="
127
+ - !ruby/object:Gem::Version
128
+ hash: 3
129
+ segments:
130
+ - 0
131
+ version: "0"
110
132
  requirements: []
133
+
111
134
  rubyforge_project: financial
112
135
  rubygems_version: 1.6.2
113
136
  signing_key:
114
137
  specification_version: 3
115
138
  summary: Manage your money in the terminal with A Ruby DSL
116
- test_files:
139
+ test_files:
117
140
  - features/portuguese_dsl.feature
118
141
  - features/print_financial_table.feature
119
142
  - features/support/env.rb