github-watched 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Gemfile +1 -1
- data/Rakefile +4 -0
- data/bin/github-watched +1 -1
- data/github-watched.gemspec +1 -1
- data/lib/github_watched.rb +6 -0
- data/lib/{github-watched → github_watched}/api.rb +1 -0
- data/lib/{github-watched → github_watched}/config.rb +7 -3
- data/lib/{github-watched → github_watched}/version.rb +1 -1
- metadata +26 -28
- data/lib/github-watched.rb +0 -6
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 3af5c45785906d526a8a1771bac0dd91a7fbe2dd
|
4
|
+
data.tar.gz: 422fed664f0bbb171c990992c6877bcae9a67774
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 8c94f590d417232004837ae39b85ecba44be3bec861edeaaced29ee5d7ab69507ad4fe4436e8aad0d6514160aeea69d1d03df4b11ed18707ba2b29b59fb85de4
|
7
|
+
data.tar.gz: fd03af76a8664f711a0ea018818f9e5fe8b1e1fa1ce306118e2cc30a0e1981252798540e13f67a050f861b26ba612a623f1783daa739768548c4de8f17fe1c49
|
data/Gemfile
CHANGED
data/Rakefile
CHANGED
data/bin/github-watched
CHANGED
data/github-watched.gemspec
CHANGED
@@ -3,6 +3,7 @@ require 'octocat_herder'
|
|
3
3
|
module GitHubWatched::API
|
4
4
|
class Base
|
5
5
|
def connection
|
6
|
+
OctocatHerder::Connection.headers['User-Agent'] = "github-watched/#{GitHubWatched::VERSION} (+https://github.com/jasoncodes/github-watched)"
|
6
7
|
@connection ||= OctocatHerder::Connection.new
|
7
8
|
end
|
8
9
|
|
@@ -1,10 +1,14 @@
|
|
1
|
+
require 'shellwords'
|
2
|
+
|
1
3
|
module GitHubWatched::Config
|
2
|
-
|
3
|
-
|
4
|
+
extend self
|
5
|
+
|
6
|
+
def git_config(name)
|
7
|
+
value = `git config --get #{Shellwords.escape name}`.chomp
|
4
8
|
value if $?.success?
|
5
9
|
end
|
6
10
|
|
7
|
-
def
|
11
|
+
def github_username
|
8
12
|
git_config('github.user') or raise 'GitHub username not set. Use `git config --global github.user username` to set.'
|
9
13
|
end
|
10
14
|
end
|
metadata
CHANGED
@@ -1,38 +1,43 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: github-watched
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
5
|
-
prerelease:
|
4
|
+
version: 0.0.2
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Jason Weathered
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2014-04-10 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: octocat_herder
|
16
|
-
requirement:
|
17
|
-
none: false
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
18
16
|
requirements:
|
19
|
-
- -
|
17
|
+
- - ">="
|
20
18
|
- !ruby/object:Gem::Version
|
21
19
|
version: 0.1.2
|
22
20
|
type: :runtime
|
23
21
|
prerelease: false
|
24
|
-
version_requirements:
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 0.1.2
|
25
27
|
- !ruby/object:Gem::Dependency
|
26
28
|
name: rake
|
27
|
-
requirement:
|
28
|
-
none: false
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
29
30
|
requirements:
|
30
|
-
- -
|
31
|
+
- - ">="
|
31
32
|
- !ruby/object:Gem::Version
|
32
33
|
version: '0'
|
33
34
|
type: :development
|
34
35
|
prerelease: false
|
35
|
-
version_requirements:
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
36
41
|
description:
|
37
42
|
email:
|
38
43
|
- jason@jasoncodes.com
|
@@ -41,43 +46,36 @@ executables:
|
|
41
46
|
extensions: []
|
42
47
|
extra_rdoc_files: []
|
43
48
|
files:
|
44
|
-
- .gitignore
|
49
|
+
- ".gitignore"
|
45
50
|
- Gemfile
|
46
51
|
- Rakefile
|
47
52
|
- bin/github-watched
|
48
53
|
- github-watched.gemspec
|
49
|
-
- lib/
|
50
|
-
- lib/
|
51
|
-
- lib/
|
52
|
-
- lib/
|
54
|
+
- lib/github_watched.rb
|
55
|
+
- lib/github_watched/api.rb
|
56
|
+
- lib/github_watched/config.rb
|
57
|
+
- lib/github_watched/version.rb
|
53
58
|
homepage: https://github.com/jasoncodes/github-watched
|
54
59
|
licenses: []
|
60
|
+
metadata: {}
|
55
61
|
post_install_message:
|
56
62
|
rdoc_options: []
|
57
63
|
require_paths:
|
58
64
|
- lib
|
59
65
|
required_ruby_version: !ruby/object:Gem::Requirement
|
60
|
-
none: false
|
61
66
|
requirements:
|
62
|
-
- -
|
67
|
+
- - ">="
|
63
68
|
- !ruby/object:Gem::Version
|
64
69
|
version: '0'
|
65
|
-
segments:
|
66
|
-
- 0
|
67
|
-
hash: -3746219070733408078
|
68
70
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
69
|
-
none: false
|
70
71
|
requirements:
|
71
|
-
- -
|
72
|
+
- - ">="
|
72
73
|
- !ruby/object:Gem::Version
|
73
74
|
version: '0'
|
74
|
-
segments:
|
75
|
-
- 0
|
76
|
-
hash: -3746219070733408078
|
77
75
|
requirements: []
|
78
76
|
rubyforge_project:
|
79
|
-
rubygems_version:
|
77
|
+
rubygems_version: 2.2.2
|
80
78
|
signing_key:
|
81
|
-
specification_version:
|
79
|
+
specification_version: 4
|
82
80
|
summary: List all watched GitHub repositories
|
83
81
|
test_files: []
|