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 +4 -4
- data/.travis.yml +2 -3
- data/README.md +48 -14
- data/lib/makenew/version.rb +1 -1
- data/makenew-ruby_gem.gemspec +1 -1
- data/makenew.sh +3 -3
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d7afdbcfc143c12702ec2e55686245adb76bd637
|
4
|
+
data.tar.gz: c731544a4cf72fe56ef20bbed44328c53dfd464e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5e9884f02a38478ec21038781286e2e343c8f4b07517ab027e9beb8f58b53a7a95d7bdd6c7a5a65da8b977b78c4250fcaba14b40f493620083024e296e1123c5
|
7
|
+
data.tar.gz: ee796cd223bd9a8dbe2403aa25946ea948db29242b8971bdf9b57f51b1a9aedc25d8b31f20abb744f68bb781dd6f38c4da76e718800eb53040f45ef75477dd81
|
data/.travis.yml
CHANGED
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
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
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
|
44
|
+
1. Clone the master branch of this repository with
|
41
45
|
|
42
|
-
|
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.
|
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.
|
149
|
-
rake install:local # Build and install makenew-ruby_gem-2.0.
|
150
|
-
rake release[remote] # Create tag v2.0.
|
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
|
data/lib/makenew/version.rb
CHANGED
data/makenew-ruby_gem.gemspec
CHANGED
@@ -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.
|
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: '
|
47
|
+
read -p '> GitHub repository name: ' mk_repo
|
48
48
|
|
49
|
-
sed -i -e '12,
|
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}\/${
|
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.
|
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-
|
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.
|
277
|
+
version: 2.0.1
|
278
278
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
279
279
|
requirements:
|
280
280
|
- - ">="
|