gemsmith 3.2.0 → 4.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bc414b359bc4db3a5c713f4a7bc2e9286951db0a
4
- data.tar.gz: 9c59f1859d8bff716d9f32676fd91b268334249d
3
+ metadata.gz: 320f9805f23b672d8cb778e2255b1a8f88b1ffda
4
+ data.tar.gz: 79d409a8ff22b330b3d104dafc802478ab65a00d
5
5
  SHA512:
6
- metadata.gz: bea122b13b78382f89fe16d3f69d0dda0e2b700be6fd0ae1648526ec5b3ad7b1984c52afeba6833e4db8bf9b493cc2085ed253713ccc6f54ebe986d9c3730366
7
- data.tar.gz: 7d1c3e588a18fdb3564cc4e94bdfa9f2c0585270f61fb84f067a7694d9a94a77951152433e76ae69052a39ea9eade2e09c577373c848011545b980a839f37834
6
+ metadata.gz: 461b48209af21eb969c4ca92d55cc64dd0fcd5cebb37abaed6283e60d86e5ba20737ba7d63da425ac92e8e9a2fecacc9eeb1f283d74d099528bd3a338a1c8c80
7
+ data.tar.gz: dd011e2ae4d3775f9a4d46cfb9f51825d0426c535196180697d3ac114286c3a90fee138c422b4d8cbcf296cf2267c6200d6c106e3f0d671802cea7b09a965a08
Binary file
data.tar.gz.sig CHANGED
Binary file
data/README.md CHANGED
@@ -23,7 +23,6 @@ gem. Gemsmith is essentially an enhanced version of Bundler's gem building capab
23
23
  * Supports [Code Climate](https://codeclimate.com).
24
24
  * Supports [Gemnasium](https://gemnasium.com).
25
25
  * Supports [Travis CI](http://travis-ci.org).
26
- * Supports [Coveralls](https://coveralls.io).
27
26
  * Provides the ability to open the source code of any gem within your favorite editor.
28
27
  * Provides the ability to read the documentation of any gem within your default browser.
29
28
  * Adds commonly needed README, [CHANGELOG](CHANGELOG.md), [CONTRIBUTING](CONTRIBUTING.md), [LICENSE](LICENSE.md), etc. template files.
@@ -108,8 +107,6 @@ For more gem creation options, type: gemsmith help create
108
107
  # Default: true
109
108
  -t, [--travis], [--no-travis] # Add Travis CI support.
110
109
  # Default: true
111
- -C, [--coveralls], [--no-coveralls] # Add Coveralls support.
112
- # Default: true
113
110
 
114
111
  Once a gem skeleton has been created, the following tasks are available within the project via Bundler (i.e. rake -T):
115
112
 
@@ -150,13 +147,6 @@ To learn more about gem certificates, read the following:
150
147
  0. [Why You Should Use a BSD Style License](http://www.freebsd.org/doc/en/articles/bsdl-gpl/article.html).
151
148
  0. Add -w to the RUBYOPT environment variable when testing. [Details](http://avdi.org/devblog/2011/06/23/how-ruby-helps-you-fix-your-broken-code).
152
149
 
153
- ## When To Include a Railtie ([Crafting Rails Applications](http://pragprog.com/book/jvrails/crafting-rails-applications) - Page 93 by José Valim)
154
-
155
- * "Your gem needs to perform a given task while or after the Rails application is initialized."
156
- * "Your gem needs to change a configuration value, such as setting a generator."
157
- * "Your gem must provide Rake tasks and generators in nondefault locations (the default location for the former is lib/tasks and lib/gen- erators or lib/rails/generators for the latter)."
158
- * "You want your gem to provide configuration options to the appli- cation, such as config.my_gem.key # :value."
159
-
160
150
  # Documentation
161
151
 
162
152
  In order to make your gem easier to use and adopt by others, good documentation is always a plus. Consider submitting
@@ -6,10 +6,10 @@ require "gemsmith/cli_options"
6
6
  require "gemsmith/cli_helpers"
7
7
  require "gemsmith/skeletons/base_skeleton"
8
8
  require "gemsmith/skeletons/cli_skeleton"
9
- require "gemsmith/skeletons/coveralls_skeleton"
10
9
  require "gemsmith/skeletons/default_skeleton"
11
10
  require "gemsmith/skeletons/documentation_skeleton"
12
11
  require "gemsmith/skeletons/git_skeleton"
12
+ require "gemsmith/skeletons/guard_skeleton"
13
13
  require "gemsmith/skeletons/rails_skeleton"
14
14
  require "gemsmith/skeletons/rspec_skeleton"
15
15
  require "gemsmith/skeletons/travis_skeleton"
@@ -44,7 +44,6 @@ module Gemsmith
44
44
  method_option :code_climate, aliases: "-c", desc: "Add Code Climate support.", type: :boolean, default: true
45
45
  method_option :gemnasium, aliases: "-G", desc: "Add Gemnasium support.", type: :boolean, default: true
46
46
  method_option :travis, aliases: "-t", desc: "Add Travis CI support.", type: :boolean, default: true
47
- method_option :coveralls, aliases: "-C", desc: "Add Coveralls support.", type: :boolean, default: true
48
47
  def create name
49
48
  say
50
49
  info "Creating gem..."
@@ -55,8 +54,8 @@ module Gemsmith
55
54
  Skeletons::CLISkeleton.run(self) if template_options[:bin]
56
55
  Skeletons::RailsSkeleton.run(self) if template_options[:rails]
57
56
  Skeletons::RspecSkeleton.run(self) if template_options[:rspec]
57
+ Skeletons::GuardSkeleton.run(self) if template_options[:guard]
58
58
  Skeletons::TravisSkeleton.run(self) if template_options[:travis]
59
- Skeletons::CoverallsSkeleton.run self
60
59
  Skeletons::GitSkeleton.run self
61
60
 
62
61
  info "Gem created."
@@ -28,7 +28,6 @@ module Gemsmith
28
28
  github_user: github_user,
29
29
  year: year,
30
30
  ruby_version: ruby_version,
31
- ruby_patch: ruby_patch,
32
31
  rails_version: rails_version,
33
32
  post_install_message: @settings[:post_install_message],
34
33
  bin: default_boolean(:bin),
@@ -38,8 +37,7 @@ module Gemsmith
38
37
  rspec: default_boolean(:rspec, true),
39
38
  code_climate: default_boolean(:code_climate, true),
40
39
  gemnasium: default_boolean(:gemnasium, true),
41
- travis: default_boolean(:travis, true),
42
- coveralls: default_boolean(:coveralls, true)
40
+ travis: default_boolean(:travis, true)
43
41
  }
44
42
  end
45
43
 
@@ -88,15 +86,11 @@ module Gemsmith
88
86
  end
89
87
 
90
88
  def ruby_version
91
- @settings[:ruby_version] || "2.0.0"
92
- end
93
-
94
- def ruby_patch
95
- @settings[:ruby_patch] || "p0"
89
+ @settings[:ruby_version] || "2.1.2"
96
90
  end
97
91
 
98
92
  def rails_version
99
- @settings[:rails_version] || "4.0"
93
+ @settings[:rails_version] || "4.1"
100
94
  end
101
95
 
102
96
  def default_boolean key, value = false
@@ -0,0 +1,9 @@
1
+ module Gemsmith
2
+ module Skeletons
3
+ class GuardSkeleton < BaseSkeleton
4
+ def create_files
5
+ template "%gem_name%/Guardfile.tt", template_options
6
+ end
7
+ end
8
+ end
9
+ end
@@ -1,20 +1,6 @@
1
1
  module Gemsmith
2
2
  module Skeletons
3
3
  class RailsSkeleton < BaseSkeleton
4
- def create_model_files
5
- template "#{model_root}/class_methods.rb.tt", template_options
6
- template "#{model_root}/instance_methods.rb.tt", template_options
7
- end
8
-
9
- def create_view_files
10
- template "#{lib_gem_root}/action_view/instance_methods.rb.tt", template_options
11
- end
12
-
13
- def create_controller_files
14
- template "#{controller_root}/class_methods.rb.tt", template_options
15
- template "#{controller_root}/instance_methods.rb.tt", template_options
16
- end
17
-
18
4
  def create_generator_files
19
5
  empty_directory "#{generator_root}/templates"
20
6
  template "#{generator_root}/install/install_generator.rb.tt", template_options
@@ -25,7 +11,7 @@ module Gemsmith
25
11
 
26
12
  def create_travis_gemfiles
27
13
  if template_options[:travis]
28
- template "%gem_name%/gemfiles/rails-3.2.x.gemfile.tt", template_options
14
+ template "%gem_name%/gemfiles/rails-4.1.x.gemfile.tt", template_options
29
15
  end
30
16
  end
31
17
 
@@ -35,14 +21,6 @@ module Gemsmith
35
21
  "#{lib_root}/%gem_name%"
36
22
  end
37
23
 
38
- def model_root
39
- "#{lib_gem_root}/active_record"
40
- end
41
-
42
- def controller_root
43
- "#{lib_gem_root}/action_controller"
44
- end
45
-
46
24
  def generator_root
47
25
  "#{lib_root}/generators/%gem_name%"
48
26
  end
@@ -1,4 +1,4 @@
1
- $:.push File.expand_path("../lib", __FILE__)
1
+ $LOAD_PATH.push File.expand_path("../lib", __FILE__)
2
2
  require "<%=config[:gem_name]%>/version"
3
3
 
4
4
  def add_security_key specification, method, files
@@ -10,73 +10,73 @@ def add_security_key specification, method, files
10
10
  end
11
11
  end
12
12
 
13
- Gem::Specification.new do |s|
14
- s.name = "<%= config[:gem_name] %>"
15
- s.version = <%= config[:gem_class] %>::VERSION
16
- s.platform = <%= config[:gem_platform] %>
17
- s.author = "<%= config[:author_name] %>"
18
- s.email = "<%= config[:author_email] %>"
19
- s.homepage = "<%= config[:gem_url] %>"
20
- s.summary = "TODO: Add gem summary here."
21
- s.description = "TODO: Add gem description here."
22
- s.license = "MIT"
13
+ Gem::Specification.new do |spec|
14
+ spec.name = "<%= config[:gem_name] %>"
15
+ spec.version = <%= config[:gem_class] %>::VERSION
16
+ spec.platform = <%= config[:gem_platform] %>
17
+ spec.authors = ["<%= config[:author_name] %>"]
18
+ spec.email = ["<%= config[:author_email] %>"]
19
+ spec.homepage = "<%= config[:gem_url] %>"
20
+ spec.summary = "TODO: Add gem summary here."
21
+ spec.description = "TODO: Add gem description here."
22
+ spec.license = "MIT"
23
23
  <%- if config[:post_install_message] -%>
24
- s.post_install_message = "<%= config[:post_install_message] %>"
24
+ spec.post_install_message = "<%= config[:post_install_message] %>"
25
25
  <%- end -%>
26
26
 
27
- add_security_key s, "signing_key", File.expand_path("<%= config[:gem_private_key] %>")
28
- add_security_key s, "cert_chain", [File.expand_path("<%= config[:gem_public_key] %>")]
27
+ add_security_key spec, "signing_key", File.expand_path("<%= config[:gem_private_key] %>")
28
+ add_security_key spec, "cert_chain", [File.expand_path("<%= config[:gem_public_key] %>")]
29
29
 
30
30
  <%- if config[:pry] -%>
31
31
  case Gem.ruby_engine
32
32
  when "ruby"
33
- s.add_development_dependency "pry-byebug"
34
- s.add_development_dependency "pry-stack_explorer"
33
+ spec.add_development_dependency "pry-byebug"
34
+ spec.add_development_dependency "pry-stack_explorer"
35
35
  when "jruby"
36
- s.add_development_dependency "pry-nav"
36
+ spec.add_development_dependency "pry-nav"
37
37
  when "rbx"
38
- s.add_development_dependency "pry-nav"
39
- s.add_development_dependency "pry-stack_explorer"
38
+ spec.add_development_dependency "pry-nav"
39
+ spec.add_development_dependency "pry-stack_explorer"
40
40
  else
41
41
  raise RuntimeError.new("Unsupported Ruby Engine!")
42
42
  end
43
43
  <%- end -%>
44
44
 
45
- s.required_ruby_version = "~> <%= config[:ruby_version] %>"
45
+ spec.required_ruby_version = "~> <%= config[:ruby_version] %>"
46
46
  <%- if config[:bin] -%>
47
- s.add_dependency "thor"
48
- s.add_dependency "thor_plus"
47
+ spec.add_dependency "thor"
48
+ spec.add_dependency "thor_plus"
49
49
  <%- end -%>
50
50
  <%- if config[:rails] -%>
51
- s.add_dependency "rails", "~> <%= config[:rails_version] %>"
51
+ spec.add_dependency "rails", "~> <%= config[:rails_version] %>"
52
52
  <%- end -%>
53
53
  <%- if config[:travis] -%>
54
- s.add_development_dependency "rake"
54
+ spec.add_development_dependency "rake"
55
55
  <%- end -%>
56
56
  <%- if config[:pry] -%>
57
- s.add_development_dependency "pry"
58
- s.add_development_dependency "pry-remote"
59
- s.add_development_dependency "pry-rescue"
57
+ spec.add_development_dependency "pry"
58
+ spec.add_development_dependency "pry-remote"
59
+ spec.add_development_dependency "pry-rescue"
60
60
  <%- end -%>
61
61
  <%- if config[:rspec] -%>
62
62
  <%- rspec_gem = config[:rails] ? "rspec-rails" : "rspec" -%>
63
- s.add_development_dependency "<%= rspec_gem %>"
63
+ spec.add_development_dependency "<%= rspec_gem %>"
64
64
  <%- end -%>
65
65
  <%- if config[:bin] -%>
66
- s.add_development_dependency "aruba"
66
+ spec.add_development_dependency "aruba"
67
67
  <%- end -%>
68
68
  <%- if config[:guard] -%>
69
- s.add_development_dependency "rb-fsevent" # Guard file events for OSX.
70
- s.add_development_dependency "guard-rspec"
69
+ spec.add_development_dependency "rb-fsevent" # Guard file events for OSX.
70
+ spec.add_development_dependency "guard-rspec"
71
71
  <%- end -%>
72
- <%- if config[:coveralls] -%>
73
- s.add_development_dependency "coveralls"
72
+ <%- if config[:code_climate] -%>
73
+ spec.add_development_dependency "codeclimate-test-reporter"
74
74
  <%- end -%>
75
75
 
76
- s.files = Dir["lib/**/*", "vendor/**/*"]
77
- s.extra_rdoc_files = Dir["README*", "LICENSE*"]
76
+ spec.files = Dir["lib/**/*", "vendor/**/*"]
77
+ spec.extra_rdoc_files = Dir["README*", "LICENSE*"]
78
78
  <%- if config[:bin] -%>
79
- s.executables << "<%= config[:gem_name] %>"
79
+ spec.executables << "<%= config[:gem_name] %>"
80
80
  <%- end -%>
81
- s.require_paths = ["lib"]
81
+ spec.require_paths = ["lib"]
82
82
  end
@@ -1 +1 @@
1
- <%= [config[:ruby_version], config[:ruby_patch]] * '-' %>
1
+ <%= config[:ruby_version] %>
@@ -4,6 +4,6 @@ rvm:
4
4
  - 2.1.0
5
5
  <%- if config[:rails] -%>
6
6
  gemfile:
7
- - gemfiles/rails-3.2.x.gemfile
7
+ - gemfiles/rails-4.1.x.gemfile
8
8
  <%- end -%>
9
9
  script: bundle exec rspec spec
@@ -0,0 +1,30 @@
1
+ guard :rspec, cmd: "bundle exec rspec" do
2
+ watch(%r{^spec/.+_spec\.rb$})
3
+ watch(%r{^lib/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" }
4
+ watch('spec/spec_helper.rb') { "spec" }
5
+ <%- if config[:rails] -%>
6
+
7
+ # Rails
8
+ watch(%r{^app/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
9
+ watch(%r{^app/(.*)(\.erb|\.haml|\.slim)$}) { |m| "spec/#{m[1]}#{m[2]}_spec.rb" }
10
+ watch(%r{^app/controllers/(.+)_(controller)\.rb$}) { |m| ["spec/routing/#{m[1]}_routing_spec.rb", "spec/#{m[2]}s/#{m[1]}_#{m[2]}_spec.rb", "spec/acceptance/#{m[1]}_spec.rb"] }
11
+ watch(%r{^spec/support/(.+)\.rb$}) { "spec" }
12
+ watch('config/routes.rb') { "spec/routing" }
13
+ watch('app/controllers/application_controller.rb') { "spec/controllers" }
14
+ watch('spec/rails_helper.rb') { "spec" }
15
+
16
+ # Capybara
17
+ watch(%r{^app/views/(.+)/.*\.(erb|haml|slim)$}) { |m| "spec/features/#{m[1]}_spec.rb" }
18
+ <%- end -%>
19
+ end
20
+
21
+ <%- if config[:rails] -%>
22
+ guard "livereload" do
23
+ watch(%r{app/views/.+\.(erb|haml|slim)$})
24
+ watch(%r{app/helpers/.+\.rb})
25
+ watch(%r{public/.+\.(css|js|html)})
26
+ watch(%r{config/locales/.+\.yml})
27
+ # Rails Assets Pipeline
28
+ watch(%r{(app|vendor)(/assets/\w+/(.+\.(css|js|html|png|jpg))).*}) { |m| "/assets/#{m[3]}" }
29
+ end
30
+ <%- end -%>
@@ -3,6 +3,7 @@
3
3
  [![Gem Version](https://badge.fury.io/rb/<%= config[:gem_name] %>.png)](http://badge.fury.io/rb/<%= config[:gem_name] %>)
4
4
  <%- if config[:code_climate] -%>
5
5
  [![Code Climate GPA](https://codeclimate.com/github/<%= config[:github_user] %>/<%= config[:gem_name] %>.png)](https://codeclimate.com/github/<%= config[:github_user] %>/<%= config[:gem_name] %>)
6
+ [![Code Climate Coverage](https://codeclimate.com/github/<%= config[:github_user] %>/<%= config[:gem_name] %>/coverage.png)](https://codeclimate.com/github/<%= config[:github_user] %>/<%= config[:gem_name] %>)
6
7
  <%- end -%>
7
8
  <%- if config[:gemnasium] -%>
8
9
  [![Gemnasium Status](https://gemnasium.com/<%= config[:github_user] %>/<%= config[:gem_name] %>.png)](https://gemnasium.com/<%= config[:github_user] %>/<%= config[:gem_name] %>)
@@ -10,9 +11,6 @@
10
11
  <%- if config[:travis] -%>
11
12
  [![Travis CI Status](https://secure.travis-ci.org/<%= config[:github_user] %>/<%= config[:gem_name] %>.png)](http://travis-ci.org/<%= config[:github_user] %>/<%= config[:gem_name] %>)
12
13
  <%- end -%>
13
- <%- if config[:coveralls] -%>
14
- [![Coveralls Status](https://coveralls.io/repos/<%= config[:github_user] %>/<%= config[:gem_name] %>/badge.png)](https://coveralls.io/r/<%= config[:github_user] %>/<%= config[:gem_name] %>)
15
- <%- end -%>
16
14
 
17
15
  # Features
18
16
 
@@ -1,5 +1,5 @@
1
1
  source "https://rubygems.org"
2
2
 
3
- gem "rails", "~> 3.2.0"
3
+ gem "rails", "~> 4.1.0"
4
4
 
5
5
  gemspec path: "../"
@@ -1,33 +1 @@
1
1
  require "<%= config[:gem_name] %>/version"
2
-
3
- <%- if config[:rails] -%>
4
- # Rails Enhancements
5
- if defined? Rails
6
- # Dependencies
7
- require "<%= config[:gem_name] %>/active_record/class_methods"
8
- require "<%= config[:gem_name] %>/active_record/instance_methods"
9
- require "<%= config[:gem_name] %>/action_view/instance_methods"
10
- require "<%= config[:gem_name] %>/action_controller/class_methods"
11
- require "<%= config[:gem_name] %>/action_controller/instance_methods"
12
-
13
- # Model
14
- if defined? ActiveRecord
15
- ActiveRecord::Base.send :include, <%= config[:gem_class] %>::ActiveRecord
16
- end
17
-
18
- # View
19
- if defined? ActionView
20
- ActionView::Base.send :include, <%= config[:gem_class] %>::ActionView
21
- end
22
-
23
- # Controller
24
- if defined? ActionController
25
- ActionController::Base.send :include, <%= config[:gem_class] %>::ActionController
26
- end
27
- end
28
- <%- else -%>
29
- # Namespace
30
- module <%= config[:gem_class] %>
31
- # TODO - Add code here.
32
- end
33
- <%- end -%>
@@ -1,7 +1,7 @@
1
1
  require "bundler/setup"
2
- <%- if config[:coveralls] -%>
3
- require "coveralls"
4
- Coveralls.wear!
2
+ <%- if config[:code_climate] -%>
3
+ require "codeclimate-test-reporter"
4
+ CodeClimate::TestReporter.start
5
5
  <%- end -%>
6
6
  require "<%= config[:gem_name] %>"
7
7
  <%- if config[:pry] -%>
@@ -27,6 +27,7 @@ RSpec.configure do |config|
27
27
  config.expect_with(:rspec) { |expectation| expectation.syntax = :expect }
28
28
  config.run_all_when_everything_filtered = true
29
29
  config.filter_run focus: true
30
+ config.order = "random"
30
31
 
31
32
  config.before(:all) { GC.disable }
32
33
  config.after(:all) { GC.enable }
@@ -1,3 +1,3 @@
1
1
  module Gemsmith
2
- VERSION = "3.2.0"
2
+ VERSION = "4.0.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gemsmith
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.2.0
4
+ version: 4.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brooke Kuhlmann
@@ -30,7 +30,7 @@ cert_chain:
30
30
  fMlZDUGx3lQarp/vPjK+6XH7DLXjBEKqeIGBIpLthYUvDxJRp23C+T3liGSL32vg
31
31
  mSpxxwmK95GDFuEy2mNPaxnazdkw8c+7DbrSpzd/CnNZkRgitxOavs8=
32
32
  -----END CERTIFICATE-----
33
- date: 2014-07-07 00:00:00.000000000 Z
33
+ date: 2014-08-04 00:00:00.000000000 Z
34
34
  dependencies:
35
35
  - !ruby/object:Gem::Dependency
36
36
  name: pry-byebug
@@ -202,7 +202,8 @@ dependencies:
202
202
  version: '0'
203
203
  description: 'Ruby gem skeleton generation for the professional gemsmith. Includes
204
204
  custom settings, binary, Ruby on Rails, and RSpec support. '
205
- email: brooke@redalchemist.com
205
+ email:
206
+ - brooke@redalchemist.com
206
207
  executables:
207
208
  - gemsmith
208
209
  extensions: []
@@ -220,10 +221,10 @@ files:
220
221
  - lib/gemsmith/kit.rb
221
222
  - lib/gemsmith/skeletons/base_skeleton.rb
222
223
  - lib/gemsmith/skeletons/cli_skeleton.rb
223
- - lib/gemsmith/skeletons/coveralls_skeleton.rb
224
224
  - lib/gemsmith/skeletons/default_skeleton.rb
225
225
  - lib/gemsmith/skeletons/documentation_skeleton.rb
226
226
  - lib/gemsmith/skeletons/git_skeleton.rb
227
+ - lib/gemsmith/skeletons/guard_skeleton.rb
227
228
  - lib/gemsmith/skeletons/rails_skeleton.rb
228
229
  - lib/gemsmith/skeletons/rspec_skeleton.rb
229
230
  - lib/gemsmith/skeletons/travis_skeleton.rb
@@ -236,17 +237,13 @@ files:
236
237
  - lib/gemsmith/templates/%gem_name%/CHANGELOG.md.tt
237
238
  - lib/gemsmith/templates/%gem_name%/CONTRIBUTING.md.tt
238
239
  - lib/gemsmith/templates/%gem_name%/Gemfile.tt
240
+ - lib/gemsmith/templates/%gem_name%/Guardfile.tt
239
241
  - lib/gemsmith/templates/%gem_name%/LICENSE.md.tt
240
242
  - lib/gemsmith/templates/%gem_name%/README.md.tt
241
243
  - lib/gemsmith/templates/%gem_name%/Rakefile.tt
242
244
  - lib/gemsmith/templates/%gem_name%/bin/%gem_name%.tt
243
- - lib/gemsmith/templates/%gem_name%/gemfiles/rails-3.2.x.gemfile.tt
245
+ - lib/gemsmith/templates/%gem_name%/gemfiles/rails-4.1.x.gemfile.tt
244
246
  - lib/gemsmith/templates/%gem_name%/lib/%gem_name%.rb.tt
245
- - lib/gemsmith/templates/%gem_name%/lib/%gem_name%/action_controller/class_methods.rb.tt
246
- - lib/gemsmith/templates/%gem_name%/lib/%gem_name%/action_controller/instance_methods.rb.tt
247
- - lib/gemsmith/templates/%gem_name%/lib/%gem_name%/action_view/instance_methods.rb.tt
248
- - lib/gemsmith/templates/%gem_name%/lib/%gem_name%/active_record/class_methods.rb.tt
249
- - lib/gemsmith/templates/%gem_name%/lib/%gem_name%/active_record/instance_methods.rb.tt
250
247
  - lib/gemsmith/templates/%gem_name%/lib/%gem_name%/cli.rb.tt
251
248
  - lib/gemsmith/templates/%gem_name%/lib/%gem_name%/version.rb.tt
252
249
  - lib/gemsmith/templates/%gem_name%/lib/generators/%gem_name%/install/USAGE.tt
@@ -276,7 +273,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
276
273
  version: '0'
277
274
  requirements: []
278
275
  rubyforge_project:
279
- rubygems_version: 2.3.0
276
+ rubygems_version: 2.4.1
280
277
  signing_key:
281
278
  specification_version: 4
282
279
  summary: Ruby gem skeleton generation for the professional gemsmith.
metadata.gz.sig CHANGED
Binary file
@@ -1,9 +0,0 @@
1
- module Gemsmith
2
- module Skeletons
3
- class CoverallsSkeleton < BaseSkeleton
4
- def create_files
5
- template "%gem_name%/.coveralls.yml.tt", template_options
6
- end
7
- end
8
- end
9
- end
@@ -1,17 +0,0 @@
1
- module <%= config[:gem_class] %>
2
- module ActionController
3
- def self.included base
4
- base.extend ClassMethods
5
- end
6
-
7
- module ClassMethods
8
- def acts_as_<%= config[:gem_name] %> options = {}
9
- self.send :include, InstanceMethods
10
-
11
- # Default Options
12
- class_inheritable_reader :<%= config[:gem_name] %>_options
13
- write_inheritable_attribute :<%= config[:gem_name] %>_options, options
14
- end
15
- end
16
- end
17
- end
@@ -1,7 +0,0 @@
1
- module <%= config[:gem_class] %>
2
- module ActionController
3
- module InstanceMethods
4
- # TODO - Add code here.
5
- end
6
- end
7
- end
@@ -1,11 +0,0 @@
1
- module <%= config[:gem_class] %>
2
- module ActionView
3
- def self.included base
4
- base.send :include, InstanceMethods
5
- end
6
-
7
- module InstanceMethods
8
- # TODO - Add code here.
9
- end
10
- end
11
- end
@@ -1,17 +0,0 @@
1
- module <%= config[:gem_class] %>
2
- module ActiveRecord
3
- def self.included base
4
- base.extend ClassMethods
5
- end
6
-
7
- module ClassMethods
8
- def acts_as_<%= config[:gem_name] %> options = {}
9
- self.send :include, InstanceMethods
10
-
11
- # Default Options
12
- class_inheritable_reader :<%= config[:gem_name] %>_options
13
- write_inheritable_attribute :<%= config[:gem_name] %>_options, options
14
- end
15
- end
16
- end
17
- end
@@ -1,7 +0,0 @@
1
- module <%= config[:gem_class] %>
2
- module ActiveRecord
3
- module InstanceMethods
4
- # TODO - Add code here.
5
- end
6
- end
7
- end