noe 1.6.0 → 1.7.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,9 @@
1
+ # 1.7.0 / 2012-01-12
2
+
3
+ * Added support for wlang-braces in manifest entries to generate wlang
4
+ templates without brace collisions.
5
+ * Most important changes are in default ruby skeleton, see its own CHANGELOG
6
+
1
7
  # 1.6.0 / 2011-12-09
2
8
 
3
9
  * Most important changes are in default ruby skeleton, see its own CHANGELOG
@@ -5,7 +5,7 @@ GEM
5
5
  diff-lcs (1.1.3)
6
6
  highline (1.6.2)
7
7
  quickl (0.4.1)
8
- rake (0.9.2)
8
+ rake (0.9.2.2)
9
9
  rspec (2.7.0)
10
10
  rspec-core (~> 2.7.0)
11
11
  rspec-expectations (~> 2.7.0)
@@ -298,8 +298,9 @@ module Noe
298
298
  def run
299
299
  File.open(relocated, 'w') do |out|
300
300
  dialect = entry.wlang_dialect
301
+ braces = entry.wlang_braces
301
302
  variables.methodize!
302
- out << WLang::file_instantiate(entry.realpath, variables, dialect)
303
+ out << WLang::file_instantiate(entry.realpath, variables, dialect, braces)
303
304
  end
304
305
  end
305
306
 
@@ -213,6 +213,11 @@ module Noe
213
213
  res ? res : (default || 'wlang/active-text')
214
214
  end
215
215
 
216
+ # Returns wlang braces
217
+ def wlang_braces
218
+ @wlang_braces ||= (manifest['wlang-braces'] || "braces").to_sym
219
+ end
220
+
216
221
  # Is this entry safe to override?
217
222
  def safe_override?
218
223
  manifest['safe-override']
@@ -2,7 +2,7 @@ module Noe
2
2
  module Version
3
3
 
4
4
  MAJOR = 1
5
- MINOR = 6
5
+ MINOR = 7
6
6
  TINY = 0
7
7
 
8
8
  def self.to_s
@@ -1,6 +1,6 @@
1
1
  template-info:
2
2
  name: ruby
3
- version: 1.6.0
3
+ version: 1.7.0
4
4
  author: Bernard Lambeau <blambeau@gmail.com>
5
5
  manifest:
6
6
  spec/spec_helper.rb:
@@ -10,7 +10,7 @@ template-info:
10
10
  variables:
11
11
  lower: noe
12
12
  upper: Noe
13
- version: 1.6.0
13
+ version: 1.7.0
14
14
  summary:
15
15
  Noe is a simple, general-purpose and extensible skeleton generator from project templates
16
16
  description:
@@ -1,3 +1,8 @@
1
+ # 1.7.0 / 2012-01-12
2
+
3
+ * Use the correct version number when generating CHANGELOG
4
+ * Fix version number of the template itself
5
+
1
6
  # 1.6.0 / 2011-12-09
2
7
 
3
8
  * Moved to rspec 1.7.0
@@ -21,7 +21,7 @@ template-info:
21
21
 
22
22
  # Don't remove the name and version entries, which are ALWAYS required
23
23
  name: "!{template_name}"
24
- version: 1.5.1
24
+ version: 1.7.0
25
25
 
26
26
  # The following entries are information about the template itself and can safely
27
27
  # be removed on your own project.
@@ -1,13 +1,12 @@
1
- # Noe template for ruby gem libraries (https://github.com/blambeau/noe) - short version
2
- # Run 'noe show-spec' and 'noe help show-spec' for additional details.
1
+ # Noe template for ruby gem libraries (https://github.com/blambeau/noe) - short
2
+ # version. Run 'noe show-spec' and 'noe help show-spec' for additional details.
3
3
 
4
4
  # Don't remove this entry!
5
5
  template-info:
6
6
  name: "!{template_name}"
7
- version: 1.5.1
7
+ version: 1.7.0
8
8
  links:
9
- source: https://github.com/blambeau/noe/tree/master/templates/ruby
10
- documentation: https://github.com/blambeau/noe/blob/master/templates/ruby/README.md
9
+ source: https://github.com/blambeau/noe
11
10
 
12
11
  # Update to match your own configuration.
13
12
  variables:
@@ -51,4 +50,4 @@ variables:
51
50
  - {name: yard, version: "~> 0.7.2", groups: [development]}
52
51
  - {name: bluecloth, version: "~> 2.2.0", groups: [development]}
53
52
  # wlang is required to run 'rake debug_mail'. See tasks/debug_mail.rake
54
- - {name: wlang, version: "~> 0.10.2", groups: [development]}
53
+ - {name: wlang, version: "~> 0.10.2", groups: [development]}
@@ -1,4 +1,4 @@
1
- # 1.0.0 / FIX ME
1
+ # !{version} / FIX ME
2
2
 
