noe 1.5.0 → 1.5.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (60) hide show
  1. data/CHANGELOG.md +6 -0
  2. data/Gemfile +1 -2
  3. data/Gemfile.lock +3 -2
  4. data/lib/noe.rbc +393 -0
  5. data/lib/noe/commons.rbc +1012 -0
  6. data/lib/noe/config.rbc +1534 -0
  7. data/lib/noe/ext/array.rbc +330 -0
  8. data/lib/noe/ext/hash.rbc +1193 -0
  9. data/lib/noe/go.rbc +5618 -0
  10. data/lib/noe/help.rbc +473 -0
  11. data/lib/noe/install.rbc +1521 -0
  12. data/lib/noe/list.rbc +1692 -0
  13. data/lib/noe/loader.rb +1 -1
  14. data/lib/noe/loader.rbc +85 -0
  15. data/lib/noe/main.rbc +1323 -0
  16. data/lib/noe/prepare.rb +14 -7
  17. data/lib/noe/prepare.rbc +1622 -0
  18. data/lib/noe/show_spec.rbc +627 -0
  19. data/lib/noe/template.rbc +4256 -0
  20. data/lib/noe/version.rb +5 -5
  21. data/lib/noe/version.rbc +350 -0
  22. data/noe.gemspec +25 -25
  23. data/noe.noespec +3 -3
  24. data/spec/fixtures/test.noespec +19 -0
  25. data/spec/integration/go/go_spec.rbc +236 -0
  26. data/spec/integration/spaces_spec.rb +30 -0
  27. data/spec/integration/spaces_spec.rbc +996 -0
  28. data/spec/integration/spec_helper.rbc +143 -0
  29. data/spec/unit/config/new_spec.rbc +1590 -0
  30. data/spec/unit/config/templates_dir_spec.rbc +1398 -0
  31. data/spec/unit/ext/hash/methodize_spec.rbc +851 -0
  32. data/spec/unit/ext/hash/noe_merge_spec.rbc +1544 -0
  33. data/spec/unit/noe_spec.rbc +309 -0
  34. data/spec/unit/spec_helper.rbc +143 -0
  35. data/spec/unit/template/entry/infer_wlang_dialect_spec.rbc +1236 -0
  36. data/spec/unit/template/entry/relocate_spec.rbc +1584 -0
  37. data/spec/unit/template/entry/rename_one_spec.rbc +1114 -0
  38. data/tasks/debug_mail.rake +13 -13
  39. data/tasks/gem.rake +13 -13
  40. data/tasks/spec_test.rake +10 -10
  41. data/tasks/unit_test.rake +9 -10
  42. data/tasks/yard.rake +13 -13
  43. data/templates/ruby/CHANGELOG.md +5 -0
  44. data/templates/ruby/README.md +13 -13
  45. data/templates/ruby/noespec.yaml +48 -48
  46. data/templates/ruby/short.yaml +10 -10
  47. data/templates/ruby/src/Gemfile +1 -2
  48. data/templates/ruby/src/Manifest.txt +1 -1
  49. data/templates/ruby/src/README.md +0 -1
  50. data/templates/ruby/src/__lower__.gemspec +24 -24
  51. data/templates/ruby/src/lib/__lower__.rb +1 -1
  52. data/templates/ruby/src/lib/__lower__/loader.rb +1 -1
  53. data/templates/ruby/src/lib/__lower__/version.rb +4 -4
  54. data/templates/ruby/src/spec/test___lower__.rb +2 -2
  55. data/templates/ruby/src/tasks/debug_mail.rake +13 -13
  56. data/templates/ruby/src/tasks/gem.rake +13 -13
  57. data/templates/ruby/src/tasks/spec_test.rake +9 -9
  58. data/templates/ruby/src/tasks/unit_test.rake +9 -10
  59. data/templates/ruby/src/tasks/yard.rake +13 -13
  60. metadata +125 -75
@@ -1,14 +1,14 @@
1
1
  module Noe
2
2
  module Version
3
-
3
+
4
4
  MAJOR = 1
5
5
  MINOR = 5
6
- TINY = 0
7
-
6
+ TINY = 1
7
+
8
8
  def self.to_s
9
9
  [ MAJOR, MINOR, TINY ].join('.')
10
10
  end
