fb_graph 2.5.0 → 2.5.1

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.5.0
1
+ 2.5.1
@@ -2,7 +2,7 @@ module FbGraph
2
2
  class AdCampaign < Node
3
3
  include Connections::AdGroups
4
4
 
5
- attr_accessor :campaign_id, :account_id, :name, :start_time, :end_time, :updated_time, :daily_budget, :daily_imps, :campaign_status, :lifetime_budget
5
+ attr_accessor :campaign_id, :account_id, :name, :start_time, :end_time, :updated_time, :daily_budget, :daily_imps, :campaign_status, :lifetime_budget, :lifetime_imps
6
6
 
7
7
  def initialize(identifier, attributes = {})
8
8
  super
@@ -23,7 +23,7 @@ module FbGraph
23
23
  protected
24
24
 
25
25
  def set_attrs(attributes)
26
- %w(campaign_id account_id name daily_budget daily_imps campaign_status lifetime_budget).each do |field|
26
+ %w(campaign_id account_id name daily_budget daily_imps campaign_status lifetime_budget lifetime_imps).each do |field|
27
27
  send("#{field}=", attributes[field.to_sym])
28
28
  end
29
29
 
@@ -11,7 +11,8 @@ describe FbGraph::AdCampaign, '.new' do
11
11
  :end_time => "2011-07-14T16:00:00+00:00",
12
12
  :daily_budget => 20000,
13
13
  :campaign_status => 1,
14
- :lifetime_budget => 100000
14
+ :lifetime_budget => 100000,
15
+ :lifetime_imps => 1000
15
16
  }
16
17
  ad_campaign = FbGraph::AdCampaign.new(attributes.delete(:id), attributes)
17
18
  ad_campaign.identifier.should == "6003266501234"
@@ -22,6 +23,7 @@ describe FbGraph::AdCampaign, '.new' do
22
23
  ad_campaign.daily_budget.should == 20000
23
24
  ad_campaign.campaign_status.should == 1
24
25
  ad_campaign.lifetime_budget.should == 100000
26
+ ad_campaign.lifetime_imps.should == 1000
25
27
  end
26
28
 
27
29
  it 'should handle integer, string, or iso8601 timestamps' do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fb_graph
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.5.0
4
+ version: 2.5.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-09-13 00:00:00.000000000 Z
12
+ date: 2012-09-28 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: httpclient