new 0.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +7 -0
  3. data/.rspec +2 -0
  4. data/Gemfile +16 -0
  5. data/Gemfile.lock +79 -0
  6. data/Guardfile +14 -0
  7. data/LICENSE.txt +22 -0
  8. data/README.md +121 -0
  9. data/bin/new +6 -0
  10. data/lib/new/cli.rb +94 -0
  11. data/lib/new/core.rb +6 -0
  12. data/lib/new/dsl.rb +42 -0
  13. data/lib/new/interpolate.rb +100 -0
  14. data/lib/new/project.rb +34 -0
  15. data/lib/new/task.rb +41 -0
  16. data/lib/new/template.rb +64 -0
  17. data/lib/new/version.rb +41 -0
  18. data/lib/new.rb +72 -0
  19. data/spec/fixtures/custom/tasks/custom_bar_task/custom_bar_task.rb +3 -0
  20. data/spec/fixtures/custom/templates/custom_bar_template/custom_bar.txt +0 -0
  21. data/spec/fixtures/tasks/custom_bar_task/custom_bar_task.rb +1 -0
  22. data/spec/fixtures/tasks/foo_task/foo_task.rb +7 -0
  23. data/spec/fixtures/templates/foo_template/[FOO.BAR].txt.erb +1 -0
  24. data/spec/fixtures/templates/foo_template/nested_[FOO.BAR]/foo.txt.erb +1 -0
  25. data/spec/lib/new/cli_spec.rb +104 -0
  26. data/spec/lib/new/interpolate_spec.rb +41 -0
  27. data/spec/lib/new/project_spec.rb +30 -0
  28. data/spec/lib/new/task_spec.rb +39 -0
  29. data/spec/lib/new/template_spec.rb +59 -0
  30. data/spec/lib/new/version_spec.rb +28 -0
  31. data/spec/lib/new_spec.rb +19 -0
  32. data/spec/spec_helper.rb +26 -0
  33. data/tasks/gem/README.md +36 -0
  34. data/tasks/gem/gem.rb +118 -0
  35. data/templates/js/Gemfile +30 -0
  36. data/templates/js/Guardfile +7 -0
  37. data/templates/js/LICENSE-MIT.erb +22 -0
  38. data/templates/js/README.md.erb +61 -0
  39. data/templates/js/demo/index.html.erb +7 -0
  40. data/templates/js/lib/README.md +2 -0
  41. data/templates/js/spec/[PROJECT_NAME].spec.js.coffee.erb +1 -0
  42. data/templates/js/spec/index.html.erb +29 -0
  43. data/templates/js/spec/spec_helper.js.coffee +0 -0
  44. data/templates/js/spec/vendor/chai.js +3765 -0
  45. data/templates/js/spec/vendor/sinon-chai.js +106 -0
  46. data/templates/js/spec/vendor/sinon.js +4246 -0
  47. data/templates/js/src/README.md +3 -0
  48. data/templates/js/src/[PROJECT_NAME].js.coffee.erb +10 -0
  49. data/templates/js/testem.yml +12 -0
  50. metadata +102 -0
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2013 <%= developer.name %> <%= project_name %>
2
+
3
+ Permission is hereby granted, free of charge, to any person
4
+ obtaining a copy of this software and associated documentation
5
+ files (the "Software"), to deal in the Software without
6
+ restriction, including without limitation the rights to use,
7
+ copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ copies of the Software, and to permit persons to whom the
9
+ Software is furnished to do so, subject to the following
10
+ conditions:
11
+
12
+ The above copyright notice and this permission notice shall be
13
+ included in all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
17
+ OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
18
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
19
+ HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
20
+ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21
+ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
22
+ OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,61 @@
1
+ # <%= project_name %>
2
+
3
+ ## Dependencies
4
+ *
5
+
6
+ _Optional_
7
+
8
+ *
9
+
10
+ ## Usage
11
+
12
+ #### Methods
13
+
14
+ ###### METHOD NAME
15
+ _METHOD DESCRIPTION_
16
+ > _Arguments_
17
+ ```yaml
18
+ argument: Argument description # default:
19
+ ```
20
+
21
+ ---
22
+ > _example_
23
+ ```coffee
24
+ METHOD ARGUMENT
25
+ ```
26
+
27
+ ## Development
28
+
29
+ ### Dependencies
30
+ * Ruby
31
+ * Bundler Gem
32
+ * Node.js
33
+ * npm
34
+ * Testem
35
+ * PhantomJS
36
+
37
+ _Optional_
38
+
39
+ * Growl _\* for <= OS X Lion 10.7_
40
+
41
+ ### Compiling
42
+ `bundle exec guard`
43
+
44
+ Do **NOT** modify any `.js` files! Modify the coffee files in the `src` directory. Guard will watch for changes and compile them to the `lib` directory.
45
+
46
+ ### Testing
47
+ Run `testem`
48
+
49
+ _- or -_
50
+
51
+ Run `testem -g` if running OS X Lion or below for Growl support
52
+
53
+ ## To-Do
54
+ *
55
+
56
+ ## Contributing
57
+ 1. Fork it ( http://github.com/<%= tasks.github.username %>/<%= project_name %>/fork )
58
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
59
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
60
+ 4. Push to the branch (`git push origin my-new-feature`)
61
+ 5. Create new Pull Request
@@ -0,0 +1,7 @@
1
+ <html>
2
+ <head>
3
+ <script src="../lib/<%= project_name %>.js"></script>
4
+ </head>
5
+ <body>
6
+ </body>
7
+ </html>
@@ -0,0 +1,2 @@
1
+ # DO NOT MODIFY!
2
+ #### Any modifications to the javascripts should be made on the CoffeeScript source files under `src` and compiled to generate these `.js` files.
@@ -0,0 +1 @@
1
+ describe '<%= project_name %>', ->
@@ -0,0 +1,29 @@
1
+ <html>
2
+ <head>
3
+ <link rel="stylesheet" href="/testem/mocha.css">
4
+ <script src="/testem/mocha.js"></script>
5
+ <script src="/testem.js"></script>
6
+ <script src="/spec/vendor/chai.js"></script>
7
+ <script src="/spec/vendor/sinon.js"></script>
8
+ <script src="/spec/vendor/sinon-chai.js"></script>
9
+ <script>
10
+ mocha.setup('bdd');
11
+ mocha.setup({ignoreLeaks: true});
12
+ window.expect = chai.expect;
13
+ </script>
14
+
15
+ <!-- Scripts -->
16
+ <script src="/lib/<%= project_name %>.js"></script>
17
+
18
+ <!-- Specs -->
19
+ <script src="/.tmp/spec_helper.js"></script>
20
+ <script src="/.tmp/<%= project_name %>.spec.js"></script>
21
+
22
+ </head>
23
+ <body>
24
+ <div id='mocha'></div>
25
+ <script>
26
+ mocha.run();
27
+ </script>
28
+ </body>
29
+ </html>
File without changes