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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c69155e9e97f1f2d9a6c7d2f92a3d6061b1f0d7b
4
- data.tar.gz: 1309d96f3a9bee28f08c9b8108259ea801c7360d
3
+ metadata.gz: 1f6a2eb12fdc08bd0f4a51d842b5531f9a18e6df
4
+ data.tar.gz: 0d552dbf78425a735cb5e360492e875f07a24c4a
5
5
  SHA512:
6
- metadata.gz: e9e3604b6756b46c41ddf8da1bcad0f240d03ec08e5b14de00e3ffa577600bcf0504214fa57e6319580d9edf5ccecea2a407d9700f7fb98c0b1fc3ba839da859
7
- data.tar.gz: 6a163c13f60584f65177aca5ce7ad92e2932b476c23a48e0fd1ee29090a54af598a7f1d72845d67b10f6730eb425dbf226649dac9a538b866b82641b462f6b57
6
+ metadata.gz: e9f68e13f8e60fd218ee73188e1593f8cb1da88cf9f03069dcf67ac29e8310be1706b87bbd3a7071fce931d19b45a4a4bd9295f21e2fc82d94670ec76358e015
7
+ data.tar.gz: 84e94c28cf83f49cb0b649eec8e13508c4cebc03d417d562c4460f2aaba1a606475860f899d6af3c54ebcdda262b904eb719c47f60f20dfbc99564df7fcb146a
@@ -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-18"
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
- link_header = response_headers['Link']
106
+ # An array (or nil) is returned.
107
+ link_header = Array(response_headers['link'])
107
108
 
108
- return nil if link_header.nil?
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[:no_open_pr]
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}: #{labels_found}"
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}: #{labels_found}"
76
+ raise "Multiple #{type} found for pattern #{pattern.inspect}: #{entries_found}"
77
77
  end
78
78
  end
79
79
  end
@@ -1,3 +1,3 @@
1
1
  module Geet
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
3
3
  end
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.3
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-18 00:00:00.000000000 Z
11
+ date: 2017-10-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: simple_scripting