github-v3-api 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -11,8 +11,8 @@ group :development do
11
11
  gem "roodi", "~> 2.1.0"
12
12
  end
13
13
 
14
- # these are for the simple sinatra app that lets you get a GitHub access_token
15
- # in order to test this library from IRB.
14
+ # these are for the simple sinatra app that lets you get a GitHub access_token
15
+ # in order to test this library from IRB.
16
16
  group :sinatra do
17
17
  gem "sinatra"
18
18
  gem "omniauth"
data/README.rdoc CHANGED
@@ -9,18 +9,24 @@ credentials in the application itself.
9
9
 
10
10
  Because this library requires an OAuth2 access token from GitHub, you will need
11
11
  to obtain such a token in order to do command-line testing of the library via
12
- IRB. To that end, a template sinatra application is included in the source at
13
- <tt>get_access_token_sinatra_app.rb.template</tt>. You will need to copy that
14
- file to <tt>get_access_token_sinatra_app.rb</tt> (drop the .template) and
15
- replace YOUR_APP_ID and YOUR_APP_SECRET with the values for a GitHub application
16
- that you can create at https://github.com/account/applications/new (for the URL
17
- and Callback URL options, enter http://localhost:4567 and
18
- http://localhost:4567/auth/github/callback respectively.)
19
-
20
- Then just run <tt>ruby get_access_token_sinatra_app.rb</tt> and point your web
21
- browser at http://localhost:4567 whereupon you will be prompted to authorize
22
- your app at GitHub. If you allow it, you will be presented with an access token
23
- that you can then copy and paste in where needed.
12
+ IRB. The source for this gem includes a simple sinatra web application that can
13
+ get an access token for you. You will need to create a GitHub application first
14
+ by visiting https://github.com/account/applications/new. For the URL and
15
+ Callback URL options, enter http://localhost:4567 and
16
+ http://localhost:4567/auth/github/callback respectively (include "http://" in
17
+ front of both; RDoc formatting seems to strip that bit out of the rendered
18
+ documentation.) After creating the application, your client ID and client secret
19
+ will be displayed, and you will use those values to run the script.
20
+
21
+ Then just run:
22
+
23
+ OAUTH_GITHUB_CLIENT_ID={client_id} \
24
+ OAUTH_GITHUB_CLIENT_SECRET={client_secret} \
25
+ ./github-v3-api-get-token
26
+
27
+ and point your web browser at http://localhost:4567. You will be prompted to
28
+ authorize your app at GitHub. If you allow it, you will then be presented with
29
+ an access token that you can then copy and paste in where needed.
24
30
 
25
31
  == Contributing to github-v3-api
26
32
 
@@ -41,4 +47,3 @@ that you can then copy and paste in where needed.
41
47
 
42
48
  Copyright (c) 2011 John Wilger. See LICENSE.txt for
43
49
  further details.
44
-
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.4
1
+ 0.0.5
@@ -3,19 +3,10 @@
3
3
  puts <<EOF
4
4
  This script will start a sinatra web app on your machine that can log you in to
5
5
  GitHub and show you your access token. This access token can then be used with
6
- the GitHubV3API.
7
-
8
- Once the server has started, just browse to http://localhost:4567. You may be
9
- prompted to log in to GitHub and/or authorize the app. After that, your access
10
- token will be displayed to you.
11
-
12
- You will need to create a GitHub Application in order to use this. Just go to
13
- https://github.com/account/applications/new and fill out the form. Pick any name
14
- you want, and use http://localhost:4567 and
15
- http://localhost:4567/auth/github/callback for the Main and Callback URLs,
16
- respectively. After creating the application, use the generated client id and
17
- client secret by running this script with the OAUTH_GITHUB_CLIENT_ID and
18
- OATH_GITHUB_CLIENT_SECRET environment variables set.
6
+ the GitHubV3API. You will need to set the OAUTH_GITHUB_CLIENT_ID and
7
+ OAUTH_GITHUB_CLIENT_SECRET environment variables. See the README for more
8
+ information.
9
+
19
10
  EOF
20
11
 
21
12
  print "Ready to go? (y/N): "
@@ -5,15 +5,13 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{github-v3-api}
8
- s.version = "0.0.4"
8
+ s.version = "0.0.5"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["John Wilger"]
12
12
  s.date = %q{2011-07-03}
13
- s.default_executable = %q{github-v3-api-get-token}
14
13
  s.description = %q{Ponies}
15
14
  s.email = %q{johnwilger@gmail.com}
16
- s.executables = ["github-v3-api-get-token"]
17
15
  s.extra_rdoc_files = [
18
16
  "LICENSE.txt",
19
17
  "README.rdoc"
@@ -28,7 +26,7 @@ Gem::Specification.new do |s|
28
26
  "README.rdoc",
29
27
  "Rakefile",
30
28
  "VERSION",
31
- "bin/github-v3-api-get-token",
29
+ "github-v3-api-get-token",
32
30
  "github-v3-api.gemspec",
33
31
  "lib/github-v3-api.rb",
34
32
  "lib/github_v3_api.rb",
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: github-v3-api
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.4
5
+ version: 0.0.5
6
6
  platform: ruby
7
7
  authors:
8
8
  - John Wilger
@@ -11,7 +11,7 @@ bindir: bin
11
11
  cert_chain: []
12
12
 
13
13
  date: 2011-07-03 00:00:00 -07:00
14
- default_executable: github-v3-api-get-token
14
+ default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: rest-client
@@ -103,8 +103,8 @@ dependencies:
103
103
  version_requirements: *id008
104
104
  description: Ponies
105
105
  email: johnwilger@gmail.com
106
- executables:
107
- - github-v3-api-get-token
106
+ executables: []
107
+
108
108
  extensions: []
109
109
 
110
110
  extra_rdoc_files:
@@ -120,7 +120,7 @@ files:
120
120
  - README.rdoc
121
121
  - Rakefile
122
122
  - VERSION
123
- - bin/github-v3-api-get-token
123
+ - github-v3-api-get-token
124
124
  - github-v3-api.gemspec
125
125
  - lib/github-v3-api.rb
126
126
  - lib/github_v3_api.rb
@@ -149,7 +149,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
149
149
  requirements:
150
150
  - - ">="
151
151
  - !ruby/object:Gem::Version
152
- hash: 1496179745078912717
152
+ hash: -4451428935810272395
153
153
  segments:
154
154
  - 0
155
155
  version: "0"