github-watched 0.0.1 → 0.0.2

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 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
@@ -1,3 +1,3 @@
1
- source 'http://rubygems.org'
1
+ source 'https://rubygems.org'
2
2
 
3
3
  gemspec
data/Rakefile CHANGED
@@ -1,2 +1,6 @@
1
1
  #!/usr/bin/env rake
2
2
  require "bundler/gem_tasks"
3
+
4
+ task :default do
5
+ load 'bin/github-watched'
6
+ end
data/bin/github-watched CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
3
  $:.unshift(File.join(File.dirname(__FILE__), "/../lib"))
4
- require 'github-watched'
4
+ require 'github_watched'
5
5
 
6
6
  user = GitHubWatched::API::User.new(GitHubWatched::Config.github_username)
7
7
  user.watched.each do |repo|
@@ -1,5 +1,5 @@
1
1
  # -*- encoding: utf-8 -*-
2
- require File.expand_path('../lib/github-watched/version', __FILE__)
2
+ require File.expand_path('../lib/github_watched/version', __FILE__)
3
3
 
4
4
  Gem::Specification.new do |gem|
5
5
  gem.authors = ["Jason Weathered"]
@@ -0,0 +1,6 @@
1
+ require 'github_watched/version'
2
+ require 'github_watched/config'
3
+ require 'github_watched/api'
4
+
5
+ module GitHubWatched
6
+ end
@@ -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
- def self.git_config(name)
3
- value = `git config --get #{name}`.chomp
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 self.github_username
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
@@ -1,3 +1,3 @@
1
1
  module GitHubWatched
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  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.1
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: 2011-10-23 00:00:00.000000000Z
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: &70104811996880 !ruby/object:Gem::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: *70104811996880
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: &70104811995160 !ruby/object:Gem::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: *70104811995160
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/github-watched.rb
50
- - lib/github-watched/api.rb
51
- - lib/github-watched/config.rb
52
- - lib/github-watched/version.rb
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: 1.8.11
77
+ rubygems_version: 2.2.2
80
78
  signing_key:
81
- specification_version: 3
79
+ specification_version: 4
82
80
  summary: List all watched GitHub repositories
83
81
  test_files: []
@@ -1,6 +0,0 @@
1
- require 'github-watched/version'
2
- require 'github-watched/config'
3
- require 'github-watched/api'
4
-
5
- module GitHubWatched
6
- end