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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4457c15176528bf134ce7a7508d6d9c1aa5aa314
4
- data.tar.gz: a6f8e10a837e2700a48fd7d0fa2724942a3c6b5f
3
+ metadata.gz: d26fb2053d69789ac864e41c8d27b8f9bcd4f425
4
+ data.tar.gz: 0ed158caf9728c80e5bf1db51c622faaba5a8991
5
5
  SHA512:
6
- metadata.gz: f236634bb8f198e5a1596f0dff7952fa77afb384e9292686ddef94a1b7e042d49bdfeb4a9fd25fcb024d67e915c596bba5b99dcb942ad7e009281b1ed8c6930a
7
- data.tar.gz: 7613afb63bc28d440e1e673a96463daaff4a650b6386d3cb88bacbd3e4a8c2b43c3c19202bf7065c05c8fc38cf628a05caa28e5826a33d3edd466d435e438d64
6
+ metadata.gz: 4362db2393c9df8fe611abc67597088f7f61bcd140e500723de3e48f7e595d665bcf078c7814dc573f89a22da023591eb1716adf582179be15a87ed38afcf4e2
7
+ data.tar.gz: 909aaa9575860066a7d748ba809e16199a976287ccb3f1316a10cc9bed06ebf60323c95f940df70ca588f57403d03b1c398980609931d4e5cf320f363a7da196
data/Gemfile CHANGED
@@ -1,7 +1,7 @@
1
1
  source "http://rubygems.org"
2
2
 
3
- gem 'activesupport'
4
- gem 'faraday'
3
+ gem 'activesupport', '~> 4.0'
4
+ gem 'faraday', '~> 0.9.2'
5
5
 
6
6
  # Add dependencies to develop your gem here.
7
7
  # Include everything needed to run rake, tests, features, etc.
@@ -1,7 +1,7 @@
1
1
  GEM
2
2
  remote: http://rubygems.org/
3
3
  specs:
4
- activesupport (4.2.4)
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 (5.0.0)
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.12.4)
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.2)
36
- hashie (3.4.2)
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.1)
47
+ jwt (1.5.2)
50
48
  method_source (0.8.2)
51
49
  mini_portile (0.6.2)
52
- minitest (5.8.1)
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.2)
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.2.0)
69
- byebug (~> 5.0)
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.3.0)
75
- rspec-core (~> 3.3.0)
76
- rspec-expectations (~> 3.3.0)
77
- rspec-mocks (~> 3.3.0)
78
- rspec-core (3.3.2)
79
- rspec-support (~> 3.3.0)
80
- rspec-expectations (3.3.1)
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.3.0)
83
- rspec-mocks (3.3.2)
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.3.0)
86
- rspec-support (3.3.0)
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.1)
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.2.0
1
+ 0.3.0
@@ -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.2.0 ruby lib
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.2.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-10-26"
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>, [">= 0"])
56
- s.add_runtime_dependency(%q<faraday>, [">= 0"])
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>, [">= 0"])
68
- s.add_dependency(%q<faraday>, [">= 0"])
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>, [">= 0"])
81
- s.add_dependency(%q<faraday>, [">= 0"])
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.try(:[], "ExceptionMessage")
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}")
@@ -35,7 +35,7 @@ module Leadsquared
35
35
  handle_response response
36
36
  end
37
37
 
38
- def create_lead(email = nil, first_name = nil, last_name = nil)
38
+ def create_lead(email, first_name = nil, last_name = nil)
39
39
  url = url_with_service("Lead.Create")
40
40
  body = [
41
41
  {
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.2.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-10-26 00:00:00.000000000 Z
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: '0'
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: '0'
40
+ version: 0.9.2
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rspec
43
43
  requirement: !ruby/object:Gem::Requirement