l5m-tools 0.0.8 → 0.0.9

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.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.8
1
+ 0.0.9
data/l5m-tools.gemspec CHANGED
@@ -5,23 +5,23 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "l5m-tools"
8
- s.version = "0.0.8"
8
+ s.version = "0.0.9"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["RONGHAI"]
12
- s.date = "2013-02-27"
12
+ s.date = "2013-08-16"
13
13
  s.description = "A tool set for Lake5Media and QingheTech developer"
14
14
  s.email = "ronghai.wei@outlook.com"
15
15
  s.executables = ["duplicate-app", "l5m", "make-app", "set_env.sh", "svn.tool"]
16
16
  s.extra_rdoc_files = [
17
17
  "LICENSE.txt",
18
- "README"
18
+ "README.md"
19
19
  ]
20
20
  s.files = [
21
21
  ".document",
22
22
  "Gemfile",
23
23
  "LICENSE.txt",
24
- "README",
24
+ "README.md",
25
25
  "Rakefile",
26
26
  "VERSION",
27
27
  "bin/duplicate-app",
@@ -13,8 +13,9 @@ module L5MTools
13
13
  while (line = infile.gets)
14
14
  line = line.chomp.strip
15
15
  if line.length > 0 && line[0] != '#'
16
- duplicate_and_replace( line.chomp , replacements )
17
- FileUtils.rm(line, :force => true) if delete
16
+ #duplicate_and_replace( line.chomp , replacements )
17
+ #FileUtils.rm(line, :force => true) if delete
18
+ FileUtils.rm(line, :force => true) if duplicate_and_replace( line.chomp , replacements )[1] != line && delete
18
19
  end
19
20
  end
20
21
  end
@@ -134,7 +134,29 @@ if(AAUtils.isAjaxRequest(request)){
134
134
  incSingleSelected = "${paraBean.selectedSortBy}"
135
135
  />
136
136
  </aa:zone>
137
-
137
+ <script type="text/javascript">
138
+ <!--
139
+ function loadjscssfile(filename,filetype){
140
+
141
+ if (filetype=="js"){ //if filename is a external JavaScript file
142
+ if($$('script[src="'+filename+'"]').length >= 1) return;
143
+ var fileref=document.createElement('script')
144
+ fileref.setAttribute("type","text/javascript")
145
+ fileref.setAttribute("src", filename)
146
+ }
147
+ else if (filetype=="css"){ //if filename is an external CSS file
148
+ if($$('link[href="'+filename+'"]').length >= 1) return;
149
+ var fileref=document.createElement("link")
150
+ fileref.setAttribute("rel", "stylesheet")
151
+ fileref.setAttribute("type", "text/css")
152
+ fileref.setAttribute("href", filename)
153
+ }
154
+ if (typeof fileref!="undefined"){
155
+ document.getElementsByTagName("head")[0].appendChild(fileref)
156
+ }
157
+ }
158
+ //-->
159
+ </script>
138
160
  <div id="topPanel" style="display:${paraBean.selectionPanelStatusOpen?'inline':'none'}" >
139
161
  <!--source panel begin-->
140
162
  <div id="accordionNavigationTab">
@@ -13,16 +13,16 @@ import com.l5m.!REPLACE_STYLE!.engine.servicer.!REPLACE_ME_FILE!ServicerImpl.PAN
13
13
 
14
14
  public class !REPLACE_ME_FILE!Worker extends AbstractBaseWorker {
15
15
  private static final long serialVersionUID = 1L;
16
- public static final String JSP_TOGO_PERIX; /*
16
+ public static final String JSP_TOGO_PERIX = "!REPLACE_ME_FILE!"; /*
17
17
  * worker name w/o
18
18
  * "Worker"
19
19
  */
20
- public static final String packageLowerCase;
21
- static{
20
+ public static final String packageLowerCase = "!REPLACE_STYLE!";
21
+ /*static{
22
22
  String clazzNames[] = Thread.currentThread().getStackTrace()[2].getClassName().split("\\.");
23
23
  JSP_TOGO_PERIX = clazzNames[5].substring(0, clazzNames[5].length() - "Worker".length());
24
24
  packageLowerCase = clazzNames[2];
25
- }
25
+ }*/
26
26
  public static final String JSP_TOGO = JSP_TOGO_PERIX + ".jsp";
27
27
  public static final String WORKER_NAME = JSP_TOGO_PERIX + "Worker";
28
28
 
@@ -65,14 +65,14 @@ public class !REPLACE_ME_FILE!Worker extends AbstractWorker{
65
65
  return label;
66
66
  }
67
67
  }
68
- public static final String JSP_TOGO_PERIX ; /*worker name w/o "Worker"*/
69
- public static final String packageLowerCase;
70
-
68
+ public static final String JSP_TOGO_PERIX = "!REPLACE_ME_FILE!"; /*worker name w/o "Worker"*/
69
+ public static final String packageLowerCase = "!REPLACE_STYLE!";
70
+ /*
71
71
  static{
72
72
  String clazzNames[] = Thread.currentThread().getStackTrace()[2].getClassName().split("\\.");
73
73
  JSP_TOGO_PERIX = clazzNames[5].substring(0, clazzNames[5].length - "Worker".length);
74
74
  packageLowerCase = clazzNames[2];
75
- }
75
+ }*/
76
76
  public static final String JSP_TOGO = JSP_TOGO_PERIX+".jsp";
77
77
  public static final String WORKER_NAME = JSP_TOGO_PERIX+"Worker";
78
78
 
@@ -136,7 +136,29 @@ if(AAUtils.isAjaxRequest(request)){
136
136
  incSingleSelected = "${paraBean.selectedSortBy}"
137
137
  />
138
138
  </aa:zone>
139
-
139
+ <script type="text/javascript">
140
+ <!--
141
+ function loadjscssfile(filename,filetype){
142
+
143
+ if (filetype=="js"){ //if filename is a external JavaScript file
144
+ if($$('script[src="'+filename+'"]').length >= 1) return;
145
+ var fileref=document.createElement('script')
146
+ fileref.setAttribute("type","text/javascript")
147
+ fileref.setAttribute("src", filename)
148
+ }
149
+ else if (filetype=="css"){ //if filename is an external CSS file
150
+ if($$('link[href="'+filename+'"]').length >= 1) return;
151
+ var fileref=document.createElement("link")
152
+ fileref.setAttribute("rel", "stylesheet")
153
+ fileref.setAttribute("type", "text/css")
154
+ fileref.setAttribute("href", filename)
155
+ }
156
+ if (typeof fileref!="undefined"){
157
+ document.getElementsByTagName("head")[0].appendChild(fileref)
158
+ }
159
+ }
160
+ //-->
161
+ </script>
140
162
  <div id="topPanel" style="display:${paraBean.selectionPanelStatusOpen?'inline':'none'}" >
141
163
  <!--source panel begin-->
142
164
  <div id="accordionNavigationTab">
@@ -134,7 +134,29 @@ if(AAUtils.isAjaxRequest(request)){
134
134
  incSingleSelected = "${paraBean.selectedSortBy}"
135
135
  />
136
136
  </aa:zone>
137
-
137
+ <script type="text/javascript">
138
+ <!--
139
+ function loadjscssfile(filename,filetype){
140
+
141
+ if (filetype=="js"){ //if filename is a external JavaScript file
142
+ if($$('script[src="'+filename+'"]').length >= 1) return;
143
+ var fileref=document.createElement('script')
144
+ fileref.setAttribute("type","text/javascript")
145
+ fileref.setAttribute("src", filename)
146
+ }
147
+ else if (filetype=="css"){ //if filename is an external CSS file
148
+ if($$('link[href="'+filename+'"]').length >= 1) return;
149
+ var fileref=document.createElement("link")
150
+ fileref.setAttribute("rel", "stylesheet")
151
+ fileref.setAttribute("type", "text/css")
152
+ fileref.setAttribute("href", filename)
153
+ }
154
+ if (typeof fileref!="undefined"){
155
+ document.getElementsByTagName("head")[0].appendChild(fileref)
156
+ }
157
+ }
158
+ //-->
159
+ </script>
138
160
  <div id="topPanel" style="display:${paraBean.selectionPanelStatusOpen?'inline':'none'}" >
139
161
  <!--source panel begin-->
140
162
  <div id="accordionNavigationTab">
@@ -134,7 +134,29 @@ if(AAUtils.isAjaxRequest(request)){
134
134
  incSingleSelected = "${paraBean.selectedSortBy}"
135
135
  />
136
136
  </aa:zone>
137
-
137
+ <script type="text/javascript">
138
+ <!--
139
+ function loadjscssfile(filename,filetype){
140
+
141
+ if (filetype=="js"){ //if filename is a external JavaScript file
142
+ if($$('script[src="'+filename+'"]').length >= 1) return;
143
+ var fileref=document.createElement('script')
144
+ fileref.setAttribute("type","text/javascript")
145
+ fileref.setAttribute("src", filename)
146
+ }
147
+ else if (filetype=="css"){ //if filename is an external CSS file
148
+ if($$('link[href="'+filename+'"]').length >= 1) return;
149
+ var fileref=document.createElement("link")
150
+ fileref.setAttribute("rel", "stylesheet")
151
+ fileref.setAttribute("type", "text/css")
152
+ fileref.setAttribute("href", filename)
153
+ }
154
+ if (typeof fileref!="undefined"){
155
+ document.getElementsByTagName("head")[0].appendChild(fileref)
156
+ }
157
+ }
158
+ //-->
159
+ </script>
138
160
  <div id="topPanel" style="display:${paraBean.selectionPanelStatusOpen?'inline':'none'}" >
139
161
  <!--source panel begin-->
140
162
  <div id="accordionNavigationTab">
@@ -360,6 +360,30 @@ if(AAUtils.isAjaxRequest(request)){
360
360
  />
361
361
  </aa:zone>
362
362
 
363
+ <script type="text/javascript">
364
+ <!--
365
+ function loadjscssfile(filename,filetype){
366
+
367
+ if (filetype=="js"){ //if filename is a external JavaScript file
368
+ if($$('script[src="'+filename+'"]').length >= 1) return;
369
+ var fileref=document.createElement('script')
370
+ fileref.setAttribute("type","text/javascript")
371
+ fileref.setAttribute("src", filename)
372
+ }
373
+ else if (filetype=="css"){ //if filename is an external CSS file
374
+ if($$('link[href="'+filename+'"]').length >= 1) return;
375
+ var fileref=document.createElement("link")
376
+ fileref.setAttribute("rel", "stylesheet")
377
+ fileref.setAttribute("type", "text/css")
378
+ fileref.setAttribute("href", filename)
379
+ }
380
+ if (typeof fileref!="undefined"){
381
+ document.getElementsByTagName("head")[0].appendChild(fileref)
382
+ }
383
+ }
384
+ //-->
385
+ </script>
386
+
363
387
  <div id="topPanel" style="display:${paraBean.selectionPanelStatusOpen?'inline':'none'}" >
364
388
  <!--source panel begin-->
365
389
  <div id="accordionNavigationTab">
@@ -30,7 +30,7 @@ module L5MTools
30
30
  end
31
31
  def copy_with_replace(from, to, replacements)
32
32
  FileUtils.mkdir_p File.dirname(to)
33
- copy(from, to)
33
+ copy(from, to) unless from == to
34
34
  replace(to, replacements)
35
35
  end
36
36
  def change_directory(dir, &operation)
@@ -56,7 +56,7 @@ module L5MTools
56
56
  def duplicate_and_replace(file, replacements = {})
57
57
  to = to_file(file, replacements)
58
58
  yield to if block_given?
59
- copy_with_replace(file, to, replacements)
59
+ [copy_with_replace(file, to, replacements), to]
60
60
  end
61
61
 
62
62
  alias :copy_silently :copy_with_replace
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: l5m-tools
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-02-27 00:00:00.000000000 Z
12
+ date: 2013-08-16 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: shoulda
16
- requirement: &70209311428740 !ruby/object:Gem::Requirement
16
+ requirement: &70345617539980 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :development
23
23
  prerelease: false
24
- version_requirements: *70209311428740
24
+ version_requirements: *70345617539980
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: rdoc
27
- requirement: &70209311428260 !ruby/object:Gem::Requirement
27
+ requirement: &70345617538920 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '3.12'
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *70209311428260
35
+ version_requirements: *70345617538920
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: bundler
38
- requirement: &70209310978300 !ruby/object:Gem::Requirement
38
+ requirement: &70345617537840 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ~>
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: 1.2.0
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *70209310978300
46
+ version_requirements: *70345617537840
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: jeweler
49
- requirement: &70209310975800 !ruby/object:Gem::Requirement
49
+ requirement: &70345617535940 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ~>
@@ -54,7 +54,7 @@ dependencies:
54
54
  version: 1.8.4
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *70209310975800
57
+ version_requirements: *70345617535940
58
58
  description: A tool set for Lake5Media and QingheTech developer
59
59
  email: ronghai.wei@outlook.com
60
60
  executables:
@@ -66,12 +66,12 @@ executables:
66
66
  extensions: []
67
67
  extra_rdoc_files:
68
68
  - LICENSE.txt
69
- - README
69
+ - README.md
70
70
  files:
71
71
  - .document
72
72
  - Gemfile
73
73
  - LICENSE.txt
74
- - README
74
+ - README.md
75
75
  - Rakefile
76
76
  - VERSION
77
77
  - bin/duplicate-app
@@ -115,7 +115,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
115
115
  version: '0'
116
116
  segments:
117
117
  - 0
118
- hash: 3841379945100625334
118
+ hash: -83511010056531916
119
119
  required_rubygems_version: !ruby/object:Gem::Requirement
120
120
  none: false
121
121
  requirements:
File without changes