3
3
  * Enhancements
4
4
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: noe
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.0
4
+ version: 1.7.0
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: 2011-12-09 00:00:00.000000000Z
12
+ date: 2012-01-12 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake
16
- requirement: &79595140 !ruby/object:Gem::Requirement
16
+ requirement: &80815370 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 0.9.2
22
22
  type: :development
23
23
  prerelease: false
24
- version_requirements: *79595140
24
+ version_requirements: *80815370
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: rspec
27
- requirement: &79594890 !ruby/object:Gem::Requirement
27
+ requirement: &80807740 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: 2.7.0
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *79594890
35
+ version_requirements: *80807740
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: yard
38
- requirement: &79594650 !ruby/object:Gem::Requirement
38
+ requirement: &80806020 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ~>
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: 0.7.2
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *79594650
46
+ version_requirements: *80806020
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: bluecloth
49
- requirement: &79594400 !ruby/object:Gem::Requirement
49
+ requirement: &80780630 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ~>
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: 2.2.0
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *79594400
57
+ version_requirements: *80780630
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: wlang
60
- requirement: &79594150 !ruby/object:Gem::Requirement
60
+ requirement: &80776130 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ~>
@@ -65,10 +65,10 @@ dependencies:
65
65
  version: 0.10.2
66
66
  type: :runtime
67
67
  prerelease: false
68
- version_requirements: *79594150
68
+ version_requirements: *80776130
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: quickl
71
- requirement: &79593920 !ruby/object:Gem::Requirement
71
+ requirement: &80710970 !ruby/object:Gem::Requirement
72
72
  none: false
73
73
  requirements:
74
74
  - - ~>
@@ -76,10 +76,10 @@ dependencies:
76
76
  version: 0.4.1
77
77
  type: :runtime
78
78
  prerelease: false
79
- version_requirements: *79593920
79
+ version_requirements: *80710970
80
80
  - !ruby/object:Gem::Dependency
81
81
  name: highline
82
- requirement: &79593660 !ruby/object:Gem::Requirement
82
+ requirement: &80708960 !ruby/object:Gem::Requirement
83
83
  none: false
84
84
  requirements:
85
85
  - - ~>
@@ -87,7 +87,7 @@ dependencies:
87
87
  version: 1.6.0
88
88
  type: :runtime
89
89
  prerelease: false
90
- version_requirements: *79593660
90
+ version_requirements: *80708960
91
91
  description: Noe is a tool that generates project skeletons from predefined templates.
92
92
  A template is designed for a specific product (a ruby library, a static or dynamic
93
93
  web site, ...). Noe instantiates templates and helps you maintaining your product
@@ -110,38 +110,23 @@ files:
110
110
  - CHANGELOG.md
111
111
  - Gemfile
112
112
  - Gemfile.lock
113
- - lib/noe/main.rbc
114
- - lib/noe/show_spec.rbc
115
113
  - lib/noe/help.rb
116
114
  - lib/noe/prepare.rb
117
- - lib/noe/template.rbc
118
- - lib/noe/prepare.rbc
119
115
  - lib/noe/go.rb
120
116
  - lib/noe/show_spec.rb
121
117
  - lib/noe/main.rb
122
- - lib/noe/list.rbc
123
118
  - lib/noe/template.rb
124
- - lib/noe/go.rbc
125
119
  - lib/noe/commons.rb
126
120
  - lib/noe/list.rb
127
- - lib/noe/version.rbc
128
- - lib/noe/config.rbc
129
- - lib/noe/help.rbc
130
121
  - lib/noe/install.rb
131
122
  - lib/noe/config.rb
132
- - lib/noe/commons.rbc
133
123
  - lib/noe/loader.rb
134
124
  - lib/noe/default.yaml
135
125
  - lib/noe/ext/hash.rb
136
126
  - lib/noe/ext/array.rb
137
- - lib/noe/ext/hash.rbc
138
- - lib/noe/ext/array.rbc
139
127
  - lib/noe/config.yaml
140
- - lib/noe/install.rbc
141
- - lib/noe/loader.rbc
142
128
  - lib/noe/version.rb
143
129
  - lib/noe.rb
144
- - lib/noe.rbc
145
130
  - LICENCE.md
146
131
  - Manifest.txt
147
132
  - noe.gemspec
@@ -149,31 +134,19 @@ files:
149
134
  - Rakefile
150
135
  - README.md
151
136
  - spec/integration/spec_helper.rb
152
- - spec/integration/spaces_spec.rbc
153
- - spec/integration/spec_helper.rbc
154
137
  - spec/integration/spaces_spec.rb
155
138
  - spec/integration/go/go_spec.rb
156
- - spec/integration/go/go_spec.rbc
157
139
  - spec/integration/go/after_prepare/after_prepare.noespec
