acts_as_account 2.0.1 → 2.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: d1bf5765e18dcdbb24c71034bd6021c1f68f4cd7
4
+ data.tar.gz: 54c4786f09c717926f0e898be9b6bad632ef671b
5
+ SHA512:
6
+ metadata.gz: fa388f10b0c0b5c3540039d3227fd54c75028d8795f5f5646ee38dc0514ff2b48a27c7b922043d6b6b949ae5a6ab14051e641ef1dcd96b09b1afccdf47436a7e
7
+ data.tar.gz: 4ee86cdd03e248163dd3d5033ba724ef95a64a3c5f9860a65e933d6241ca979a0dc68868aa1d03caebebabdb8a9a6351e86ad607a0dedf168f3cb544f82a2cf3
data/.travis.yml ADDED
@@ -0,0 +1,13 @@
1
+ rvm:
2
+ - 1.9.2
3
+ - 1.9.3
4
+ - 2.0.0
5
+ - 2.1.2
6
+ - ruby-head
7
+ - rbx-19mode
8
+ - jruby-19mode
9
+ matrix:
10
+ allow_failures:
11
+ - rvm: ruby-head
12
+ - rvm: rbx-19mode
13
+ - rvm: jruby-19mode
data/Gemfile CHANGED
@@ -1,14 +1,13 @@
1
1
  source "http://rubygems.org"
2
2
 
3
3
  group :development do
4
- gem 'rspec'
5
- gem 'jeweler'
6
- gem 'cucumber'
7
- gem 'mysql'
4
+ gem 'jeweler', '~> 2.0'
5
+ gem 'cucumber', '~> 1.3'
6
+ gem 'mysql', '~> 2.9'
8
7
  end
9
8
 
10
9
  group :default do
11
- gem 'activerecord', '~> 3.2.8'
12
- gem 'actionpack' , '~> 3.2.8'
13
- gem 'database_cleaner'
10
+ gem 'activerecord', '~> 3.2'
11
+ gem 'actionpack' , '~> 3.2'
12
+ gem 'database_cleaner', '~> 1.3'
14
13
  end
data/Gemfile.lock CHANGED
@@ -1,82 +1,108 @@
1
1
  GEM
2
2
  remote: http://rubygems.org/
3
3
  specs:
4
- actionpack (3.2.8)
5
- activemodel (= 3.2.8)
6
- activesupport (= 3.2.8)
4
+ actionpack (3.2.19)
5
+ activemodel (= 3.2.19)
6
+ activesupport (= 3.2.19)
7
7
  builder (~> 3.0.0)
8
8
  erubis (~> 2.7.0)
9
9
  journey (~> 1.0.4)
10
- rack (~> 1.4.0)
10
+ rack (~> 1.4.5)
11
11
  rack-cache (~> 1.2)
12
12
  rack-test (~> 0.6.1)
13
- sprockets (~> 2.1.3)
14
- activemodel (3.2.8)
15
- activesupport (= 3.2.8)
13
+ sprockets (~> 2.2.1)
14
+ activemodel (3.2.19)
15
+ activesupport (= 3.2.19)
16
16
  builder (~> 3.0.0)
17
- activerecord (3.2.8)
18
- activemodel (= 3.2.8)
19
- activesupport (= 3.2.8)
17
+ activerecord (3.2.19)
18
+ activemodel (= 3.2.19)
19
+ activesupport (= 3.2.19)
20
20
  arel (~> 3.0.2)
21
21
  tzinfo (~> 0.3.29)
22
- activesupport (3.2.8)
23
- i18n (~> 0.6)
22
+ activesupport (3.2.19)
23
+ i18n (~> 0.6, >= 0.6.4)
24
24
  multi_json (~> 1.0)
25
- arel (3.0.2)
26
- builder (3.0.3)
27
- cucumber (1.2.1)
25
+ addressable (2.3.6)
26
+ arel (3.0.3)
27
+ builder (3.0.4)
28
+ cucumber (1.3.17)
28
29
  builder (>= 2.1.2)
