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,8 +1,8 @@
1
1
  # Installs a rake task for for running unit tests.
2
2
  #
3
- # This file installs the 'rake unit_test' and extends 'rake test' to run unit
4
- # tests, if any. It is automatically generated by Noe from your .noespec file,
5
- # and should therefore be configured there, under the variables/rake_tasks/unit_test
3
+ # This file installs the 'rake unit_test' and extends 'rake test' to run unit
4
+ # tests, if any. It is automatically generated by Noe from your .noespec file,
5
+ # and should therefore be configured there, under the variables/rake_tasks/unit_test
6
6
  # entry, as illustrated below:
7
7
  #
8
8
  # variables:
@@ -13,15 +13,15 @@
13
13
  # warning: false
14
14
  # ...
15
15
  #
16
- # If you have specific needs requiring manual intervention on this file,
16
+ # If you have specific needs requiring manual intervention on this file,
17
17
  # don't forget to set safe-override to false in your noe specification:
18
- #
18
+ #
19
19
  # template-info:
20
20
  # manifest:
21
21
  # tasks/unit_test.rake:
22
22
  # safe-override: false
23
23
  #
24
- # More info about the TestTask and its options can be found on
24
+ # More info about the TestTask and its options can be found on
25
25
  # http://rake.rubyforge.org/classes/Rake/TestTask.html
26
26
  #
27
27
  begin
@@ -36,7 +36,7 @@ begin
36
36
  # True if verbose test output desired. (default is false)
37
37
  t.verbose = +{rake_tasks.unit_test.verbose}
38
38
 
39
- # Test options passed to the test suite. An explicit TESTOPTS=opts
39
+ # Test options passed to the test suite. An explicit TESTOPTS=opts
40
40
  # on the command line will override this. (default is NONE)
41
41
  t.options = +{rake_tasks.unit_test.options}
42
42
 
@@ -52,10 +52,10 @@ begin
52
52
  # * :rake -- Rake provided test loading script (default).
53
53
  # * :testrb -- Ruby provided test loading script.
54
54
  # * :direct -- Load tests using command line loader.
55
- #
55
+ #
56
56
  t.loader = +{rake_tasks.unit_test.loader}
57
57
 
58
- # Array of commandline options to pass to ruby when running test
58
+ # Array of commandline options to pass to ruby when running test
59
59
  # loader.
60
60
  t.ruby_opts = +{rake_tasks.unit_test.ruby_opts}
61
61
 
@@ -74,4 +74,3 @@ ensure
74
74
  desc "Run all tests"
75
75
  task :test => [:unit_test]
76
76
  end
77
-
@@ -1,7 +1,7 @@
1
1
  # Installs a rake task to generate API documentation using yard.
2
2
  #
3
- # This file installs the 'rake yard' task. It is automatically generated by Noe from
4
- # your .noespec file, and should therefore be configured there, under the
3
+ # This file installs the 'rake yard' task. It is automatically generated by Noe from
4
+ # your .noespec file, and should therefore be configured there, under the
5
5
  # variables/rake_tasks/yard entry, as illustrated below:
6
6
  #
7
7
  # variables:
@@ -11,15 +11,15 @@
11
11
  # options: []
12
12
  # ...
13
13
  #
14
- # If you have specific needs requiring manual intervention on this file,
14
+ # If you have specific needs requiring manual intervention on this file,
15
15
  # don't forget to set safe-override to false in your noe specification:
16
- #
16
+ #
17
17
  # template-info:
18
18
  # manifest:
19
19
  # tasks/yard.rake:
20
20
  # safe-override: false
21
21
  #
22
- # This file has been written to conform to yard v0.6.4. More information about
22
+ # This file has been written to conform to yard v0.6.4. More information about
23
23
  # yard and the rake task installed below can be found on http://yardoc.org/
24
24
  #
25
25
  begin
@@ -28,20 +28,20 @@ begin
28
28
  YARD::Rake::YardocTask.new(:yard) do |t|
29
29
  # Array of options passed to yardoc commandline. See 'yardoc --help' about this
