pipedrive-ruby 0.1.0 → 0.1.1

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.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.0
1
+ 0.1.1
@@ -7,7 +7,7 @@ module Pipedrive
7
7
  HEADERS = {
8
8
  "User-Agent" => "Ruby.Pipedrive.Api",
9
9
  "Accept" => "application/json",
10
- "Content-Type" => "application/json"
10
+ "Content-Type" => "application/x-www-form-urlencoded"
11
11
  }
12
12
 
13
13
  # Base class for setting HTTParty configurations globally
@@ -4,7 +4,8 @@ module Pipedrive
4
4
 
5
5
  def self.create( opts = {} )
6
6
  res = post "/deals", :body => opts
7
- if res.ok?
7
+ if res.success?
8
+ res['data'] = opts.merge res['data']
8
9
  Deal.new(res)
9
10
  else
10
11
  bad_response(res)
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "pipedrive-ruby"
8
- s.version = "0.1.0"
8
+ s.version = "0.1.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Waldemar Kusnezow", "Jan Schwenzien", "Patrick Kozma"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pipedrive-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -143,7 +143,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
143
143
  version: '0'
144
144
  segments:
145
145
  - 0
146
- hash: -1673639647097067349
146
+ hash: -866483969921032974
147
147
  required_rubygems_version: !ruby/object:Gem::Requirement
148
148
  none: false
149
149
  requirements: