fellowshipone-api 0.6.2 → 0.6.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 84f36a68852f3322fe5f34dd183f2bcac6a56ddd
4
- data.tar.gz: 43bd3058f79b9ec823d0c052a3a252c9c30af175
3
+ metadata.gz: e407704f2f83c97fd4f54d7a210ea01d896ba933
4
+ data.tar.gz: acaa958a0d71537bc17d9e34cb36db509c033588
5
5
  SHA512:
6
- metadata.gz: d87421ce5ad31fa865a86a1ed4a7ec77c2e279a0d094ec3c95b8ee4a8c6a07d1dee2a24abc70d8421420d51b853b1b409b01c16ce8a5c8752a5ffb43531ffa3a
7
- data.tar.gz: 14cb8f0fe58a9629cfdc6192341af0277115de2acd40873c880d3159b6670ff3b152ede9721b4e382f4396d582bd8845480e09e761c444ea65de642575a7f724
6
+ metadata.gz: 231ff07605b209982381ddc5b2454c9bb0409f1dfd1bc51a0e9f32cad43bdd4ca1de79c044fdf49f05f5ef114a9ad771da2b1821387ce9d5a642f38c16d96114
7
+ data.tar.gz: de823540f93d5280ed4a801e3590ecaa9be470ebddb2bcf8bc9e7e08e0b760315f98784f83c5fcca496584a1f50d1d95cf41d4ea6566a5dbdb414e751fd5ee35
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  PROJECT_GEM = 'fellowshipone-api'
3
- PROJECT_GEM_VERSION = '0.6.2'
3
+ PROJECT_GEM_VERSION = '0.6.3'
4
4
 
5
5
  s.name = PROJECT_GEM
6
6
  s.version = PROJECT_GEM_VERSION
@@ -18,6 +18,7 @@ module FellowshipOne
18
18
  def initialize(fund_id, options = {})
19
19
  reader = options[:reader] || FellowshipOne::SubFundListReader.new(fund_id, options)
20
20
  @json_data = reader.load_feed
21
+ @json_data['subFunds'] = {'subFund' => []} if reader.load_feed["subFunds"].nil?
21
22
  @count = @json_data['subFunds']['subFund'].size.to_i
22
23
  @page_number = 1
23
24
  @total_records = @count
@@ -30,7 +31,7 @@ module FellowshipOne
30
31
  #
31
32
  # @return Fund
32
33
  def [](index)
33
- Fund.new( @json_data['funds']['fund'][index] ) if @json_data['funds']['fund'][index]
34
+ Fund.new( @json_data['subFunds']['subFund'][index] ) if @json_data['subFunds']['subFund'][index]
34
35
  end
35
36
 
36
37
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fellowshipone-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.2
4
+ version: 0.6.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Wes Hays
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-04-07 00:00:00.000000000 Z
12
+ date: 2014-04-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: typhoeus