makenew-ruby_gem 2.0.0 → 2.0.1

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: 6d9548de9d722337219966bf25876cfbe6f9e477
4
- data.tar.gz: 6583a88563fb5e36e65f9f218e5677656a6d6550
3
+ metadata.gz: d7afdbcfc143c12702ec2e55686245adb76bd637
4
+ data.tar.gz: c731544a4cf72fe56ef20bbed44328c53dfd464e
5
5
  SHA512:
6
- metadata.gz: 6bf5d689e68e3893c57fc142f93449c14d93c58bb917e2e9b422e402501469d19da13d0eb56282fefe9e6806787bd52d62276547abad2dd8c3a67e7131b34310
7
- data.tar.gz: a30acf4a8b7e7546cdedec8944750d748e116705193fa45dc88622008526c99a43e8bbb3682398d13efd46632f11db34f50cbc8d20694cc455a0a0778dc66a27
6
+ metadata.gz: 5e9884f02a38478ec21038781286e2e343c8f4b07517ab027e9beb8f58b53a7a95d7bdd6c7a5a65da8b977b78c4250fcaba14b40f493620083024e296e1123c5
7
+ data.tar.gz: ee796cd223bd9a8dbe2403aa25946ea948db29242b8971bdf9b57f51b1a9aedc25d8b31f20abb744f68bb781dd6f38c4da76e718800eb53040f45ef75477dd81
@@ -1,10 +1,9 @@
1
1
  ---
2
- language:
3
- - ruby
2
+ language: ruby
3
+ sudo: false
4
4
  rvm:
5
5
  - 2
6
6
  cache: bundler
7
- sudo: false
8
7
 
9
8
  before_install:
10
9
  - 'echo ''gem: --no-document'' > ~/.gemrc'
data/README.md CHANGED
@@ -15,31 +15,52 @@ Bootstrap a new [Ruby] gem in less than a minute.
15
15
 
16
16
  ### Features
17
17
 
18
- * [Rake] and [Guard] tasks for included tools.
19
- * Gem management with [Bundler] and [Bump].
20
- * Documentation generation with [YARD].
21
- * Linting with [RuboCop].
22
- * Unit testing with [RSpec].
23
- * [Travis CI] ready.
24
- * [EditorConfig].
25
- * Badges from [Shields.io]!
18
+ - [Rake] and [Guard] tasks for included tools.
19
+ - Gem and dependency management with [Bundler] and [Bump].
20
+ - Documentation generation with [YARD].
21
+ - Linting with [RuboCop].
22
+ - Unit testing with [RSpec].
23
+ - Code coverage with [SimpleCov].
24
+ - [Travis CI] ready.
25
+ - [Keep a CHANGELOG].
26
+ - Consistent coding with [EditorConfig].
27
+ - Badges from [Shields.io].
26
28
 
27
29
  [Bump]: https://github.com/gregorym/bump
28
30
  [Bundler]: http://bundler.io/
29
31
  [EditorConfig]: http://editorconfig.org/
32
+ [Keep a CHANGELOG]: http://keepachangelog.com/
30
33
  [Guard]: http://guardgem.org/
31
34
  [Rake]: https://github.com/jimweirich/rake
32
35
  [RSpec]: http://rspec.info/
33
36
  [RuboCop]: https://github.com/bbatsov/rubocop
34
37
  [Shields.io]: http://shields.io/
38
+ [SimpleCov]: https://github.com/colszowka/simplecov
35
39
  [Travis CI]: https://travis-ci.org/
36
40
  [YARD]: http://yardoc.org/index.html
37
41
 
38
42
  ### Bootstrapping a New Project
39
43
 
40
- 1. Clone this repository or download a [release][Releases].
44
+ 1. Clone the master branch of this repository with
41
45
 
42
- 2. Run `./makenew.sh` and follow the prompts.
46
+ ```
47
+ $ git clone --single-branch https://github.com/makenew/ruby-gem.git new-ruby-gem
48
+ $ cd new-ruby-gem
49
+ ```
50
+
51
+ Optionally, reset to the latest [release][Releases] with
52
+
53
+ ```
54
+ $ git reset --hard ruby-gem-v2.0.1
55
+ ```
56
+
57
+ 2. Run
58
+
59
+ ```
60
+ $ ./makenew.sh
61
+ ```
62
+
63
+ and follow the prompts.
43
64
  This will replace the boilerplate, delete itself,
44
65
  and stage changes for commit.
45
66
  This script assumes the project repository will be hosted on GitHub.
@@ -131,12 +152,25 @@ $ git clone https://github.com/makenew/ruby-gem.git
131
152
 
132
153
  [makenew-ruby_gem source]: https://github.com/makenew/ruby-gem
