fellowshipone 2.2.0 → 2.3.0

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: f4e11ab742f6434a9fdbad47eb2ad76ff6a541d7
4
- data.tar.gz: 0ea42375b6bdadc9d1a33eeca8dd4d9bad9ef928
2
+ SHA256:
3
+ metadata.gz: 3d3e8fd739f06877331528a5b336f0bd9a07652a3b1bb636252412fe58f43725
4
+ data.tar.gz: b3dcf555047b91033c7e484e0f0459e3fbeed7a94518fe78672ce92f5a2fa386
5
5
  SHA512:
6
- metadata.gz: '08e01e74f88a62afacd80d646293e0dfbb626a16f106fec26d00de022fda3bd2ec60daebc39182df420dfd2beac87276d26ca5f22ad4c130dd2c9c50973fd214'
7
- data.tar.gz: fd72fbf2ef5a1535486de53b524c8805e24898d09e104582325b2b22f5ad34add06312855597601dcfdda4f5a7e0f87af112f7822aa96782899e32372d160a6f
6
+ metadata.gz: 979700cfeab5b167e679bbe7ef5ed93b8eee9d4a6b483b14c39ab59868e56fde8ac795ec3426714c3655ac8cedd0dd3ec3020c3901c72f844e3e0220b567faef
7
+ data.tar.gz: d65b3e8cc2125d16c8f7404f6507445d8f6749c8f20e1e27b62fac2168c676174e1148888fc2b6fe8d17d33364acd5a1dcc11cfa0a4db8aa6c515ea9dcf37ab9
@@ -2,7 +2,7 @@ $:.push File.expand_path('../lib', __FILE__)
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = 'fellowshipone'
5
- s.version = '2.2.0'
5
+ s.version = '2.3.0'
6
6
  s.authors = ['Taylor Brooks']
7
7
  s.email = ['tbrooks@gmail.com']
8
8
  s.homepage = 'https://github.com/taylorbrooks/fellowshipone'
@@ -1,8 +1,7 @@
1
1
  module Fellowshipone
2
2
  class Contribution
3
-
4
3
  def self.format(res)
5
- response = res["contributionReceipt"]
4
+ response = res['contributionReceipt']
6
5
  if response.is_a?(Array)
7
6
  response.map{|contribution| format_contribution(contribution) }
8
7
  else
@@ -12,11 +11,12 @@ module Fellowshipone
12
11
 
13
12
  def self.format_contribution(contribution)
14
13
  OpenStruct.new(
15
- id: contribution["@id"],
16
- amount: contribution["amount"],
17
- fund: contribution["fund"]["name"],
18
- sub_fund: contribution["subFund"]["name"],
19
- date: contribution["receivedDate"]
14
+ id: contribution['@id'],
15
+ amount: contribution['amount'],
16
+ fund: contribution['fund']['name'],
17
+ sub_fund: contribution['subFund']['name'],
18
+ date: contribution['receivedDate'],
19
+ fund_type_id: contribution['fund']['fundTypeID']
20
20
  )
21
21
  end
22
22
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fellowshipone
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.0
4
+ version: 2.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Taylor Brooks
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-04-07 00:00:00.000000000 Z
11
+ date: 2019-10-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -226,8 +226,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
226
226
  - !ruby/object:Gem::Version
227
227
  version: '0'
228
228
  requirements: []
229
- rubyforge_project:
230
- rubygems_version: 2.6.13
229
+ rubygems_version: 3.0.3
231
230
  signing_key:
232
231
  specification_version: 4
233
232
  summary: Ruby gem/plugin to interact with the FellowshipOne API (https://developer.fellowshipone.com/).