gemsmith 4.1.0 → 4.2.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: 113faf8fea993a2965bf3f7d154c8bfaf9d5c03c
4
- data.tar.gz: 291fe9c8a6c568462caf5cc74c7665e6549ed685
3
+ metadata.gz: 85d1a01bd0d848eb431c3693468318df1ce5b33d
4
+ data.tar.gz: 1783a7160101fce356d960103d240792e27212e1
5
5
  SHA512:
6
- metadata.gz: f522034ceb316f3834aaf1d9c9d88c42b3568e82ee8c471b0b62d31e08b9b45997332f52340aee430f7e5edab72e9c094af43d13bf99ef4303991ae5ef6eccb4
7
- data.tar.gz: 8ebd05448c22da01f61699e9d81019c1461f4031e1c4fd855ca9ffd875550ebf2d77bce3a6daeba287eaba03620c570dfe1b310db050f0b3b55be6f34f2a6b2d
6
+ metadata.gz: ee765ed01a6308a93f5148ee8706d585be1c08f51840c2195022bdf8e5ac1952a990b60d567b211b46e5ef09a9499998762072e0c252e5d4b11e82684a2717e9
7
+ data.tar.gz: 06feabb46b93ae9ae58e8664e47bed90d503e24e6877ec2d42991b3c849fc112daf576ae9c7cefeb47c1c8b2b787b7266a1d75af2c4ceaa1571e599406e9bdd4
checksums.yaml.gz.sig CHANGED
Binary file
data.tar.gz.sig CHANGED
Binary file
data/README.md CHANGED
@@ -11,28 +11,28 @@ Gemsmith allows you to easily craft new gems via the command line with custom se
11
11
 
12
12
  # Features
13
13
 
