prigner 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (34) hide show
  1. data/CHANGELOG +123 -200
  2. data/{README.mkd → README.rdoc} +36 -42
  3. data/Rakefile +140 -112
  4. data/lib/prigner/cli/copy.rb +39 -0
  5. data/lib/prigner/cli/new.rb +10 -8
  6. data/lib/prigner/extensions.rb +17 -2
  7. data/lib/prigner/template.rb +2 -24
  8. data/lib/prigner.rb +46 -10
  9. data/prigner.gemspec +27 -30
  10. data/test/fixtures/templates/shared/templates/ruby/sinatra/models/README.mkd +2 -0
  11. data/test/fixtures/templates/shared/templates/ruby/sinatra/models/Rakefile +7 -0
  12. data/test/fixtures/templates/shared/templates/ruby/sinatra/models/empty_test.rb +21 -0
  13. data/test/fixtures/templates/shared/templates/ruby/sinatra/models/module.rb +6 -0
  14. data/test/fixtures/templates/shared/templates/ruby/sinatra/specfile +18 -0
  15. data/test/fixtures/templates/user/.prigner/sources +1 -0
  16. data/test/helpers.rb +36 -1
  17. data/test/spec_test.rb +1 -1
  18. data/test/template_test.rb +7 -9
  19. metadata +30 -32
  20. /data/test/fixtures/templates/shared/{ruby → templates/ruby}/default/README.mkd +0 -0
  21. /data/test/fixtures/templates/shared/{ruby → templates/ruby}/default/models/README.mkd +0 -0
  22. /data/test/fixtures/templates/shared/{ruby → templates/ruby}/default/models/Rakefile +0 -0
  23. /data/test/fixtures/templates/shared/{ruby → templates/ruby}/default/models/empty_test.rb +0 -0
  24. /data/test/fixtures/templates/shared/{ruby → templates/ruby}/default/models/module.rb +0 -0
  25. /data/test/fixtures/templates/shared/{ruby → templates/ruby}/default/specfile +0 -0
  26. /data/test/fixtures/templates/user/{bash → .prigner/templates/bash}/default/specfile +0 -0
  27. /data/test/fixtures/templates/user/{ruby → .prigner/templates/ruby}/program/models/README.erb +0 -0
  28. /data/test/fixtures/templates/user/{ruby → .prigner/templates/ruby}/program/models/cli.rb.erb +0 -0
  29. /data/test/fixtures/templates/user/{ruby → .prigner/templates/ruby}/program/models/module.rb.erb +0 -0
  30. /data/test/fixtures/templates/user/{ruby → .prigner/templates/ruby}/program/models/program.rb.erb +0 -0
  31. /data/test/fixtures/templates/user/{ruby → .prigner/templates/ruby}/program/specfile +0 -0
  32. /data/test/fixtures/templates/user/{vim → .prigner/templates/vim}/default/specfile +0 -0
  33. /data/test/fixtures/templates/user/{vim → .prigner/templates/vim}/plugin/specfile +0 -0
  34. /data/test/fixtures/templates/user/{vim → .prigner/templates/vim}/syntax/specfile +0 -0
data/CHANGELOG CHANGED
@@ -1,248 +1,171 @@
1
- 2010-10-16
2
- -----------
1
+ = Prigner v0.1.1 (2010-10-21) - Changelog
3
2
 
4
- * Adding of templates for Ruby projects
3
+ == 2010-10-21
5
4
 
6
- * Command for create a new project
5
+ * Releasing of version 0.1.1.
6
+ * Bug fix in command to build new project.
7
+ * The bug occurred when the user run the command +new+. The command interpreted an option as a project path.
8
+ * Improvements in the files of tests.
9
+ * Shared methods in the main module.
10
+ * Changes in the tests for template and spec classes.
7
11
 
8
- * Status for CLI commands and fixes in builder test
12
+ == 2010-10-19
9
13
 
10
- * Improvements in builder
14
+ * RDoc is the default format for documentation.
15
+ * Improvements in the tasks and documentation.
16
+ * The task for build the changelog file has been improved.
17
+ * Adding of the validation for check if the version has been tagged to releasing.
18
+ * Improvements in the tasks.
19
+ * Improvements in the versioning and packaging tasks.
20
+ * Adding of the packaging configurations.
11
21
 
12
- * All methods returns the path and the state information.
22
+ == 2010-10-18
13
23
 
