github-backups 0.3.3 → 0.3.4

Sign up to get free protection for your applications and to get access to all the features.
data/README.mkd CHANGED
@@ -17,9 +17,9 @@ Usage: github-backup -u [username] -o [dir]
17
17
  e.g
18
18
  github-backup -u hbt -o /tmp
19
19
 
20
- -p, --password PASSWORD Optional: GitHub password. Required for private repos
21
20
  -u, --username USERNAME *Required: GitHub username
22
21
  -o, --output-dir DIR *Required: Backup directory
22
+ -p, --password PASSWORD Optional: GitHub password. Required for private repos
23
23
  -r, --repository-name NAME Optional: limit to this repository name
24
24
  -f, --forks Optional: fetch all forks
25
25
  -b, --init-branches Optional: init all branches
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.3
1
+ 0.3.4
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "github-backups"
8
- s.version = "0.3.3"
8
+ s.version = "0.3.4"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["hbt"]
data/lib/utils/options.rb CHANGED
@@ -13,9 +13,6 @@ module GitHubBackup
13
13
  e.g
14
14
  github-backup -u hbt -o /tmp \n\n"
15
15
 
16
- opts.on( '-p', '--password PASSWORD', 'Optional: GitHub password. Required for private repos') do |f|
17
- self.options[:passwd] = f
18
- end
19
16
 
20
17
  opts.on( '-u', '--username USERNAME', '*Required: GitHub username') do |f|
21
18
  self.options[:username] = f
@@ -25,6 +22,10 @@ github-backup -u hbt -o /tmp \n\n"
25
22
  self.options[:bakdir] = File.expand_path(f)
26
23
  end
27
24
 
25
+ opts.on( '-p', '--password PASSWORD', 'Optional: GitHub password. Required for private repos') do |f|
26
+ self.options[:passwd] = f
27
+ end
28
+
28
29
  opts.on( '-r', '--repository-name NAME', 'Optional: limit to this repository name' ) do |f|
29
30
  self.options[:reponame] = f
30
31
  end
@@ -78,4 +79,4 @@ github-backup -u hbt -o /tmp \n\n"
78
79
 
79
80
  end
80
81
  end
81
- end
82
+ end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: github-backups
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.3.3
5
+ version: 0.3.4
6
6
  platform: ruby
7
7
  authors:
8
8
  - hbt