church-community-builder 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +15 -0
- data/.rvmrc +1 -1
- data/Gemfile +1 -1
- data/Gemfile.lock +26 -22
- data/ccb_api.gemspec +1 -1
- data/lib/api/transaction.rb +6 -0
- metadata +5 -11
checksums.yaml
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
---
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
ZjVhMDY3OTEzYzM5Yjk4YTc5ODMxYmFmYTc2NWE1N2U1ZDMyYTFhYw==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
NmI5OTUzNDlmYjZhYzc5YTIyZDZjMzViM2MzZWU2YTFjNjMzMDIyOA==
|
7
|
+
SHA512:
|
8
|
+
metadata.gz: !binary |-
|
9
|
+
MTU3NDJkNTQxNzZlMjk3YzUzZjYzZmM0NTA1ZDVkMGNmM2QzNDk4NDQ3NDEw
|
10
|
+
N2I4N2JkNGQ2NDQwMmQ1OTIxZDE0OTAwNzAwZTgyZGM4ZTQwYzI2MTQ0ZjU3
|
11
|
+
ODU1MTZjZjkyMTY2ZWVmNzJjMDdjYmE5YTU2NWE1MGIyYTkxYmE=
|
12
|
+
data.tar.gz: !binary |-
|
13
|
+
OWYwNjY2Y2I5OTdmODg5MzhlZTcyODkyYWNkZDgwY2JmOTE4MjhjN2Q3OTMy
|
14
|
+
MmJiZTNiYjEyYmM0YmZhN2E2MmI0OGQxNTZhOWU5NDkxYTg0NWM2ZDU5OTE0
|
15
|
+
MzhhNDFkYzJhNmY3YTc5MWQ4MDgzNjM5MzVhMGI4MDAyMzdiNjc=
|
data/.rvmrc
CHANGED
@@ -1 +1 @@
|
|
1
|
-
rvm ruby-1.9.3-
|
1
|
+
rvm ruby-1.9.3-p448@church-community-builder-api --create
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,48 +1,52 @@
|
|
1
1
|
GEM
|
2
2
|
remote: http://rubygems.org/
|
3
3
|
specs:
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
multi_json (~> 1.
|
8
|
-
|
9
|
-
|
4
|
+
activesupport (4.0.1)
|
5
|
+
i18n (~> 0.6, >= 0.6.4)
|
6
|
+
minitest (~> 4.2)
|
7
|
+
multi_json (~> 1.3)
|
8
|
+
thread_safe (~> 0.1)
|
9
|
+
tzinfo (~> 0.3.37)
|
10
|
+
atomic (1.1.14)
|
10
11
|
colored (1.2)
|
11
12
|
columnize (0.3.6)
|
12
|
-
debugger (1.
|
13
|
+
debugger (1.6.2)
|
13
14
|
columnize (>= 0.3.1)
|
14
15
|
debugger-linecache (~> 1.2.0)
|
15
|
-
debugger-ruby_core_source (~> 1.2.
|
16
|
+
debugger-ruby_core_source (~> 1.2.3)
|
16
17
|
debugger-linecache (1.2.0)
|
17
|
-
debugger-ruby_core_source (1.2.
|
18
|
+
debugger-ruby_core_source (1.2.3)
|
18
19
|
diff-lcs (1.2.4)
|
19
20
|
ethon (0.5.3)
|
20
21
|
ffi (~> 1.0.11)
|
21
22
|
mime-types (~> 1.18)
|
22
|
-
factory_girl (4.
|
23
|
+
factory_girl (4.3.0)
|
23
24
|
activesupport (>= 3.0.0)
|
24
25
|
ffi (1.0.11)
|
25
|
-
i18n (0.6.
|
26
|
-
json (1.8.
|
27
|
-
mime-types (1.
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
rspec-
|
32
|
-
rspec-
|
33
|
-
|
34
|
-
rspec-
|
26
|
+
i18n (0.6.5)
|
27
|
+
json (1.8.1)
|
28
|
+
mime-types (1.25)
|
29
|
+
minitest (4.7.5)
|
30
|
+
multi_json (1.8.2)
|
31
|
+
rspec (2.14.1)
|
32
|
+
rspec-core (~> 2.14.0)
|
33
|
+
rspec-expectations (~> 2.14.0)
|
34
|
+
rspec-mocks (~> 2.14.0)
|
35
|
+
rspec-core (2.14.7)
|
36
|
+
rspec-expectations (2.14.3)
|
35
37
|
diff-lcs (>= 1.1.3, < 2.0)
|
36
|
-
rspec-mocks (2.
|
38
|
+
rspec-mocks (2.14.4)
|
39
|
+
thread_safe (0.1.3)
|
40
|
+
atomic
|
37
41
|
typhoeus (0.5.1)
|
38
42
|
ethon (= 0.5.3)
|
43
|
+
tzinfo (0.3.38)
|
39
44
|
xml-simple (1.1.2)
|
40
45
|
|
41
46
|
PLATFORMS
|
42
47
|
ruby
|
43
48
|
|
44
49
|
DEPENDENCIES
|
45
|
-
autotest
|
46
50
|
colored
|
47
51
|
debugger
|
48
52
|
factory_girl
|
data/ccb_api.gemspec
CHANGED
data/lib/api/transaction.rb
CHANGED
@@ -48,10 +48,12 @@ module ChurchCommunityBuilder
|
|
48
48
|
end
|
49
49
|
|
50
50
|
def multiple_transactions?
|
51
|
+
return false if self.transaction_details.nil?
|
51
52
|
self.transaction_details["transaction_detail"].is_a?(Array)
|
52
53
|
end
|
53
54
|
|
54
55
|
def transaction_detail_id
|
56
|
+
return nil if self.transaction_details.nil?
|
55
57
|
if multiple_transactions?
|
56
58
|
self.transaction_details["transaction_detail"].each{ |trans| trans["id"] }
|
57
59
|
else
|
@@ -60,6 +62,7 @@ module ChurchCommunityBuilder
|
|
60
62
|
end
|
61
63
|
|
62
64
|
def fund_id
|
65
|
+
return nil if self.transaction_details.nil?
|
63
66
|
if multiple_transactions?
|
64
67
|
self.transaction_details["transaction_detail"].each{ |trans| trans["coa"]["id"] }
|
65
68
|
else
|
@@ -68,6 +71,7 @@ module ChurchCommunityBuilder
|
|
68
71
|
end
|
69
72
|
|
70
73
|
def fund_name
|
74
|
+
return nil if self.transaction_details.nil?
|
71
75
|
if multiple_transactions?
|
72
76
|
self.transaction_details["transaction_detail"].collect{ |trans| trans["coa"]["content"] }
|
73
77
|
else
|
@@ -76,6 +80,7 @@ module ChurchCommunityBuilder
|
|
76
80
|
end
|
77
81
|
|
78
82
|
def amount
|
83
|
+
return nil if self.transaction_details.nil?
|
79
84
|
if multiple_transactions?
|
80
85
|
self.transaction_details["transaction_detail"].collect{ |trans| trans["amount"] }
|
81
86
|
else
|
@@ -85,6 +90,7 @@ module ChurchCommunityBuilder
|
|
85
90
|
|
86
91
|
|
87
92
|
def as_splits
|
93
|
+
return nil if self.transaction_details.nil?
|
88
94
|
vals = []
|
89
95
|
if multiple_transactions?
|
90
96
|
self.transaction_details["transaction_detail"].each_with_index do |trans, indx|
|
metadata
CHANGED
@@ -1,8 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: church-community-builder
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
5
|
-
prerelease:
|
4
|
+
version: 0.1.2
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Wes Hays
|
@@ -10,12 +9,11 @@ authors:
|
|
10
9
|
autorequire:
|
11
10
|
bindir: bin
|
12
11
|
cert_chain: []
|
13
|
-
date: 2013-
|
12
|
+
date: 2013-11-04 00:00:00.000000000 Z
|
14
13
|
dependencies:
|
15
14
|
- !ruby/object:Gem::Dependency
|
16
15
|
name: typhoeus
|
17
16
|
requirement: !ruby/object:Gem::Requirement
|
18
|
-
none: false
|
19
17
|
requirements:
|
20
18
|
- - '='
|
21
19
|
- !ruby/object:Gem::Version
|
@@ -23,7 +21,6 @@ dependencies:
|
|
23
21
|
type: :runtime
|
24
22
|
prerelease: false
|
25
23
|
version_requirements: !ruby/object:Gem::Requirement
|
26
|
-
none: false
|
27
24
|
requirements:
|
28
25
|
- - '='
|
29
26
|
- !ruby/object:Gem::Version
|
@@ -31,7 +28,6 @@ dependencies:
|
|
31
28
|
- !ruby/object:Gem::Dependency
|
32
29
|
name: xml-simple
|
33
30
|
requirement: !ruby/object:Gem::Requirement
|
34
|
-
none: false
|
35
31
|
requirements:
|
36
32
|
- - ! '>='
|
37
33
|
- !ruby/object:Gem::Version
|
@@ -39,7 +35,6 @@ dependencies:
|
|
39
35
|
type: :runtime
|
40
36
|
prerelease: false
|
41
37
|
version_requirements: !ruby/object:Gem::Requirement
|
42
|
-
none: false
|
43
38
|
requirements:
|
44
39
|
- - ! '>='
|
45
40
|
- !ruby/object:Gem::Version
|
@@ -108,27 +103,26 @@ files:
|
|
108
103
|
- spec/writers/user_writer_spec.rb
|
109
104
|
homepage: https://github.com/weshays/church-community-builder-api-ruby
|
110
105
|
licenses: []
|
106
|
+
metadata: {}
|
111
107
|
post_install_message:
|
112
108
|
rdoc_options: []
|
113
109
|
require_paths:
|
114
110
|
- lib
|
115
111
|
required_ruby_version: !ruby/object:Gem::Requirement
|
116
|
-
none: false
|
117
112
|
requirements:
|
118
113
|
- - ! '>='
|
119
114
|
- !ruby/object:Gem::Version
|
120
115
|
version: '0'
|
121
116
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
122
|
-
none: false
|
123
117
|
requirements:
|
124
118
|
- - ! '>='
|
125
119
|
- !ruby/object:Gem::Version
|
126
120
|
version: '0'
|
127
121
|
requirements: []
|
128
122
|
rubyforge_project: Project on www.github.com
|
129
|
-
rubygems_version: 1.
|
123
|
+
rubygems_version: 2.1.10
|
130
124
|
signing_key:
|
131
|
-
specification_version:
|
125
|
+
specification_version: 4
|
132
126
|
summary: Ruby gem/plugin to interact with the Church Community Builder API.
|
133
127
|
test_files:
|
134
128
|
- spec/api/user_spec.rb
|