14
- * Removing of PWD from paths.
15
-
16
- 2010-10-15
17
- -----------
18
-
19
- * Small improvements in tasks and gemspec updates
20
-
21
- * Updates in changelog file
22
-
23
- * Fixes in the task to update changelog file
24
-
25
- * Updates in date of version
24
+ * Cleanup the code of the tasks.
25
+ * Releasing of version 0.1.0.
26
26
 
27
- * Adding of task to handle date of version
27
+ == 2010-10-16
28
28
 
29
- * Changes in the path to shared templates
30
-
31
- * Updates in the informations
32
-
33
- * Improvements in template and new CLI commands
34
-
35
- * Show all templates for use in the CLI commands.
36
-
37
- * RuntimeError when the CLI is unable to run a command.
29
+ * Adding of templates for Ruby projects.
30
+ * Command for create a new project.
31
+ * Status for CLI commands and fixes in builder test.
32
+ * Improvements in builder.
33
+ * All methods returns the path and the state information.
34
+ * Removing of PWD from paths.
38
35
 
36
+ == 2010-10-15
37
+
38
+ * Small improvements in tasks and gemspec updates.
39
+ * Updates in changelog file.
40
+ * Fixes in the task to update changelog file.
41
+ * Updates in date of version.
42
+ * Adding of task to handle date of version.
43
+ * Changes in the path to shared templates.
44
+ * Updates in the informations.
45
+ * Improvements in template and new CLI commands.
46
+ * Show all templates for use in the CLI commands.
47
+ * RuntimeError when the CLI is unable to run a command.
39
48
  * Adding list and new commands.
49
+ * Main executable.
50
+ * Mask for template presentation.
40
51
 
41
- * Main executable
42
-
43
- * Mask for template presentation
44
-
45
- 2010-10-14
46
- -----------
47
-
48
- * Fixtures in handle exceptions in path and specfile
49
-
50
- * Adjustments in exceptions for Specfile
51
-
52
- * RubyGems
53
-
54
- * Adjustments in the library path
55
-
56
- 2010-10-13
57
- -----------
58
-
59
- * Removing conversion from string to pathname
60
-
61
- 2010-09-29
62
- -----------
63
-
64
- * Fixes in the LOAD_PATH variable for requirements
52
+ == 2010-10-14
65
53
 
66
- * Configuration for RVM
54
+ * Fixtures in handle exceptions in path and specfile.
55
+ * Adjustments in exceptions for Specfile.
56
+ * RubyGems.
57
+ * Adjustments in the library path.
67
58
 
68
- * Unneeded files removed after builder test
59
+ == 2010-10-13
69
60
 
70
- * Errors fixed in load of the specfile
61
+ * Removing conversion from string to pathname.
71
62
 
72
- * Added the executable file in Gemspec
63
+ == 2010-09-29
73
64
 
74
- * Fixes in load the specfile without values
65
+ * Fixes in the LOAD_PATH variable for requirements.
66
+ * Configuration for RVM.
67
+ * Unneeded files removed after builder test.
68
+ * Errors fixed in load of the specfile.
69
+ * Added the executable file in Gemspec.
70
+ * Fixes in load the specfile without values.
75
71
 
76
- 2010-09-28
77
- -----------
78
-
79
- * Updates in Gemspec file
80
-
81
- * Added new files
82
-
83
- * Project class and CLI module have been separated from main file.
84
-
85
- * A builder has been created for improve feedback in the CLI.
72
+ == 2010-09-28
86
73
 
74
+ * Updates in Gemspec file.
75
+ * Added new files.
76
+ * Project class and CLI module have been separated from main file.
77
+ * A builder has been created for improve feedback in the CLI.
87
78
  * Documentation.
88
-
89
- * Several improves
90
-
91
- * Add `specfile` in fixtures.
92
-
93
- * Template methods have been improved:
94
-
95
- * List all templates.
96
-
97
- * Several query methods have been removed.
98
-
99
- * Added method for list all template paths.
100
-
101
- * All methods that build a project were removed for create a new
102
-
103
- build class.
104
-
105
- * Small fixes in empty values (nil).
106
-
79
+ * Several improves.
80
+ * Add `specfile` in fixtures.
81
+ * Template methods have been improved:
82
+ * List all templates.
83
+ * Several query methods have been removed.
84
+ * Added method for list all template paths.
85
+ * All methods that build a project were removed for create a new build class.
86
+ * Small fixes in empty values (nil).
107
87
  * Documentation.
108
88
 