29
30
  diff-lcs (>= 1.1.3)
30
- gherkin (~> 2.11.0)
31
- json (>= 1.4.6)
32
- database_cleaner (0.8.0)
33
- diff-lcs (1.1.3)
31
+ gherkin (~> 2.12)
32
+ multi_json (>= 1.7.5, < 2.0)
33
+ multi_test (>= 0.1.1)
34
+ database_cleaner (1.3.0)
35
+ descendants_tracker (0.0.4)
36
+ thread_safe (~> 0.3, >= 0.3.1)
37
+ diff-lcs (1.2.5)
34
38
  erubis (2.7.0)
35
- gherkin (2.11.2)
36
- json (>= 1.4.6)
37
- git (1.2.5)
38
- hike (1.2.1)
39
- i18n (0.6.1)
40
- jeweler (1.8.4)
41
- bundler (~> 1.0)
39
+ faraday (0.9.0)
40
+ multipart-post (>= 1.2, < 3)
41
+ gherkin (2.12.2)
42
+ multi_json (~> 1.3)
43
+ git (1.2.8)
44
+ github_api (0.12.1)
45
+ addressable (~> 2.3)
46
+ descendants_tracker (~> 0.0.4)
47
+ faraday (~> 0.8, < 0.10)
48
+ hashie (>= 3.2)
49
+ multi_json (>= 1.7.5, < 2.0)
50
+ nokogiri (~> 1.6.3)
51
+ oauth2
52
+ hashie (3.3.1)
53
+ highline (1.6.21)
54
+ hike (1.2.3)
55
+ i18n (0.6.11)
56
+ jeweler (2.0.1)
57
+ builder
58
+ bundler (>= 1.0)
42
59
  git (>= 1.2.5)
60
+ github_api
61
+ highline (>= 1.6.15)
62
+ nokogiri (>= 1.5.10)
43
63
  rake
44
64
  rdoc
45
65
  journey (1.0.4)
46
- json (1.7.5)
47
- multi_json (1.3.6)
48
- mysql (2.8.1)
49
- rack (1.4.1)
66
+ json (1.8.1)
67
+ jwt (1.0.0)
68
+ mini_portile (0.6.0)
69
+ multi_json (1.10.1)
70
+ multi_test (0.1.1)
71
+ multi_xml (0.5.5)
72
+ multipart-post (2.0.0)
73
+ mysql (2.9.1)
74
+ nokogiri (1.6.3.1)
75
+ mini_portile (= 0.6.0)
76
+ oauth2 (1.0.0)
77
+ faraday (>= 0.8, < 0.10)
78
+ jwt (~> 1.0)
79
+ multi_json (~> 1.3)
80
+ multi_xml (~> 0.5)
81
+ rack (~> 1.2)
82
+ rack (1.4.5)
50
83
  rack-cache (1.2)
51
84
  rack (>= 0.4)
52
- rack-test (0.6.1)
85
+ rack-test (0.6.2)
53
86
  rack (>= 1.0)
54
- rake (0.9.2.2)
55
- rdoc (3.12)
87
+ rake (10.3.2)
88
+ rdoc (4.1.2)
56
89
  json (~> 1.4)
57
- rspec (2.11.0)
58
- rspec-core (~> 2.11.0)
59
- rspec-expectations (~> 2.11.0)
60
- rspec-mocks (~> 2.11.0)
61
- rspec-core (2.11.1)
62
- rspec-expectations (2.11.3)
63
- diff-lcs (~> 1.1.3)
64
- rspec-mocks (2.11.2)
65
- sprockets (2.1.3)
90
+ sprockets (2.2.2)
66
91
  hike (~> 1.2)
92
+ multi_json (~> 1.0)
67
93
  rack (~> 1.0)
68
94
  tilt (~> 1.1, != 1.3.0)
