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 +5 -0
- data/README.md +5 -3
- data/VERSION +1 -1
- data/demandbase.gemspec +1 -1
- data/lib/demandbase.rb +0 -1
- data/test/helper.rb +1 -0
- data/test/test_record.rb +2 -0
- metadata +2 -2
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -1,8 +1,10 @@
|
|
1
|
-
|
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
|
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
|
32
|
+
heroku config:add DEMANDBASE_RTID_KEY=1234deadbeef4321
|
31
33
|
```
|
32
34
|
|
33
35
|
### Usage
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.3
|
data/demandbase.gemspec
CHANGED
data/lib/demandbase.rb
CHANGED
data/test/helper.rb
CHANGED
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.
|
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: -
|
179
|
+
hash: -62646037689653422
|
180
180
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
181
181
|
none: false
|
182
182
|
requirements:
|