109
- 2010-09-27
110
- -----------
111
-
112
- * Fixes in path to model file
113
-
114
- * Fixes in the load of modules
115
-
116
- * Sorting command list
117
-
118
- * Command for list all templates
119
-
120
- * Shared path to user templates
121
-
122
- * Remove test index
89
+ == 2010-09-27
123
90
 
124
- 2010-09-26
125
- -----------
91
+ * Fixes in path to model file.
92
+ * Fixes in the load of modules.
93
+ * Sorting command list.
94
+ * Command for list all templates.
95
+ * Shared path to user templates.
96
+ * Remove test index.
126
97
 
127
- * Added command-line interface
98
+ == 2010-09-26
128
99
 
129
- * Task to build Gem
100
+ * Added command-line interface.
101
+ * Task to build Gem.
130
102
 
131
- 2010-09-25
132
- -----------
103
+ == 2010-09-25
133
104
 
134
- * Listing all templates by namespace
105
+ * Listing all templates by namespace.
106
+ * Template builds all model files.
107
+ * Change SHARED_PATH to query method shared_path.
135
108
 
136
- * Template builds all model files
137
-
138
- * Change SHARED_PATH to query method shared_path
139
-
140
- 2010-09-23
141
- -----------
142
-
143
- * Added counter for all test names
144
-
145
- * Template draw projects
146
-
147
- * Updates in fixtures.
109
+ == 2010-09-23
148
110
 
111
+ * Added counter for all test names.
112
+ * Template draw projects.
113
+ * Updates in fixtures.
149
114
  * Added binding class for filters in ERB model files.
115
+ * Documentation and changes in method names.
116
+ * Fix in mapping of the models in the specfile.
117
+ * Small improvements in tests.
150
118
 
151
- * Documentation and changes in method names
152
-
153
- * Fix in mapping of the models in the specfile
154
-
155
- * Small improvements in tests
156
-
157
- 2010-09-22
158
- -----------
159
-
160
- * Small fixes in source code and tests
161
-
162
- * Fixes in converting Hash into Struct
119
+ == 2010-09-22
163
120
 
164
- * Fixes in tasks for tests
121
+ * Small fixes in source code and tests.
122
+ * Fixes in converting Hash into Struct.
123
+ * Fixes in tasks for tests.
165
124
 
166
- 2010-09-17
167
- -----------
168
-
169
- * Project has been remodelled
170
-
171
- * Project renamed to Prigner.
172
-
173
- * Start builder DSL.
174
-
175
- * Spec class.
125
+ == 2010-09-17
176
126
 
127
+ * Project has been remodelled.
128
+ * Project renamed to Prigner.
129
+ * Start builder DSL.
130
+ * Spec class.
177
131
  * Project class was simplified.
178
132
 
179
- 2010-08-17
180
- -----------
181
-
182
- * Test for check the content written by model
183
-
184
- * Template and models
185
-
186
- * A template has many model files.
187
-
188
- * The tests and fixtures for template and models have been added.
133
+ == 2010-08-17
189
134
 
135
+ * Test for check the content written by model.
136
+ * Template and models.
137
+ * A template has many model files.
138
+ * The tests and fixtures for template and models have been added.
190
139
  * Small improvements in code.
191
-
192
- * Fixture for test model
193
-
194
- * Revision in model for build contents
195
-
196
- * The method _binding_ inside structs have been updated for public
197
-
198
- access.
199
-
140
+ * Fixture for test model.
141
+ * Revision in model for build contents.
142
+ * The method _binding_ inside structs have been updated for public access.
200
143
  * Model only builds the content and draws a destination file.
201
144
 
202
- 2010-08-16
203
- -----------
204
-
205
- * Fix error in parse an empty Hash to Struct
206
-
207
- * Deleting temporary files
208
-
209
- * Refactoring in template
210
-
211
- * Load options from configuration file.
145
+ == 2010-08-16
212
146
 
147
+ * Fix error in parse an empty Hash to Struct.
148
+ * Deleting temporary files.
149
+ * Refactoring in template.
150
+ * Load options from configuration file.
213
151
  * The template is a simple directory tree.
214
-
215
- * Basic model finished
216
-
152
+ * Basic model finished.
217
153
  * Tests and fixtures for model.
218
154
 
219
- 2010-08-15
220
- -----------
221
-
222
- * Small improvements in code
155
+ == 2010-08-15
223
156
 
224
- 2010-08-14
225
- -----------
157
+ * Small improvements in code.
226
158
 
