Rakefile in atome-0.5.5.9.1 vs Rakefile in atome-0.5.6.0.2
- old
+ new
@@ -283,11 +283,11 @@
puts 'atome osx is running'
end
-task :build_gem do
+def gem_builder
# building the gem
`rake build` # run build_app thru ARGV in exe atome
# installing the gem
if RbConfig::CONFIG['host_os'] =~ /mswin|mingw|cygwin/
# code to exec for Windows
@@ -299,17 +299,24 @@
else
# code to exec for Unix/Linux
`cd pkg; gem install atome --local`
# open the app
end
+end
+task :build_gem do
+ gem_builder
+
puts 'atome gem built and installed'
end
task :push_gem do
- # pushing the gem
+ # building gem
+ gem_builder
+
+ # pushing the gem
dir_path = './pkg'
entries = Dir.entries(dir_path)
gem_files = entries.select { |file| file.end_with?('.gem') }