sinatra-packrat 0.2.1 → 0.2.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.
Files changed (2) hide show
  1. data/bin/packrat +7 -5
  2. metadata +7 -5
data/bin/packrat CHANGED
@@ -3,6 +3,7 @@
3
3
  require "yaml"
4
4
 
5
5
  config_path = ARGV[0]
6
+ name = ARGV[1]
6
7
 
7
8
  unless File.exists? config_path
8
9
  print "#{config_path} does not exist!"
@@ -16,11 +17,12 @@ unless config["modules"] and config["modules"].respond_to? :each
16
17
  exit
17
18
  end
18
19
 
19
- current_user = `whoami`.strip
20
- print "Please provide a username [#{current_user}]: \n"
21
- name = $stdin.gets.strip
22
- name = current_user if name.empty?
23
-
20
+ if name.nil?
21
+ current_user = `whoami`.strip
22
+ print "Please provide a username [#{current_user}]: \n"
23
+ name = $stdin.gets.strip
24
+ name = current_user if name.empty?
25
+ end
24
26
 
25
27
  config["modules"].each do |mod|
26
28
  next unless mod["git"]
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sinatra-packrat
3
3
  version: !ruby/object:Gem::Version
4
- hash: 21
4
+ hash: 19
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 1
10
- version: 0.2.1
9
+ - 2
10
+ version: 0.2.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Brennan Roberts
@@ -16,7 +16,8 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2011-09-21 00:00:00 Z
19
+ date: 2011-09-21 00:00:00 -07:00
20
+ default_executable:
20
21
  dependencies:
21
22
  - !ruby/object:Gem::Dependency
22
23
  name: sinatra
@@ -45,6 +46,7 @@ extra_rdoc_files: []
45
46
  files:
46
47
  - lib/sinatra/packrat.rb
47
48
  - bin/packrat
49
+ has_rdoc: true
48
50
  homepage: http://rubygems.org/gems/sinatra-packrat
49
51
  licenses: []
50
52
 
@@ -74,7 +76,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
74
76
  requirements: []
75
77
 
76
78
  rubyforge_project:
77
- rubygems_version: 1.8.11
79
+ rubygems_version: 1.6.2
78
80
  signing_key:
79
81
  specification_version: 3
80
82
  summary: Sinatra extension to enable modular application design