227
- * Basic template finished
228
-
229
- * Tests and fixtures for templates.
159
+ == 2010-08-14
230
160
 
161
+ * Basic template finished.
162
+ * Tests and fixtures for templates.
231
163
  * Fix in changelog task.
232
-
233
- * Basic project finished
234
-
235
- * Class for Ruby project is based in a simple directory path.
236
-
237
- * Gemspec file.
238
-
239
- * Several useful extensions.
240
-
241
- * Tests.
242
-
164
+ * Basic project finished.
165
+ * Class for Ruby project is based in a simple directory path.
166
+ * Gemspec file.
167
+ * Several useful extensions.
168
+ * Tests.
243
169
  * Tasks for development and publishing.
244
-
245
- * Added basic files
246
-
247
- * First commit
248
-
170
+ * Added basic files.
171
+ * First commit.
@@ -1,13 +1,11 @@
1
- Prigner
2
- =======
1
+ = Prigner
3
2
 
4
3
  Prigner is a Project Design Kit, that is, a tool which creates a conventional
5
4
  structure for several projects as RubyGems, Websites, MVC application and
6
5
  simple scripts. It is a DRY tool, because everything is based in templates. In
7
6
  short, a project template engine.
8
7
 
9
- Features
10
- ========
8
+ == Features
11
9
 
12
10
  * Load and create all directories and files from templates.
13
11
  * Default Ruby project templates.
@@ -19,56 +17,53 @@ Features
19
17
  * Deploy.
20
18
  * Code for versioning.
21
19
 
22
- Installation
23
- ============
20
+ == Installation
24
21
 
25
22
  First, install Prigner stable through Gem:
26
23
 
27
- gem install prigner
24
+ gem install prigner
28
25
 
29
- Usage
30
- =====
26
+ == Usage
31
27
 
32
28
  Prigner create the most common Ruby projects through templates shared. To
33
29
  generate new Gem project, run command using the following syntax:
34
30
 
35
- prign new ruby:gem foo
36
-
37
- foo
38
- |-- CHANGELOG
39
- |-- COPYRIGHT
40
- |-- README.mkd
41
- |-- Rakefile
42
- |-- bin
43
- | `-- foo
44
- |-- foo.gemspec
45
- |-- lib
46
- | |-- foo
47
- | `-- foo.rb
48
- `-- test
49
- |-- fixtures
50
- |-- foo_test.rb
51
- `-- helper.rb
31
+ prign new ruby:gem foo
32
+
33
+ foo
34
+ |-- CHANGELOG
35
+ |-- COPYRIGHT
36
+ |-- README.mkd
37
+ |-- Rakefile
38
+ |-- bin
39
+ | `-- foo
40
+ |-- foo.gemspec
41
+ |-- lib
42
+ | |-- foo
43
+ | `-- foo.rb
44
+ `-- test
45
+ |-- fixtures
46
+ |-- foo_test.rb
47
+ `-- helper.rb
52
48
 
53
49
  This command will generate 'foo' Gem project structure. Or, you maybe create a
54
50
  Ruby script or a UNIX-like program.
55
51
 
56
- prign new bash:script bar
52
+ prign new bash:script bar
57
53
 
58
- bar
59
- |-- bar
60
- `-- barrc
54
+ bar
55
+ |-- bar
56
+ `-- barrc
61
57
 
62
- prign new bash:program ducklet
58
+ prign new bash:program ducklet
63
59
 
64
- ducklet
65
- |-- bin
66
- | `-- ducklet
67
- `-- etc
68
- `-- duckletrc
60
+ ducklet
61
+ |-- bin
62
+ | `-- ducklet
63
+ `-- etc
64
+ `-- duckletrc
69
65
 
70
- Templates
71
- =========
66
+ == Templates
72
67
 
73
68
  Prigner offer the following templates:
74
69
 
@@ -79,12 +74,11 @@ Prigner offer the following templates:
79
74
  directories for fixtures.
80
75
  * Sinatra basic application.
81
76
 
82
- Copyright
83
- =========
77
+ == Copyright
84
78
 
85
- Written by [Hallison Batista](http://hallisonbatista.com/whoiam).
79
+ Written by [Hallison Batista](http://github.com/hallison).
86
80
 
87
- Prigner is Copyright (C) 2010, [Codigorama](http://codigorama.com/products).
81
+ Prigner is Copyright (C) 2010, [Codigorama](http://codigorama.com).
88
82
 
89
83
  See COPYRIGHT file for more information about license.
90
84