158
140
  - spec/integration/go/after_prepare/README.md
159
141
  - spec/unit/spec_helper.rb
160
142
  - spec/unit/template/entry/rename_one_spec.rb
161
- - spec/unit/template/entry/relocate_spec.rbc
162
143
  - spec/unit/template/entry/relocate_spec.rb
163
144
  - spec/unit/template/entry/infer_wlang_dialect_spec.rb
164
- - spec/unit/template/entry/rename_one_spec.rbc
165
- - spec/unit/template/entry/infer_wlang_dialect_spec.rbc
166
- - spec/unit/config/new_spec.rbc
167
145
  - spec/unit/config/config1.yaml
168
146
  - spec/unit/config/new_spec.rb
169
147
  - spec/unit/config/templates_dir_spec.rb
170
- - spec/unit/config/templates_dir_spec.rbc
171
- - spec/unit/spec_helper.rbc
172
- - spec/unit/noe_spec.rbc
173
148
  - spec/unit/noe_spec.rb
174
149
  - spec/unit/ext/hash/noe_merge_spec.rb
175
- - spec/unit/ext/hash/methodize_spec.rbc
176
- - spec/unit/ext/hash/noe_merge_spec.rbc
177
150
  - spec/unit/ext/hash/methodize_spec.rb
178
151
  - spec/fixtures/typitpl/noespec.yaml
179
152
  - spec/fixtures/typitpl/src/README.txt
@@ -223,7 +196,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
223
196
  version: '0'
224
197
  segments:
225
198
  - 0
226
- hash: -670464717
199
+ hash: -416885011
227
200
  required_rubygems_version: !ruby/object:Gem::Requirement
228
201
  none: false
229
202
  requirements:
@@ -232,38 +205,26 @@ required_rubygems_version: !ruby/object:Gem::Requirement
232
205
  version: '0'
233
206
  requirements: []
234
207
  rubyforge_project:
235
- rubygems_version: 1.8.10
208
+ rubygems_version: 1.8.15
236
209
  signing_key:
237
210
  specification_version: 3
238
211
  summary: Noe is a simple, general-purpose and extensible skeleton generator from project
239
212
  templates
240
213
  test_files:
241
214
  - spec/integration/spec_helper.rb
242
- - spec/integration/spaces_spec.rbc
243
- - spec/integration/spec_helper.rbc
244
215
  - spec/integration/spaces_spec.rb
245
216
  - spec/integration/go/go_spec.rb
246
- - spec/integration/go/go_spec.rbc
247
217
  - spec/integration/go/after_prepare/after_prepare.noespec
248
218
  - spec/integration/go/after_prepare/README.md
249
219
  - spec/unit/spec_helper.rb
250
220
  - spec/unit/template/entry/rename_one_spec.rb
251
- - spec/unit/template/entry/relocate_spec.rbc
252
221
  - spec/unit/template/entry/relocate_spec.rb
253
222
  - spec/unit/template/entry/infer_wlang_dialect_spec.rb
254
- - spec/unit/template/entry/rename_one_spec.rbc
255
- - spec/unit/template/entry/infer_wlang_dialect_spec.rbc
256
- - spec/unit/config/new_spec.rbc
257
223
  - spec/unit/config/config1.yaml
258
224
  - spec/unit/config/new_spec.rb
259
225
  - spec/unit/config/templates_dir_spec.rb
260
- - spec/unit/config/templates_dir_spec.rbc
261
- - spec/unit/spec_helper.rbc
262
- - spec/unit/noe_spec.rbc
263
226
  - spec/unit/noe_spec.rb
264
227
  - spec/unit/ext/hash/noe_merge_spec.rb
265
- - spec/unit/ext/hash/methodize_spec.rbc
266
- - spec/unit/ext/hash/noe_merge_spec.rbc
267
228
  - spec/unit/ext/hash/methodize_spec.rb
268
229
  - spec/fixtures/typitpl/noespec.yaml
269
230
  - spec/fixtures/typitpl/src/README.txt
