gemaker 0.1.3 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (63) hide show
  1. checksums.yaml +4 -4
  2. data/.rspec +2 -0
  3. data/.ruby-version +1 -0
  4. data/.travis.yml +13 -0
  5. data/CHANGELOG.md +11 -0
  6. data/Gemfile +1 -1
  7. data/LICENSE.txt +1 -1
  8. data/README.md +35 -1
  9. data/bin/console +14 -0
  10. data/bin/setup +8 -0
  11. data/exe/gemaker +9 -0
  12. data/gemaker.gemspec +23 -10
  13. data/lib/gemaker.rb +22 -1
  14. data/lib/gemaker/cli.rb +61 -0
  15. data/lib/gemaker/commands/add_changelog.rb +10 -0
  16. data/lib/gemaker/commands/add_cli_structure.rb +12 -0
  17. data/lib/gemaker/commands/add_hound_rules.rb +12 -0
  18. data/lib/gemaker/commands/add_install_generator.rb +16 -0
  19. data/lib/gemaker/commands/add_license.rb +11 -0
  20. data/lib/gemaker/commands/add_readme.rb +16 -0
  21. data/lib/gemaker/commands/add_ruby_version.rb +10 -0
  22. data/lib/gemaker/commands/base.rb +24 -0
  23. data/lib/gemaker/commands/configure_git.rb +13 -0
  24. data/lib/gemaker/commands/configure_test_env.rb +27 -0
  25. data/lib/gemaker/commands/create_gem.rb +36 -0
  26. data/lib/gemaker/commands/customize_engine.rb +13 -0
  27. data/lib/gemaker/commands/customize_gemspec.rb +20 -0
  28. data/lib/gemaker/commands/customize_main_lib_file.rb +10 -0
  29. data/lib/gemaker/commands/customize_rakefile.rb +20 -0
  30. data/lib/gemaker/config.rb +66 -0
  31. data/lib/gemaker/templates/CHANGELOG.md +7 -0
  32. data/lib/gemaker/templates/LICENSE.txt.erb +21 -0
  33. data/lib/gemaker/templates/cli.rb.erb +19 -0
  34. data/lib/gemaker/templates/engine/Guardfile +15 -0
  35. data/lib/gemaker/templates/engine/README.md.erb +55 -0
  36. data/lib/gemaker/templates/engine/Rakefile +10 -0
  37. data/lib/gemaker/templates/engine/engine.rb.erb +15 -0
  38. data/lib/gemaker/templates/engine/example_class.rb.erb +7 -0
  39. data/lib/gemaker/templates/engine/gemspec.erb +29 -0
  40. data/lib/gemaker/templates/engine/initializer.rb.erb +2 -0
  41. data/lib/gemaker/templates/engine/install_generator.rb.erb +21 -0
  42. data/lib/gemaker/templates/engine/install_usage.erb +5 -0
  43. data/lib/gemaker/templates/engine/lib_main_file.rb.erb +25 -0
  44. data/lib/gemaker/templates/engine/rails_helper.rb.erb +28 -0
  45. data/lib/gemaker/templates/engine/rspec +3 -0
  46. data/lib/gemaker/templates/engine/spec_helper.rb.erb +9 -0
  47. data/lib/gemaker/templates/engine/test_example.rb.erb +16 -0
  48. data/lib/gemaker/templates/exe.erb +9 -0
  49. data/lib/gemaker/templates/image.png +0 -0
  50. data/lib/gemaker/templates/normal/Guardfile +5 -0
  51. data/lib/gemaker/templates/normal/README.md.erb +53 -0
  52. data/lib/gemaker/templates/normal/Rakefile +1 -0
  53. data/lib/gemaker/templates/normal/gemspec.erb +29 -0
  54. data/lib/gemaker/templates/normal/spec_helper.rb.erb +13 -0
  55. data/lib/gemaker/templates/normal/test_example.rb.erb +15 -0
  56. data/lib/gemaker/templates/ruby-version.erb +1 -0
  57. data/lib/gemaker/templates/test_helpers.rb +5 -0
  58. data/lib/gemaker/templates/video.mp4 +0 -0
  59. data/lib/gemaker/util.rb +77 -0
  60. data/lib/gemaker/version.rb +2 -2
  61. metadata +183 -18
  62. data/CODE_OF_CONDUCT.md +0 -49
  63. data/Guardfile +0 -46