11
-
12
- end
11
+
12
+ end
13
13
  VERSION = Version.to_s
14
14
  end
@@ -0,0 +1,350 @@
1
+ !RBIX
2
+ 11817445442317083511
3
+ x
4
+ M
5
+ 1
6
+ n
7
+ n
8
+ x
9
+ 10
10
+ __script__
11
+ i
12
+ 28
13
+ 99
14
+ 7
15
+ 0
16
+ 65
17
+ 49
18
+ 1
19
+ 2
20
+ 13
21
+ 99
22
+ 12
23
+ 7
24
+ 2
25
+ 12
26
+ 7
27
+ 3
28
+ 12
29
+ 65
30
+ 12
31
+ 49
32
+ 4
33
+ 4
34
+ 15
35
+ 49
36
+ 2
37
+ 0
38
+ 15
39
+ 2
40
+ 11
41
+ I
42
+ 6
43
+ I
44
+ 0
45
+ I
46
+ 0
47
+ I
48
+ 0
49
+ n
50
+ p
51
+ 5
52
+ x
53
+ 3
54
+ Noe
55
+ x
56
+ 11
57
+ open_module
58
+ x
59
+ 15
60
+ __module_init__
61
+ M
62
+ 1
63
+ n
64
+ n
65
+ x
66
+ 3
67
+ Noe
68
+ i
69
+ 41
70
+ 5
71
+ 66
72
+ 99
73
+ 7
74
+ 0
75
+ 65
76
+ 49
77
+ 1
78
+ 2
79
+ 13
80
+ 99
81
+ 12
82
+ 7
83
+ 2
84
+ 12
85
+ 7
86
+ 3
87
+ 12
88
+ 65
89
+ 12
90
+ 49
91
+ 4
92
+ 4
93
+ 15
94
+ 49
95
+ 2
96
+ 0
97
+ 15
98
+ 65
99
+ 7
100
+ 5
101
+ 45
102
+ 0
103
+ 6
104
+ 49
105
+ 7
106
+ 0
107
+ 49
108
+ 8
109
+ 2
110
+ 11
111
+ I
112
+ 6
113
+ I
114
+ 0
115
+ I
116
+ 0
117
+ I
118
+ 0
119
+ n
120
+ p
121
+ 9
122
+ x
123
+ 7
124
+ Version
125
+ x
126
+ 11
127
+ open_module
128
+ x
129
+ 15
130
+ __module_init__
131
+ M
132
+ 1
133
+ n
134
+ n
135
+ x
136
+ 7
137
+ Version
138
+ i
139
+ 38
140
+ 5
141
+ 66
142
+ 65
143
+ 7
144
+ 0
145
+ 79
146
+ 49
147
+ 1
148
+ 2
149
+ 15
150
+ 65
151
+ 7
152
+ 2
153
+ 4
154
+ 5
155
+ 49
156
+ 1
157
+ 2
158
+ 15
159
+ 65
160
+ 7
161
+ 3
162
+ 79
163
+ 49
164
+ 1
165
+ 2
166
+ 15
167
+ 99
168
+ 7
169
+ 4
170
+ 7
171
+ 5
172
+ 65
173
+ 5
174
+ 49
175
+ 6
176
+ 4
177
+ 11
178
+ I
179
+ 5
180
+ I
181
+ 0
182
+ I
183
+ 0
184
+ I
185
+ 0
186
+ n
187
+ p
188
+ 7
189
+ x
190
+ 5
191
+ MAJOR
192
+ x
193
+ 9
194
+ const_set
195
+ x
196
+ 5
197
+ MINOR
198
+ x
199
+ 4
200
+ TINY
201
+ x
202
+ 4
203
+ to_s
204
+ M
205
+ 1
206
+ n
207
+ n
208
+ x
209
+ 4
210
+ to_s
211
+ i
212
+ 18
213
+ 45
214
+ 0
215
+ 1
216
+ 45
217
+ 2
218
+ 3
219
+ 45
220
+ 4
221
+ 5
222
+ 35
223
+ 3
224
+ 7
225
+ 6
226
+ 64
227
+ 49
228
+ 7
229
+ 1
230
+ 11
231
+ I
232
+ 3
233
+ I
234
+ 0
235
+ I
236
+ 0
237
+ I
238
+ 0
239
+ n
240
+ p
241
+ 8
242
+ x
243
+ 5
244
+ MAJOR
245
+ n
246
+ x
247
+ 5
248
+ MINOR
249
+ n
250
+ x
251
+ 4
252
+ TINY
253
+ n
254
+ s
255
+ 1
256
+ .
257
+ x
258
+ 4
259
+ join
260
+ p
261
+ 5
262
+ I
263
+ -1
264
+ I
265
+ 8
266
+ I
267
+ 0
268
+ I
269
+ 9
270
+ I
271
+ 12
272
+ x
273
+ 48
274
+ /home/blambeau/work/devel/noe/lib/noe/version.rb
275
+ p
276
+ 0
277
+ x
278
+ 13
279
+ attach_method
280
+ p
281
+ 9
282
+ I
283
+ 2
284
+ I
285
+ 4
286
+ I
287
+ a
288
+ I
289
+ 5
290
+ I
291
+ 13
292
+ I
293
+ 6
294
+ I
295
+ 1b
296
+ I
297
+ 8
298
+ I
299
+ 26
300
+ x
301
+ 48
302
+ /home/blambeau/work/devel/noe/lib/noe/version.rb
303
+ p
304
+ 0
305
+ x
306
+ 13
307
+ attach_method
308
+ x
309
+ 7
310
+ VERSION
311
+ n
312
+ x
313
+ 4
314
+ to_s
315
+ x
316
+ 9
317
+ const_set
318
+ p
319
+ 5
320
+ I
321
+ 2
322
+ I
323
+ 2
324
+ I
325
+ 1c
326
+ I
327
+ d
328
+ I
329
+ 29
330
+ x
331
+ 48
332
+ /home/blambeau/work/devel/noe/lib/noe/version.rb
333
+ p
334
+ 0
335
+ x
336
+ 13
337
+ attach_method
338
+ p
339
+ 3
340
+ I
341
+ 0
342
+ I
343
+ 1
344
+ I
345
+ 1c
346
+ x
347
+ 48
348
+ /home/blambeau/work/devel/noe/lib/noe/version.rb
349
+ p
350
+ 0
@@ -1,4 +1,4 @@
1
- # We require your library, mainly to have access to the VERSION number.
1
+ # We require your library, mainly to have access to the VERSION number.
2
2
  # Feel free to set $version manually.
