acts_as_account 3.1.1 → 3.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/acts_as_account.gemspec +20 -18
- data/lib/acts_as_account/posting.rb +2 -4
- metadata +3 -5
- data/.ruby-gemset +0 -1
- data/.ruby-version +0 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3c11cc62126684946242374bad1c6f97d8904735
|
4
|
+
data.tar.gz: f7c98d24035e129ab67f230c666733d9a0971dd0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fbffecf425a64a1d1e76f854188d12befdb9e9a2982f433b8cf934f9c5273829e8d86abb7de0760bc992f5b82f113d31c0c54459e7aadf13473604689204f9e2
|
7
|
+
data.tar.gz: 0eb1581ac122c42c37314161a88cd65e1426792cae739adba07e16fb625c58cea2e9fa35c8b929540177fab4eaaa3e10fef6b5d497c774372213f72098bef254
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.1.
|
1
|
+
3.1.2
|
data/acts_as_account.gemspec
CHANGED
@@ -2,16 +2,16 @@
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
3
|
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
|
-
# stub: acts_as_account 3.1.
|
5
|
+
# stub: acts_as_account 3.1.1 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "acts_as_account"
|
9
|
-
s.version = "3.1.
|
9
|
+
s.version = "3.1.1"
|
10
10
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
12
12
|
s.require_paths = ["lib"]
|
13
13
|
s.authors = ["Thies C. Arntzen, Norman Timmler, Matthias Frick, Phillip Oertel"]
|
14
|
-
s.date = "
|
14
|
+
s.date = "2015-01-14"
|
15
15
|
s.description = "acts_as_account implements double entry accounting for Rails models. Your models get accounts and you can do consistent transactions between them. Since the documentation is sparse, see the transfer.feature for usage examples."
|
16
16
|
s.email = "developers@betterplace.org"
|
17
17
|
s.extra_rdoc_files = [
|
@@ -22,6 +22,7 @@ Gem::Specification.new do |s|
|
|
22
22
|
".ruby-gemset",
|
23
23
|
".ruby-version",
|
24
24
|
".specification",
|
25
|
+
".travis.yml",
|
25
26
|
"CHANGELOG.md",
|
26
27
|
"Gemfile",
|
27
28
|
"Gemfile.lock",
|
@@ -53,6 +54,7 @@ Gem::Specification.new do |s|
|
|
53
54
|
"lib/acts_as_account/transfer.rb"
|
54
55
|
]
|
55
56
|
s.homepage = "http://github.com/betterplace/acts_as_account"
|
57
|
+
s.licenses = ["Apache-2.0"]
|
56
58
|
s.rubygems_version = "2.2.2"
|
57
59
|
s.summary = "acts_as_account implements double entry accounting for Rails models"
|
58
60
|
|
@@ -62,28 +64,28 @@ Gem::Specification.new do |s|
|
|
62
64
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
63
65
|
s.add_runtime_dependency(%q<activerecord>, ["~> 4.1"])
|
64
66
|
s.add_runtime_dependency(%q<actionpack>, ["~> 4.1"])
|
65
|
-
s.add_runtime_dependency(%q<database_cleaner>, ["
|
66
|
-
s.add_development_dependency(%q<
|
67
|
-
s.add_development_dependency(%q<
|
68
|
-
s.add_development_dependency(%q<
|
69
|
-
s.add_development_dependency(%q<
|
67
|
+
s.add_runtime_dependency(%q<database_cleaner>, ["~> 1.3"])
|
68
|
+
s.add_development_dependency(%q<jeweler>, ["~> 2.0"])
|
69
|
+
s.add_development_dependency(%q<cucumber>, ["~> 1.3"])
|
70
|
+
s.add_development_dependency(%q<mysql>, ["~> 2.9"])
|
71
|
+
s.add_development_dependency(%q<rspec>, ["~> 3.1"])
|
70
72
|
else
|
71
73
|
s.add_dependency(%q<activerecord>, ["~> 4.1"])
|
72
74
|
s.add_dependency(%q<actionpack>, ["~> 4.1"])
|
73
|
-
s.add_dependency(%q<database_cleaner>, ["
|
74
|
-
s.add_dependency(%q<
|
75
|
-
s.add_dependency(%q<
|
76
|
-
s.add_dependency(%q<
|
77
|
-
s.add_dependency(%q<
|
75
|
+
s.add_dependency(%q<database_cleaner>, ["~> 1.3"])
|
76
|
+
s.add_dependency(%q<jeweler>, ["~> 2.0"])
|
77
|
+
s.add_dependency(%q<cucumber>, ["~> 1.3"])
|
78
|
+
s.add_dependency(%q<mysql>, ["~> 2.9"])
|
79
|
+
s.add_dependency(%q<rspec>, ["~> 3.1"])
|
78
80
|
end
|
79
81
|
else
|
80
82
|
s.add_dependency(%q<activerecord>, ["~> 4.1"])
|
81
83
|
s.add_dependency(%q<actionpack>, ["~> 4.1"])
|
82
|
-
s.add_dependency(%q<database_cleaner>, ["
|
83
|
-
s.add_dependency(%q<
|
84
|
-
s.add_dependency(%q<
|
85
|
-
s.add_dependency(%q<
|
86
|
-
s.add_dependency(%q<
|
84
|
+
s.add_dependency(%q<database_cleaner>, ["~> 1.3"])
|
85
|
+
s.add_dependency(%q<jeweler>, ["~> 2.0"])
|
86
|
+
s.add_dependency(%q<cucumber>, ["~> 1.3"])
|
87
|
+
s.add_dependency(%q<mysql>, ["~> 2.9"])
|
88
|
+
s.add_dependency(%q<rspec>, ["~> 3.1"])
|
87
89
|
end
|
88
90
|
end
|
89
91
|
|
@@ -11,15 +11,13 @@ module ActsAsAccount
|
|
11
11
|
|
12
12
|
scope :soll, -> { where('amount >= 0') }
|
13
13
|
scope :haben, -> { where('amount < 0') }
|
14
|
-
scope :start_date, -> date { where ['DATE(valuta) >= ?', date] }
|
15
|
-
scope :end_date, -> date { where ['DATE(valuta) <= ?', date] }
|
16
14
|
scope :start_date, -> date {
|
17
15
|
date = Time.parse(date.to_s).utc.to_s(:db)
|
18
|
-
|
16
|
+
where(['valuta >= ?', date])
|
19
17
|
}
|
20
18
|
scope :end_date, -> date {
|
21
19
|
date = Time.parse(date.to_s).utc.to_s(:db)
|
22
|
-
|
20
|
+
where(['valuta <= ?', date])
|
23
21
|
}
|
24
22
|
end
|
25
23
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: acts_as_account
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.1.
|
4
|
+
version: 3.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Thies C. Arntzen, Norman Timmler, Matthias Frick, Phillip Oertel
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-01-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|
@@ -118,8 +118,6 @@ extra_rdoc_files:
|
|
118
118
|
- LICENSE
|
119
119
|
- README.rdoc
|
120
120
|
files:
|
121
|
-
- ".ruby-gemset"
|
122
|
-
- ".ruby-version"
|
123
121
|
- ".specification"
|
124
122
|
- ".travis.yml"
|
125
123
|
- CHANGELOG.md
|
@@ -171,7 +169,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
171
169
|
version: '0'
|
172
170
|
requirements: []
|
173
171
|
rubyforge_project:
|
174
|
-
rubygems_version: 2.
|
172
|
+
rubygems_version: 2.4.3
|
175
173
|
signing_key:
|
176
174
|
specification_version: 4
|
177
175
|
summary: acts_as_account implements double entry accounting for Rails models
|
data/.ruby-gemset
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
acts_as_account
|
data/.ruby-version
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
2.0.0
|