gplan 0.2.0 → 0.2.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.
- checksums.yaml +4 -4
- data/lib/planbox.rb +6 -3
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b354fa8b0e948c87b750234b439486e252f02889
|
|
4
|
+
data.tar.gz: 4daa7967b0acd62d4508df0bcf1619170f2cb1db
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4cd63044d8a9221af423b1978e030322b8c85841486bfb28295996305626c114f6f5cf8703e8ca45cb88fc98e86ccb66e06b54d94cc99128bfc1313df11fe22e
|
|
7
|
+
data.tar.gz: 3b21bd26bca5d574405d809bd9c6dc5f38a520a5d9fe6adb89b0d9469c281381eb478b4e73ea8fe664365ebc1378d62d02ac6b6886f2070ad922f9e6e63c9d66
|
data/lib/planbox.rb
CHANGED
|
@@ -2,7 +2,7 @@ require 'httparty'
|
|
|
2
2
|
|
|
3
3
|
PLANBOX_EMAIL=ENV['PLANBOX_EMAIL']
|
|
4
4
|
PLANBOX_TOKEN=ENV['PLANBOX_TOKEN']
|
|
5
|
-
PLANBOX_BASE_URL="https://
|
|
5
|
+
PLANBOX_BASE_URL="https://work.planbox.com/api"
|
|
6
6
|
|
|
7
7
|
module Planbox
|
|
8
8
|
include HTTParty
|
|
@@ -15,13 +15,15 @@ module Planbox
|
|
|
15
15
|
end
|
|
16
16
|
|
|
17
17
|
def self.get_release_notes pb_story_ids
|
|
18
|
+
return [] if pb_story_ids.empty?
|
|
18
19
|
stories = get_release_notes_array pb_story_ids
|
|
19
|
-
|
|
20
|
+
format stories
|
|
20
21
|
end
|
|
21
22
|
|
|
22
23
|
def self.get_release_notes_array pb_story_ids
|
|
24
|
+
return [] if pb_story_ids.empty?
|
|
23
25
|
check_environment
|
|
24
|
-
|
|
26
|
+
get_stories pb_story_ids
|
|
25
27
|
end
|
|
26
28
|
|
|
27
29
|
def self.login
|
|
@@ -51,6 +53,7 @@ module Planbox
|
|
|
51
53
|
end
|
|
52
54
|
|
|
53
55
|
def self.get_stories(array_of_pb_ids)
|
|
56
|
+
return [] if array_of_pb_ids.nil?
|
|
54
57
|
login
|
|
55
58
|
stories = []
|
|
56
59
|
return [] unless array_of_pb_ids
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: gplan
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Jeff Koenig
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-
|
|
11
|
+
date: 2016-08-29 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: httparty
|