3
3
  $LOAD_PATH.unshift File.expand_path('../lib', __FILE__)
4
4
  require "noe/version"
@@ -9,15 +9,15 @@ $version = Noe::Version.to_s
9
9
  # should be correctly packaged given what you have described in the .noespec file.
10
10
  #
11
11
  Gem::Specification.new do |s|
12
-
12
+
13
13
  ################################################################### ABOUT YOUR GEM
14
-
15
- # Gem name (required)
14
+
15
+ # Gem name (required)
16
16
  s.name = "noe"
17
-
17
+
18
18
  # Gem version (required)
19
19
  s.version = $version
20
-
20
+
21
21
  # A short summary of this gem
22
22
  #
23
23
  # This is displayed in `gem list -d`.
@@ -28,7 +28,7 @@ Gem::Specification.new do |s|
28
28
  # The description should be more detailed than the summary. For example,
29
29
  # you might wish to copy the entire README into the description.
30
30
  s.description = "Noe is a tool that generates project skeletons from predefined templates. A template is designed for a specific product (a ruby library, a static or dynamic web site, ...). Noe instantiates templates and helps you maintaining your product via meta-information provided by a .noespec yaml file. In contrast to other tools, Noe is not specific to certain kinds of products. Even if Noe comes bundled with a default template to develop gem libraries, writing your own template is possible and even simple!"
31
-
31
+
32
32
  # The URL of this gem home page (optional)
33
33
  s.homepage = "http://github.com/blambeau/noe"
34
34
 
@@ -38,7 +38,7 @@ Gem::Specification.new do |s|
38
38
  # you know what you do!
39
39
  #
40
40
  # s.date = Time.now.strftime('%Y-%m-%d')
41
-
41
+
42
42
  # The license(s) for the library. Each license must be a short name, no
43
43
  # more than 64 characters.
44
44
  #
@@ -49,35 +49,35 @@ Gem::Specification.new do |s|
49
49
  # s.rubyforge_project = nil
50
50
 
51
51
  ################################################################### ABOUT THE AUTHORS
