hot_potato 0.12.2 → 0.12.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -12,10 +12,10 @@ module HotPotato
12
12
  copy_file "Rakefile"
13
13
  mkdir "app"
14
14
  mkdir "bin"
15
- copy_file "admin", 'bin'
16
- copy_file "app_task", 'bin'
17
- copy_file "generate", 'bin'
18
- copy_file "supervisor", 'bin'
15
+ copy_file "admin", 'bin', 0755
16
+ copy_file "app_task", 'bin', 0755
17
+ copy_file "generate", 'bin', 0755
18
+ copy_file "supervisor", 'bin', 0755
19
19
  mkdir "config"
20
20
  mkdir "config/environments"
21
21
  copy_file "development.rb", 'config/environments'
@@ -40,10 +40,11 @@ module HotPotato
40
40
  end
41
41
  end
42
42
 
43
- def copy_file(src, dest = "")
43
+ def copy_file(src, dest = "", perm = 0644)
44
44
  dest = "#{dest}/" unless dest == ""
45
45
  log " add #{@app_path}/#{dest}#{src}"
46
46
  FileUtils.cp "#{File.expand_path('..', __FILE__)}/templates/#{src}", "#{@app_path}/#{dest}#{src}"
47
+ File.chmod perm, "#{@app_path}/#{dest}#{src}"
47
48
  end
48
49
 
49
50
  def log(message)
@@ -1,3 +1,3 @@
1
1
  module HotPotato
2
- VERSION = "0.12.2"
2
+ VERSION = "0.12.3"
3
3
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: hot_potato
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.12.2
5
+ version: 0.12.3
6
6
  platform: ruby
7
7
  authors:
8
8
  - Darian Shimy