github-downloads 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -12,7 +12,11 @@ It can also be used to create a new download:
12
12
 
13
13
  $ github-downloads create -u lukeredpath -r simpleconfig -f ~/myproject/somefile.zip -d "This is an important file"
14
14
 
15
- ### Github::Client, a generic Github API client
15
+ ## Authentication
16
+
17
+ The gem uses HTTP Basic authentication. You should not specify your password on the command line - the gem will prompt you to enter your password securely when needed. If you are using OSX, the password will be stored in - with your permission - in the OSX Keychain.
18
+
19
+ ## Github::Client, a generic Github API client
16
20
 
17
21
  The gem is built on top of [version 3 of the Github API](http://developer.github.com/v3/); included in the source is a class, Github::Client, a simple wrapper around the Github API that uses RestClient and simplifies communication with the Github API.
18
22
 
@@ -20,6 +24,6 @@ It provides a simple interface to the Github REST API. It handles errors appropr
20
24
 
21
25
  It doesn't aim to be a full-blown Github API library (completely with a local domain model) but a very thin utility ckass that can be used to write other simple scripts and gems, like this one. Feel free to use this in your own project if you are working with the Github API.
22
26
 
23
- ### License
27
+ ## License
24
28
 
25
29
  This code is provided under the terms of the MIT license.
data/Rakefile CHANGED
@@ -11,7 +11,7 @@ task :default => :specs
11
11
  require "rubygems"
12
12
  require "rubygems/package_task"
13
13
 
14
- GEM_VERSION = "0.1.0"
14
+ GEM_VERSION = "0.1.1"
15
15
 
16
16
  # This builds the actual gem. For details of what all these options
17
17
  # mean, and other ones you can add, check the documentation here:
@@ -30,7 +30,7 @@ module Github
30
30
  end
31
31
 
32
32
  def list
33
- if (downloads = github.list)
33
+ if (downloads = github(:authenticated).list)
34
34
  table downloads, {:fields => [:name, :description, :download_count]}
35
35
  else
36
36
  puts "Couldn't fetch downloads!"
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: github-downloads
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 25
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 0
10
- version: 0.1.0
9
+ - 1
10
+ version: 0.1.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Luke Redpath