slurper 2.1.0 → 2.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/slurper/client.rb +8 -6
  3. metadata +7 -7
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d7ad469b5b86f770946fd6978a298dd60941f7f8dd157eca273df353a7a1efcb
4
- data.tar.gz: 1f4fdd99c8ed322e0e448f585e1cbe2cb1d11d6e4921a645161f2dbf7e13f4a9
3
+ metadata.gz: 4f503c8c5d2871e1890d34c16bba6094bb3692b39b2955812fd68aac603aef9b
4
+ data.tar.gz: 3502295dd0c244d11c43afbf84894de91badacb83dc9ff7d1c5de07f0cf12330
5
5
  SHA512:
6
- metadata.gz: d6f60aac05245772463dafd917ea0ab88a4519d8c3ec1c4ce3f029a579fb0f56e9191dae265d6bae17b688bce6c15edcb5ca41e8a8b98886771f5e30c7e04029
7
- data.tar.gz: 802b5f1b7eab3b0a86eb61dccc85e4c364aba5f2045130f899c7ae99d8357156020d7c4d2108c39eadf511b49056c232e05172fc1fab0bf54cc004e410173fbc
6
+ metadata.gz: d3f24bb509e2f0dfe762532f4680a557baae35f6e09d0b89bf0e577b57db5610013d0ea22e0d7f78728f76d98cbaad1f753c6e7f47d4fb23377db64bc3d3b3e6
7
+ data.tar.gz: fc5b2aad9969b731596340eb1a56d574ff0d09e876e6149b774fffef79954971e038600d1d3b2a75637117e5e398446659804459a0f77225d5e3fd32b4344d4d
@@ -1,4 +1,4 @@
1
- require 'typhoeus'
1
+ require 'rest-client'
2
2
 
3
3
  module Slurper
4
4
  class Client
@@ -6,18 +6,20 @@ 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
- Typhoeus.post CREATE_STORY_URL,
10
- body: story.to_json,
11
- headers: {
9
+ RestClient.post(
10
+ CREATE_STORY_URL,
11
+ story.to_json,
12
+ {
12
13
  "Content-Type" => "application/json",
13
14
  "X-TrackerToken" => Slurper::Config.token
14
15
  }
16
+ )
15
17
  end
16
18
 
17
19
  def self.users
18
- JSON.parse(Typhoeus.get(
20
+ JSON.parse(RestClient.get(
19
21
  USERS_URL,
20
- headers: { "X-TrackerToken" => Slurper::Config.token }
22
+ { "X-TrackerToken" => Slurper::Config.token }
21
23
  ).try(:body) || '[]')
22
24
  end
23
25
  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.1.0
4
+ version: 2.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Lowe
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2019-01-31 00:00:00.000000000 Z
14
+ date: 2019-02-01 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: activesupport
@@ -28,19 +28,19 @@ dependencies:
28
28
  - !ruby/object:Gem::Version
29
29
  version: '5.2'
30
30
  - !ruby/object:Gem::Dependency
31
- name: typhoeus
31
+ name: rest-client
32
32
  requirement: !ruby/object:Gem::Requirement
33
33
  requirements:
34
- - - "~>"
34
+ - - ">="
35
35
  - !ruby/object:Gem::Version
36
- version: '0.6'
36
+ version: '0'
37
37
  type: :runtime
38
38
  prerelease: false
39
39
  version_requirements: !ruby/object:Gem::Requirement
40
40
  requirements:
41
- - - "~>"
41
+ - - ">="
42
42
  - !ruby/object:Gem::Version
43
- version: '0.6'
43
+ version: '0'
44
44
  description: Slurps stories from the given file (stories.slurper by default) and creates
45
45
  Pivotal Tracker stories from them. Useful during story carding sessions when you
46
46
  want to capture a number of stories quickly without clicking your way through the