leadsquared 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +2 -2
- data/Gemfile.lock +24 -26
- data/VERSION +1 -1
- data/leadsquared.gemspec +9 -9
- data/lib/leadsquared/api_connection.rb +1 -1
- data/lib/leadsquared/lead.rb +1 -1
- metadata +10 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d26fb2053d69789ac864e41c8d27b8f9bcd4f425
|
4
|
+
data.tar.gz: 0ed158caf9728c80e5bf1db51c622faaba5a8991
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4362db2393c9df8fe611abc67597088f7f61bcd140e500723de3e48f7e595d665bcf078c7814dc573f89a22da023591eb1716adf582179be15a87ed38afcf4e2
|
7
|
+
data.tar.gz: 909aaa9575860066a7d748ba809e16199a976287ccb3f1316a10cc9bed06ebf60323c95f940df70ca588f57403d03b1c398980609931d4e5cf320f363a7da196
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
GEM
|
2
2
|
remote: http://rubygems.org/
|
3
3
|
specs:
|
4
|
-
activesupport (4.2.
|
4
|
+
activesupport (4.2.5)
|
5
5
|
i18n (~> 0.7)
|
6
6
|
json (~> 1.7, >= 1.7.7)
|
7
7
|
minitest (~> 5.1)
|
@@ -9,12 +9,10 @@ GEM
|
|
9
9
|
tzinfo (~> 1.1)
|
10
10
|
addressable (2.3.8)
|
11
11
|
builder (3.2.2)
|
12
|
-
byebug (
|
13
|
-
columnize (= 0.9.0)
|
12
|
+
byebug (8.2.1)
|
14
13
|
codeclimate-test-reporter (0.4.8)
|
15
14
|
simplecov (>= 0.7.1, < 1.0.0)
|
16
15
|
coderay (1.1.0)
|
17
|
-
columnize (0.9.0)
|
18
16
|
crack (0.4.2)
|
19
17
|
safe_yaml (~> 1.0.0)
|
20
18
|
descendants_tracker (0.0.4)
|
@@ -24,7 +22,7 @@ GEM
|
|
24
22
|
faraday (0.9.2)
|
25
23
|
multipart-post (>= 1.2, < 3)
|
26
24
|
git (1.2.9.1)
|
27
|
-
github_api (0.
|
25
|
+
github_api (0.13.0)
|
28
26
|
addressable (~> 2.3)
|
29
27
|
descendants_tracker (~> 0.0.4)
|
30
28
|
faraday (~> 0.8, < 0.10)
|
@@ -32,8 +30,8 @@ GEM
|
|
32
30
|
multi_json (>= 1.7.5, < 2.0)
|
33
31
|
nokogiri (~> 1.6.6)
|
34
32
|
oauth2
|
35
|
-
hashdiff (0.2.
|
36
|
-
hashie (3.4.
|
33
|
+
hashdiff (0.2.3)
|
34
|
+
hashie (3.4.3)
|
37
35
|
highline (1.7.8)
|
38
36
|
i18n (0.7.0)
|
39
37
|
jeweler (2.0.1)
|
@@ -46,14 +44,14 @@ GEM
|
|
46
44
|
rake
|
47
45
|
rdoc
|
48
46
|
json (1.8.3)
|
49
|
-
jwt (1.5.
|
47
|
+
jwt (1.5.2)
|
50
48
|
method_source (0.8.2)
|
51
49
|
mini_portile (0.6.2)
|
52
|
-
minitest (5.8.
|
50
|
+
minitest (5.8.3)
|
53
51
|
multi_json (1.11.2)
|
54
52
|
multi_xml (0.5.5)
|
55
53
|
multipart-post (2.0.0)
|
56
|
-
nokogiri (1.6.6.
|
54
|
+
nokogiri (1.6.6.4)
|
57
55
|
mini_portile (~> 0.6.0)
|
58
56
|
oauth2 (1.0.0)
|
59
57
|
faraday (>= 0.8, < 0.10)
|
@@ -65,25 +63,25 @@ GEM
|
|
65
63
|
coderay (~> 1.1.0)
|
66
64
|
method_source (~> 0.8.1)
|
67
65
|
slop (~> 3.4)
|
68
|
-
pry-byebug (3.
|
69
|
-
byebug (~>
|
66
|
+
pry-byebug (3.3.0)
|
67
|
+
byebug (~> 8.0)
|
70
68
|
pry (~> 0.10)
|
71
69
|
rack (1.6.4)
|
72
70
|
rake (10.4.2)
|
73
71
|
rdoc (4.2.0)
|
74
|
-
rspec (3.
|
75
|
-
rspec-core (~> 3.
|
76
|
-
rspec-expectations (~> 3.
|
77
|
-
rspec-mocks (~> 3.
|
78
|
-
rspec-core (3.
|
79
|
-
rspec-support (~> 3.
|
80
|
-
rspec-expectations (3.
|
72
|
+
rspec (3.4.0)
|
73
|
+
rspec-core (~> 3.4.0)
|
74
|
+
rspec-expectations (~> 3.4.0)
|
75
|
+
rspec-mocks (~> 3.4.0)
|
76
|
+
rspec-core (3.4.1)
|
77
|
+
rspec-support (~> 3.4.0)
|
78
|
+
rspec-expectations (3.4.0)
|
81
79
|
diff-lcs (>= 1.2.0, < 2.0)
|
82
|
-
rspec-support (~> 3.
|
83
|
-
rspec-mocks (3.
|
80
|
+
rspec-support (~> 3.4.0)
|
81
|
+
rspec-mocks (3.4.0)
|
84
82
|
diff-lcs (>= 1.2.0, < 2.0)
|
85
|
-
rspec-support (~> 3.
|
86
|
-
rspec-support (3.
|
83
|
+
rspec-support (~> 3.4.0)
|
84
|
+
rspec-support (3.4.1)
|
87
85
|
safe_yaml (1.0.4)
|
88
86
|
simplecov (0.10.0)
|
89
87
|
docile (~> 1.1.0)
|
@@ -95,7 +93,7 @@ GEM
|
|
95
93
|
timecop (0.8.0)
|
96
94
|
tzinfo (1.2.2)
|
97
95
|
thread_safe (~> 0.1)
|
98
|
-
webmock (1.22.
|
96
|
+
webmock (1.22.3)
|
99
97
|
addressable (>= 2.3.6)
|
100
98
|
crack (>= 0.3.2)
|
101
99
|
hashdiff
|
@@ -104,10 +102,10 @@ PLATFORMS
|
|
104
102
|
ruby
|
105
103
|
|
106
104
|
DEPENDENCIES
|
107
|
-
activesupport
|
105
|
+
activesupport (~> 4.0)
|
108
106
|
bundler
|
109
107
|
codeclimate-test-reporter
|
110
|
-
faraday
|
108
|
+
faraday (~> 0.9.2)
|
111
109
|
jeweler (~> 2.0.1)
|
112
110
|
pry-byebug
|
113
111
|
rdoc
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.3.0
|
data/leadsquared.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: leadsquared 0.
|
5
|
+
# stub: leadsquared 0.3.0 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "leadsquared"
|
9
|
-
s.version = "0.
|
9
|
+
s.version = "0.3.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 = ["David Paluy"]
|
14
|
-
s.date = "2015-
|
14
|
+
s.date = "2015-11-26"
|
15
15
|
s.description = "Ruby framework for integration with Leadsquared. Leadsquared API: http://apidocs.leadsquared.com/"
|
16
16
|
s.email = "dpaluy@gmail.com"
|
17
17
|
s.extra_rdoc_files = [
|
@@ -52,8 +52,8 @@ Gem::Specification.new do |s|
|
|
52
52
|
s.specification_version = 4
|
53
53
|
|
54
54
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
55
|
-
s.add_runtime_dependency(%q<activesupport>, ["
|
56
|
-
s.add_runtime_dependency(%q<faraday>, ["
|
55
|
+
s.add_runtime_dependency(%q<activesupport>, ["~> 4.0"])
|
56
|
+
s.add_runtime_dependency(%q<faraday>, ["~> 0.9.2"])
|
57
57
|
s.add_development_dependency(%q<rspec>, [">= 0"])
|
58
58
|
s.add_development_dependency(%q<rdoc>, [">= 0"])
|
59
59
|
s.add_development_dependency(%q<bundler>, [">= 0"])
|
@@ -64,8 +64,8 @@ Gem::Specification.new do |s|
|
|
64
64
|
s.add_development_dependency(%q<timecop>, [">= 0"])
|
65
65
|
s.add_development_dependency(%q<codeclimate-test-reporter>, [">= 0"])
|
66
66
|
else
|
67
|
-
s.add_dependency(%q<activesupport>, ["
|
68
|
-
s.add_dependency(%q<faraday>, ["
|
67
|
+
s.add_dependency(%q<activesupport>, ["~> 4.0"])
|
68
|
+
s.add_dependency(%q<faraday>, ["~> 0.9.2"])
|
69
69
|
s.add_dependency(%q<rspec>, [">= 0"])
|
70
70
|
s.add_dependency(%q<rdoc>, [">= 0"])
|
71
71
|
s.add_dependency(%q<bundler>, [">= 0"])
|
@@ -77,8 +77,8 @@ Gem::Specification.new do |s|
|
|
77
77
|
s.add_dependency(%q<codeclimate-test-reporter>, [">= 0"])
|
78
78
|
end
|
79
79
|
else
|
80
|
-
s.add_dependency(%q<activesupport>, ["
|
81
|
-
s.add_dependency(%q<faraday>, ["
|
80
|
+
s.add_dependency(%q<activesupport>, ["~> 4.0"])
|
81
|
+
s.add_dependency(%q<faraday>, ["~> 0.9.2"])
|
82
82
|
s.add_dependency(%q<rspec>, [">= 0"])
|
83
83
|
s.add_dependency(%q<rdoc>, [">= 0"])
|
84
84
|
s.add_dependency(%q<bundler>, [">= 0"])
|
@@ -24,7 +24,7 @@ module Leadsquared
|
|
24
24
|
when 404
|
25
25
|
raise InvalidRequestError.new("API Not Found")
|
26
26
|
when 500
|
27
|
-
message = response.body
|
27
|
+
message = response.body #.try(:[], "ExceptionMessage")
|
28
28
|
raise InvalidRequestError.new("Internal Error: #{message}")
|
29
29
|
else
|
30
30
|
raise InvalidRequestError.new("Unknown Error#{response.body}")
|
data/lib/leadsquared/lead.rb
CHANGED
metadata
CHANGED
@@ -1,43 +1,43 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: leadsquared
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Paluy
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-11-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0'
|
19
|
+
version: '4.0'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - "
|
24
|
+
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '0'
|
26
|
+
version: '4.0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: faraday
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - "
|
31
|
+
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
33
|
+
version: 0.9.2
|
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
|
-
version:
|
40
|
+
version: 0.9.2
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rspec
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|