30
30
  t.options = +{rake_tasks.yard.options}
31
-
32
- # Array of ruby source files (and any extra documentation files
31
+
32
+ # Array of ruby source files (and any extra documentation files
33
33
  # separated by '-')
34
34
  t.files = +{rake_tasks.yard.files}
35
-
35
+
36
36
  # A proc to call before running the task
37
37
  # t.before = proc{ }
38
-
38
+
39
39
  # A proc to call after running the task
40
40
  # r.after = proc{ }
41
-
42
- # An optional lambda to run against all objects being generated.
43
- # Any object that the lambda returns false for will be excluded
44
- # from documentation.
41
+
42
+ # An optional lambda to run against all objects being generated.
43
+ # Any object that the lambda returns false for will be excluded
44
+ # from documentation.
45
45
  # t.verifier = lambda{|obj| true}
46
46
  end
47
47
  rescue LoadError
metadata CHANGED
@@ -1,12 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: noe
3
3
  version: !ruby/object:Gem::Version
4
- prerelease: false
4
+ hash: 1
5
+ prerelease:
5
6
  segments:
6
7
  - 1
7
8
  - 5
8
- - 0
9
- version: 1.5.0
9
+ - 1
10
+ version: 1.5.1
10
11
  platform: ruby
11
12
  authors:
12
13
  - Bernard Lambeau
@@ -14,114 +15,120 @@ autorequire:
14
15
  bindir: bin
15
16
  cert_chain: []
16
17
 
17
- date: 2011-08-20 00:00:00 +02:00
18
- default_executable:
18
+ date: 2011-08-31 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
- name: rake
22
21
  requirement: &id001 !ruby/object:Gem::Requirement
23
22
  none: false
24
23
  requirements:
25
24
  - - ~>
26
25
  - !ruby/object:Gem::Version
26
+ hash: 63
27
27
  segments:
28
28
  - 0
29
29
  - 9
30
30
  - 2
31
31
  version: 0.9.2
32
- type: :development
33
- prerelease: false
34
32
  version_requirements: *id001
33
+ name: rake
34
+ prerelease: false
35
+ type: :development
35
36
  - !ruby/object:Gem::Dependency
36
- name: rspec
37
37
  requirement: &id002 !ruby/object:Gem::Requirement
38
38
  none: false
39
39
  requirements:
40
40
  - - ~>
41
41
  - !ruby/object:Gem::Version
42
+ hash: 23
42
43
  segments:
43
44
  - 2
44
45
  - 6
45
46
  - 0
46
47
  version: 2.6.0
47
- type: :development
48
- prerelease: false
49
48
  version_requirements: *id002
49
+ name: rspec
50
+ prerelease: false
51
+ type: :development
50
52
  - !ruby/object:Gem::Dependency
51
- name: yard
52
53
  requirement: &id003 !ruby/object:Gem::Requirement
53
54
  none: false
54
55
  requirements:
55
56
  - - ~>
56
57
  - !ruby/object:Gem::Version
58
+ hash: 7
57
59
  segments:
58
60
  - 0
59
61
  - 7
60
62
  - 2
61
63
  version: 0.7.2
62
- type: :development
63
- prerelease: false
64
64
  version_requirements: *id003
65
+ name: yard
66
+ prerelease: false
67
+ type: :development
65
68
  - !ruby/object:Gem::Dependency
66
- name: bluecloth
67
69
  requirement: &id004 !ruby/object:Gem::Requirement
68
70
  none: false
69
71
  requirements:
70
72
  - - ~>
71
73
  - !ruby/object:Gem::Version
74
+ hash: 11
72
75
  segments:
73
76
  - 2
74
77
  - 1
75
78
  - 0
76
79
  version: 2.1.0
77
- type: :development
78
- prerelease: false
79
80
  version_requirements: *id004
81
+ name: bluecloth
82
+ prerelease: false
83
+ type: :development
80
84
  - !ruby/object:Gem::Dependency
81
- name: wlang
82
85
  requirement: &id005 !ruby/object:Gem::Requirement
83
86
  none: false
84
87
  requirements:
