slurper 2.1.0 → 2.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/slurper/client.rb +8 -6
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4f503c8c5d2871e1890d34c16bba6094bb3692b39b2955812fd68aac603aef9b
|
4
|
+
data.tar.gz: 3502295dd0c244d11c43afbf84894de91badacb83dc9ff7d1c5de07f0cf12330
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d3f24bb509e2f0dfe762532f4680a557baae35f6e09d0b89bf0e577b57db5610013d0ea22e0d7f78728f76d98cbaad1f753c6e7f47d4fb23377db64bc3d3b3e6
|
7
|
+
data.tar.gz: fc5b2aad9969b731596340eb1a56d574ff0d09e876e6149b774fffef79954971e038600d1d3b2a75637117e5e398446659804459a0f77225d5e3fd32b4344d4d
|
data/lib/slurper/client.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
require '
|
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
|
-
|
10
|
-
|
11
|
-
|
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(
|
20
|
+
JSON.parse(RestClient.get(
|
19
21
|
USERS_URL,
|
20
|
-
|
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.
|
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
|
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:
|
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
|
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
|
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
|