gemsmith 9.6.0 → 10.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (40) hide show
  1. checksums.yaml +4 -4
  2. checksums.yaml.gz.sig +3 -0
  3. data.tar.gz.sig +0 -0
  4. data/README.md +75 -67
  5. data/lib/gemsmith.rb +2 -1
  6. data/lib/gemsmith/cli.rb +27 -17
  7. data/lib/gemsmith/credentials.rb +6 -3
  8. data/lib/gemsmith/gem/module_formatter.rb +7 -9
  9. data/lib/gemsmith/gem/requirement.rb +4 -2
  10. data/lib/gemsmith/gem/specification.rb +4 -0
  11. data/lib/gemsmith/generators/base.rb +4 -5
  12. data/lib/gemsmith/generators/bundler.rb +1 -1
  13. data/lib/gemsmith/generators/circle_ci.rb +13 -0
  14. data/lib/gemsmith/generators/cli.rb +1 -1
  15. data/lib/gemsmith/generators/gem.rb +1 -0
  16. data/lib/gemsmith/generators/git_cop.rb +13 -0
  17. data/lib/gemsmith/generators/pragma.rb +20 -17
  18. data/lib/gemsmith/generators/rails.rb +3 -8
  19. data/lib/gemsmith/generators/rake.rb +5 -1
  20. data/lib/gemsmith/helpers/cli.rb +7 -4
  21. data/lib/gemsmith/identity.rb +1 -5
  22. data/lib/gemsmith/rake/builder.rb +2 -6
  23. data/lib/gemsmith/rake/publisher.rb +12 -6
  24. data/lib/gemsmith/rake/tasks.rb +8 -3
  25. data/lib/gemsmith/templates/%gem_name%/%gem_name%.gemspec.tt +7 -5
  26. data/lib/gemsmith/templates/%gem_name%/README.md.tt +15 -15
  27. data/lib/gemsmith/templates/%gem_name%/Rakefile.tt +1 -0
  28. data/lib/gemsmith/templates/%gem_name%/circle.yml.tt +11 -0
  29. data/lib/gemsmith/templates/%gem_name%/lib/%gem_path%/cli.rb.tt +6 -7
  30. data/lib/gemsmith/templates/%gem_name%/lib/%gem_path%/identity.rb.tt +1 -7
  31. data/lib/gemsmith/templates/%gem_name%/lib/generators/%gem_path%/install/USAGE.tt +1 -1
  32. data/lib/gemsmith/templates/%gem_name%/lib/generators/%gem_path%/install/install_generator.rb.tt +1 -1
  33. data/lib/gemsmith/templates/%gem_name%/lib/generators/%gem_path%/upgrade/USAGE.tt +1 -1
  34. data/lib/gemsmith/templates/%gem_name%/lib/generators/%gem_path%/upgrade/upgrade_generator.rb.tt +1 -1
  35. data/lib/gemsmith/templates/%gem_name%/spec/lib/%gem_path%/cli_spec.rb.tt +7 -22
  36. metadata +58 -36
  37. metadata.gz.sig +0 -0
  38. data/lib/gemsmith/generators/travis.rb +0 -13
  39. data/lib/gemsmith/templates/%gem_name%/.travis.yml.tt +0 -11
  40. data/lib/gemsmith/templates/%gem_name%/gemfiles/rails-%rails_version%.x.gemfile.tt +0 -5
Binary file
@@ -1,13 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Gemsmith
4
- module Generators
5
- # Generates Travis CI support.
6
- class Travis < Base
7
- def run
8
- return unless configuration.dig(:generate, :travis)
9
- cli.template "%gem_name%/.travis.yml.tt", configuration
10
- end
11
- end
12
- end
13
- end
@@ -1,11 +0,0 @@
1
- language: ruby
2
- <%- if config.dig(:generate, :rails) -%>
3
- gemfile:
4
- - gemfiles/rails-<%= config.dig(:versions, :rails) %>.x.gemfile
5
- <%- end -%>
6
- before_install: gem update --system
7
- <%- if config.dig(:generate, :code_climate) -%>
8
- after_script: bundle exec codeclimate-test-reporter
9
- <%- end -%>
10
- notifications:
11
- email: false
@@ -1,5 +0,0 @@
1
- source "https://rubygems.org"
2
-
3
- gem "rails", "~> <%= config.dig(:versions, :rails) %>.0"
4
-
5
- gemspec path: "../"