hubbard 0.0.7 → 0.0.8

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.
Files changed (3) hide show
  1. data/VERSION +1 -1
  2. data/bin/hubbard +15 -15
  3. metadata +3 -2
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.7
1
+ 0.0.8
data/bin/hubbard CHANGED
@@ -6,21 +6,6 @@ require 'yaml'
6
6
  $:.unshift(File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib')))
7
7
  require 'hubbard'
8
8
 
9
- defaults = { :format => :text }
10
- options = {}
11
- OptionParser.new do |opts|
12
- formats = [:text, :yaml]
13
- opts.on("--private", "Create project with visibility set to private") do |o|
14
- options[:private] = o
15
- end
16
- opts.on("-f", "--format [FORMAT]", formats,
17
- "Select format (#{formats.join(', ')})") do |o|
18
- options[:format] = o
19
- end
20
- end.parse!
21
- OPTIONS = defaults.merge(options)
22
- OPTIONS.freeze
23
-
24
9
  FileUtils.mkdir_p(File.join(Hubbard::HUB_DATA, "projects"))
25
10
  FileUtils.mkdir_p(File.join(Hubbard::HUB_DATA, "accounts"))
26
11
 
@@ -76,6 +61,21 @@ if ENV['SSH_ORIGINAL_COMMAND']
76
61
  end
77
62
  end
78
63
 
64
+ defaults = { :format => :text }
65
+ options = {}
66
+ OptionParser.new do |opts|
67
+ formats = [:text, :yaml]
68
+ opts.on("--private", "Create project with visibility set to private") do |o|
69
+ options[:private] = o
70
+ end
71
+ opts.on("-f", "--format [FORMAT]", formats,
72
+ "Select format (#{formats.join(', ')})") do |o|
73
+ options[:format] = o
74
+ end
75
+ end.parse!
76
+ OPTIONS = defaults.merge(options)
77
+ OPTIONS.freeze
78
+
79
79
  command = next_arg "Please specify a command to run"
80
80
 
81
81
  if command == "run-as"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hubbard
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthew Foemmel
@@ -26,6 +26,7 @@ description: Hubbard is a command line tool for managing git repositories.
26
26
  email: git@foemmel.com
27
27
  executables:
28
28
  - hubbard
29
+ - hubbard~
29
30
  - hubbard
30
31
  extensions: []
31
32
 
@@ -92,6 +93,6 @@ signing_key:
92
93
  specification_version: 3
93
94
  summary: Hubbard is a command line tool for managing git repositories.
94
95
  test_files:
95
- - spec/yaml_spec.rb
96
96
  - spec/hubbard_spec.rb
97
97
  - spec/spec_helper.rb
98
+ - spec/yaml_spec.rb