demandbase 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +3 -0
- data/Gemfile +11 -0
- data/Gemfile.lock +44 -0
- data/LICENSE.txt +20 -0
- data/README.md +102 -0
- data/Rakefile +45 -0
- data/VERSION +1 -0
- data/demandbase.gemspec +67 -0
- data/lib/demandbase.rb +19 -0
- data/lib/demandbase/record.rb +72 -0
- data/test/helper.rb +18 -0
- data/test/test_demandbase.rb +44 -0
- data/test/test_record.rb +39 -0
- metadata +159 -0
data/CHANGELOG.md
ADDED
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
@@ -0,0 +1,44 @@
|
|
1
|
+
GEM
|
2
|
+
remote: http://rubygems.org/
|
3
|
+
specs:
|
4
|
+
activesupport (3.2.12)
|
5
|
+
i18n (~> 0.6)
|
6
|
+
multi_json (~> 1.0)
|
7
|
+
bourne (1.1.2)
|
8
|
+
mocha (= 0.10.5)
|
9
|
+
git (1.2.5)
|
10
|
+
i18n (0.6.4)
|
11
|
+
jeweler (1.8.4)
|
12
|
+
bundler (~> 1.0)
|
13
|
+
git (>= 1.2.5)
|
14
|
+
rake
|
15
|
+
rdoc
|
16
|
+
json (1.7.7)
|
17
|
+
metaclass (0.0.1)
|
18
|
+
mime-types (1.21)
|
19
|
+
mocha (0.10.5)
|
20
|
+
metaclass (~> 0.0.1)
|
21
|
+
multi_json (1.6.1)
|
22
|
+
rake (10.0.3)
|
23
|
+
rdoc (3.12.2)
|
24
|
+
json (~> 1.4)
|
25
|
+
rest-client (1.6.7)
|
26
|
+
mime-types (>= 1.16)
|
27
|
+
shoulda (3.3.2)
|
28
|
+
shoulda-context (~> 1.0.1)
|
29
|
+
shoulda-matchers (~> 1.4.1)
|
30
|
+
shoulda-context (1.0.2)
|
31
|
+
shoulda-matchers (1.4.2)
|
32
|
+
activesupport (>= 3.0.0)
|
33
|
+
bourne (~> 1.1.2)
|
34
|
+
|
35
|
+
PLATFORMS
|
36
|
+
ruby
|
37
|
+
|
38
|
+
DEPENDENCIES
|
39
|
+
bundler (~> 1.2.1)
|
40
|
+
jeweler (~> 1.8.3)
|
41
|
+
json (~> 1.7.7)
|
42
|
+
rdoc (~> 3.12)
|
43
|
+
rest-client (~> 1.6.7)
|
44
|
+
shoulda
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
Copyright (c) 2013 Lee Reilly
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
+
a copy of this software and associated documentation files (the
|
5
|
+
"Software"), to deal in the Software without restriction, including
|
6
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
+
permit persons to whom the Software is furnished to do so, subject to
|
9
|
+
the following conditions:
|
10
|
+
|
11
|
+
The above copyright notice and this permission notice shall be
|
12
|
+
included in all copies or substantial portions of the Software.
|
13
|
+
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,102 @@
|
|
1
|
+
# Prerequisites
|
2
|
+
|
3
|
+
* An active [Demandbase](http://www.demandbase.com?affiliate_id=LOL_JK_MAYBE) account with at least on RTID key.
|
4
|
+
|
5
|
+
# Installation
|
6
|
+
|
7
|
+
Install the Demandbase wrapper with `gem install demandbase`,
|
8
|
+
|
9
|
+
# Configuraton
|
10
|
+
|
11
|
+
Set an environment variable called `$DEMANDBASE_RTID_KEY` with the key value.
|
12
|
+
|
13
|
+
# Usage
|
14
|
+
|
15
|
+
If everything's installed and configured you should be able to look up companies' information via their domain name or IP address as follows.
|
16
|
+
|
17
|
+
```ruby
|
18
|
+
record = Demandbase::lookup_ip '123.12.1.123'
|
19
|
+
# => <Demandbase::Record:0x007aba42a46484>
|
20
|
+
|
21
|
+
record = Demandbase::lookup_domain 'ubs.com'
|
22
|
+
# => <Demandbase::Record:0x007fce82a46060>
|
23
|
+
|
24
|
+
record.company_name
|
25
|
+
# => "UBS"
|
26
|
+
|
27
|
+
record.demandbase_sid
|
28
|
+
# => 3874866
|
29
|
+
|
30
|
+
record.marketing_alias
|
31
|
+
# => 3874866
|
32
|
+
|
33
|
+
record.industry
|
34
|
+
# => "Financial Services"
|
35
|
+
|
36
|
+
record.sub_industry
|
37
|
+
# => "Banking & Finance"
|
38
|
+
|
39
|
+
record.employee_count
|
40
|
+
# => 64820
|
41
|
+
|
42
|
+
record.primary_sic
|
43
|
+
# => "6021"
|
44
|
+
|
45
|
+
record.street_address
|
46
|
+
# => "Bahnhofstrasse 45"
|
47
|
+
|
48
|
+
record.city
|
49
|
+
# => "Z\u00fcrich"
|
50
|
+
|
51
|
+
record.state
|
52
|
+
# => "ZH"
|
53
|
+
|
54
|
+
record.zip
|
55
|
+
# => 8001
|
56
|
+
|
57
|
+
record.country
|
58
|
+
# => "CH"
|
59
|
+
|
60
|
+
record.country_name
|
61
|
+
# => "Switzerland"
|
62
|
+
|
63
|
+
record.phone
|
64
|
+
# => "+41 44 234 11 11"
|
65
|
+
|
66
|
+
record.stock_ticker
|
67
|
+
# => "UBS"
|
68
|
+
|
69
|
+
record.web_site
|
70
|
+
# => "ubs.com"
|
71
|
+
|
72
|
+
record.annual_sales
|
73
|
+
# => 30632917000
|
74
|
+
|
75
|
+
record.revenue_range
|
76
|
+
# => "Over $5B"
|
77
|
+
|
78
|
+
record.employee_range
|
79
|
+
# => "Enterprise"
|
80
|
+
|
81
|
+
record.latitude
|
82
|
+
# => 0.0
|
83
|
+
|
84
|
+
record.longitude
|
85
|
+
# => 0.0
|
86
|
+
|
87
|
+
record.fortune_1000
|
88
|
+
# => false
|
89
|
+
|
90
|
+
record.forbes_2000
|
91
|
+
# => true
|
92
|
+
```
|
93
|
+
|
94
|
+
# DLC / Enhancements
|
95
|
+
|
96
|
+
* Use the [csi](https://github.com/leereilly/csi) gem if you'd like to correlate SIC codes with NAICS codes.
|
97
|
+
* Use the [fortune-finder](https://github.com/leereilly/fortune-finder) gem if you'd like to retrieve the ranking of a Fortune 500 company.
|
98
|
+
* Use the [forbes-finder](https://github.com/leereilly/forbes-finder) gem if you'd like to retrieve the ranking of a Fortune 1000 company.
|
99
|
+
|
100
|
+
# License
|
101
|
+
|
102
|
+
MIT.
|
data/Rakefile
ADDED
@@ -0,0 +1,45 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
|
3
|
+
require 'rubygems'
|
4
|
+
require 'bundler'
|
5
|
+
begin
|
6
|
+
Bundler.setup(:default, :development)
|
7
|
+
rescue Bundler::BundlerError => e
|
8
|
+
$stderr.puts e.message
|
9
|
+
$stderr.puts "Run `bundle install` to install missing gems"
|
10
|
+
exit e.status_code
|
11
|
+
end
|
12
|
+
require 'rake'
|
13
|
+
|
14
|
+
require 'jeweler'
|
15
|
+
Jeweler::Tasks.new do |gem|
|
16
|
+
# gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
|
17
|
+
gem.name = "demandbase"
|
18
|
+
gem.homepage = "http://github.com/leereilly/demandbase"
|
19
|
+
gem.license = "MIT"
|
20
|
+
gem.summary = %Q{Ruby wrapper for the Demandbase API}
|
21
|
+
gem.description = %Q{Ruby wrapper for the Demandbase API}
|
22
|
+
gem.email = "lee@leereilly.net"
|
23
|
+
gem.authors = ["Lee Reilly"]
|
24
|
+
# dependencies defined in Gemfile
|
25
|
+
end
|
26
|
+
Jeweler::RubygemsDotOrgTasks.new
|
27
|
+
|
28
|
+
require 'rake/testtask'
|
29
|
+
Rake::TestTask.new(:test) do |test|
|
30
|
+
test.libs << 'lib' << 'test'
|
31
|
+
test.pattern = 'test/**/test_*.rb'
|
32
|
+
test.verbose = true
|
33
|
+
end
|
34
|
+
|
35
|
+
task :default => :test
|
36
|
+
|
37
|
+
require 'rdoc/task'
|
38
|
+
Rake::RDocTask.new do |rdoc|
|
39
|
+
version = File.exist?('VERSION') ? File.read('VERSION') : ""
|
40
|
+
|
41
|
+
rdoc.rdoc_dir = 'rdoc'
|
42
|
+
rdoc.title = "demandbase #{version}"
|
43
|
+
rdoc.rdoc_files.include('README*')
|
44
|
+
rdoc.rdoc_files.include('lib/**/*.rb')
|
45
|
+
end
|
data/VERSION
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
0.1.0
|
data/demandbase.gemspec
ADDED
@@ -0,0 +1,67 @@
|
|
1
|
+
# Generated by jeweler
|
2
|
+
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
|
+
# -*- encoding: utf-8 -*-
|
5
|
+
|
6
|
+
Gem::Specification.new do |s|
|
7
|
+
s.name = "demandbase"
|
8
|
+
s.version = "0.1.0"
|
9
|
+
|
10
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
+
s.authors = ["Lee Reilly"]
|
12
|
+
s.date = "2013-03-15"
|
13
|
+
s.description = "Ruby wrapper for the Demandbase API"
|
14
|
+
s.email = "lee@leereilly.net"
|
15
|
+
s.extra_rdoc_files = [
|
16
|
+
"LICENSE.txt",
|
17
|
+
"README.md"
|
18
|
+
]
|
19
|
+
s.files = [
|
20
|
+
"CHANGELOG.md",
|
21
|
+
"Gemfile",
|
22
|
+
"Gemfile.lock",
|
23
|
+
"LICENSE.txt",
|
24
|
+
"README.md",
|
25
|
+
"Rakefile",
|
26
|
+
"VERSION",
|
27
|
+
"demandbase.gemspec",
|
28
|
+
"lib/demandbase.rb",
|
29
|
+
"lib/demandbase/record.rb",
|
30
|
+
"test/helper.rb",
|
31
|
+
"test/test_demandbase.rb",
|
32
|
+
"test/test_record.rb"
|
33
|
+
]
|
34
|
+
s.homepage = "http://github.com/leereilly/demandbase"
|
35
|
+
s.licenses = ["MIT"]
|
36
|
+
s.require_paths = ["lib"]
|
37
|
+
s.rubygems_version = "1.8.23"
|
38
|
+
s.summary = "Ruby wrapper for the Demandbase API"
|
39
|
+
|
40
|
+
if s.respond_to? :specification_version then
|
41
|
+
s.specification_version = 3
|
42
|
+
|
43
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
44
|
+
s.add_runtime_dependency(%q<json>, ["~> 1.7.7"])
|
45
|
+
s.add_runtime_dependency(%q<rest-client>, ["~> 1.6.7"])
|
46
|
+
s.add_development_dependency(%q<shoulda>, [">= 0"])
|
47
|
+
s.add_development_dependency(%q<rdoc>, ["~> 3.12"])
|
48
|
+
s.add_development_dependency(%q<bundler>, ["~> 1.2.1"])
|
49
|
+
s.add_development_dependency(%q<jeweler>, ["~> 1.8.3"])
|
50
|
+
else
|
51
|
+
s.add_dependency(%q<json>, ["~> 1.7.7"])
|
52
|
+
s.add_dependency(%q<rest-client>, ["~> 1.6.7"])
|
53
|
+
s.add_dependency(%q<shoulda>, [">= 0"])
|
54
|
+
s.add_dependency(%q<rdoc>, ["~> 3.12"])
|
55
|
+
s.add_dependency(%q<bundler>, ["~> 1.2.1"])
|
56
|
+
s.add_dependency(%q<jeweler>, ["~> 1.8.3"])
|
57
|
+
end
|
58
|
+
else
|
59
|
+
s.add_dependency(%q<json>, ["~> 1.7.7"])
|
60
|
+
s.add_dependency(%q<rest-client>, ["~> 1.6.7"])
|
61
|
+
s.add_dependency(%q<shoulda>, [">= 0"])
|
62
|
+
s.add_dependency(%q<rdoc>, ["~> 3.12"])
|
63
|
+
s.add_dependency(%q<bundler>, ["~> 1.2.1"])
|
64
|
+
s.add_dependency(%q<jeweler>, ["~> 1.8.3"])
|
65
|
+
end
|
66
|
+
end
|
67
|
+
|
data/lib/demandbase.rb
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
require 'json'
|
2
|
+
require 'rest_client'
|
3
|
+
require 'demandbase/record'
|
4
|
+
|
5
|
+
module Demandbase
|
6
|
+
class << self
|
7
|
+
def lookup_domain(domain)
|
8
|
+
'Stanford University'
|
9
|
+
end
|
10
|
+
|
11
|
+
def lookup_ip(ip)
|
12
|
+
'Stanford University'
|
13
|
+
end
|
14
|
+
|
15
|
+
def lookup(domain_or_ip)
|
16
|
+
'Stanford University'
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
@@ -0,0 +1,72 @@
|
|
1
|
+
module Demandbase
|
2
|
+
RTID_KEY = ENV['DEMANDBASE_RTID_KEY']
|
3
|
+
API_URLS = {
|
4
|
+
:domain => "http://api.demandbase.com/api/v1/domain.json?key=#{RTID_KEY}",
|
5
|
+
:ip => "http://api.demandbase.com/api/v1/ip.json?key=#{RTID_KEY}" }
|
6
|
+
|
7
|
+
class Record
|
8
|
+
attr_accessor :company_name
|
9
|
+
attr_accessor :demandbase_sid
|
10
|
+
attr_accessor :marketing_alias
|
11
|
+
attr_accessor :industry
|
12
|
+
attr_accessor :sub_industry
|
13
|
+
attr_accessor :employee_count
|
14
|
+
attr_accessor :primary_sic
|
15
|
+
attr_accessor :street_address
|
16
|
+
attr_accessor :city
|
17
|
+
attr_accessor :state
|
18
|
+
attr_accessor :zip
|
19
|
+
attr_accessor :country
|
20
|
+
attr_accessor :country_name
|
21
|
+
attr_accessor :phone
|
22
|
+
attr_accessor :stock_ticker
|
23
|
+
attr_accessor :web_site
|
24
|
+
attr_accessor :annual_sales
|
25
|
+
attr_accessor :revenue_range
|
26
|
+
attr_accessor :employee_range
|
27
|
+
attr_accessor :b2b
|
28
|
+
attr_accessor :b2c
|
29
|
+
attr_accessor :traffic
|
30
|
+
attr_accessor :latitude
|
31
|
+
attr_accessor :longitude
|
32
|
+
attr_accessor :fortune_1000
|
33
|
+
attr_accessor :forbes_2000
|
34
|
+
|
35
|
+
# Instantiate a new Demandbase Record from a domain name.
|
36
|
+
def initialize(domain)
|
37
|
+
url = Demandbase::API_URLS[:domain] + "&query=#{domain}"
|
38
|
+
|
39
|
+
begin
|
40
|
+
response = JSON.parse(RestClient.get(url))
|
41
|
+
@company_name = response["domain"]["company_name"]
|
42
|
+
@demandbase_sid = response["domain"]["demandbase_sid"]
|
43
|
+
@marketing_alias = response["domain"]["marketing_alias"]
|
44
|
+
@industry = response["domain"]["industry"]
|
45
|
+
@sub_industry = response["domain"]["sub_industry"]
|
46
|
+
@employee_count = response["domain"]["employee_count"]
|
47
|
+
@primary_sic = response["domain"]["primary_sic"]
|
48
|
+
@street_address = response["domain"]["street_address"]
|
49
|
+
@city = response["domain"]["city"]
|
50
|
+
@state = response["domain"]["state"]
|
51
|
+
@zip = response["domain"]["zip"]
|
52
|
+
@country = response["domain"]["country"]
|
53
|
+
@country_name = response["domain"]["country_name"]
|
54
|
+
@phone = response["domain"]["phone"]
|
55
|
+
@stock_ticker = response["domain"]["stock_ticker"]
|
56
|
+
@web_site = response["domain"]["web_site"]
|
57
|
+
@annual_sales = response["domain"]["annual_sales"]
|
58
|
+
@revenue_range = response["domain"]["revenue_range"]
|
59
|
+
@employee_range = response["domain"]["employee_range"]
|
60
|
+
@b2b = response["domain"]["b2b"]
|
61
|
+
@b2c = response["domain"]["b2c"]
|
62
|
+
@traffic = response["domain"]["traffic"]
|
63
|
+
@latitude = response["domain"]["latitude"]
|
64
|
+
@longitude = response["domain"]["longitude"]
|
65
|
+
@fortune_1000 = response["domain"]["fortune_1000"]
|
66
|
+
@forbes_2000 = response["domain"]["forbes_2000"]
|
67
|
+
rescue => e
|
68
|
+
puts "Problem querying the server: #{e.inspect}"
|
69
|
+
end
|
70
|
+
end
|
71
|
+
end
|
72
|
+
end
|
data/test/helper.rb
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
require 'rubygems'
|
2
|
+
require 'bundler'
|
3
|
+
begin
|
4
|
+
Bundler.setup(:default, :development)
|
5
|
+
rescue Bundler::BundlerError => e
|
6
|
+
$stderr.puts e.message
|
7
|
+
$stderr.puts "Run `bundle install` to install missing gems"
|
8
|
+
exit e.status_code
|
9
|
+
end
|
10
|
+
require 'test/unit'
|
11
|
+
require 'shoulda'
|
12
|
+
|
13
|
+
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
14
|
+
$LOAD_PATH.unshift(File.dirname(__FILE__))
|
15
|
+
require 'demandbase'
|
16
|
+
|
17
|
+
class Test::Unit::TestCase
|
18
|
+
end
|
@@ -0,0 +1,44 @@
|
|
1
|
+
require 'helper'
|
2
|
+
|
3
|
+
class TestDemandbase < Test::Unit::TestCase
|
4
|
+
should "get a record for Stanford University" do
|
5
|
+
assert_equal 'Stanford University', Demandbase::lookup_domain('stanford.edu')
|
6
|
+
end
|
7
|
+
|
8
|
+
should "get a record for the University of Strathclyde" do
|
9
|
+
|
10
|
+
end
|
11
|
+
|
12
|
+
should "get a record for a GitHub's IP address" do
|
13
|
+
|
14
|
+
end
|
15
|
+
|
16
|
+
should "recognize IP addresses" do
|
17
|
+
|
18
|
+
end
|
19
|
+
|
20
|
+
should "recognize domain names" do
|
21
|
+
|
22
|
+
end
|
23
|
+
|
24
|
+
should "handle multiple formats" do
|
25
|
+
queries = [
|
26
|
+
"microsoft.com",
|
27
|
+
"www.microsoft.com",
|
28
|
+
"developer.hacks.microsoft.com",
|
29
|
+
"http://www.microsoft.com",
|
30
|
+
"https://www.microsofot.com",
|
31
|
+
"william.gates@microsoft.com",
|
32
|
+
"microsoft.co.uk"
|
33
|
+
]
|
34
|
+
end
|
35
|
+
|
36
|
+
should "return nothing when no record is found" do
|
37
|
+
|
38
|
+
end
|
39
|
+
|
40
|
+
should "throw an exception when the service is down" do
|
41
|
+
|
42
|
+
end
|
43
|
+
|
44
|
+
end
|
data/test/test_record.rb
ADDED
@@ -0,0 +1,39 @@
|
|
1
|
+
require 'helper'
|
2
|
+
|
3
|
+
class TestDemandbaseRecord < Test::Unit::TestCase
|
4
|
+
should "remember to set DEMANDBASE_RTID_KEY" do
|
5
|
+
assert ENV['DEMANDBASE_RTID_KEY'], "Please set your $DEMANDBASE_RTID_KEY"
|
6
|
+
end
|
7
|
+
|
8
|
+
should "initialize a new record with a valid domain" do
|
9
|
+
domain = 'github.com'
|
10
|
+
record = Demandbase::Record.new(domain)
|
11
|
+
|
12
|
+
assert_equal "Github Inc", record.company_name # dat h ಠ_ಠ
|
13
|
+
assert_equal 22528943, record.demandbase_sid
|
14
|
+
assert_equal "Github", record.marketing_alias
|
15
|
+
assert_equal "Software & Technology", record.industry
|
16
|
+
assert_equal "Software Applications", record.sub_industry
|
17
|
+
assert_equal 30, record.employee_count
|
18
|
+
assert_equal "7372", record.primary_sic
|
19
|
+
assert_equal "548 4th St", record.street_address
|
20
|
+
assert_equal "San Francisco", record.city
|
21
|
+
assert_equal "CA", record.state
|
22
|
+
assert_equal "94107", record.zip
|
23
|
+
assert_equal "US", record.country
|
24
|
+
assert_equal "United States", record.country_name
|
25
|
+
assert_equal "415-409-8053", record.phone
|
26
|
+
assert_equal nil, record.stock_ticker
|
27
|
+
assert_equal "github.com", record.web_site
|
28
|
+
assert_equal 6240000, record.annual_sales
|
29
|
+
assert_equal "$5M - $10M", record.revenue_range
|
30
|
+
assert_equal "Small", record.employee_range
|
31
|
+
assert_equal true, record.b2b
|
32
|
+
assert_equal true, record.b2c
|
33
|
+
assert_equal "Very High", record.traffic
|
34
|
+
assert_equal 37.7789, record.latitude
|
35
|
+
assert_equal -122.398, record.longitude
|
36
|
+
assert_equal false, record.fortune_1000 # TODO: fix this test in 2017
|
37
|
+
assert_equal false, record.forbes_2000 # TODO: fix this test in 2016
|
38
|
+
end
|
39
|
+
end
|
metadata
ADDED
@@ -0,0 +1,159 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: demandbase
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Lee Reilly
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2013-03-15 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: json
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ~>
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: 1.7.7
|
22
|
+
type: :runtime
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ~>
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: 1.7.7
|
30
|
+
- !ruby/object:Gem::Dependency
|
31
|
+
name: rest-client
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
33
|
+
none: false
|
34
|
+
requirements:
|
35
|
+
- - ~>
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: 1.6.7
|
38
|
+
type: :runtime
|
39
|
+
prerelease: false
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ~>
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: 1.6.7
|
46
|
+
- !ruby/object:Gem::Dependency
|
47
|
+
name: shoulda
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
49
|
+
none: false
|
50
|
+
requirements:
|
51
|
+
- - ! '>='
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '0'
|
54
|
+
type: :development
|
55
|
+
prerelease: false
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
58
|
+
requirements:
|
59
|
+
- - ! '>='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
- !ruby/object:Gem::Dependency
|
63
|
+
name: rdoc
|
64
|
+
requirement: !ruby/object:Gem::Requirement
|
65
|
+
none: false
|
66
|
+
requirements:
|
67
|
+
- - ~>
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '3.12'
|
70
|
+
type: :development
|
71
|
+
prerelease: false
|
72
|
+
version_requirements: !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
74
|
+
requirements:
|
75
|
+
- - ~>
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: '3.12'
|
78
|
+
- !ruby/object:Gem::Dependency
|
79
|
+
name: bundler
|
80
|
+
requirement: !ruby/object:Gem::Requirement
|
81
|
+
none: false
|
82
|
+
requirements:
|
83
|
+
- - ~>
|
84
|
+
- !ruby/object:Gem::Version
|
85
|
+
version: 1.2.1
|
86
|
+
type: :development
|
87
|
+
prerelease: false
|
88
|
+
version_requirements: !ruby/object:Gem::Requirement
|
89
|
+
none: false
|
90
|
+
requirements:
|
91
|
+
- - ~>
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
version: 1.2.1
|
94
|
+
- !ruby/object:Gem::Dependency
|
95
|
+
name: jeweler
|
96
|
+
requirement: !ruby/object:Gem::Requirement
|
97
|
+
none: false
|
98
|
+
requirements:
|
99
|
+
- - ~>
|
100
|
+
- !ruby/object:Gem::Version
|
101
|
+
version: 1.8.3
|
102
|
+
type: :development
|
103
|
+
prerelease: false
|
104
|
+
version_requirements: !ruby/object:Gem::Requirement
|
105
|
+
none: false
|
106
|
+
requirements:
|
107
|
+
- - ~>
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: 1.8.3
|
110
|
+
description: Ruby wrapper for the Demandbase API
|
111
|
+
email: lee@leereilly.net
|
112
|
+
executables: []
|
113
|
+
extensions: []
|
114
|
+
extra_rdoc_files:
|
115
|
+
- LICENSE.txt
|
116
|
+
- README.md
|
117
|
+
files:
|
118
|
+
- CHANGELOG.md
|
119
|
+
- Gemfile
|
120
|
+
- Gemfile.lock
|
121
|
+
- LICENSE.txt
|
122
|
+
- README.md
|
123
|
+
- Rakefile
|
124
|
+
- VERSION
|
125
|
+
- demandbase.gemspec
|
126
|
+
- lib/demandbase.rb
|
127
|
+
- lib/demandbase/record.rb
|
128
|
+
- test/helper.rb
|
129
|
+
- test/test_demandbase.rb
|
130
|
+
- test/test_record.rb
|
131
|
+
homepage: http://github.com/leereilly/demandbase
|
132
|
+
licenses:
|
133
|
+
- MIT
|
134
|
+
post_install_message:
|
135
|
+
rdoc_options: []
|
136
|
+
require_paths:
|
137
|
+
- lib
|
138
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
139
|
+
none: false
|
140
|
+
requirements:
|
141
|
+
- - ! '>='
|
142
|
+
- !ruby/object:Gem::Version
|
143
|
+
version: '0'
|
144
|
+
segments:
|
145
|
+
- 0
|
146
|
+
hash: -3613502600391467336
|
147
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
148
|
+
none: false
|
149
|
+
requirements:
|
150
|
+
- - ! '>='
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: '0'
|
153
|
+
requirements: []
|
154
|
+
rubyforge_project:
|
155
|
+
rubygems_version: 1.8.23
|
156
|
+
signing_key:
|
157
|
+
specification_version: 3
|
158
|
+
summary: Ruby wrapper for the Demandbase API
|
159
|
+
test_files: []
|