ore 0.10.0 → 0.11.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (97) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +4 -5
  3. data/.gitmodules +54 -0
  4. data/ChangeLog.md +90 -21
  5. data/Gemfile +12 -0
  6. data/LICENSE.txt +1 -1
  7. data/README.md +61 -27
  8. data/Rakefile +23 -24
  9. data/data/ore/abbreviations.txt +47 -0
  10. data/data/ore/common_namespaces.yml +13 -0
  11. data/data/ore/templates/apache/LICENSE.txt +202 -0
  12. data/data/ore/templates/apache/NOTICE.txt.erb +5 -0
  13. data/data/ore/templates/apache/lib/[namespace_path]/_copyright.erb +18 -0
  14. data/data/ore/templates/apache/template.yml +3 -0
  15. data/data/ore/templates/bsd/LICENSE.txt.erb +23 -0
  16. data/data/ore/templates/bsd/template.yml +6 -0
  17. data/data/ore/templates/bundler/Gemfile.erb +1 -1
  18. data/data/ore/templates/bundler/_tasks.erb +3 -0
  19. data/data/ore/templates/bundler/template.yml +5 -4
  20. data/data/ore/templates/code_climate/_badges.erb +1 -0
  21. data/data/ore/templates/code_climate/template.yml +2 -0
  22. data/data/ore/templates/{base → gem}/ChangeLog.md.erb +0 -0
  23. data/data/ore/templates/{base → gem}/ChangeLog.rdoc.erb +0 -0
  24. data/data/ore/templates/{base → gem}/ChangeLog.tt.erb +0 -0
  25. data/data/ore/templates/{base → gem}/README.md.erb +10 -4
  26. data/data/ore/templates/{base → gem}/README.rdoc.erb +12 -2
  27. data/data/ore/templates/{base → gem}/README.tt.erb +10 -4
  28. data/data/ore/templates/gem/Rakefile.erb +15 -0
  29. data/data/ore/templates/{gemspec → gem}/[name].gemspec.erb +21 -1
  30. data/data/ore/templates/{base → gem}/lib/[namespace_path].rb.erb +0 -0
  31. data/data/ore/templates/{base → gem}/lib/[namespace_path]/version.rb.erb +4 -0
  32. data/data/ore/templates/gem/template.yml +5 -0
  33. data/data/ore/templates/gem_package_task/template.yml +3 -0
  34. data/data/ore/templates/gemspec_yml/[name].gemspec.erb +1 -1
  35. data/data/ore/templates/gpl/COPYING.txt +674 -0
  36. data/data/ore/templates/gpl/lib/[namespace_path]/_copyright.erb +20 -0
  37. data/data/ore/templates/gpl/template.yml +7 -0
  38. data/data/ore/templates/lgpl/COPYING.txt +165 -0
  39. data/data/ore/templates/lgpl/lib/[namespace_path]/_copyright.erb +20 -0
  40. data/data/ore/templates/lgpl/template.yml +6 -0
  41. data/data/ore/templates/minitest/_tasks.erb +7 -0
  42. data/data/ore/templates/minitest/template.yml +6 -0
  43. data/data/ore/templates/minitest/test/helper.rb.erb +11 -0
  44. data/data/ore/templates/{mini_test → minitest}/test/test_[name].rb.erb +1 -1
  45. data/data/ore/templates/{base → mit}/LICENSE.txt.erb +0 -0
  46. data/data/ore/templates/mit/template.yml +8 -0
  47. data/data/ore/templates/rdoc/.document.erb +6 -0
  48. data/data/ore/templates/rdoc/.rdoc_options.erb +16 -0
  49. data/data/ore/templates/rdoc/_tasks.erb +5 -9
  50. data/data/ore/templates/rdoc/template.yml +2 -5
  51. data/data/ore/templates/rspec/_tasks.erb +1 -2
  52. data/data/ore/templates/rspec/spec/[namespace_dir]_spec.rb.erb +1 -1
  53. data/data/ore/templates/rspec/spec/spec_helper.rb.erb +0 -3
  54. data/data/ore/templates/rspec/template.yml +2 -2
  55. data/data/ore/templates/rubygems_tasks/_tasks.erb +0 -1
  56. data/data/ore/templates/rubygems_tasks/template.yml +3 -0
  57. data/data/ore/templates/test_unit/template.yml +1 -1
  58. data/data/ore/templates/test_unit/test/helper.rb.erb +3 -13
  59. data/data/ore/templates/travis/.travis.yml +6 -0
  60. data/data/ore/templates/travis/_badges.erb +1 -0
  61. data/data/ore/templates/yard/.document.erb +3 -1
  62. data/data/ore/templates/yard/_tasks.erb +2 -3
  63. data/data/ore/templates/yard/template.yml +2 -1
  64. data/gemspec.yml +6 -7
  65. data/lib/ore/actions.rb +1 -1
  66. data/lib/ore/cli.rb +1 -0
  67. data/lib/ore/config.rb +33 -41
  68. data/lib/ore/generator.rb +104 -66
  69. data/lib/ore/naming.rb +12 -19
  70. data/lib/ore/options.rb +71 -40
  71. data/lib/ore/template/directory.rb +3 -9
  72. data/lib/ore/template/helpers.rb +26 -2
  73. data/lib/ore/template/helpers/markdown.rb +96 -0
  74. data/lib/ore/template/helpers/rdoc.rb +96 -0
  75. data/lib/ore/template/helpers/textile.rb +106 -0
  76. data/lib/ore/template/markup.rb +19 -0
  77. data/lib/ore/version.rb +1 -1
  78. data/ore.gemspec +11 -0
  79. data/spec/gemspec_examples.rb +8 -8
  80. data/spec/generator_spec.rb +231 -181
  81. data/spec/helpers/generator.rb +5 -1
  82. data/spec/naming_spec.rb +11 -11
  83. data/spec/spec_helper.rb +0 -1
  84. data/spec/template/helpers/markdown_spec.rb +84 -0
  85. data/spec/template/helpers/rdoc_spec.rb +84 -0
  86. data/spec/template/helpers/textile_spec.rb +92 -0
  87. metadata +84 -85
  88. data/.gemtest +0 -0
  89. data/data/ore/templates/base/Rakefile.erb +0 -25
  90. data/data/ore/templates/base/template.yml +0 -2
  91. data/data/ore/templates/bundler_tasks/_tasks.erb +0 -1
  92. data/data/ore/templates/bundler_tasks/template.yml +0 -6
  93. data/data/ore/templates/gemspec/template.yml +0 -2
  94. data/data/ore/templates/gemspec_yml/template.yml +0 -2
  95. data/data/ore/templates/mini_test/template.yml +0 -3
  96. data/data/ore/templates/mini_test/test/helper.rb.erb +0 -26
  97. data/data/ore/templates/rdoc/.document +0 -4
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: cc64af8a211bfb4472bc2118bd8e5b70f81c3158
4
+ data.tar.gz: 905f33765d82730a0aa100f3775373d356618e53
5
+ SHA512:
6
+ metadata.gz: 0f8c8fcd4da0ffa15084a66495f9107a751d2505e334a46a15fc8d254ee0f1e88b3ee49b696d54ba619ea55b56f783d220b4b4c900e1c1f8f88834d3205628ed
7
+ data.tar.gz: 9c77221e1a1db7d5b33e3781df1fb0644de3c05336fcc46ed303270330227a71f75d56047ec3dd89fdcff742e061f0d5c35a20165fc303e76897c02ce0e18033
data/.gitignore CHANGED
@@ -1,10 +1,9 @@
1
- pkg
2
- doc
3
- web
4
- tmp
1
+ /pkg
2
+ /doc
5
3
  .DS_Store