133
154
 
155
+ ### Requirements
156
+
157
+ You will need [Ruby] with [Bundler].
158
+
159
+ Install the development dependencies with
160
+
161
+ ```
162
+ $ bundle
163
+ ```
164
+
165
+ [Bundler]: http://bundler.io/
166
+ [Ruby]: https://www.ruby-lang.org/
167
+
134
168
  ### Rake
135
169
 
136
170
  Run `$ rake -T` to see all Rake tasks.
137
171
 
138
172
  ```
139
- rake build # Build makenew-ruby_gem-2.0.0.gem into the pkg directory
173
+ rake build # Build makenew-ruby_gem-2.0.1.gem into the pkg directory
140
174
  rake bump:current[tag] # Show current gem version
141
175
  rake bump:major[tag] # Bump major part of gem version
142
176
  rake bump:minor[tag] # Bump minor part of gem version
@@ -145,9 +179,9 @@ rake bump:pre[tag] # Bump pre part of gem version
145
179
  rake bump:set # Sets the version number using the VERSION environment variable
146
180
  rake clean # Remove any temporary products
147
181
  rake clobber # Remove any generated files
148
- rake install # Build and install makenew-ruby_gem-2.0.0.gem into system gems
149
- rake install:local # Build and install makenew-ruby_gem-2.0.0.gem into system gems without network access
150
- rake release[remote] # Create tag v2.0.0 and build and push makenew-ruby_gem-2.0.0.gem to Rubygems
182
+ rake install # Build and install makenew-ruby_gem-2.0.1.gem into system gems
183
+ rake install:local # Build and install makenew-ruby_gem-2.0.1.gem into system gems without network access
184
+ rake release[remote] # Create tag v2.0.1 and build and push makenew-ruby_gem-2.0.1.gem to Rubygems
151
185
  rake rubocop # Run RuboCop
152
186
  rake rubocop:auto_correct # Auto-correct RuboCop offenses
153
187
  rake spec # Run RSpec code examples
@@ -2,5 +2,5 @@
2
2
  # Primary module for this gem.
3
3
  module Makenew
4
4
  # Current Makenew version.
5
- VERSION = '2.0.0'.freeze
5
+ VERSION = '2.0.1'.freeze
6
6
  end
@@ -17,7 +17,7 @@ Gem::Specification.new do |spec|
17
17
  spec.test_files = spec.files.grep(%r{^(features|spec|test)/})
18
18
  spec.require_paths = ['lib']
19
19
 
20
- spec.required_ruby_version = '>= 2.0.0'
20
+ spec.required_ruby_version = '>= 2.0.1'
21
21
 
22
22
  spec.add_development_dependency 'bundler', '~> 1.6'
23
23
  spec.add_development_dependency 'rake', '~> 10.4'
data/makenew.sh CHANGED
@@ -44,9 +44,9 @@ makenew () {
44
44
  read -p '> Copyright owner: ' mk_owner
45
45
  read -p '> Copyright year: ' mk_year
46
46
  read -p '> GitHub user or organization name: ' mk_user
47
- read -p '> GitHub repository name: ' mk_project
47
+ read -p '> GitHub repository name: ' mk_repo
48
48
 
49
- sed -i -e '12,89d;178,181d' README.md
49
+ sed -i -e '12,110d;213,216d' README.md
50
50
  sed -i -e "12i ${mk_description}" README.md
51
51
 
52
52
  find_replace "s/VERSION =.*/VERSION = '${mk_version}'.freeze/g"
@@ -57,7 +57,7 @@ makenew () {
57
57
  find_replace "s/2016 Evan Sosenko/${mk_year} ${mk_owner}/g"
58
58
  find_replace "s/Evan Sosenko/${mk_author}/g"
59
59
  find_replace "s/razorx@evansosenko\.com/${mk_email}/g"
60
- find_replace "s/makenew\/ruby-gem/${mk_user}\/${mk_project}/g"
60
+ find_replace "s/makenew\/ruby-gem/${mk_user}\/${mk_repo}/g"
61
61
  find_replace "s/makenew-ruby_gem/${mk_slug}/g"
62
62
  find_replace "s/Makenew/${mk_module}/g"
63
63
  find_replace "s/RubyGem/${mk_class}/g"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: makenew-ruby_gem
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Evan Sosenko
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-01-21 00:00:00.000000000 Z
11
+ date: 2016-02-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -274,7 +274,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
274
274
  requirements:
275
275
  - - ">="
276
276
  - !ruby/object:Gem::Version
277
- version: 2.0.0
277
+ version: 2.0.1
278
278
  required_rubygems_version: !ruby/object:Gem::Requirement
279
279
  requirements:
280
280
  - - ">="