slurper 2.2.1 → 2.2.2

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
  SHA256:
3
- metadata.gz: 4e976a68f21248ec4c2237a6642e86d6ff89326f72c0b292cf1cd373c7798c8f
4
- data.tar.gz: ba67bb8991f5aeab1540aee68b3458e87752fd12f12d83aa579cdacde986b1b0
3
+ metadata.gz: 5d8c9606d6a4e60047eb18f20e82c1cb297684e7618de50ebe6231af6e507ecc
4
+ data.tar.gz: 763ab69af3627aa4a6de2a64a183d0472b0bb0ee7c17c207c3fd573fedb057b3
5
5
  SHA512:
6
- metadata.gz: deb08cbf16a1cd45b50280a9a6ef2b84d8a9d336777a6d844da49a0665f4e2c6a6b3d8f9a14e8927e335cbecbd80319942a9323887d60a975e5647d8af46f495
7
- data.tar.gz: cca9fac7f92e025b929a01ae076edefad39e4c65786d7db70d7279123d6d277b1a1166595255eaab9299175c661a8c6c2d08214d9f33f08c62e7588f3b67da5b
6
+ metadata.gz: 10d64486b4dc4d584df565e8be9fcb116132f063e6df4aaa513d0f08885558ab1482fe4887007fbfb4d106e9c4c08889ee93b6f411664ccc2c0f806923f16097
7
+ data.tar.gz: '0508b34ea35fbc32ff6d62abdfeefd33866bd6a851ce0b565e29fad2bb793c9e3c757b0c531d7f73d8d9be0c62e0344eaaecfed4da97493578c2c76eca60860c'
@@ -6,7 +6,7 @@ module Slurper
6
6
  USERS_URL = "https://www.pivotaltracker.com/services/v5/projects/#{Slurper::Config.project_id}/memberships"
7
7
 
8
8
  def self.create(story)
9
- RestClient.post(
9
+ result = RestClient.post(
10
10
  CREATE_STORY_URL,
11
11
  story.to_json,
12
12
  {
@@ -14,6 +14,8 @@ module Slurper
14
14
  "X-TrackerToken" => Slurper::Config.token
15
15
  }
16
16
  )
17
+
18
+ return result
17
19
  end
18
20
 
19
21
  def self.users
@@ -25,7 +25,9 @@ module Slurper
25
25
  end
26
26
 
27
27
  def save
28
- (@response = Slurper::Client.create(self)).success?
28
+ (@response = Slurper::Client.create(self))
29
+
30
+ @response.code == 200 or @response.code == 201
29
31
  end
30
32
 
31
33
  def error_message; @response.body end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: slurper
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.1
4
+ version: 2.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Lowe