85
88
  - - ~>
86
89
  - !ruby/object:Gem::Version
90
+ hash: 51
87
91
  segments:
88
92
  - 0
89
93
  - 10
90
94
  - 2
91
95
  version: 0.10.2
92
- type: :runtime
93
- prerelease: false
94
96
  version_requirements: *id005
97
+ name: wlang
98
+ prerelease: false
99
+ type: :runtime
95
100
  - !ruby/object:Gem::Dependency
96
- name: quickl
97
101
  requirement: &id006 !ruby/object:Gem::Requirement
98
102
  none: false
99
103
  requirements:
100
104
  - - ~>
101
105
  - !ruby/object:Gem::Version
106
+ hash: 13
102
107
  segments:
103
108
  - 0
104
- - 3
105
- - 0
106
- version: 0.3.0
107
- type: :runtime
108
- prerelease: false
109
+ - 4
110
+ - 1
111
+ version: 0.4.1
109
112
  version_requirements: *id006
113
+ name: quickl
114
+ prerelease: false
115
+ type: :runtime
110
116
  - !ruby/object:Gem::Dependency
111
- name: highline
112
117
  requirement: &id007 !ruby/object:Gem::Requirement
113
118
  none: false
114
119
  requirements:
115
120
  - - ~>
116
121
  - !ruby/object:Gem::Version
122
+ hash: 15
117
123
  segments:
118
124
  - 1
119
125
  - 6
120
126
  - 0
121
127
  version: 1.6.0
122
- type: :runtime
123
- prerelease: false
124
128
  version_requirements: *id007
129
+ name: highline
130
+ prerelease: false
131
+ type: :runtime
125
132
  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!
126
133
  email:
127
134
  - blambeau@gmail.com
@@ -139,75 +146,103 @@ files:
139
146
  - CHANGELOG.md
140
147
  - Gemfile
141
148
  - Gemfile.lock
142
- - lib/noe.rb
143
- - lib/noe/commons.rb
144
- - lib/noe/config.rb
145
- - lib/noe/config.yaml
146
- - lib/noe/default.yaml
147
- - lib/noe/ext/array.rb
148
- - lib/noe/ext/hash.rb
149
- - lib/noe/go.rb
149
+ - lib/noe/main.rbc
150
+ - lib/noe/show_spec.rbc
150
151
  - lib/noe/help.rb
151
- - lib/noe/install.rb
152
- - lib/noe/list.rb
153
- - lib/noe/loader.rb
154
- - lib/noe/main.rb
155
152
  - lib/noe/prepare.rb
153
+ - lib/noe/template.rbc
154
+ - lib/noe/prepare.rbc
155
+ - lib/noe/go.rb
156
156
  - lib/noe/show_spec.rb
157
+ - lib/noe/main.rb
158
+ - lib/noe/list.rbc
157
159
  - lib/noe/template.rb
160
+ - lib/noe/go.rbc
161
+ - lib/noe/commons.rb
162
+ - lib/noe/list.rb
163
+ - lib/noe/version.rbc
164
+ - lib/noe/config.rbc
165
+ - lib/noe/help.rbc
166
+ - lib/noe/install.rb
167
+ - lib/noe/config.rb
168
+ - lib/noe/commons.rbc
169
+ - lib/noe/loader.rb
170
+ - lib/noe/default.yaml
171
+ - lib/noe/ext/hash.rb
172
+ - lib/noe/ext/array.rb
173
+ - lib/noe/ext/hash.rbc
174
+ - lib/noe/ext/array.rbc
175
+ - lib/noe/config.yaml
176
+ - lib/noe/install.rbc
177
+ - lib/noe/loader.rbc
158
178
  - lib/noe/version.rb
179
+ - lib/noe.rb
180
+ - lib/noe.rbc
159
181
  - LICENCE.md
160
182
  - Manifest.txt
161
183
  - noe.gemspec
162
184
  - noe.noespec
163
185
  - Rakefile
164
186
  - README.md
