closeio 0.0.9 → 0.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +7 -7
- data/README.md +3 -3
- data/closeio.gemspec +2 -2
- data/lib/closeio/base.rb +2 -6
- data/lib/closeio/version.rb +1 -1
- metadata +4 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e6c0b0b5071df31313e1c7f4711ed6d540b014e2
|
|
4
|
+
data.tar.gz: 0af926b779182f19b79a3bc61bd271e1d04f8f85
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 370dfee9c675a222952ee50f8397072e501c9f3e33fff9e2a063e52d64dcdc55d49f80fa8a1e0d6de804fa1f4dd9e05deeb6841be934c53886024e1f200db297
|
|
7
|
+
data.tar.gz: 9ead2a5a337bbe1fd18669ec71cab241d9ca58f90c93241974b80b4659f614c5fb2c9966c14f77b0e97b5893fa367b8ca83e4b9e6348b75baeba06dcd0b331c3
|
data/Gemfile.lock
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
closeio (0.0.
|
|
4
|
+
closeio (0.0.9)
|
|
5
5
|
crack (>= 0.1.8)
|
|
6
6
|
httparty (>= 0.11.0)
|
|
7
7
|
|
|
8
8
|
GEM
|
|
9
9
|
remote: https://rubygems.org/
|
|
10
10
|
specs:
|
|
11
|
-
crack (0.4.
|
|
12
|
-
safe_yaml (~> 0.
|
|
13
|
-
httparty (0.
|
|
14
|
-
|
|
11
|
+
crack (0.4.2)
|
|
12
|
+
safe_yaml (~> 1.0.0)
|
|
13
|
+
httparty (0.13.1)
|
|
14
|
+
json (~> 1.8)
|
|
15
15
|
multi_xml (>= 0.5.2)
|
|
16
|
-
|
|
16
|
+
json (1.8.1)
|
|
17
17
|
multi_xml (0.5.5)
|
|
18
18
|
rake (10.1.0)
|
|
19
|
-
safe_yaml (0.
|
|
19
|
+
safe_yaml (1.0.3)
|
|
20
20
|
test-unit (2.5.5)
|
|
21
21
|
|
|
22
22
|
PLATFORMS
|
data/README.md
CHANGED
|
@@ -19,7 +19,7 @@ Add this line to your application's Gemfile:
|
|
|
19
19
|
````ruby
|
|
20
20
|
# Find a specific lead
|
|
21
21
|
lead = Closeio::Lead.find 'lead_xxxxxxxxxxxx'
|
|
22
|
-
|
|
22
|
+
|
|
23
23
|
# See some data about the lead
|
|
24
24
|
lead.addresses
|
|
25
25
|
lead.contacts
|
|
@@ -29,7 +29,7 @@ Add this line to your application's Gemfile:
|
|
|
29
29
|
Closeio::Lead.where query: 'custom.current_system:[Simple Donation]'
|
|
30
30
|
|
|
31
31
|
# Create a lead
|
|
32
|
-
Closeio::Lead.create name: "Bluth Company", contacts: [{name: "Buster Bluth", emails: [{email: "cartographer@bluthcompany.com"}]}]
|
|
32
|
+
Closeio::Lead.create name: "Bluth Company", contacts: [{name: "Buster Bluth", emails: [{type: "office", email: "cartographer@bluthcompany.com"}]}]
|
|
33
33
|
|
|
34
34
|
# Saved Search (SmartView)
|
|
35
35
|
saved_search = Closeio::SavedSearch.all.first
|
|
@@ -46,4 +46,4 @@ Add this line to your application's Gemfile:
|
|
|
46
46
|
|
|
47
47
|
|
|
48
48
|
### Copyright
|
|
49
|
-
Copyright (c) 2013 Taylor Brooks. See LICENSE for details.
|
|
49
|
+
Copyright (c) 2013 Taylor Brooks. See LICENSE for details.
|
data/closeio.gemspec
CHANGED
|
@@ -20,9 +20,9 @@ Gem::Specification.new do |s|
|
|
|
20
20
|
s.require_paths = ["lib"]
|
|
21
21
|
|
|
22
22
|
s.add_runtime_dependency(%q<crack>, [">= 0.1.8"])
|
|
23
|
-
s.add_runtime_dependency(%q<httparty>, ["0.11.0"])
|
|
23
|
+
s.add_runtime_dependency(%q<httparty>, [">= 0.11.0"])
|
|
24
24
|
|
|
25
25
|
s.add_development_dependency "bundler", "~> 1.3"
|
|
26
26
|
s.add_development_dependency "rake"
|
|
27
27
|
s.add_development_dependency "test-unit"
|
|
28
|
-
end
|
|
28
|
+
end
|
data/lib/closeio/base.rb
CHANGED
|
@@ -5,7 +5,7 @@ module Closeio
|
|
|
5
5
|
base_uri 'https://app.close.io/api/v1'
|
|
6
6
|
basic_auth ENV['CLOSEIO_API_KEY'], ''
|
|
7
7
|
headers 'Content-Type' => 'application/json'
|
|
8
|
-
debug_output $stdout
|
|
8
|
+
#debug_output $stdout
|
|
9
9
|
format :json
|
|
10
10
|
|
|
11
11
|
extend Forwardable
|
|
@@ -57,11 +57,7 @@ module Closeio
|
|
|
57
57
|
end
|
|
58
58
|
|
|
59
59
|
def destroy id
|
|
60
|
-
|
|
61
|
-
raise "Yo I'm an array"
|
|
62
|
-
else
|
|
63
|
-
delete "#{resource_path}#{id}/"
|
|
64
|
-
end
|
|
60
|
+
delete "#{resource_path}#{id}/"
|
|
65
61
|
end
|
|
66
62
|
|
|
67
63
|
def find id
|
data/lib/closeio/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: closeio
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.10
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Taylor Brooks
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2014-
|
|
11
|
+
date: 2014-05-08 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: crack
|
|
@@ -28,14 +28,14 @@ dependencies:
|
|
|
28
28
|
name: httparty
|
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
|
30
30
|
requirements:
|
|
31
|
-
- - '
|
|
31
|
+
- - '>='
|
|
32
32
|
- !ruby/object:Gem::Version
|
|
33
33
|
version: 0.11.0
|
|
34
34
|
type: :runtime
|
|
35
35
|
prerelease: false
|
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
|
37
37
|
requirements:
|
|
38
|
-
- - '
|
|
38
|
+
- - '>='
|
|
39
39
|
- !ruby/object:Gem::Version
|
|
40
40
|
version: 0.11.0
|
|
41
41
|
- !ruby/object:Gem::Dependency
|
|
@@ -95,7 +95,6 @@ files:
|
|
|
95
95
|
- LICENSE
|
|
96
96
|
- README.md
|
|
97
97
|
- Rakefile
|
|
98
|
-
- closeio-0.0.3.gem
|
|
99
98
|
- closeio.gemspec
|
|
100
99
|
- lib/closeio.rb
|
|
101
100
|
- lib/closeio/base.rb
|