6
4
  .bundle
7
- .yardoc
5
+ /.yardoc
8
6
  *.gem
9
7
  *.swp
10
8
  *~
9
+ Gemfile.lock
@@ -0,0 +1,54 @@
1
+ [submodule "data/ore/templates/gemspec_yml"]
2
+ path = data/ore/templates/gemspec_yml
3
+ url = https://github.com/ruby-ore/gemspec_yml.git
4
+ [submodule "data/ore/templates/bundler"]
5
+ path = data/ore/templates/bundler
6
+ url = https://github.com/ruby-ore/bundler.git
7
+ [submodule "data/ore/templates/rspec"]
8
+ path = data/ore/templates/rspec
9
+ url = https://github.com/ruby-ore/rspec.git
10
+ [submodule "data/ore/templates/minitest"]
11
+ path = data/ore/templates/minitest
12
+ url = https://github.com/ruby-ore/minitest.git
13
+ [submodule "data/ore/templates/yard"]
14
+ path = data/ore/templates/yard
15
+ url = https://github.com/ruby-ore/yard.git
16
+ [submodule "data/ore/templates/rdoc"]
17
+ path = data/ore/templates/rdoc
18
+ url = https://github.com/ruby-ore/rdoc.git
19
+ [submodule "data/ore/templates/rubygems_tasks"]
20
+ path = data/ore/templates/rubygems_tasks
21
+ url = https://github.com/ruby-ore/rubygems_tasks.git
22
+ [submodule "data/ore/templates/test_unit"]
23
+ path = data/ore/templates/test_unit
24
+ url = https://github.com/ruby-ore/test_unit.git
25
+ [submodule "data/ore/templates/travis"]
26
+ path = data/ore/templates/travis
27
+ url = https://github.com/ruby-ore/travis.git
28
+ [submodule "data/ore/templates/bsd"]
29
+ path = data/ore/templates/bsd
30
+ url = https://github.com/ruby-ore/bsd.git
31
+ [submodule "data/ore/templates/gpl"]
32
+ path = data/ore/templates/gpl
33
+ url = https://github.com/ruby-ore/gpl.git
34
+ [submodule "data/ore/templates/lgpl"]
35
+ path = data/ore/templates/lgpl
36
+ url = https://github.com/ruby-ore/lgpl.git
37
+ [submodule "data/ore/templates/hg"]
38
+ path = data/ore/templates/hg
39
+ url = https://github.com/ruby-ore/hg.git
40
+ [submodule "data/ore/templates/git"]
41
+ path = data/ore/templates/git
42
+ url = https://github.com/ruby-ore/git.git
43
+ [submodule "data/ore/templates/apache"]
44
+ path = data/ore/templates/apache
45
+ url = https://github.com/ruby-ore/apache.git
46
+ [submodule "data/ore/templates/gem_package_task"]
47
+ path = data/ore/templates/gem_package_task
48
+ url = https://github.com/ruby-ore/gem_package_task.git
49
+ [submodule "data/ore/templates/mit"]
50
+ path = data/ore/templates/mit
51
+ url = https://github.com/ruby-ore/mit.git
52
+ [submodule "data/ore/templates/code_climate"]
53
+ path = data/ore/templates/code_climate
54
+ url = https://github.com/ruby-ore/code_climate.git
@@ -1,3 +1,66 @@
1
+ ### 0.11.0 / 2015-08-25
2
+
3
+ * Added {Ore::Template::Helpers::Markdown}.
4
+ * Added {Ore::Template::Helpers::Textile}.
5
+ * Added {Ore::Template::Helpers::RDoc}.
6
+ * Merged `Ore::Options` into {Ore::Generator}.
7
+ * Moved SCM initialization code into {Ore::Generator#initialize_scm!}.
8
+ * Moved data out of {Ore::Naming} and into `data/ore/` files.
9
+
10
+ #### CLI
11
+
12
+ * Added the `--namespace` option for overriding the gem namespace.
13
+ * Added `--author`.
14
+ * Added `--markup`.
15
+ * Default `--markup` to `markdown`.
16
+ * Enable `--bundler` by default.
17
+ * Alias `--homepage` to `--website`.
18
+ * Removed `--license` in favor of `[--mit | --bsd | --apache | --lgpl | --gpl]`.
19
+ * Removed `--bundler-tasks` in favor of `--bundler --no-rubygems-tasks`.
20
+
21
+ #### Templates
22
+
23
+ * Moved all templates out into git submodules.
24
+ * Added templates for [MIT][mit], [BSD][bsd], [GPLv3][gpl], [LGPLv3][lgpl] and
25
+ [Apache 2.0][apache] licenses.
26
+ * Added a [Travis][travis] template.
27
+ * Added a [CodeClimate][code_climate] template.
28
+
29
+ ##### bundler
30
+
31
+ * Require bundler ~> 1.10.
32
+ * Require rake ~> 10.0.
33
+ * Use `https://rubygems.org/` as the `Gemfile` source.
34
+ * Add `.bundle` to any SCM ignore files.
35
+ * Merged in the [bundler_tasks] template.
36
+
37
+ ##### gem
38
+
39
+ * Renamed `base` to `gem`.
40
+ * Merged in the [gemspec] template.
41
+ * Simply require `bundler/setup` to activate bundler.
42
+ * If a rake task gem cannot be loaded, define a dummy task that prints the error
43
+ message.
44
+ * Added support for listing files from git submodules.
45
+
46
+ ##### gemspec_yml
47
+
48
+ * Added support for automatically listing files from git submodules.
49
+
50
+ ##### minitest
51
+
52
+ * Updated to Minitest 5 (@elskwid).
53
+
54
+ ##### rdoc
55
+
56
+ * Require rdoc ~> 4.0.
57
+ * Generate a `.rdoc_options` file.
58
+ * Allow markdown or textile markup with rdoc.
59
+
60
+ ##### yard
61
+
62
+ * Add `.yardoc` to any SCM ignore files.
63
+
1
64
  ### 0.10.0 / 2012-10-14
2
65
 
3
66
  * Require thor ~> 0.15.
@@ -73,7 +136,7 @@
73
136
  * Removed the env dependency.
74
137
  * Switched from ore-tasks to rubygems-tasks ~> 0.2.
75
138
  * Added {Ore::Naming} from `ore-core`.
76
- * Added {Ore::Options}.
139
+ * Added `Ore::Options`.
77
140
  * Added {Ore::Actions}.
78
141
  * Added {Ore::Template::Helpers#rubygems_tasks?}.
79
142
  * Added {Ore::Template::Helpers#bundler_tasks?}.
@@ -82,8 +145,8 @@
82
145
  * Added {Ore::Template::Directory#dependencies}.
83
146
  * Added {Ore::Template::Directory#development_dependencies}.
84
147
  * Renamed `Ore::Config.default_options` to {Ore::Config.options}.
85
- * Renamed `Ore::Generator.defaults` to {Ore::Options.defaults}.
86
- * Renamed `Ore::Generator.generator_option` to {Ore::Options::ClassMethods}.
148
+ * Renamed `Ore::Generator.defaults` to `Ore::Options.defaults`.
149
+ * Renamed `Ore::Generator.generator_option` to `Ore::Options::ClassMethods`.
87
150
  * Renamed `Ore::Generator.templates` to {Ore::Template.templates}.
88
151
  * Renamed `Ore::Generator.template?` to {Ore::Template.template?}.
89
152
  * Renamed `Ore::Generator.register_template` to {Ore::Template.register}.
@@ -98,7 +161,7 @@
98
161
  * Added the [rubygems_tasks] template.
99
162
  * Removed the `ore_tasks` template.
100
163
  * Define dependencies in the `template.yml` files.
101
- * Simplified the `[name].gemspec` file in the [base] template.
164
+ * Simplified the `[name].gemspec` file in the [gem] template.
102
165
  * Moved the `.gitignore` file into the [git] template.
103
166
  * If [git] is enabled and `github.user` is set in `~/.gitconfig`, default
104
167
  the `@homepage` variable to a `https://github.com/` URL.
@@ -220,7 +283,7 @@
220
283
  is used.
221
284
  * Use `platforms :jruby` and `platforms :ruby` to separate JRuby and
222
285
  non-JRuby dependencies when generating the `Gemfile`.
223
- * Fixed the link syntax in the TexTile README template.
286
+ * Fixed the link syntax in the Textile README template.
224
287
 
225
288
  ### 0.4.0 / 2010-11-24
226
289
 
@@ -348,21 +411,27 @@
348
411
  * Added {Ore::Template::Helpers}.
349
412
  * Added {Ore::Generator}.
350
413
 
351
- [base]: https://github.com/ruby-ore/ore/tree/master/data/ore/templates/base
414
+ [gem]: https://github.com/ruby-ore/ore/tree/master/data/ore/templates/gem
415
+ [apache]: https://github.com/ruby-ore/apache
352
416
  [bin]: https://github.com/ruby-ore/ore/tree/master/data/ore/templates/bin
353
- [bundler]: https://github.com/ruby-ore/ore/tree/master/data/ore/templates/bundler
354
- [bundler_tasks]: https://github.com/ruby-ore/ore/tree/master/data/ore/templates/bundler_tasks
355
- [gemspec]: https://github.com/ruby-ore/ore/tree/master/data/ore/templates/gemspec
356
- [gemspec_yml]: https://github.com/ruby-ore/ore/tree/master/data/ore/templates/gemspec_yml
357
- [gem\_package\_task]: https://github.com/ruby-ore/ore/tree/master/data/ore/templates/gem_package_task
358
- [git]: https://github.com/ruby-ore/ore/tree/master/data/ore/templates/git
359
- [hg]: https://github.com/ruby-ore/ore/tree/master/data/ore/templates/hg
360
- [rdoc]: https://github.com/ruby-ore/ore/tree/master/data/ore/templates/rdoc
361
- [rspec]: https://github.com/ruby-ore/ore/tree/master/data/ore/templates/rspec
362
- [rubygems_tasks]: https://github.com/ruby-ore/ore/tree/master/data/ore/templates/rubygems_tasks
363
- [test_unit]: https://github.com/ruby-ore/ore/tree/master/data/ore/templates/test_unit
364
- [mini_test]: https://github.com/ruby-ore/ore/tree/master/data/ore/templates/mini_test
365
- [yard]: https://github.com/ruby-ore/ore/tree/master/data/ore/templates/yard
366
-
367
- [rvm]: https://github.com/ruby-ore/rvm
417
+ [bsd]: https://github.com/ruby-ore/bsd
418
+ [bundler]: https://github.com/ruby-ore/bundler
419
+ [bundler_tasks]: https://github.com/ruby-ore/bundler/blob/master/_tasks.erb
420
+ [code_climate]: https://github.com/ruby-ore/code_climate
421
+ [gemspec]: https://github.com/ruby-ore/ore/blob/master/data/ore/templates/gem/%5Bname%5D.gemspec.erb
422
+ [gemspec_yml]: https://github.com/ruby-ore/gemspec_yml
423
+ [gem\_package\_task]: https://github.com/ruby-ore/gem_package_task
424
+ [git]: https://github.com/ruby-ore/git
425
+ [gpl]: https://github.com/ruby-ore/gpl
426
+ [hg]: https://github.com/ruby-ore/hg
368
427
  [jeweler_tasks]: https://github.com/ruby-ore/jeweler_tasks
428
+ [lgpl]: https://github.com/ruby-ore/lgpl
429
+ [mit]: https://github.com/ruby-ore/mit
430
+ [rdoc]: https://github.com/ruby-ore/rdoc
431
+ [rspec]: https://github.com/ruby-ore/rspec
432
+ [rubygems_tasks]: https://github.com/ruby-ore/rubygems_tasks
433
+ [rvm]: https://github.com/ruby-ore/rvm
434
+ [test_unit]: https://github.com/ruby-ore/test_unit
435
+ [travis]: https://github.com/ruby-ore/travis
436
+ [mini_test]: https://github.com/ruby-ore/mini_test
437
+ [yard]: https://github.com/ruby-ore/yard
data/Gemfile ADDED
@@ -0,0 +1,12 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gemspec
4
+
5
+ group :development do
6
+ gem 'rake', '~> 10.0'
7
+ gem 'rubygems-tasks', '~> 0.2'
8
+ gem 'rspec', '~> 3.0'
9
+
10
+ gem 'kramdown'
11
+ gem 'yard', '~> 0.8'
12
+ end
@@ -1,4 +1,4 @@
1
- Copyright (c) 2010-2012 Hal Brodigan
1
+ Copyright (c) 2010-2015 Hal Brodigan
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
data/README.md CHANGED
@@ -7,56 +7,85 @@
7
7
 
8
8
  ## Description
9
9
 
10
- Ore is a flexible Ruby project generator. Unlike other Ruby project
11
- generators, Ore provides many builtin templates and allows custom
12
- templates to be installed from Git repositories.
10
+ Ore is a fully configurable and customisable Ruby gem generator. With Ore, you
11
+ spend less time editing files and more time writing code.
13
12
 
14
13
  ## Features
15
14
 
16
15
  ### SCMs
17
16
 
18
- Ore supports generating [Git][git], [Mercurial][hg] and [SubVersion][svn]
19
- enabled projects.
17
+ Ore supports generating [Git][git] (default), [Mercurial][hg] and using
18
+ [SubVersion][svn] repositories:
20
19
 
21
20
  $ mine my-project [--git | --hg]
22
21
 
23
- ### Gemspec
22
+ ### Licenses
24
23
 
25
- Ore generates a pure-Ruby gemspec by default. Ore can also generate a
26
- [gemspec.yml] file.
24
+ Ore supports generating MIT (default), BSD, Apache 2.0, GPLv3 or LGPLv3
25
+ licenses:
27
26
 
28
- ### Tasks
27
+ $ mine my-project [--mit | --bsd | --apache | --gpl | --lgpl]
29
28
 
30
- Ore supports generating projects using [Gem::Tasks][rubygems_tasks],
31
- [Bundler::GemHelper][bundler] and even [Gem::PackageTask][gem_package_task].
29
+ ### Testing
32
30
 
33
- $ mine my-project [--rubygems-tasks | --bundler-tasks | --gem-package-task]
31
+ Ore supports generating [RSpec][rspec] (default), [Minitest][minitest] or
32
+ [Test::Unit][test_unit] tests:
34
33
 
35
- ### Bundler
34
+ $ mine my-project [--test-unit | --minitest | --rspec]
36
35
 
37
- Ore can also generate a [Bundler][bundler] project.
36
+ ### TravisCI
38
37
 
39
- $ mine my-project --bundler
38
+ Ore also supports generating a [`.travis.yml`][travis.yml] file and README
39
+ badge:
40
40
 
41
- ### Markup
41
+ $ mine my-project --travis
42
42
 
43
- Ore supports [RDoc][rdoc], [Markdown][markdown] and [Textile][textile] markup.
43
+ ### Code Climate
44
44
 
45
- $ mine my-project [--rdoc | --markdown | --textile]
45
+ Ore also supports adds Code Climate GPA badges:
46
+
47
+ $ mine my-project --code-climate
46
48
 
47
49
  ### Documentation
48
50
 
49
- Ore supports generating projects with [RDoc][rdoc] or [YARD][yard]
50
- documentation.
51
+ Ore supports generating projects with [RDoc][rdoc] (default) or [YARD][yard]
52
+ documentation:
51
53
 
52
54
  $ mine my-project [--rdoc | --yard]
53
55
 
54
- ### Testing
56
+ Ore also supports [Markdown][markdown] (default), [Textile][textile] and
57
+ [RDoc][rdoc] markups:
58
+
59
+ $ mine my-project --yard [--rdoc | --markdown | --textile]
60
+
61
+ ### Bundler
62
+
63
+ Ore supports [Bundler][bundler] by default. If you do not need bundler, you may
64
+ disable it:
65
+
66
+ $ mine my-project --no-bundler
55
67
 
56
- Ore supports generating [RSpec][rspec], [MiniTest][mini_test] or
57
- [Test::Unit][test_unit] tests.
68
+ ### Gem Tasks
58
69
 
59
- $ mine my-project [--test-unit | --mini-test | --rspec]
70
+ Ore supports generating `Rakefile`s using [rubygems/tasks][rubygems_tasks]
71
+ (default), [bundler/gem_tasks][bundler] or even
72
+ [Gem::PackageTask][gem_package_task]:
73
+
74
+ $ mine my-project [--rubygems-tasks | --bundler-tasks | --gem-package-task]
75
+
76
+ ### Gemspecs
77
+
78
+ Ore generates a minimal pure-Ruby gemspec by default:
79
+
80
+ $ mine my-project
81
+
82
+ Ore also supports generating a [gemspec.yml] file:
83
+
84
+ $ mine my-project --gemspec-yml
85
+
86
+ Gemspec files support listing files from Git, Hg and SubVersion. If the project
87
+ uses Git submodules, the gemspecs will automatically include files from the
88
+ submodules.
60
89
 
61
90
  ### Custom Templates
62
91
 
@@ -67,7 +96,8 @@ Additional templates can also be installed from Git:
67
96
 
68
97
  ## Requirements
69
98
 
70
- * [thor](https://github.com/wycats/thor#readme) ~> 0.15
99
+ * [ruby] >= 1.9.1
100
+ * [thor] ~> 0.15
71
101
 
72
102
  ## Install
73
103
 
@@ -117,7 +147,7 @@ Add default generator options to `~/.ore/options.yml`:
117
147
 
118
148
  ## License
119
149
 
120
- Copyright (c) 2010-2012 Hal Brodigan
150
+ Copyright (c) 2010-2015 Hal Brodigan
121
151
 
122
152
  See {file:LICENSE.txt} for license information.
123
153
 
@@ -134,4 +164,8 @@ See {file:LICENSE.txt} for license information.
134
164
  [yard]: http://yardoc.org/
135
165
  [rspec]: http://rspec.info/
136
166
  [test_unit]: http://test-unit.rubyforge.org/
137
- [mini_test]: https://github.com/seattlerb/minitest#readme
167
+ [minitest]: https://github.com/seattlerb/minitest#readme
168
+ [travis.yml]: http://docs.travis-ci.com/user/languages/ruby/
169
+
170
+ [ruby]: https://www.ruby-lang.org/
171
+ [thor]: https://github.com/wycats/thor#readme
data/Rakefile CHANGED
@@ -1,36 +1,35 @@
1
1
  require 'rubygems'
2
- require 'rake'
3
2
 
4
3
  begin
5
- gem 'rubygems-tasks', '~> 0.2'
6
- require 'rubygems/tasks'
7
-
8
- Gem::Tasks.new
4
+ require 'bundler/setup'
9
5
  rescue LoadError => e
10
- warn e.message
11
- warn "Run `gem install rubygems-tasks` to install 'rubygems/tasks'."
6
+ abort e.message
12
7
  end
13
8
 
14
- begin
15
- gem 'rspec', '~> 2.4'
16
- require 'rspec/core/rake_task'
9
+ require 'rake'
10
+
11
+ require 'rubygems/tasks'
12
+ Gem::Tasks.new
13
+
14
+ require 'rspec/core/rake_task'
15
+ RSpec::Core::RakeTask.new
17
16
 
18
- RSpec::Core::RakeTask.new
19
- rescue LoadError
20
- task :spec do
21
- abort "Please run `gem install rspec` to install RSpec."
22
- end
23
- end
24
17
  task :test => :spec
25
18
  task :default => :spec
26
19
 
27
- begin
28
- gem 'yard', '~> 0.8'
29
- require 'yard'
30
-
31
- YARD::Rake::YardocTask.new
32
- rescue LoadError
33
- task :yard do
34
- abort "Please run `gem install yard` to install YARD."
20
+ require 'yard'
21
+ YARD::Rake::YardocTask.new
22
+
23
+ namespace :update do
24
+ Dir['data/ore/templates/*'].each do |template|
25
+ name = File.basename(template)
26
+
27
+ if File.exist?(File.join(template,'.git'))
28
+ desc "Updates the #{name} template"
29
+ task name do
30
+ Dir.chdir(template) { sh 'git pull' }
31
+ sh 'git', 'commit', template
32
+ end
33
+ end
35
34
  end
36
35
  end
@@ -0,0 +1,47 @@
1
+ ASM
2
+ ARM
3
+ BGP
4
+ BSD
5
+ CPP
6
+ CSS
7
+ CSV
8
+ DKIM
9
+ DHCP
10
+ DMARC
11
+ DNS
12
+ FTP
13
+ HTML
14
+ HTTP
15
+ HTTPS
16
+ I18N
17
+ IMAP
18
+ IGMP
19
+ IP
20
+ IPv4
21
+ IPv6
22
+ JSON
23
+ MIME
24
+ MIPS
25
+ POP3
26
+ POSIX
27
+ RPC
28
+ RFID
29
+ SMIME
30
+ SMTP
31
+ SNMP
32
+ SPF
33
+ SSH
34
+ SSL
35
+ TCP
36
+ TLS
37
+ UDP
38
+ UNIX
39
+ UPnP
40
+ URI
41
+ URL
42
+ WWW
43
+ X86
44
+ XHTML
45
+ XML
46
+ XSL
47
+ YAML