165
- - spec/fixtures/typitpl/noespec.yaml
166
- - spec/fixtures/typitpl/src/README.txt
167
- - spec/integration/go/after_prepare/README.md
168
- - spec/integration/go/after_prepare/after_prepare.noespec
169
- - spec/integration/go/go_spec.rb
170
187
  - spec/integration/spec_helper.rb
188
+ - spec/integration/spaces_spec.rbc
189
+ - spec/integration/spec_helper.rbc
190
+ - spec/integration/spaces_spec.rb
191
+ - spec/integration/go/go_spec.rb
192
+ - spec/integration/go/go_spec.rbc
193
+ - spec/integration/go/after_prepare/after_prepare.noespec
194
+ - spec/integration/go/after_prepare/README.md
195
+ - spec/unit/spec_helper.rb
196
+ - spec/unit/template/entry/rename_one_spec.rb
197
+ - spec/unit/template/entry/relocate_spec.rbc
198
+ - spec/unit/template/entry/relocate_spec.rb
199
+ - spec/unit/template/entry/infer_wlang_dialect_spec.rb
200
+ - spec/unit/template/entry/rename_one_spec.rbc
201
+ - spec/unit/template/entry/infer_wlang_dialect_spec.rbc
202
+ - spec/unit/config/new_spec.rbc
171
203
  - spec/unit/config/config1.yaml
172
204
  - spec/unit/config/new_spec.rb
173
205
  - spec/unit/config/templates_dir_spec.rb
174
- - spec/unit/ext/hash/methodize_spec.rb
175
- - spec/unit/ext/hash/noe_merge_spec.rb
206
+ - spec/unit/config/templates_dir_spec.rbc
207
+ - spec/unit/spec_helper.rbc
208
+ - spec/unit/noe_spec.rbc
176
209
  - spec/unit/noe_spec.rb
177
- - spec/unit/spec_helper.rb
178
- - spec/unit/template/entry/infer_wlang_dialect_spec.rb
179
- - spec/unit/template/entry/relocate_spec.rb
180
- - spec/unit/template/entry/rename_one_spec.rb
210
+ - spec/unit/ext/hash/noe_merge_spec.rb
211
+ - spec/unit/ext/hash/methodize_spec.rbc
212
+ - spec/unit/ext/hash/noe_merge_spec.rbc
213
+ - spec/unit/ext/hash/methodize_spec.rb
214
+ - spec/fixtures/typitpl/noespec.yaml
215
+ - spec/fixtures/typitpl/src/README.txt
216
+ - spec/fixtures/test.noespec
181
217
  - tasks/debug_mail.rake
182
- - tasks/debug_mail.txt
218
+ - tasks/yard.rake
183
219
  - tasks/gem.rake
184
220
  - tasks/spec_test.rake
185
221
  - tasks/unit_test.rake
186
- - tasks/yard.rake
222
+ - tasks/debug_mail.txt
223
+ - templates/ruby/noespec.yaml
187
224
  - templates/ruby/CHANGELOG.md
188
225
  - templates/ruby/README.md
189
- - templates/ruby/noespec.yaml
190
- - templates/ruby/short.yaml
191
226
  - templates/ruby/src/CHANGELOG.md
192
- - templates/ruby/src/Gemfile
193
- - templates/ruby/src/LICENCE.md
194
- - templates/ruby/src/Manifest.txt
195
227
  - templates/ruby/src/README.md
228
+ - templates/ruby/src/Manifest.txt
196
229
  - templates/ruby/src/Rakefile
197
230
  - templates/ruby/src/__lower__.gemspec
198
231
  - templates/ruby/src/lib/__lower__.rb
199
232
  - templates/ruby/src/lib/__lower__/loader.rb
200
233
  - templates/ruby/src/lib/__lower__/version.rb
234
+ - templates/ruby/src/LICENCE.md
201
235
  - templates/ruby/src/spec/spec_helper.rb
202
236
  - templates/ruby/src/spec/test___lower__.rb
203
237
  - templates/ruby/src/tasks/debug_mail.rake
204
- - templates/ruby/src/tasks/debug_mail.txt
238
+ - templates/ruby/src/tasks/yard.rake
205
239
  - templates/ruby/src/tasks/gem.rake
