gisty 0.2.6 → 0.2.7
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 +7 -0
- data/README.rdoc +15 -0
- data/Rakefile +1 -0
- data/bin/gisty +2 -1
- data/lib/gisty.rb +5 -4
- metadata +88 -92
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 1927c05c746d973802f7646e4357e9b2b59cbc50
|
4
|
+
data.tar.gz: e6b0899991fcd4ca37a4e42cacbe81087747a8b3
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 45182641ed8d70d523a75c18a7f1d519b183bd081cb15d76b2e4b57fd8af7ba72c9ebe45fccf26b6a3a3a084793e71478661cfdbc6d4d4ed7db0379726b72df9
|
7
|
+
data.tar.gz: 2610a84603fb81c00dfe455bfd3c435a23ad9a6f5d407615eafe4c0bf3a9a618edebbed1bed2dfcf4e1314e06ae27044bab9177e2fcdbb24b7755781f0f67c4e
|
data/README.rdoc
CHANGED
@@ -17,6 +17,7 @@ set environment variable GISTY_DIR.
|
|
17
17
|
export GISTY_DIR="$HOME/dev/gists"
|
18
18
|
|
19
19
|
get OAuth access token here. https://swdyh-gisty.heroku.com/
|
20
|
+
alternatively: https://github.com/settings/applications -> "Personal access tokens"
|
20
21
|
set environment variable GISTY_ACCESS_TOKEN
|
21
22
|
|
22
23
|
export GISTY_ACCESS_TOKEN=your_access_key
|
@@ -35,6 +36,20 @@ if you do not want to verify, set GISTY_SSL_VERIFY.
|
|
35
36
|
|
36
37
|
export GISTY_SSL_VERIFY="NONE"
|
37
38
|
|
39
|
+
|
40
|
+
=== GitHub Enterprise
|
41
|
+
|
42
|
+
https://enterprise.github.com/help/articles/using-the-api
|
43
|
+
|
44
|
+
To set the default API access URL:
|
45
|
+
|
46
|
+
export GIST_API_URL=http(s)://github.enterprise.hostname/api/v3/gists
|
47
|
+
|
48
|
+
To specify the base URI reference for the clone path (e.g. git@<path>:id.git)
|
49
|
+
|
50
|
+
export GISTY_BASE_URI=github.enterprise.hostname
|
51
|
+
|
52
|
+
|
38
53
|
== Synopsis
|
39
54
|
|
40
55
|
commands
|
data/Rakefile
CHANGED
@@ -63,6 +63,7 @@ spec = Gem::Specification.new do |s|
|
|
63
63
|
s.add_development_dependency "rake"
|
64
64
|
s.add_development_dependency "rr"
|
65
65
|
s.add_development_dependency "fakeweb"
|
66
|
+
s.add_development_dependency "minitest", '~> 4.0'
|
66
67
|
|
67
68
|
s.files = %w(README.rdoc Rakefile) +
|
68
69
|
Dir.glob("{bin,doc,test,lib,templates,generator,extras,website,script}/**/*") +
|
data/bin/gisty
CHANGED
@@ -29,7 +29,8 @@ end
|
|
29
29
|
if ENV['GISTY_DIR']
|
30
30
|
begin
|
31
31
|
@g = Gisty.new ENV['GISTY_DIR'], nil, nil, :ssl_ca => ENV['GISTY_SSL_CA'],
|
32
|
-
:ssl_verify => ENV['GISTY_SSL_VERIFY'], :access_token => ENV['GISTY_ACCESS_TOKEN']
|
32
|
+
:ssl_verify => ENV['GISTY_SSL_VERIFY'], :access_token => ENV['GISTY_ACCESS_TOKEN'],
|
33
|
+
:api_url => ENV['GIST_API_URL'], :base_uri => ENV['GISTY_BASE_URI']
|
33
34
|
rescue Gisty::UnsetAuthInfoException => e
|
34
35
|
puts 'Error: OAuth access token is missing.'
|
35
36
|
puts 'Please get here. https://swdyh-gisty.heroku.com/'
|
data/lib/gisty.rb
CHANGED
@@ -7,8 +7,8 @@ require 'rubygems'
|
|
7
7
|
require 'json'
|
8
8
|
|
9
9
|
class Gisty
|
10
|
-
VERSION = '0.2.
|
11
|
-
|
10
|
+
VERSION = '0.2.7'
|
11
|
+
GIST_URI = 'gist.github.com'
|
12
12
|
GIST_API_URL = 'https://api.github.com/gists'
|
13
13
|
GISTY_URL = 'https://github.com/swdyh/gisty'
|
14
14
|
USER_AGENT = "gisty/#{VERSION} #{GISTY_URL}"
|
@@ -42,6 +42,7 @@ class Gisty
|
|
42
42
|
OpenSSL::SSL::VERIFY_PEER
|
43
43
|
end
|
44
44
|
@api_url = opt[:api_url] || GIST_API_URL
|
45
|
+
@base_uri = opt[:base_uri] || GIST_URI
|
45
46
|
end
|
46
47
|
|
47
48
|
def all_mygists &block
|
@@ -99,7 +100,7 @@ class Gisty
|
|
99
100
|
|
100
101
|
def clone id
|
101
102
|
FileUtils.cd @dir do
|
102
|
-
c = "git clone git@
|
103
|
+
c = "git clone git@#{@base_uri}:#{id}.git"
|
103
104
|
Kernel.system c
|
104
105
|
end
|
105
106
|
end
|
@@ -133,7 +134,7 @@ class Gisty
|
|
133
134
|
FileUtils.cd @dir do
|
134
135
|
r = all_mygists do |gist|
|
135
136
|
unless File.exists? gist['id']
|
136
|
-
c = "git clone git@
|
137
|
+
c = "git clone git@#{@base_uri}:#{gist['id']}.git"
|
137
138
|
Kernel.system c
|
138
139
|
end
|
139
140
|
local -= [gist['id']]
|
metadata
CHANGED
@@ -1,88 +1,94 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: gisty
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
prerelease: false
|
6
|
-
segments:
|
7
|
-
- 0
|
8
|
-
- 2
|
9
|
-
- 6
|
10
|
-
version: 0.2.6
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.2.7
|
11
5
|
platform: ruby
|
12
|
-
authors:
|
6
|
+
authors:
|
13
7
|
- swdyh
|
14
8
|
autorequire:
|
15
9
|
bindir: bin
|
16
10
|
cert_chain: []
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
dependencies:
|
21
|
-
- !ruby/object:Gem::Dependency
|
11
|
+
date: 2014-04-13 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
22
14
|
name: json
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
hash: 3
|
30
|
-
segments:
|
31
|
-
- 0
|
32
|
-
version: "0"
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - '>='
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
33
20
|
type: :development
|
34
|
-
version_requirements: *id001
|
35
|
-
- !ruby/object:Gem::Dependency
|
36
|
-
name: rake
|
37
21
|
prerelease: false
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - '>='
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - '>='
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
47
34
|
type: :development
|
48
|
-
version_requirements: *id002
|
49
|
-
- !ruby/object:Gem::Dependency
|
50
|
-
name: rr
|
51
35
|
prerelease: false
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - '>='
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rr
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - '>='
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
61
48
|
type: :development
|
62
|
-
|
63
|
-
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - '>='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
64
56
|
name: fakeweb
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - '>='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :development
|
65
63
|
prerelease: false
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - '>='
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: minitest
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ~>
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '4.0'
|
75
76
|
type: :development
|
76
|
-
|
77
|
-
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ~>
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '4.0'
|
83
|
+
description: yet another command line client for gist. Gisty uses Github API V3 via
|
84
|
+
OAuth2.
|
78
85
|
email: http://mailhide.recaptcha.net/d?k=01AhB7crgrlHptVaYRD0oPwA==&c=L_iqOZrGmo6hcGpPTFg1QYnjr-WpAStyQ4Y8ShfgOHs=
|
79
|
-
executables:
|
86
|
+
executables:
|
80
87
|
- gisty
|
81
88
|
extensions: []
|
82
|
-
|
83
|
-
extra_rdoc_files:
|
89
|
+
extra_rdoc_files:
|
84
90
|
- README.rdoc
|
85
|
-
files:
|
91
|
+
files:
|
86
92
|
- README.rdoc
|
87
93
|
- Rakefile
|
88
94
|
- bin/gisty
|
@@ -104,12 +110,11 @@ files:
|
|
104
110
|
- lib/commands/sync.rb
|
105
111
|
- lib/commands/sync_delete.rb
|
106
112
|
- lib/gisty.rb
|
107
|
-
has_rdoc: true
|
108
113
|
homepage: http://github.com/swdyh/gisty/tree/master
|
109
114
|
licenses: []
|
110
|
-
|
115
|
+
metadata: {}
|
111
116
|
post_install_message:
|
112
|
-
rdoc_options:
|
117
|
+
rdoc_options:
|
113
118
|
- --title
|
114
119
|
- gisty documentation
|
115
120
|
- --charset
|
@@ -120,32 +125,23 @@ rdoc_options:
|
|
120
125
|
- --inline-source
|
121
126
|
- --exclude
|
122
127
|
- ^(examples|extras)/
|
123
|
-
require_paths:
|
128
|
+
require_paths:
|
124
129
|
- lib
|
125
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
none: false
|
136
|
-
requirements:
|
137
|
-
- - ">="
|
138
|
-
- !ruby/object:Gem::Version
|
139
|
-
hash: 3
|
140
|
-
segments:
|
141
|
-
- 0
|
142
|
-
version: "0"
|
130
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
131
|
+
requirements:
|
132
|
+
- - '>='
|
133
|
+
- !ruby/object:Gem::Version
|
134
|
+
version: '0'
|
135
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
136
|
+
requirements:
|
137
|
+
- - '>='
|
138
|
+
- !ruby/object:Gem::Version
|
139
|
+
version: '0'
|
143
140
|
requirements: []
|
144
|
-
|
145
141
|
rubyforge_project: gisty
|
146
|
-
rubygems_version:
|
142
|
+
rubygems_version: 2.0.14
|
147
143
|
signing_key:
|
148
|
-
specification_version:
|
144
|
+
specification_version: 4
|
149
145
|
summary: yet another command line client for gist.
|
150
|
-
test_files:
|
146
|
+
test_files:
|
151
147
|
- test/gisty_test.rb
|