@@ -1,49 +0,0 @@
1
- # Contributor Code of Conduct
2
-
3
- As contributors and maintainers of this project, and in the interest of
4
- fostering an open and welcoming community, we pledge to respect all people who
5
- contribute through reporting issues, posting feature requests, updating
6
- documentation, submitting pull requests or patches, and other activities.
7
-
8
- We are committed to making participation in this project a harassment-free
9
- experience for everyone, regardless of level of experience, gender, gender
10
- identity and expression, sexual orientation, disability, personal appearance,
11
- body size, race, ethnicity, age, religion, or nationality.
12
-
13
- Examples of unacceptable behavior by participants include:
14
-
15
- * The use of sexualized language or imagery
16
- * Personal attacks
17
- * Trolling or insulting/derogatory comments
18
- * Public or private harassment
19
- * Publishing other's private information, such as physical or electronic
20
- addresses, without explicit permission
21
- * Other unethical or unprofessional conduct
22
-
23
- Project maintainers have the right and responsibility to remove, edit, or
24
- reject comments, commits, code, wiki edits, issues, and other contributions
25
- that are not aligned to this Code of Conduct, or to ban temporarily or
26
- permanently any contributor for other behaviors that they deem inappropriate,
27
- threatening, offensive, or harmful.
28
-
29
- By adopting this Code of Conduct, project maintainers commit themselves to
30
- fairly and consistently applying these principles to every aspect of managing
31
- this project. Project maintainers who do not follow or enforce the Code of
32
- Conduct may be permanently removed from the project team.
33
-
34
- This code of conduct applies both within project spaces and in public spaces
35
- when an individual is representing the project or its community.
36
-
37
- Instances of abusive, harassing, or otherwise unacceptable behavior may be
38
- reported by contacting a project maintainer at iobaixas@gmail.com. All
39
- complaints will be reviewed and investigated and will result in a response that
40
- is deemed necessary and appropriate to the circumstances. Maintainers are
41
- obligated to maintain confidentiality with regard to the reporter of an
42
- incident.
43
-
44
- This Code of Conduct is adapted from the [Contributor Covenant][homepage],
45
- version 1.3.0, available at
46
- [http://contributor-covenant.org/version/1/3/0/][version]
47
-
48
- [homepage]: http://contributor-covenant.org
49
- [version]: http://contributor-covenant.org/version/1/3/0/
data/Guardfile DELETED
@@ -1,46 +0,0 @@
1
- watch(%r{^spec/.+_spec\.rb$})
2
- # A sample Guardfile
3
- # More info at https://github.com/guard/guard#readme
4
-
5
- ## Uncomment and set this to only include directories you want to watch
6
- # directories %w(app lib config test spec feature)
7
-
8
- ## Uncomment to clear the screen before every task
9
- # clearing :on
10
-
11
- ## Make Guard exit when config is changed so it can be restarted
12
- #
13
- ## Note: if you want Guard to automatically start up again, run guard in a
14
- ## shell loop, e.g.:
15
- #
16
- # $ while bundle exec guard; do echo "Restarting Guard..."; done
17
- #
18
- ## Note: if you are using the `directories` clause above and you are not
19
- ## watching the project directory ('.'), the you will want to move the Guardfile
20
- ## to a watched dir and symlink it back, e.g.
21
- #
22
- # $ mkdir config
23
- # $ mv Guardfile config/
24
- # $ ln -s config/Guardfile .
25
- #
26
- # and, you'll have to watch "config/Guardfile" instead of "Guardfile"
27
- #
28
- watch ("Guardfile") do
29
- UI.info "Exiting because Guard must be restarted for changes to take effect"
30
- exit 0
31
- end
32
-
33
- # Note: The cmd option is now required due to the increasing number of ways
34
- # rspec may be run, below are examples of the most common uses.
35
- # * bundler: 'bundle exec rspec'
36
- # * bundler binstubs: 'bin/rspec'
37
- # * spring: 'bin/rspec' (This will use spring if running and you have
38
- # installed the spring binstubs per the docs)
39
- # * zeus: 'zeus rspec' (requires the server to be started separately)
40
- # * 'just' rspec: 'rspec'
41
-
42
- guard :rspec, cmd: 'bundle exec rspec' do
43
- watch(%r{^spec/.+_spec\.rb$})
44
- watch(%r{^lib/elastic/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" }
45
- watch('spec/spec_helper.rb') { "spec" }
46
- end