14
- * Builds a gem skeleton with Bundler functionality in mind.
15
- * Supports common settings to be applied when creating new gems.
16
- * Supports [Thor](https://github.com/wycats/thor) command line functionality.
17
- * Supports [Ruby on Rails](http://rubyonrails.org).
18
- * Supports [RSpec](http://rspec.info).
19
- * Supports [Pry](http://pryrepl.org).
20
- * Supports [Guard](https://github.com/guard/guard).
21
- * Supports [Code Climate](https://codeclimate.com).
22
- * Supports [Gemnasium](https://gemnasium.com).
23
- * Supports [Travis CI](http://travis-ci.org).
24
- * Provides the ability to open the source code of any gem within your favorite editor.
25
- * Provides the ability to read the documentation of any gem within your default browser.
26
- * Adds commonly needed README, [CHANGELOG](CHANGELOG.md), [CONTRIBUTING](CONTRIBUTING.md), [LICENSE](LICENSE.md), etc.
14
+ - Builds a gem skeleton with Bundler functionality in mind.
15
+ - Supports common settings to be applied when creating new gems.
16
+ - Supports [Thor](https://github.com/wycats/thor) command line functionality.
17
+ - Supports [Ruby on Rails](http://rubyonrails.org).
18
+ - Supports [RSpec](http://rspec.info).
19
+ - Supports [Pry](http://pryrepl.org).
20
+ - Supports [Guard](https://github.com/guard/guard).
21
+ - Supports [Code Climate](https://codeclimate.com).
22
+ - Supports [Gemnasium](https://gemnasium.com).
23
+ - Supports [Travis CI](http://travis-ci.org).
24
+ - Provides the ability to open the source code of any gem within your favorite editor.
25
+ - Provides the ability to read the documentation of any gem within your default browser.
26
+ - Adds commonly needed README, [CHANGELOG](CHANGELOG.md), [CONTRIBUTING](CONTRIBUTING.md), [LICENSE](LICENSE.md), etc.
27
27
  template files.
28
28
 
29
29
  # Requirements
30
30
 
31
31
  0. A UNIX-based system.
32
32
  0. Any of the following Ruby VMs:
33
- * [MRI 2.x.x](http://www.ruby-lang.org)
34
- * [JRuby 1.x.x](http://jruby.org)
35
- * [Rubinius 2.x.x](http://rubini.us)
33
+ - [MRI 2.x.x](http://www.ruby-lang.org)
34
+ - [JRuby 1.x.x](http://jruby.org)
35
+ - [Rubinius 2.x.x](http://rubini.us)
36
36
  0. [RubyGems](http://rubygems.org).
37
37
  0. [Bundler](https://github.com/carlhuda/bundler).
38
38
 
@@ -127,14 +127,14 @@ To create a certificate for your gems, run the following:
127
127
  gem cert --build you@example.com
128
128
  chmod 600 gem-*.pem
129
129
 
130
- The resulting *.pem keys can be referenced via the *gem_private_key* and *gem_public_key* settings mentioned in the
130
+ The resulting *.pem keys can be referenced via the *gem_private_key- and *gem_public_key- settings mentioned in the
131
131
  Setup documentation.
132
132
 
133
133
  To learn more about gem certificates, read the following:
134
134
 
135
- * [Ruby Gems](http://guides.rubygems.org/security/#building_gems)
136
- * [A Practical Guide to Using Signed Ruby Gems - Part 1: Bundler](http://blog.meldium.com/home/2013/3/3/signed-rubygems-part)
137
- * [A Practical Guide to Using Signed Ruby Gems - Part 2: Heroku](http://blog.meldium.com/home/2013/3/6/signed-gems-on-heroku)
135
+ - [Ruby Gems](http://guides.rubygems.org/security/#building_gems)
136
+ - [A Practical Guide to Using Signed Ruby Gems - Part 1: Bundler](http://blog.meldium.com/home/2013/3/3/signed-rubygems-part)
137
+ - [A Practical Guide to Using Signed Ruby Gems - Part 2: Heroku](http://blog.meldium.com/home/2013/3/6/signed-gems-on-heroku)
138
138
 
139
139
  # Best Practices
140
140
 
@@ -156,19 +156,19 @@ RDoc and YARD formats.
156
156
 
157
157
  Once your gem is released, you might like to let the world know about the new awesomeness. Here are several resources:
158
158
 
159
- * [How to Spread the Word About Your Code](https://hacks.mozilla.org/2013/05/how-to-spread-the-word-about-your-code)
160
- * [Ruby Toolbox](https://www.ruby-toolbox.com)
161
- * [RubyFlow](http://www.rubyflow.com)
162
- * [The Ruby Show](http://rubyshow.com)
163
- * [Ruby 5](http://ruby5.envylabs.com)
159
+ - [How to Spread the Word About Your Code](https://hacks.mozilla.org/2013/05/how-to-spread-the-word-about-your-code)
160
+ - [Ruby Toolbox](https://www.ruby-toolbox.com)
161
+ - [RubyFlow](http://www.rubyflow.com)
162
+ - [The Ruby Show](http://rubyshow.com)
163
+ - [Ruby 5](http://ruby5.envylabs.com)
164
164
 
165
165
  # Versioning
166
166
 
167
167
  Read [Semantic Versioning](http://semver.org) for details. Briefly, it means:
168
168
 
169
- * Patch (x.y.Z) - Incremented for small, backwards compatible bug fixes.
170
- * Minor (x.Y.z) - Incremented for new, backwards compatible public API enhancements and/or bug fixes.
171
- * Major (X.y.z) - Incremented for any backwards incompatible public API changes.
169
+ - Patch (x.y.Z) - Incremented for small, backwards compatible bug fixes.
170
+ - Minor (x.Y.z) - Incremented for new, backwards compatible public API enhancements and/or bug fixes.
171
+ - Major (X.y.z) - Incremented for any backwards incompatible public API changes.
172
172
 
173
173
  # Contributions
174
174
 
@@ -86,7 +86,7 @@ module Gemsmith
86
86
  end
87
87
 
88
88
  def ruby_version
89
- @settings[:ruby_version] || "2.1.2"
89
+ @settings[:ruby_version] || "2.1.3"
90
90
  end
91
91
 
92
92
  def rails_version
@@ -5,6 +5,11 @@ module Gemsmith
5
5
  template "%gem_name%/.rspec.tt", template_options
6
6
  template "#{rspec_root}/spec_helper.rb.tt", template_options
7
7
  template "#{rspec_root}/%gem_name%_spec.rb.tt", template_options
8
+ template "#{rspec_root}/support/kit/default_config.rb.tt", template_options
9
+ template "#{rspec_root}/support/kit/garbage_collection.rb.tt", template_options
10
+ template "#{rspec_root}/support/kit/stderr.rb.tt", template_options
11
+ template "#{rspec_root}/support/kit/stdout.rb.tt", template_options
12
+ template "#{rspec_root}/support/kit/temp_dir.rb.tt", template_options
8
13
  end
9
14
 
10
15
  private
@@ -61,6 +61,7 @@ Gem::Specification.new do |spec|
61
61
  <%- if config[:guard] -%>
62
62
  spec.add_development_dependency "rb-fsevent" # Guard file events for OSX.
63
63
  spec.add_development_dependency "guard-rspec"
64
+ spec.add_development_dependency "terminal-notifier-guard"
64
65
  <%- end -%>
65
66
  <%- if config[:code_climate] -%>
66
67
  spec.add_development_dependency "codeclimate-test-reporter"
@@ -1,3 +1,3 @@
1
- # v0.1.0
1
+ # v0.1.0 (<%= Time.now.strftime "%Y-%m-%d" %>)
2
2
 
3
- * Initial version.
3
+ - Initial version.
@@ -5,12 +5,12 @@ following details what you need to know in order to contribute.
5
5
 
6
6
  # Requirements
7
7
 
8
- * Follow these [Basic Programming Styles](https://github.com/bkuhlmann/style_guides/blob/master/programming/basic.md).
9
- * Follow these [Code Review Styles](https://github.com/bkuhlmann/style_guides/blob/master/programming/code_reviews.md).
10
- * Follow these [Git Styles](https://github.com/bkuhlmann/style_guides/blob/master/programming/git.md).
11
- * Follow these [Bash Styles](https://github.com/bkuhlmann/style_guides/blob/master/programming/languages/bash.md).
12
- * Follow these [CSS Styles](https://github.com/bkuhlmann/style_guides/blob/master/programming/languages/css.md).
13
- * Follow these [Ruby Styles](https://github.com/bkuhlmann/style_guides/blob/master/programming/languages/ruby.md).
8
+ - Follow these [Basic Programming Styles](https://github.com/bkuhlmann/style_guides/blob/master/programming/basic.md).
9
+ - Follow these [Code Review Styles](https://github.com/bkuhlmann/style_guides/blob/master/programming/code_reviews.md).
10
+ - Follow these [Git Styles](https://github.com/bkuhlmann/style_guides/blob/master/programming/git.md).
11
+ - Follow these [Bash Styles](https://github.com/bkuhlmann/style_guides/blob/master/programming/languages/bash.md).
12
+ - Follow these [CSS Styles](https://github.com/bkuhlmann/style_guides/blob/master/programming/languages/css.md).
13
+ - Follow these [Ruby Styles](https://github.com/bkuhlmann/style_guides/blob/master/programming/languages/ruby.md).
14
14
 
15
15
  # Contributing Code
16
16
 
@@ -54,9 +54,9 @@ To test, run:
54
54
 
55
55
  Read [Semantic Versioning](http://semver.org) for details. Briefly, it means:
56
56
 
57
- * Patch (x.y.Z) - Incremented for small, backwards compatible bug fixes.
58
- * Minor (x.Y.z) - Incremented for new, backwards compatible public API enhancements and/or bug fixes.
59
- * Major (X.y.z) - Incremented for any backwards incompatible public API changes.
57
+ - Patch (x.y.Z) - Incremented for small, backwards compatible bug fixes.
58
+ - Minor (x.Y.z) - Incremented for new, backwards compatible public API enhancements and/or bug fixes.
59
+ - Major (X.y.z) - Incremented for any backwards incompatible public API changes.
60
60
 
61
61
  # Contributions
62
62
 
@@ -1,7 +1,9 @@
1
1
  require "bundler/setup"
2
2
  <%- if config[:code_climate] -%>
3
- require "codeclimate-test-reporter"
4
- CodeClimate::TestReporter.start
3
+ if ENV["CODECLIMATE_REPO_TOKEN"]
4
+ require "codeclimate-test-reporter"
5
+ CodeClimate::TestReporter.start
6
+ end
5
7
  <%- end -%>
6
8
  require "<%= config[:gem_name] %>"
7
9
  <%- if config[:pry] -%>
@@ -23,16 +25,8 @@ case Gem.ruby_engine
23
25
  end
24
26
  <%- end -%>
25
27
 
26
- RSpec.configure do |config|
27
- config.expect_with(:rspec) { |expectation| expectation.syntax = :expect }
28
- config.run_all_when_everything_filtered = true
29
- config.filter_run focus: true
30
- config.order = "random"
31
-
32
- config.mock_with :rspec do |mocks|
33
- mocks.verify_partial_doubles = true
34
- end
28
+ Dir[File.join(File.dirname(__FILE__), "support/kit/**/*.rb")].each { |file| require file }
35
29
 
36
- config.before(:all) { GC.disable }
37
- config.after(:all) { GC.enable }
30
+ RSpec.configure do |config|
31
+ # NOTE: Add <%= config[:gem_class] %> specific configuration here. For the common configuration, see the "support/kit" folder.
38
32
  end
@@ -0,0 +1,14 @@
1
+ RSpec.configure do |config|
2
+ config.run_all_when_everything_filtered = true
3
+ config.filter_run focus: true
4
+ config.order = "random"
5
+
6
+ config.mock_with :rspec do |mocks|
7
+ mocks.verify_partial_doubles = true
8
+ end
9
+
10
+ config.expect_with :rspec do |expectations|
11
+ expectations.syntax = :expect
12
+ expectations.include_chain_clauses_in_custom_matcher_descriptions = true
13
+ end
14
+ end
@@ -0,0 +1,4 @@
1
+ RSpec.configure do |config|
2
+ config.before(:suite) { GC.disable }
3
+ config.after(:suite) { GC.enable }
4
+ end
@@ -0,0 +1,7 @@
1
+ if ENV["SUPPRESS_STDERR"] == "enabled"
2
+ RSpec.configure do |config|
3
+ stderr_original = $stderr
4
+ config.before(:suite) { $stderr = File.new "/dev/null", 'w' }
5
+ config.after(:suite) { $stderr = stderr_original }
6
+ end
7
+ end
@@ -0,0 +1,7 @@
1
+ if ENV["SUPPRESS_STDOUT"] == "enabled"
2
+ RSpec.configure do |config|
3
+ stdout_original = $stdout
4
+ config.before(:suite) { $stdout = File.new "/dev/null", 'w' }
5
+ config.after(:suite) { $stdout = stdout_original }
6
+ end
7
+ end
@@ -0,0 +1,17 @@
1
+ require "rspec/core/shared_context"
2
+
3
+ module RSpecSupportKitTempDirContext
4
+ extend RSpec::Core::SharedContext
5
+ let (:temp_dir) { File.expand_path "../../../../tmp/rspec", __FILE__ }
6
+ end
7
+
8
+ RSpec.configure do |config|
9
+ config.include RSpecSupportKitTempDirContext
10
+
11
+ config.before do |example|
12
+ if example.metadata[:temp_dir]
13
+ FileUtils.rm_rf(temp_dir) if File.exist?(temp_dir)
14
+ FileUtils.mkdir_p(temp_dir)
15
+ end
16
+ end
17
+ end
@@ -1,3 +1,3 @@
1
1
  module Gemsmith
2
- VERSION = "4.1.0"
2
+ VERSION = "4.2.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: 4.1.0
4
+ version: 4.2.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-08-10 00:00:00.000000000 Z
33
+ date: 2014-09-22 00:00:00.000000000 Z
34
34
  dependencies:
35
35
  - !ruby/object:Gem::Dependency
36
36
  name: pry-byebug
@@ -200,6 +200,20 @@ dependencies:
200
200
  - - ">="
201
201
  - !ruby/object:Gem::Version
202
202
  version: '0'
203
+ - !ruby/object:Gem::Dependency
204
+ name: terminal-notifier-guard
205
+ requirement: !ruby/object:Gem::Requirement
206
+ requirements:
207
+ - - ">="
208
+ - !ruby/object:Gem::Version
209
+ version: '0'
210
+ type: :development
211
+ prerelease: false
212
+ version_requirements: !ruby/object:Gem::Requirement
213
+ requirements:
214
+ - - ">="
215
+ - !ruby/object:Gem::Version
216
+ version: '0'
203
217
  - !ruby/object:Gem::Dependency
204
218
  name: codeclimate-test-reporter
205
219
  requirement: !ruby/object:Gem::Requirement
@@ -266,6 +280,11 @@ files:
266
280
  - lib/gemsmith/templates/%gem_name%/lib/generators/%gem_name%/upgrade/upgrade_generator.rb.tt
267
281
  - lib/gemsmith/templates/%gem_name%/spec/%gem_name%_spec.rb.tt
268
282
  - lib/gemsmith/templates/%gem_name%/spec/spec_helper.rb.tt
283
+ - lib/gemsmith/templates/%gem_name%/spec/support/kit/default_config.rb.tt
284
+ - lib/gemsmith/templates/%gem_name%/spec/support/kit/garbage_collection.rb.tt
285
+ - lib/gemsmith/templates/%gem_name%/spec/support/kit/stderr.rb.tt
286
+ - lib/gemsmith/templates/%gem_name%/spec/support/kit/stdout.rb.tt
287
+ - lib/gemsmith/templates/%gem_name%/spec/support/kit/temp_dir.rb.tt
269
288
  - lib/gemsmith/version.rb
270
289
  homepage: https://github.com/bkuhlmann/gemsmith
271
290
  licenses:
metadata.gz.sig CHANGED
@@ -1 +1 @@
1
- S��m֦t�#���<Q�J��=���R�\�)T_iT�4 ��rts��)�pvO��)�^gy�d��P�pTj��Ǖ�;�����1�:.&�[ִlx�������B��,-��$3�r���b��܊�-n�K�M��S*�ۼ�N�jk_Ė
1
+ nv%-����Z�nk�9mȥ��0q���1��26q[Q�����j�Z<��aRGp�x�Į\u<~ +���v������VM;mL$C ��~�'���ۻ�A�~�_ߎk��+A k��RB bfpM���੓K�Ѵ���L��) =R��������x9}����i�B���m����k�GPA�=���9��ҍ/�����@���-S5.P���Fi���Fo-|�`��b����ņh