sztupy-shaml 0.1.5 → 0.1.6

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/lib/shaml.rb +7 -4
  2. metadata +1 -1
data/lib/shaml.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  require 'rubygems'
2
2
  require 'zip/zip'
3
3
 
4
- SHAML_VERSION="0.1.5"
4
+ SHAML_VERSION="0.1.6"
5
5
 
6
6
  TEMPLATEDIR = File.join(File.dirname(__FILE__),"templates")
7
7
 
@@ -154,10 +154,13 @@ else
154
154
  puts 'S#aml ERROR: no name specified'
155
155
  end
156
156
  when "compile"
157
- puts "Compiling using gmcs"
158
157
  appname = getappname
159
- FileUtils.mkdir_p(File.join(appname,"bin"))
160
- FileUtils.mkdir_p(File.join(appname+".Tests","bin"))
158
+ puts "Copying libraries"
159
+ FileUtils.rm_r(File.join(appname,"bin"))
160
+ FileUtils.rm_r(File.join(appname+".Tests","bin"))
161
+ FileUtils.cp_r("libraries",File.join(appname,"bin"))
162
+ FileUtils.cp_r("libraries",File.join(appname+".Tests","bin"))
163
+ puts "Compiling using gmcs"
161
164
  system("gmcs -recurse:#{File.join(appname,"*.cs")} `ls libraries/*.dll | sed \"s/../-r:../\"` -r:System.Web.Routing -r:System.Web -t:library -out:#{File.join(appname,"bin",appname+".dll")}")
162
165
  system("gmcs -recurse:#{File.join(appname+".Tests","*.cs")} `ls libraries/*.dll | sed \"s/../-r:../\"` -r:System.Web.Routing -r:System.Web -t:library -out:#{File.join(appname+".Tests","bin",appname+".dll")}")
163
166
  when "server"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sztupy-shaml
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zsolt Sz. Sztupak