ghi 0.9.0.20130912 → 0.9.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ghi.rb +7 -2
- data/lib/ghi/authorization.rb +64 -19
- data/lib/ghi/client.rb +3 -2
- data/lib/ghi/commands/command.rb +8 -3
- data/lib/ghi/commands/list.rb +8 -2
- data/lib/ghi/commands/version.rb +2 -2
- data/lib/ghi/formatting.rb +10 -1
- data/lib/ghi/json.rb +1134 -1132
- data/lib/ghi/web.rb +4 -1
- metadata +13 -13
data/lib/ghi/web.rb
CHANGED
@@ -12,9 +12,12 @@ module GHI
|
|
12
12
|
end
|
13
13
|
|
14
14
|
def open path = '', params = {}
|
15
|
+
path = uri_for path, params
|
16
|
+
$stdout.puts path
|
17
|
+
return unless $stdout.tty?
|
15
18
|
launcher = 'open'
|
16
19
|
launcher = 'xdg-open' if /linux/ =~ RUBY_PLATFORM
|
17
|
-
system "#{launcher} '#{
|
20
|
+
system "#{launcher} '#{path}'"
|
18
21
|
end
|
19
22
|
|
20
23
|
def curl path = '', params = {}
|
metadata
CHANGED
@@ -1,41 +1,41 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ghi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stephen Celis
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2014-02-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '0'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: ronn
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
41
|
description: |
|
@@ -46,8 +46,11 @@ executables:
|
|
46
46
|
extensions: []
|
47
47
|
extra_rdoc_files: []
|
48
48
|
files:
|
49
|
+
- bin/ghi
|
50
|
+
- lib/ghi.rb
|
49
51
|
- lib/ghi/authorization.rb
|
50
52
|
- lib/ghi/client.rb
|
53
|
+
- lib/ghi/commands.rb
|
51
54
|
- lib/ghi/commands/assign.rb
|
52
55
|
- lib/ghi/commands/close.rb
|
53
56
|
- lib/ghi/commands/command.rb
|
@@ -61,14 +64,11 @@ files:
|
|
61
64
|
- lib/ghi/commands/open.rb
|
62
65
|
- lib/ghi/commands/show.rb
|
63
66
|
- lib/ghi/commands/version.rb
|
64
|
-
- lib/ghi/commands.rb
|
65
67
|
- lib/ghi/editor.rb
|
66
|
-
- lib/ghi/formatting/colors.rb
|
67
68
|
- lib/ghi/formatting.rb
|
69
|
+
- lib/ghi/formatting/colors.rb
|
68
70
|
- lib/ghi/json.rb
|
69
71
|
- lib/ghi/web.rb
|
70
|
-
- lib/ghi.rb
|
71
|
-
- bin/ghi
|
72
72
|
homepage: https://github.com/stephencelis/ghi
|
73
73
|
licenses: []
|
74
74
|
metadata: {}
|
@@ -78,17 +78,17 @@ require_paths:
|
|
78
78
|
- lib
|
79
79
|
required_ruby_version: !ruby/object:Gem::Requirement
|
80
80
|
requirements:
|
81
|
-
- -
|
81
|
+
- - ">="
|
82
82
|
- !ruby/object:Gem::Version
|
83
83
|
version: '0'
|
84
84
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
85
85
|
requirements:
|
86
|
-
- -
|
86
|
+
- - ">="
|
87
87
|
- !ruby/object:Gem::Version
|
88
88
|
version: '0'
|
89
89
|
requirements: []
|
90
90
|
rubyforge_project:
|
91
|
-
rubygems_version: 2.0
|
91
|
+
rubygems_version: 2.2.0
|
92
92
|
signing_key:
|
93
93
|
specification_version: 4
|
94
94
|
summary: GitHub Issues command line interface
|