@@ -1,393 +0,0 @@
1
- !RBIX
2
- 11817445442317083511
3
- x
4
- M
5
- 1
6
- n
7
- n
8
- x
9
- 10
10
- __script__
11
- i
12
- 172
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
- 5
40
- 7
41
- 5
42
- 64
43
- 47
44
- 49
45
- 6
46
- 1
47
- 15
48
- 5
49
- 7
50
- 7
51
- 64
52
- 47
53
- 49
54
- 6
55
- 1
56
- 15
57
- 5
58
- 7
59
- 8
60
- 64
61
- 47
62
- 49
63
- 6
64
- 1
65
- 15
66
- 5
67
- 7
68
- 9
69
- 64
70
- 47
71
- 49
72
- 6
73
- 1
74
- 15
75
- 5
76
- 7
77
- 10
78
- 64
79
- 47
80
- 49
81
- 6
82
- 1
83
- 15
84
- 5
85
- 7
86
- 11
87
- 64
88
- 47
89
- 49
90
- 6
91
- 1
92
- 15
93
- 5
94
- 7
95
- 12
96
- 64
97
- 47
98
- 49
99
- 6
100
- 1
101
- 15
102
- 5
103
- 7
104
- 13
105
- 64
106
- 47
107
- 49
108
- 6
109
- 1
110
- 15
111
- 5
112
- 7
113
- 14
114
- 64
115
- 47
116
- 49
117
- 6
118
- 1
119
- 15
120
- 5
121
- 7
122
- 15
123
- 64
124
- 47
125
- 49
126
- 6
127
- 1
128
- 15
129
- 5
130
- 7
131
- 16
132
- 64
133
- 47
134
- 49
135
- 6
136
- 1
137
- 15
138
- 5
139
- 7
140
- 17
141
- 64
142
- 47
143
- 49
144
- 6
145
- 1
146
- 15
147
- 5
148
- 7
149
- 18
150
- 64
151
- 47
152
- 49
153
- 6
154
- 1
155
- 15
156
- 5
157
- 7
158
- 19
159
- 64
160
- 47
161
- 49
162
- 6
163
- 1
164
- 15
165
- 5
166
- 7
167
- 20
168
- 64
169
- 47
170
- 49
171
- 6
172
- 1
173
- 15
174
- 5
175
- 7
176
- 21
177
- 64
178
- 47
179
- 49
180
- 6
181
- 1
182
- 15
183
- 2
184
- 11
185
- I
186
- 6
187
- I
188
- 0
189
- I
190
- 0
191
- I
192
- 0
193
- n
194
- p
195
- 22
196
- x
197
- 3
198
- Noe
199
- x
200
- 11
201
- open_module
202
- x
203
- 15
204
- __module_init__
205
- M
206
- 1
207
- n
208
- n
209
- x
210
- 3
211
- Noe
212
- i
213
- 15
214
- 5
215
- 66
216
- 99
217
- 7
218
- 0
219
- 45
220
- 1
221
- 2
222
- 65
223
- 49
224
- 3
225
- 3
226
- 15
227
- 1
228
- 11
229
- I
230
- 4
231
- I
232
- 0
233
- I
234
- 0
235
- I
236
- 0
237
- n
238
- p
239
- 4
240
- x
241
- 5
242
- Error
243
- x
244
- 13
245
- StandardError
246
- n
247
- x
248
- 10
249
- open_class
250
- p
251
- 3
252
- I
253
- 2
254
- I
255
- 3
256
- I
257
- f
258
- x
259
- 40
260
- /home/blambeau/work/devel/noe/lib/noe.rb
261
- p
262
- 0
263
- x
264
- 13
265
- attach_method
266
- s
267
- 11
268
- noe/version
269
- x
270
- 7
271
- require
272
- s
273
- 10
274
- noe/loader
275
- s
276
- 4
277
- yaml
278
- s
279
- 9
280
- fileutils
281
- s
282
- 13
283
- noe/ext/array
284
- s
285
- 12
286
- noe/ext/hash
287
- s
288
- 10
289
- noe/config
290
- s
291
- 12
292
- noe/template
293
- s
294
- 8
295
- noe/main
296
- s
297
- 11
298
- noe/commons
299
- s
300
- 11
301
- noe/install
302
- s
303
- 8
304
- noe/help
305
- s
306
- 8
307
- noe/list
308
- s
309
- 11
310
- noe/prepare
311
- s
312
- 6
313
- noe/go
314
- s
315
- 13
316
- noe/show_spec
317
- p
318
- 35
319
- I
320
- 0
321
- I
322
- 1
323
- I
324
- 1a
325
- I
326
- 6
327
- I
328
- 23
329
- I
330
- 7
331
- I
332
- 2c
333
- I
334
- 8
335
- I
336
- 35
337
- I
338
- 9
339
- I
340
- 3e
341
- I
342
- a
343
- I
344
- 47
345
- I
346
- b
347
- I
348
- 50
349
- I
350
- c
351
- I
352
- 59
353
- I
354
- d
355
- I
356
- 62
357
- I
358
- f
359
- I
360
- 6b
361
- I
362
- 10
363
- I
364
- 74
365
- I
366
- 11
367
- I
368
- 7d
369
- I
370
- 12
371
- I
372
- 86
373
- I
374
- 13
375
- I
376
- 8f
377
- I
378
- 14
379
- I
380
- 98
381
- I
382
- 15
383
- I
384
- a1
385
- I
386
- 16
387
- I
388
- ac
389
- x
390
- 40
391
- /home/blambeau/work/devel/noe/lib/noe.rb
392
- p
393
- 0