ulbrich-jruby-enginize 0.7.1 → 0.7.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.
@@ -30,8 +30,13 @@ end
30
30
  namespace :template do
31
31
  desc 'Load missing gems to local gem repository'
32
32
  task :gems do
33
+ if (appcfg = `which appcfg.rb`.chomp).empty?
34
+ $stderr.puts '!!Error: Could not find "appcfg.rb"'
35
+ exit
36
+ end
37
+
33
38
  puts 'Load missing gems to local gem repository'
34
- `(sudo appcfg.rb gem install appengine-apis extlib merb-core) 1>&2`
39
+ `(sudo #{appcfg} gem install appengine-apis extlib merb-core) 1>&2`
35
40
  end
36
41
  end
37
42
 
@@ -3,10 +3,20 @@
3
3
  namespace :template do
4
4
  desc 'Load missing gems to local gem repository'
5
5
  task :gems do
6
+ if (appcfg = `which appcfg.rb`.chomp).empty?
7
+ $stderr.puts '!!Error: Could not find "appcfg.rb"'
8
+ exit
9
+ end
10
+
11
+ if (patch = `which patch`.chomp).empty?
12
+ $stderr.puts '!!Error: Could not find "patch"'
13
+ exit
14
+ end
15
+
6
16
  puts 'Load missing gems to local gem repository'
7
- `(sudo appcfg.rb gem install appengine-apis haml sinatra) 1>&2`
17
+ `(sudo #{appcfg} gem install appengine-apis haml sinatra) 1>&2`
8
18
  puts 'Add patch for Haml 2.2.2 if needed'
9
- `(sudo patch --batch --silent .gems/gems/haml-2.2.2/lib/haml/util.rb < lib/tasks/haml-2_2_2-util.patch) 2> /dev/null 1>&2`
19
+ `(sudo #{patch} --batch --silent .gems/gems/haml-2.2.2/lib/haml/util.rb < lib/tasks/haml-2_2_2-util.patch) 2> /dev/null 1>&2`
10
20
  end
11
21
  end
12
22
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ulbrich-jruby-enginize
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.1
4
+ version: 0.7.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jan Ulbrich