52
-
52
+
53
53
  # The list of author names who wrote this gem.
54
54
  #
55
55
  # If you are providing multiple authors and multiple emails they should be
56
56
  # in the same order.
57
- #
57
+ #
58
58
  s.authors = ["Bernard Lambeau"]
59
-
59
+
60
60
  # Contact emails for this gem
61
61
  #
62
62
  # If you are providing multiple authors and multiple emails they should be
63
63
  # in the same order.
64
64
  #
65
- # NOTE: Somewhat strangly this attribute is always singular!
65
+ # NOTE: Somewhat strangly this attribute is always singular!
66
66
  # Don't replace by s.emails = ...
67
67
  s.email = ["blambeau@gmail.com"]
68
68
 
69
69
  ################################################################### PATHS, FILES, BINARIES
70
-
71
- # Paths in the gem to add to $LOAD_PATH when this gem is
70
+
71
+ # Paths in the gem to add to $LOAD_PATH when this gem is
72
72
  # activated (required).
73
73
  #
74
74
  # The default 'lib' is typically sufficient.
75
75
  s.require_paths = ["lib"]
76
-
76
+
77
77
  # Files included in this gem.
78
78
  #
79
79
  # By default, we take all files included in the Manifest.txt file on root
80
- # of the project. Entries of the manifest are interpreted as Dir[...]
80
+ # of the project. Entries of the manifest are interpreted as Dir[...]
81
81
  # patterns so that lazy people may use wilcards like lib/**/*
82
82
  #
83
83
  here = File.expand_path(File.dirname(__FILE__))
@@ -107,7 +107,7 @@ Gem::Specification.new do |s|
107
107
  # <= Less than or equal to
108
108
  # ~> Approximately greater than
109
109
  #
110
- # Don't forget to have a look at http://lmgtfy.com/?q=Ruby+Versioning+Policies
110
+ # Don't forget to have a look at http://lmgtfy.com/?q=Ruby+Versioning+Policies
111
111
  # for setting your gem version.
112
112
  #
113
113
  # For your requirements to other gems, remember that
@@ -119,7 +119,7 @@ Gem::Specification.new do |s|
119
119
 
120
120
  #
121
121
  # One call to add_dependency('gem_name', 'gem version requirement') for each
122
- # runtime dependency. These gems will be installed with your gem.
122
+ # runtime dependency. These gems will be installed with your gem.
123
123
  # One call to add_development_dependency('gem_name', 'gem version requirement')
124
124
  # for each development dependency. These gems are required for developers
125
125
  #
@@ -128,7 +128,7 @@ Gem::Specification.new do |s|
128
128
  s.add_development_dependency("yard", "~> 0.7.2")
129
129
  s.add_development_dependency("bluecloth", "~> 2.1.0")
130
130
  s.add_dependency("wlang", "~> 0.10.2")
131
- s.add_dependency("quickl", "~> 0.3.0")
131
+ s.add_dependency("quickl", "~> 0.4.1")
132
132
  s.add_dependency("highline", "~> 1.6.0")
133
133
 
134
134
  # The version of ruby required by this gem
@@ -145,18 +145,18 @@ Gem::Specification.new do |s|
145
145
  #
146
146
  # s.platform = nil
147
147
 
148
- # Extensions to build when installing the gem.
148
+ # Extensions to build when installing the gem.
149
149
  #
150
- # Valid types of extensions are extconf.rb files, configure scripts
150
+ # Valid types of extensions are extconf.rb files, configure scripts
151
151
  # and rakefiles or mkrf_conf files.
152
152
  #
153
153
  s.extensions = []
154
-
155
- # External (to RubyGems) requirements that must be met for this gem to work.
154
+
155
+ # External (to RubyGems) requirements that must be met for this gem to work.
156
156
  # It’s simply information for the user.
157
157
  #
158
158
  s.requirements = nil
159
-
159
+
160
160
  # A message that gets displayed after the gem is installed
161
161
  #
162
162
  # Uncomment and set this if you want to say something to the user
@@ -174,7 +174,7 @@ Gem::Specification.new do |s|
174
174
  # details.
175
175
  #
176
176
  # s.cert_chain = []
177
-
177
+
178
178
  ################################################################### RDOC
179
179
 
180
180
  # An ARGV style array of options to RDoc