206
240
  - templates/ruby/src/tasks/spec_test.rake
207
241
  - templates/ruby/src/tasks/unit_test.rake
208
- - templates/ruby/src/tasks/yard.rake
242
+ - templates/ruby/src/tasks/debug_mail.txt
243
+ - templates/ruby/src/Gemfile
244
+ - templates/ruby/short.yaml
209
245
  - templates/ruby/src/.gitignore
210
- has_rdoc: true
211
246
  homepage: http://github.com/blambeau/noe
212
247
  licenses: []
213
248
 
@@ -229,7 +264,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
229
264
  requirements:
230
265
  - - ">="
231
266
  - !ruby/object:Gem::Version
232
- hash: 972884989
267
+ hash: 3
233
268
  segments:
234
269
  - 0
235
270
  version: "0"
@@ -238,30 +273,45 @@ required_rubygems_version: !ruby/object:Gem::Requirement
238
273
  requirements:
239
274
  - - ">="
240
275
  - !ruby/object:Gem::Version
276
+ hash: 3
241
277
  segments:
242
278
  - 0
243
279
  version: "0"
244
280
  requirements: []
245
281
 
246
282
  rubyforge_project:
247
- rubygems_version: 1.3.7
283
+ rubygems_version: 1.8.10
248
284
  signing_key:
249
285
  specification_version: 3
250
286
  summary: Noe is a simple, general-purpose and extensible skeleton generator from project templates
251
287
  test_files:
252
- - spec/fixtures/typitpl/noespec.yaml
253
- - spec/fixtures/typitpl/src/README.txt
254
- - spec/integration/go/after_prepare/README.md
255
- - spec/integration/go/after_prepare/after_prepare.noespec
256
- - spec/integration/go/go_spec.rb
257
288
  - spec/integration/spec_helper.rb
289
+ - spec/integration/spaces_spec.rbc
290
+ - spec/integration/spec_helper.rbc
291
+ - spec/integration/spaces_spec.rb
292
+ - spec/integration/go/go_spec.rb
293
+ - spec/integration/go/go_spec.rbc
294
+ - spec/integration/go/after_prepare/after_prepare.noespec
295
+ - spec/integration/go/after_prepare/README.md
296
+ - spec/unit/spec_helper.rb
297
+ - spec/unit/template/entry/rename_one_spec.rb
298
+ - spec/unit/template/entry/relocate_spec.rbc
299
+ - spec/unit/template/entry/relocate_spec.rb
300
+ - spec/unit/template/entry/infer_wlang_dialect_spec.rb
301
+ - spec/unit/template/entry/rename_one_spec.rbc
302
+ - spec/unit/template/entry/infer_wlang_dialect_spec.rbc
303
+ - spec/unit/config/new_spec.rbc
258
304
  - spec/unit/config/config1.yaml
259
305
  - spec/unit/config/new_spec.rb
260
306
  - spec/unit/config/templates_dir_spec.rb
261
- - spec/unit/ext/hash/methodize_spec.rb
262
- - spec/unit/ext/hash/noe_merge_spec.rb
307
+ - spec/unit/config/templates_dir_spec.rbc
308
+ - spec/unit/spec_helper.rbc
309
+ - spec/unit/noe_spec.rbc
263
310
  - spec/unit/noe_spec.rb
264
- - spec/unit/spec_helper.rb
265
- - spec/unit/template/entry/infer_wlang_dialect_spec.rb
266
- - spec/unit/template/entry/relocate_spec.rb
267
- - spec/unit/template/entry/rename_one_spec.rb
311
+ - spec/unit/ext/hash/noe_merge_spec.rb
312
+ - spec/unit/ext/hash/methodize_spec.rbc
313
+ - spec/unit/ext/hash/noe_merge_spec.rbc
314
+ - spec/unit/ext/hash/methodize_spec.rb
315
+ - spec/fixtures/typitpl/noespec.yaml
316
+ - spec/fixtures/typitpl/src/README.txt
317
+ - spec/fixtures/test.noespec