eucalyptus 1.1.0 → 1.2.0

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: f92bd060c086466b8c84cd5dca335acc683d6d8d
4
- data.tar.gz: edb3d9c4d6c035a4f9e4730956703090bb9e4eec
3
+ metadata.gz: 5cf237dab7e1f4fa1eaf92c33e960b2773b42fcc
4
+ data.tar.gz: 844f9f41a15a70e97fb75c0f695b13bf7205494b
5
5
  SHA512:
6
- metadata.gz: f08a348d27b30b05e6ed518a2766767a7524b3297ca63ee353960ec27b2f784074247543d61e9c85db5e9e171fab4d7f11709b6d70e6f4570bf0ee537bccb05f
7
- data.tar.gz: 895ade36f69a43e8fbbd998945f8cb33f5955e1137fa1896a8a32c202c92bc6802879c2add5f1d514bc15f0b9fed11364fd7ae7e42ed3c7636fe5ce709eba799
6
+ metadata.gz: d0fcdcbd07bc596b82d6402fb3310c6329ac7318b66b765de7a29de5730539d5d7b049f0179f16bd25280bb3061f8ffa6fcc348d8ff09436461cf17beab68758
7
+ data.tar.gz: 308e05534448b654b246c3aa791a62bebec0232188387aed68fb5b0ecf6afc385d95a775e0c21fcf2eb329ee281b237736cb053141f46a0a7ffba3d8d8db00f1
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.0
1
+ 1.2.0
data/eucalyptus.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: eucalyptus 1.1.0 ruby lib
5
+ # stub: eucalyptus 1.2.0 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "eucalyptus"
9
- s.version = "1.1.0"
9
+ s.version = "1.2.0"
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 = ["Oguz Huner"]
14
- s.date = "2015-10-20"
14
+ s.date = "2015-11-02"
15
15
  s.description = "An easy interface and abstraction to the Facebook Ads API"
16
16
  s.email = "oguzcanhuner@gmail.com"
17
17
  s.extra_rdoc_files = [
data/lib/eucalyptus.rb CHANGED
@@ -3,16 +3,15 @@ Dir[File.dirname(__FILE__) + '/eucalyptus/**/*.rb'].each do |file|
3
3
  require file
4
4
  end
5
5
 
6
- Koala.config.api_version = 'v2.3'
7
6
 
8
7
  module Eucalyptus
9
8
  class << self
10
- attr_accessor :access_token, :default_account_id, :graph
9
+ attr_accessor :api_version, :access_token, :default_account_id, :graph
11
10
 
12
11
  def configure
13
12
  yield(self)
13
+ Koala.config.api_version = api_version
14
14
  self.graph = Koala::Facebook::API.new(access_token)
15
- self.default_account_id = default_account_id
16
15
  end
17
16
 
18
17
  def default_account
@@ -88,7 +88,7 @@ describe Eucalyptus::Resource do
88
88
  .with(123, "customaudiences", {action_breakdowns: [:custom_field], fields: Eucalyptus::CustomAudience.known_fields})
89
89
  .and_return([])
90
90
 
91
- Eucalyptus::CustomAudience.all(graph: graph, parent: parent, options: {action_breakdowns: [:ustom_field]})
91
+ Eucalyptus::CustomAudience.all(graph: graph, parent: parent, options: {action_breakdowns: [:custom_field]})
92
92
  end
93
93
  end
94
94
  end
data/spec/spec_helper.rb CHANGED
@@ -26,6 +26,7 @@ RSpec.configure do |config|
26
26
  Eucalyptus.configure do |config|
27
27
  config.access_token = ENV["ACCESS_TOKEN"]
28
28
  config.default_account_id = ENV["DEFAULT_ACCOUNT_ID"]
29
+ config.api_version = "v2.3"
29
30
  end
30
31
  end
31
32
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: eucalyptus
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Oguz Huner
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-10-20 00:00:00.000000000 Z
11
+ date: 2015-11-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: koala