geet 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/geet.gemspec +1 -1
- data/lib/geet/git_hub/api_helper.rb +4 -3
- data/lib/geet/services/create_issue.rb +2 -2
- data/lib/geet/services/create_pr.rb +1 -1
- data/lib/geet/version.rb +1 -1
- 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: 1f6a2eb12fdc08bd0f4a51d842b5531f9a18e6df
|
4
|
+
data.tar.gz: 0d552dbf78425a735cb5e360492e875f07a24c4a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e9f68e13f8e60fd218ee73188e1593f8cb1da88cf9f03069dcf67ac29e8310be1706b87bbd3a7071fce931d19b45a4a4bd9295f21e2fc82d94670ec76358e015
|
7
|
+
data.tar.gz: 84e94c28cf83f49cb0b649eec8e13508c4cebc03d417d562c4460f2aaba1a606475860f899d6af3c54ebcdda262b904eb719c47f60f20dfbc99564df7fcb146a
|
data/geet.gemspec
CHANGED
@@ -10,7 +10,7 @@ Gem::Specification.new do |s|
|
|
10
10
|
s.platform = Gem::Platform::RUBY
|
11
11
|
s.required_ruby_version = '>= 2.2.0'
|
12
12
|
s.authors = ["Saverio Miroddi"]
|
13
|
-
s.date = "2017-10-
|
13
|
+
s.date = "2017-10-26"
|
14
14
|
s.email = ["saverio.pub2@gmail.com"]
|
15
15
|
s.homepage = "https://github.com/saveriomiroddi/geet"
|
16
16
|
s.summary = "Commandline interface for performing SCM (eg. GitHub) operations (eg. PR creation)."
|
@@ -103,11 +103,12 @@ module Geet
|
|
103
103
|
end
|
104
104
|
|
105
105
|
def link_next_page(response_headers)
|
106
|
-
|
106
|
+
# An array (or nil) is returned.
|
107
|
+
link_header = Array(response_headers['link'])
|
107
108
|
|
108
|
-
return nil if link_header.
|
109
|
+
return nil if link_header.empty?
|
109
110
|
|
110
|
-
link_header[/<(\S+)>; rel="next"/, 1]
|
111
|
+
link_header[0][/<(\S+)>; rel="next"/, 1]
|
111
112
|
end
|
112
113
|
end
|
113
114
|
end
|
@@ -50,7 +50,7 @@ module Geet
|
|
50
50
|
issue.assign_user(repository.authenticated_user)
|
51
51
|
end
|
52
52
|
|
53
|
-
if options[:
|
53
|
+
if options[:no_open_issue]
|
54
54
|
puts "Issue address: #{issue.link}"
|
55
55
|
else
|
56
56
|
os_open(issue.link)
|
@@ -71,7 +71,7 @@ module Geet
|
|
71
71
|
when 0
|
72
72
|
raise "No #{type} found for pattern: #{pattern.inspect}"
|
73
73
|
else
|
74
|
-
raise "Multiple #{type} found for pattern #{pattern.inspect}: #{
|
74
|
+
raise "Multiple #{type} found for pattern #{pattern.inspect}: #{entries_found}"
|
75
75
|
end
|
76
76
|
end
|
77
77
|
end
|
@@ -73,7 +73,7 @@ module Geet
|
|
73
73
|
when 0
|
74
74
|
raise "No #{type} found for pattern: #{pattern.inspect}"
|
75
75
|
else
|
76
|
-
raise "Multiple #{type} found for pattern #{pattern.inspect}: #{
|
76
|
+
raise "Multiple #{type} found for pattern #{pattern.inspect}: #{entries_found}"
|
77
77
|
end
|
78
78
|
end
|
79
79
|
end
|
data/lib/geet/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: geet
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Saverio Miroddi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-10-
|
11
|
+
date: 2017-10-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: simple_scripting
|