shaml 0.5.0.beta.1 → 0.5.0.beta.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/shaml/command.rb +19 -3
- data/lib/shaml/templates/shaml_base_template.dat +0 -0
- metadata +12 -29
data/lib/shaml/command.rb
CHANGED
@@ -23,8 +23,12 @@ class CommandLoader
|
|
23
23
|
Zip::ZipFile.open(file) { |zip_file|
|
24
24
|
zip_file.each { |f|
|
25
25
|
f_path=File.join(destination, f.name)
|
26
|
-
|
27
|
-
|
26
|
+
if f.directory? then
|
27
|
+
FileUtils.mkdir_p(f_path)
|
28
|
+
else
|
29
|
+
FileUtils.mkdir_p(File.dirname(f_path))
|
30
|
+
zip_file.extract(f, f_path) unless File.exist?(f_path)
|
31
|
+
end
|
28
32
|
}
|
29
33
|
}
|
30
34
|
end
|
@@ -152,7 +156,11 @@ class CommandLoader
|
|
152
156
|
Dir.glob(".shaml_extract_temp/**/*").each do |filename|
|
153
157
|
infname = filename
|
154
158
|
outfname = filename.gsub("WebBase",name).gsub(".shaml_extract_temp",name);
|
155
|
-
|
159
|
+
if File.directory?(infname) then
|
160
|
+
FileUtils.mkdir_p(outfname)
|
161
|
+
else
|
162
|
+
FileUtils.mkdir_p(File.dirname(outfname))
|
163
|
+
end
|
156
164
|
unless File.directory?(infname)
|
157
165
|
File.open(infname,"rb") do |infile|
|
158
166
|
File.open(outfname,"wb+") do |outfile|
|
@@ -167,6 +175,14 @@ class CommandLoader
|
|
167
175
|
end
|
168
176
|
end
|
169
177
|
FileUtils.rm_rf ".shaml_extract_temp"
|
178
|
+
puts
|
179
|
+
puts "Your S#aml-architecture web application is created"
|
180
|
+
puts "Before compilation you need to create a model or resource using"
|
181
|
+
puts " shaml generate resource ResourceName [resourcedescriptors]"
|
182
|
+
puts
|
183
|
+
puts "After generation fix it's tests and run \"shaml compile\","
|
184
|
+
puts "\"shaml runner Scripts/run_create_schema.cs\" and \"shaml server\""
|
185
|
+
puts
|
170
186
|
when "resource"
|
171
187
|
desc = ARGV.shift || nil
|
172
188
|
appname = getappname
|
Binary file
|
metadata
CHANGED
@@ -1,14 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: shaml
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
segments:
|
6
|
-
- 0
|
7
|
-
- 5
|
8
|
-
- 0
|
9
|
-
- beta
|
10
|
-
- 1
|
11
|
-
version: 0.5.0.beta.1
|
4
|
+
version: 0.5.0.beta.2
|
12
5
|
platform: ruby
|
13
6
|
authors:
|
14
7
|
- Zsolt Sz. Sztupak
|
@@ -21,32 +14,24 @@ default_executable: shaml
|
|
21
14
|
dependencies:
|
22
15
|
- !ruby/object:Gem::Dependency
|
23
16
|
name: rubyzip
|
24
|
-
|
25
|
-
|
17
|
+
type: :runtime
|
18
|
+
version_requirement:
|
19
|
+
version_requirements: !ruby/object:Gem::Requirement
|
26
20
|
requirements:
|
27
21
|
- - ">="
|
28
22
|
- !ruby/object:Gem::Version
|
29
|
-
segments:
|
30
|
-
- 0
|
31
|
-
- 9
|
32
|
-
- 1
|
33
23
|
version: 0.9.1
|
34
|
-
|
35
|
-
version_requirements: *id001
|
24
|
+
version:
|
36
25
|
- !ruby/object:Gem::Dependency
|
37
26
|
name: compass
|
38
|
-
|
39
|
-
|
27
|
+
type: :runtime
|
28
|
+
version_requirement:
|
29
|
+
version_requirements: !ruby/object:Gem::Requirement
|
40
30
|
requirements:
|
41
31
|
- - ">="
|
42
32
|
- !ruby/object:Gem::Version
|
43
|
-
segments:
|
44
|
-
- 0
|
45
|
-
- 6
|
46
|
-
- 15
|
47
33
|
version: 0.6.15
|
48
|
-
|
49
|
-
version_requirements: *id002
|
34
|
+
version:
|
50
35
|
description: Shaml is an ASP.NET MVC 2 framework with NHibernate 2.1 for mono 2.4.4+
|
51
36
|
email: mail@sztupy.hu
|
52
37
|
executables:
|
@@ -85,20 +70,18 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
85
70
|
requirements:
|
86
71
|
- - ">="
|
87
72
|
- !ruby/object:Gem::Version
|
88
|
-
segments:
|
89
|
-
- 0
|
90
73
|
version: "0"
|
74
|
+
version:
|
91
75
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
92
76
|
requirements:
|
93
77
|
- - ">="
|
94
78
|
- !ruby/object:Gem::Version
|
95
|
-
segments:
|
96
|
-
- 0
|
97
79
|
version: "0"
|
80
|
+
version:
|
98
81
|
requirements: []
|
99
82
|
|
100
83
|
rubyforge_project: shaml
|
101
|
-
rubygems_version: 1.3.
|
84
|
+
rubygems_version: 1.3.5
|
102
85
|
signing_key:
|
103
86
|
specification_version: 3
|
104
87
|
summary: ASP.NET MVC on mono
|