69
- tilt (1.3.3)
70
- tzinfo (0.3.33)
95
+ thread_safe (0.3.4)
96
+ tilt (1.4.1)
97
+ tzinfo (0.3.41)
71
98
 
72
99
  PLATFORMS
73
100
  ruby
74
101
 
75
102
  DEPENDENCIES
76
- actionpack (~> 3.2.8)
77
- activerecord (~> 3.2.8)
78
- cucumber
79
- database_cleaner
80
- jeweler
81
- mysql
82
- rspec
103
+ actionpack (~> 3.2)
104
+ activerecord (~> 3.2)
105
+ cucumber (~> 1.3)
106
+ database_cleaner (~> 1.3)
107
+ jeweler (~> 2.0)
108
+ mysql (~> 2.9)
data/LICENSE CHANGED
@@ -1,20 +1,204 @@
1
1
  Copyright (c) 2010 gut.org gAG
2
2
 
3
- Permission is hereby granted, free of charge, to any person obtaining
4
- a copy of this software and associated documentation files (the
5
- "Software"), to deal in the Software without restriction, including
6
- without limitation the rights to use, copy, modify, merge, publish,
7
- distribute, sublicense, and/or sell copies of the Software, and to
8
- permit persons to whom the Software is furnished to do so, subject to
9
- the following conditions:
10
-
11
- The above copyright notice and this permission notice shall be
12
- included in all copies or substantial portions of the Software.
13
-
14
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
- LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
- OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
- WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
3
+ Apache License
4
+ Version 2.0, January 2004
5
+ http://www.apache.org/licenses/
6
+
7
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
8
+
9
+ 1. Definitions.
10
+
11
+ "License" shall mean the terms and conditions for use, reproduction,
12
+ and distribution as defined by Sections 1 through 9 of this document.
13
+
14
+ "Licensor" shall mean the copyright owner or entity authorized by
15
+ the copyright owner that is granting the License.
16
+
17
+ "Legal Entity" shall mean the union of the acting entity and all
18
+ other entities that control, are controlled by, or are under common
19
+ control with that entity. For the purposes of this definition,
20
+ "control" means (i) the power, direct or indirect, to cause the
21
+ direction or management of such entity, whether by contract or
22
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
23
+ outstanding shares, or (iii) beneficial ownership of such entity.
24
+
25
+ "You" (or "Your") shall mean an individual or Legal Entity
26
+ exercising permissions granted by this License.
27
+
28
+ "Source" form shall mean the preferred form for making modifications,
29
+ including but not limited to software source code, documentation
30
+ source, and configuration files.
31
+
32
+ "Object" form shall mean any form resulting from mechanical
33
+ transformation or translation of a Source form, including but
34
+ not limited to compiled object code, generated documentation,
35
+ and conversions to other media types.
36
+
37
+ "Work" shall mean the work of authorship, whether in Source or
38
+ Object form, made available under the License, as indicated by a
39
+ copyright notice that is included in or attached to the work
40
+ (an example is provided in the Appendix below).
41
+
42
+ "Derivative Works" shall mean any work, whether in Source or Object
43
+ form, that is based on (or derived from) the Work and for which the
44
+ editorial revisions, annotations, elaborations, or other modifications
45
+ represent, as a whole, an original work of authorship. For the purposes
46
+ of this License, Derivative Works shall not include works that remain
47
+ separable from, or merely link (or bind by name) to the interfaces of,
48
+ the Work and Derivative Works thereof.
49
+
50
+ "Contribution" shall mean any work of authorship, including
51
+ the original version of the Work and any modifications or additions
52
+ to that Work or Derivative Works thereof, that is intentionally
53
+ submitted to Licensor for inclusion in the Work by the copyright owner
54
+ or by an individual or Legal Entity authorized to submit on behalf of
55
+ the copyright owner. For the purposes of this definition, "submitted"
56
+ means any form of electronic, verbal, or written communication sent
57
+ to the Licensor or its representatives, including but not limited to
58
+ communication on electronic mailing lists, source code control systems,
59
+ and issue tracking systems that are managed by, or on behalf of, the
60
+ Licensor for the purpose of discussing and improving the Work, but
61
+ excluding communication that is conspicuously marked or otherwise
62
+ designated in writing by the copyright owner as "Not a Contribution."
63
+
64
+ "Contributor" shall mean Licensor and any individual or Legal Entity
65
+ on behalf of whom a Contribution has been received by Licensor and
66
+ subsequently incorporated within the Work.
67
+
68
+ 2. Grant of Copyright License. Subject to the terms and conditions of
69
+ this License, each Contributor hereby grants to You a perpetual,
70
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
71
+ copyright license to reproduce, prepare Derivative Works of,
72
+ publicly display, publicly perform, sublicense, and distribute the
73
+ Work and such Derivative Works in Source or Object form.
74
+
75
+ 3. Grant of Patent License. Subject to the terms and conditions of
76
+ this License, each Contributor hereby grants to You a perpetual,
77
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
78
+ (except as stated in this section) patent license to make, have made,
79
+ use, offer to sell, sell, import, and otherwise transfer the Work,
80
+ where such license applies only to those patent claims licensable
81
+ by such Contributor that are necessarily infringed by their
82
+ Contribution(s) alone or by combination of their Contribution(s)
83
+ with the Work to which such Contribution(s) was submitted. If You
84
+ institute patent litigation against any entity (including a
85
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
86
+ or a Contribution incorporated within the Work constitutes direct
87
+ or contributory patent infringement, then any patent licenses
88
+ granted to You under this License for that Work shall terminate
89
+ as of the date such litigation is filed.
90
+
91
+ 4. Redistribution. You may reproduce and distribute copies of the
92
+ Work or Derivative Works thereof in any medium, with or without
93
+ modifications, and in Source or Object form, provided that You
94
+ meet the following conditions:
95
+
96
+ (a) You must give any other recipients of the Work or
97
+ Derivative Works a copy of this License; and
98
+
99
+ (b) You must cause any modified files to carry prominent notices
100
+ stating that You changed the files; and
101
+
102
+ (c) You must retain, in the Source form of any Derivative Works
103
+ that You distribute, all copyright, patent, trademark, and
104
+ attribution notices from the Source form of the Work,
105
+ excluding those notices that do not pertain to any part of
106
+ the Derivative Works; and
107
+
108
+ (d) If the Work includes a "NOTICE" text file as part of its
109
+ distribution, then any Derivative Works that You distribute must
110
+ include a readable copy of the attribution notices contained
111
+ within such NOTICE file, excluding those notices that do not
112
+ pertain to any part of the Derivative Works, in at least one
113
+ of the following places: within a NOTICE text file distributed
114
+ as part of the Derivative Works; within the Source form or
115
+ documentation, if provided along with the Derivative Works; or,
116
+ within a display generated by the Derivative Works, if and
117
+ wherever such third-party notices normally appear. The contents
118
+ of the NOTICE file are for informational purposes only and
119
+ do not modify the License. You may add Your own attribution
120
+ notices within Derivative Works that You distribute, alongside
121
+ or as an addendum to the NOTICE text from the Work, provided
122
+ that such additional attribution notices cannot be construed
123
+ as modifying the License.
124
+
125
+ You may add Your own copyright statement to Your modifications and
126
+ may provide additional or different license terms and conditions
127
+ for use, reproduction, or distribution of Your modifications, or
128
+ for any such Derivative Works as a whole, provided Your use,
129
+ reproduction, and distribution of the Work otherwise complies with
130
+ the conditions stated in this License.
131
+
132
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
133
+ any Contribution intentionally submitted for inclusion in the Work
134
+ by You to the Licensor shall be under the terms and conditions of
135
+ this License, without any additional terms or conditions.
136
+ Notwithstanding the above, nothing herein shall supersede or modify
137
+ the terms of any separate license agreement you may have executed
138
+ with Licensor regarding such Contributions.
139
+
140
+ 6. Trademarks. This License does not grant permission to use the trade
141
+ names, trademarks, service marks, or product names of the Licensor,
142
+ except as required for reasonable and customary use in describing the
143
+ origin of the Work and reproducing the content of the NOTICE file.
144
+
145
+ 7. Disclaimer of Warranty. Unless required by applicable law or
146
+ agreed to in writing, Licensor provides the Work (and each
147
+ Contributor provides its Contributions) on an "AS IS" BASIS,
148
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
149
+ implied, including, without limitation, any warranties or conditions
150
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
151
+ PARTICULAR PURPOSE. You are solely responsible for determining the
152
+ appropriateness of using or redistributing the Work and assume any
153
+ risks associated with Your exercise of permissions under this License.
154
+
155
+ 8. Limitation of Liability. In no event and under no legal theory,
156
+ whether in tort (including negligence), contract, or otherwise,
157
+ unless required by applicable law (such as deliberate and grossly
158
+ negligent acts) or agreed to in writing, shall any Contributor be
159
+ liable to You for damages, including any direct, indirect, special,
160
+ incidental, or consequential damages of any character arising as a
161
+ result of this License or out of the use or inability to use the
162
+ Work (including but not limited to damages for loss of goodwill,
163
+ work stoppage, computer failure or malfunction, or any and all
164
+ other commercial damages or losses), even if such Contributor
165
+ has been advised of the possibility of such damages.
166
+
167
+ 9. Accepting Warranty or Additional Liability. While redistributing
168
+ the Work or Derivative Works thereof, You may choose to offer,
169
+ and charge a fee for, acceptance of support, warranty, indemnity,
170
+ or other liability obligations and/or rights consistent with this
171
+ License. However, in accepting such obligations, You may act only
172
+ on Your own behalf and on Your sole responsibility, not on behalf
173
+ of any other Contributor, and only if You agree to indemnify,
174
+ defend, and hold each Contributor harmless for any liability
175
+ incurred by, or claims asserted against, such Contributor by reason
176
+ of your accepting any such warranty or additional liability.
177
+
178
+ END OF TERMS AND CONDITIONS
179
+
180
+ APPENDIX: How to apply the Apache License to your work.
181
+
182
+ To apply the Apache License to your work, attach the following
183
+ boilerplate notice, with the fields enclosed by brackets "{}"
184
+ replaced with your own identifying information. (Don't include
185
+ the brackets!) The text should be enclosed in the appropriate
186
+ comment syntax for the file format. We also recommend that a
187
+ file or class name and description of purpose be included on the
188
+ same "printed page" as the copyright notice for easier
189
+ identification within third-party archives.
190
+
191
+ Copyright {yyyy} {name of copyright owner}
192
+
193
+ Licensed under the Apache License, Version 2.0 (the "License");
194
+ you may not use this file except in compliance with the License.
195
+ You may obtain a copy of the License at
196
+
197
+ http://www.apache.org/licenses/LICENSE-2.0
198
+
199
+ Unless required by applicable law or agreed to in writing, software
200
+ distributed under the License is distributed on an "AS IS" BASIS,
201
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
202
+ See the License for the specific language governing permissions and
203
+ limitations under the License.
204
+
data/Rakefile CHANGED
@@ -19,25 +19,37 @@ begin
19
19
  gem.email = "thieso@gmail.com"
20
20
  gem.homepage = "http://github.com/betterplace/acts_as_account"
21
21
  gem.authors = ["Thies C. Arntzen, Norman Timmler, Matthias Frick, Phillip Oertel"]
22
- gem.add_dependency 'activerecord'
23
- gem.add_dependency 'actionpack'
24
- gem.add_dependency 'database_cleaner'
22
+ gem.license = 'Apache-2.0'
23
+ #gem.add_dependency 'activerecord'
24
+ #gem.add_dependency 'actionpack'
25
+ #gem.add_dependency 'database_cleaner'
25
26
  end
26
27
  Jeweler::GemcutterTasks.new
27
28
  rescue LoadError
28
29
  puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
29
30
  end
30
31
 
32
+ def connect_database
33
+ require 'rubygems'
34
+ require 'active_record'
35
+ access_data = YAML.load_file(File.dirname(__FILE__) + '/db/database.yml')['acts_as_account']
36
+ ActiveRecord::Base.establish_connection(Hash[access_data.select { |k, v| k != 'database'}]).connection
37
+ end
38
+
31
39
  namespace :features do
32
40
  desc "create test database out of db/schema.rb"
33
41
  task :create_database do
34
- require 'rubygems'
35
- require 'active_record'
36
- access_data = YAML.load_file(File.dirname(__FILE__) + '/db/database.yml')['acts_as_account']
37
- conn = ActiveRecord::Base.establish_connection(Hash[access_data.select { |k, v| k != 'database'}]).connection
42
+ conn = connect_database
38
43
  conn.execute('DROP DATABASE IF EXISTS acts_as_account')
39
44
  conn.execute('CREATE DATABASE acts_as_account')
40
45
  conn.execute('USE acts_as_account')
41
46
  load(File.dirname(__FILE__) + '/db/schema.rb')
42
47
  end
43
- end
48
+ end
49
+
50
+ desc "Run features"
51
+ task :features => :'features:create_database' do
52
+ ruby '-S', 'cucumber'
53
+ end
54
+
55
+ task :default => :features
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.0.1
1
+ 2.0.2
@@ -64,7 +64,6 @@ Gem::Specification.new do |s|
64
64
  s.add_development_dependency(%q<jeweler>, [">= 0"])
65
65
  s.add_development_dependency(%q<cucumber>, [">= 0"])
66
66
  s.add_development_dependency(%q<mysql>, [">= 0"])
67
- s.add_runtime_dependency(%q<activerecord>, [">= 0"])
68
67
  s.add_runtime_dependency(%q<actionpack>, [">= 0"])
69
68
  s.add_runtime_dependency(%q<database_cleaner>, [">= 0"])
70
69
  else
@@ -75,7 +74,6 @@ Gem::Specification.new do |s|
75
74
  s.add_dependency(%q<jeweler>, [">= 0"])
76
75
  s.add_dependency(%q<cucumber>, [">= 0"])
77
76
  s.add_dependency(%q<mysql>, [">= 0"])
78
- s.add_dependency(%q<activerecord>, [">= 0"])
79
77
  s.add_dependency(%q<actionpack>, [">= 0"])
80
78
  s.add_dependency(%q<database_cleaner>, [">= 0"])
81
79
  end
@@ -87,7 +85,6 @@ Gem::Specification.new do |s|
87
85
  s.add_dependency(%q<jeweler>, [">= 0"])
88
86
  s.add_dependency(%q<cucumber>, [">= 0"])
89
87
  s.add_dependency(%q<mysql>, [">= 0"])
90
- s.add_dependency(%q<activerecord>, [">= 0"])
91
88
  s.add_dependency(%q<actionpack>, [">= 0"])
92
89
  s.add_dependency(%q<database_cleaner>, [">= 0"])
93
90
  end
@@ -1,3 +1,5 @@
1
+ require 'time'
2
+
1
3
  module ActsAsAccount
2
4
  class Posting < ActiveRecord::Base
3
5
  self.table_name = :acts_as_account_postings
@@ -9,7 +11,13 @@ module ActsAsAccount
9
11
 
10
12
  scope :soll, where('amount >= 0')
11
13
  scope :haben, where('amount < 0')
12
- scope :start_date, lambda{|date| {:conditions => ['DATE(valuta) >= ?', date]}}
13
- scope :end_date, lambda{|date| {:conditions => ['DATE(valuta) <= ?', date]}}
14
+ scope :start_date, lambda { |date|
15
+ date = Time.parse(date.to_s).utc.to_s(:db)
16
+ { :conditions => [ 'valuta >= ?', date ] }
17
+ }
18
+ scope :end_date, lambda{ |date|
19
+ date = Time.parse(date.to_s).utc.to_s(:db)
20
+ { :conditions => [ 'valuta <= ?', date ] }
21
+ }
14
22
  end
15
- end
23
+ end
metadata CHANGED
@@ -1,176 +1,99 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: acts_as_account
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.1
5
- prerelease:
4
+ version: 2.0.2
6
5
  platform: ruby
7
6
  authors:
8
7
  - Thies C. Arntzen, Norman Timmler, Matthias Frick, Phillip Oertel
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2012-10-04 00:00:00.000000000 Z
11
+ date: 2014-09-18 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: activerecord
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ~>
17
+ - - "~>"
20
18
  - !ruby/object:Gem::Version
21
- version: 3.2.8
19
+ version: '3.2'
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ~>
24
+ - - "~>"
28
25
  - !ruby/object:Gem::Version
29
- version: 3.2.8
26
+ version: '3.2'
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: actionpack
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
- - - ~>
31
+ - - "~>"
36
32
  - !ruby/object:Gem::Version
37
- version: 3.2.8
33
+ version: '3.2'
38
34
  type: :runtime
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
- - - ~>
38
+ - - "~>"
44
39
  - !ruby/object:Gem::Version
45
- version: 3.2.8
40
+ version: '3.2'
46
41
  - !ruby/object:Gem::Dependency
47
42
  name: database_cleaner
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
- - - ! '>='
45
+ - - "~>"
52
46
  - !ruby/object:Gem::Version
53
- version: '0'
47
+ version: '1.3'
54
48
  type: :runtime
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
51
  requirements:
59
- - - ! '>='
52
+ - - "~>"
60
53
  - !ruby/object:Gem::Version
61
- version: '0'
62
- - !ruby/object:Gem::Dependency
63
- name: rspec
64
- requirement: !ruby/object:Gem::Requirement
65
- none: false
66
- requirements:
67
- - - ! '>='
68
- - !ruby/object:Gem::Version
69
- version: '0'
70
- type: :development
71
- prerelease: false
72
- version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
- requirements:
75
- - - ! '>='
76
- - !ruby/object:Gem::Version
77
- version: '0'
54
+ version: '1.3'
78
55
  - !ruby/object:Gem::Dependency
79
56
  name: jeweler
80
57
  requirement: !ruby/object:Gem::Requirement
81
- none: false
82
58
  requirements:
83
- - - ! '>='
59
+ - - "~>"
84
60
  - !ruby/object:Gem::Version
85
- version: '0'
61
+ version: '2.0'
86
62
  type: :development
87
63
  prerelease: false
88
64
  version_requirements: !ruby/object:Gem::Requirement
89
- none: false
90
65
  requirements:
91
- - - ! '>='
66
+ - - "~>"
92
67
  - !ruby/object:Gem::Version
93
- version: '0'
68
+ version: '2.0'
94
69
  - !ruby/object:Gem::Dependency
95
70
  name: cucumber
96
71
  requirement: !ruby/object:Gem::Requirement
97
- none: false
98
72
  requirements:
99
- - - ! '>='
73
+ - - "~>"
100
74
  - !ruby/object:Gem::Version
101
- version: '0'
75
+ version: '1.3'
102
76
  type: :development
103
77
  prerelease: false
104
78
  version_requirements: !ruby/object:Gem::Requirement
105
- none: false
106
79
  requirements:
107
- - - ! '>='
80
+ - - "~>"
108
81
  - !ruby/object:Gem::Version
109
- version: '0'
82
+ version: '1.3'
110
83
  - !ruby/object:Gem::Dependency
111
84
  name: mysql
112
85
  requirement: !ruby/object:Gem::Requirement
113
- none: false
114
86
  requirements:
115
- - - ! '>='
87
+ - - "~>"
116
88
  - !ruby/object:Gem::Version
117
- version: '0'
89
+ version: '2.9'
118
90
  type: :development
119
91
  prerelease: false
120
92
  version_requirements: !ruby/object:Gem::Requirement
121
- none: false
122
- requirements:
123
- - - ! '>='
124
- - !ruby/object:Gem::Version
125
- version: '0'
126
- - !ruby/object:Gem::Dependency
127
- name: activerecord
128
- requirement: !ruby/object:Gem::Requirement
129
- none: false
130
- requirements:
131
- - - ! '>='
132
- - !ruby/object:Gem::Version
133
- version: '0'
134
- type: :runtime
135
- prerelease: false
136
- version_requirements: !ruby/object:Gem::Requirement
137
- none: false
138
- requirements:
139
- - - ! '>='
140
- - !ruby/object:Gem::Version
141
- version: '0'
142
- - !ruby/object:Gem::Dependency
143
- name: actionpack
144
- requirement: !ruby/object:Gem::Requirement
145
- none: false
146
- requirements:
147
- - - ! '>='
148
- - !ruby/object:Gem::Version
149
- version: '0'
150
- type: :runtime
151
- prerelease: false
152
- version_requirements: !ruby/object:Gem::Requirement
153
- none: false
154
- requirements:
155
- - - ! '>='
156
- - !ruby/object:Gem::Version
157
- version: '0'
158
- - !ruby/object:Gem::Dependency
159
- name: database_cleaner
160
- requirement: !ruby/object:Gem::Requirement
161
- none: false
162
- requirements:
163
- - - ! '>='
164
- - !ruby/object:Gem::Version
165
- version: '0'
166
- type: :runtime
167
- prerelease: false
168
- version_requirements: !ruby/object:Gem::Requirement
169
- none: false
170
93
  requirements:
171
- - - ! '>='
94
+ - - "~>"
172
95
  - !ruby/object:Gem::Version
173
- version: '0'
96
+ version: '2.9'
174
97
  description: acts_as_account implements double entry accounting for Rails models.
175
98
  Your models get accounts and you can do consistent transactions between them. Since
176
99
  the documentation is sparse, see the transfer.feature for usage examples.
@@ -181,8 +104,8 @@ extra_rdoc_files:
181
104
  - LICENSE
182
105
  - README.rdoc
183
106
  files:
184
- - .rvmrc
185
- - .specification
107
+ - ".specification"
108
+ - ".travis.yml"
186
109
  - Gemfile
187
110
  - Gemfile.lock
188
111
  - LICENSE
@@ -212,30 +135,27 @@ files:
212
135
  - lib/acts_as_account/posting.rb
213
136
  - lib/acts_as_account/transfer.rb
214
137
  homepage: http://github.com/betterplace/acts_as_account
215
- licenses: []
138
+ licenses:
139
+ - Apache-2.0
140
+ metadata: {}
216
141
  post_install_message:
217
142
  rdoc_options: []
218
143
  require_paths:
219
144
  - lib
220
145
  required_ruby_version: !ruby/object:Gem::Requirement
221
- none: false
222
146
  requirements:
223
- - - ! '>='
147
+ - - ">="
224
148
  - !ruby/object:Gem::Version
225
149
  version: '0'
226
- segments:
227
- - 0
228
- hash: -237940272954950514
229
150
  required_rubygems_version: !ruby/object:Gem::Requirement
230
- none: false
231
151
  requirements:
232
- - - ! '>='
152
+ - - ">="
233
153
  - !ruby/object:Gem::Version
234
154
  version: '0'
235
155
  requirements: []
236
156
  rubyforge_project:
237
- rubygems_version: 1.8.24
157
+ rubygems_version: 2.2.2
238
158
  signing_key:
239
- specification_version: 3
159
+ specification_version: 4
240
160
  summary: acts_as_account implements double entry accounting for Rails models
241
161
  test_files: []
data/.rvmrc DELETED
@@ -1 +0,0 @@
1
- rvm 1.9.3@acts_as_account --create