demandbase 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ # 0.1.3
2
+
3
+ * Moved `mocha/setup` requirement to test helper.
4
+ * Unstubbe some stubbed methods making tests sometimes fails.
5
+
1
6
  # 0.1.2
2
7
 
3
8
  * `Demandbase::lookup()` now returns nil if no record is found.
data/README.md CHANGED
@@ -1,8 +1,10 @@
1
- The Demandbase gem is a Ruby wrapper for the [Demandbase](http://www.demandbase.com?affiliate_id=LOL_JK_MAYBE) platform allowing you to [buzzwords here].
1
+ ![Demandbase API Ruby Wrapper](http://demandbaselabs.com/images/Demandbase_logo_3C_RGB_1124x138.png)
2
+
3
+ The Demandbase gem is a Ruby wrapper for the [Demandbase](http://www.demandbase.com?affiliate_id=LOL_JK_MAYBE) real-time targeting and personalization platform.
2
4
 
3
5
  ### Prerequisites
4
6
 
5
- You'll need an active Demandbase account with at least one Real Time Identification(RTID) key. You can sign up for a trial developer key [here](http://www.demandbase.com?affiliate_id=LOL_JK_MAYBE)).
7
+ You'll need an active Demandbase account with at least one Real Time Identification(RTID) key. You can sign up for a trial developer key [here](http://www.demandbase.com/who-is-demandbase/contact-demandbase/?affiliate_id=LOL_JK_MAYBE).
6
8
 
7
9
  ### Installation
8
10
 
@@ -27,7 +29,7 @@ export DEMANDBASE_RTID_KEY=1234deadbeef4321
27
29
  #### Heroku Example
28
30
 
29
31
  ```
30
- heroku set DEMANDBASE_RTID_KEY=1234deadbeef4321
32
+ heroku config:add DEMANDBASE_RTID_KEY=1234deadbeef4321
31
33
  ```
32
34
 
33
35
  ### Usage
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.2
1
+ 0.1.3
data/demandbase.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "demandbase"
8
- s.version = "0.1.2"
8
+ s.version = "0.1.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Lee Reilly"]
data/lib/demandbase.rb CHANGED
@@ -1,5 +1,4 @@
1
1
  require 'json'
2
- require 'mocha/setup'
3
2
  require 'public_suffix'
4
3
  require 'rest_client'
5
4
 
data/test/helper.rb CHANGED
@@ -1,5 +1,6 @@
1
1
  require 'rubygems'
2
2
  require 'bundler'
3
+ require 'mocha/setup'
3
4
  begin
4
5
  Bundler.setup(:default, :development)
5
6
  rescue Bundler::BundlerError => e
data/test/test_record.rb CHANGED
@@ -61,6 +61,7 @@ class TestDemandbaseRecord < Test::Unit::TestCase
61
61
  should "raise an RTIDNotSetError if no DEMANDBASE_RTID_KEY is set" do
62
62
  Demandbase::Record.any_instance.stubs(:rtid_key).returns(nil)
63
63
  assert_raise(Demandbase::RTIDNotSetError) { Demandbase::lookup('github.com') }
64
+ Demandbase::Record.any_instance.unstub(:rtid_key)
64
65
  end
65
66
 
66
67
  should "raise a ParseError if the domain doesn't look valid" do
@@ -70,5 +71,6 @@ class TestDemandbaseRecord < Test::Unit::TestCase
70
71
  should "raise a ServerError if there's a problem communicating with the Demandbase server" do
71
72
  Demandbase::Record.any_instance.stubs(:domain_api_url).returns('http://www.example.com')
72
73
  assert_raise(Demandbase::ServerError) { Demandbase::lookup('github.com') }
74
+ Demandbase::Record.any_instance.unstub(:domain_api_url)
73
75
  end
74
76
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: demandbase
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -176,7 +176,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
176
176
  version: '0'
177
177
  segments:
178
178
  - 0
179
- hash: -1402719259970849807
179
+ hash: -62646037689653422
180
180
  required_rubygems_version: !ruby/object:Gem::Requirement
181
181
  none: false
182
182
  requirements: