makenew-ruby_gem 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.editorconfig +9 -0
- data/.gitignore +43 -0
- data/.rspec +2 -0
- data/.rubocop.yml +9 -0
- data/.travis.yml +12 -0
- data/.yardopts +8 -0
- data/CHANGELOG.md +10 -0
- data/Gemfile +4 -0
- data/Guardfile +23 -0
- data/LICENSE.txt +20 -0
- data/README.md +190 -0
- data/Rakefile +22 -0
- data/lib/.rubocop.yml +1 -0
- data/lib/makenew/ruby_gem.rb +5 -0
- data/lib/makenew/version.rb +6 -0
- data/lib/makenew.rb +2 -0
- data/makenew-ruby_gem.gemspec +41 -0
- data/makenew.sh +80 -0
- data/spec/.rubocop.yml +4 -0
- data/spec/ruby_gem_spec.rb +11 -0
- data/spec/spec_helper.rb +19 -0
- metadata +293 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 6d9548de9d722337219966bf25876cfbe6f9e477
|
4
|
+
data.tar.gz: 6583a88563fb5e36e65f9f218e5677656a6d6550
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 6bf5d689e68e3893c57fc142f93449c14d93c58bb917e2e9b422e402501469d19da13d0eb56282fefe9e6806787bd52d62276547abad2dd8c3a67e7131b34310
|
7
|
+
data.tar.gz: a30acf4a8b7e7546cdedec8944750d748e116705193fa45dc88622008526c99a43e8bbb3682398d13efd46632f11db34f50cbc8d20694cc455a0a0778dc66a27
|
data/.editorconfig
ADDED
data/.gitignore
ADDED
@@ -0,0 +1,43 @@
|
|
1
|
+
# Parts of this file were adapted from
|
2
|
+
# GitHub’s collection of .gitignore file templates
|
3
|
+
# which are Copyright (c) 2016 GitHub, Inc.
|
4
|
+
# and released under the MIT License.
|
5
|
+
# For more details, visit the project page:
|
6
|
+
# https://github.com/github/gitignore
|
7
|
+
|
8
|
+
*.gem
|
9
|
+
*.rbc
|
10
|
+
/.config
|
11
|
+
/coverage/
|
12
|
+
/InstalledFiles
|
13
|
+
/pkg/
|
14
|
+
/spec/reports/
|
15
|
+
/spec/examples.txt
|
16
|
+
/test/tmp/
|
17
|
+
/test/version_tmp/
|
18
|
+
/tmp/
|
19
|
+
|
20
|
+
## Specific to RubyMotion:
|
21
|
+
.dat*
|
22
|
+
.repl_history
|
23
|
+
build/
|
24
|
+
|
25
|
+
## Documentation cache and generated files:
|
26
|
+
/.yardoc/
|
27
|
+
/_yardoc/
|
28
|
+
/doc/
|
29
|
+
/rdoc/
|
30
|
+
|
31
|
+
## Environment normalization:
|
32
|
+
/.bundle/
|
33
|
+
/vendor/bundle
|
34
|
+
/lib/bundler/man/
|
35
|
+
|
36
|
+
# for a library or gem, you might want to ignore these files since the code is
|
37
|
+
# intended to run in multiple environments; otherwise, check them in:
|
38
|
+
Gemfile.lock
|
39
|
+
.ruby-version
|
40
|
+
.ruby-gemset
|
41
|
+
|
42
|
+
# unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
|
43
|
+
.rvmrc
|
data/.rspec
ADDED
data/.rubocop.yml
ADDED
data/.travis.yml
ADDED
data/.yardopts
ADDED
data/CHANGELOG.md
ADDED
@@ -0,0 +1,10 @@
|
|
1
|
+
# Change Log
|
2
|
+
|
3
|
+
All notable changes to this project will be documented in this file.
|
4
|
+
This project adheres to [Semantic Versioning](http://semver.org/).
|
5
|
+
This change log follows the conventions of
|
6
|
+
[keep a CHANGELOG](http://keepachangelog.com/).
|
7
|
+
|
8
|
+
## [Unreleased][Unreleased]
|
9
|
+
|
10
|
+
[Unreleased]: https://github.com/makenew/ruby-gem/compare/v0.0.0...HEAD
|
data/Gemfile
ADDED
data/Guardfile
ADDED
@@ -0,0 +1,23 @@
|
|
1
|
+
scope groups: [:doc, :lint, :unit]
|
2
|
+
|
3
|
+
group :doc do
|
4
|
+
guard :yard do
|
5
|
+
watch(%r{^lib/(.+)\.rb$})
|
6
|
+
end
|
7
|
+
end
|
8
|
+
|
9
|
+
group :lint do
|
10
|
+
guard :rubocop do
|
11
|
+
watch(%r{.+\.rb$})
|
12
|
+
watch(%r{(?:.+/)?\.rubocop\.yml$}) { |m| File.dirname(m[0]) }
|
13
|
+
end
|
14
|
+
end
|
15
|
+
|
16
|
+
group :unit do
|
17
|
+
guard :rspec, cmd: 'bundle exec rspec --color --format Fuubar' do
|
18
|
+
watch(%r{^lib/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
|
19
|
+
watch(%r{^lib/makenew/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
|
20
|
+
watch(%r{^spec/.+_spec\.rb$})
|
21
|
+
watch('spec/spec_helper.rb') { 'spec' }
|
22
|
+
end
|
23
|
+
end
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2016 Evan Sosenko
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
6
|
+
this software and associated documentation files (the "Software"), to deal in
|
7
|
+
the Software without restriction, including without limitation the rights to
|
8
|
+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
9
|
+
the Software, and to permit persons to whom the Software is furnished to do so,
|
10
|
+
subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
17
|
+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
18
|
+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
19
|
+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
20
|
+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,190 @@
|
|
1
|
+
# Ruby Gem Skeleton
|
2
|
+
|
3
|
+
[](https://rubygems.org/gems/makenew-ruby_gem)
|
4
|
+
[](./LICENSE.txt)
|
5
|
+
[](https://gemnasium.com/makenew/ruby-gem)
|
6
|
+
[](https://travis-ci.org/makenew/ruby-gem)
|
7
|
+
[](https://codecov.io/github/makenew/ruby-gem)
|
8
|
+
[](https://codeclimate.com/github/makenew/ruby-gem)
|
9
|
+
|
10
|
+
## Description
|
11
|
+
|
12
|
+
Bootstrap a new [Ruby] gem in less than a minute.
|
13
|
+
|
14
|
+
[Ruby]: https://www.ruby-lang.org/
|
15
|
+
|
16
|
+
### Features
|
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]!
|
26
|
+
|
27
|
+
[Bump]: https://github.com/gregorym/bump
|
28
|
+
[Bundler]: http://bundler.io/
|
29
|
+
[EditorConfig]: http://editorconfig.org/
|
30
|
+
[Guard]: http://guardgem.org/
|
31
|
+
[Rake]: https://github.com/jimweirich/rake
|
32
|
+
[RSpec]: http://rspec.info/
|
33
|
+
[RuboCop]: https://github.com/bbatsov/rubocop
|
34
|
+
[Shields.io]: http://shields.io/
|
35
|
+
[Travis CI]: https://travis-ci.org/
|
36
|
+
[YARD]: http://yardoc.org/index.html
|
37
|
+
|
38
|
+
### Bootstrapping a New Project
|
39
|
+
|
40
|
+
1. Clone this repository or download a [release][Releases].
|
41
|
+
|
42
|
+
2. Run `./makenew.sh` and follow the prompts.
|
43
|
+
This will replace the boilerplate, delete itself,
|
44
|
+
and stage changes for commit.
|
45
|
+
This script assumes the project repository will be hosted on GitHub.
|
46
|
+
For an alternative location, you must update the URLs manually.
|
47
|
+
|
48
|
+
3. Fill in the README Description section.
|
49
|
+
|
50
|
+
4. If [choosing a license][Choose a license] other than the one provided:
|
51
|
+
update `LICENSE.txt`, the README License section, and the gemspec file
|
52
|
+
with your chosen license.
|
53
|
+
|
54
|
+
[Choose a license]: http://choosealicense.com/
|
55
|
+
[Releases]: https://github.com/makenew/ruby-gem/releases
|
56
|
+
[The Unlicense]: http://unlicense.org/UNLICENSE
|
57
|
+
|
58
|
+
### Updating
|
59
|
+
|
60
|
+
If you want to pull in future updates from this skeleton,
|
61
|
+
you can fetch and merge in changes from this repository.
|
62
|
+
|
63
|
+
If this repository is already set as `origin`,
|
64
|
+
rename it to `upstream` with
|
65
|
+
|
66
|
+
```
|
67
|
+
$ git remote rename origin upstream
|
68
|
+
```
|
69
|
+
|
70
|
+
and then configure your `origin` branch as normal.
|
71
|
+
|
72
|
+
Otherwise, add this as a new remote with
|
73
|
+
|
74
|
+
```
|
75
|
+
$ git remote add upstream https://github.com/makenew/ruby-gem.git
|
76
|
+
```
|
77
|
+
|
78
|
+
You can then fetch and merge changes with
|
79
|
+
|
80
|
+
```
|
81
|
+
$ git fetch upstream
|
82
|
+
$ git merge upstream/master
|
83
|
+
```
|
84
|
+
|
85
|
+
#### Changelog
|
86
|
+
|
87
|
+
Note that `CHANGELOG.md` is just a template for this skeleton.
|
88
|
+
The actual changes for this project are documented in the commit history
|
89
|
+
and summarized under [Releases].
|
90
|
+
|
91
|
+
## Installation
|
92
|
+
|
93
|
+
Add this line to your application's [Gemfile][Bundler]
|
94
|
+
|
95
|
+
```ruby
|
96
|
+
gem 'makenew-ruby_gem'
|
97
|
+
```
|
98
|
+
|
99
|
+
and update your bundle with
|
100
|
+
|
101
|
+
```
|
102
|
+
$ bundle
|
103
|
+
```
|
104
|
+
|
105
|
+
Or install it yourself with
|
106
|
+
|
107
|
+
```
|
108
|
+
$ gem install makenew-ruby_gem
|
109
|
+
```
|
110
|
+
|
111
|
+
[Bundler]: http://bundler.io/
|
112
|
+
|
113
|
+
## Documentation
|
114
|
+
|
115
|
+
- [YARD documentation][RubyDoc] is hosted by RubyDoc.info.
|
116
|
+
- [Interactive documentation][Omniref] is hosted by Omniref.
|
117
|
+
|
118
|
+
[RubyDoc]: http://www.rubydoc.info/gems/makenew-ruby_gem
|
119
|
+
[Omniref]: https://www.omniref.com/ruby/gems/makenew-ruby_gem
|
120
|
+
|
121
|
+
## Development and Testing
|
122
|
+
|
123
|
+
### Source Code
|
124
|
+
|
125
|
+
The [makenew-ruby_gem source] is hosted on GitHub.
|
126
|
+
Clone the project with
|
127
|
+
|
128
|
+
```
|
129
|
+
$ git clone https://github.com/makenew/ruby-gem.git
|
130
|
+
```
|
131
|
+
|
132
|
+
[makenew-ruby_gem source]: https://github.com/makenew/ruby-gem
|
133
|
+
|
134
|
+
### Rake
|
135
|
+
|
136
|
+
Run `$ rake -T` to see all Rake tasks.
|
137
|
+
|
138
|
+
```
|
139
|
+
rake build # Build makenew-ruby_gem-2.0.0.gem into the pkg directory
|
140
|
+
rake bump:current[tag] # Show current gem version
|
141
|
+
rake bump:major[tag] # Bump major part of gem version
|
142
|
+
rake bump:minor[tag] # Bump minor part of gem version
|
143
|
+
rake bump:patch[tag] # Bump patch part of gem version
|
144
|
+
rake bump:pre[tag] # Bump pre part of gem version
|
145
|
+
rake bump:set # Sets the version number using the VERSION environment variable
|
146
|
+
rake clean # Remove any temporary products
|
147
|
+
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
|
151
|
+
rake rubocop # Run RuboCop
|
152
|
+
rake rubocop:auto_correct # Auto-correct RuboCop offenses
|
153
|
+
rake spec # Run RSpec code examples
|
154
|
+
rake test # Run test suite
|
155
|
+
rake yard # Generate YARD Documentation
|
156
|
+
```
|
157
|
+
|
158
|
+
### Guard
|
159
|
+
|
160
|
+
Guard tasks have been separated into the following groups:
|
161
|
+
`doc`, `lint`, and `unit`.
|
162
|
+
By default, `$ guard` will generate documentation, lint, and run unit tests.
|
163
|
+
|
164
|
+
## Contributing
|
165
|
+
|
166
|
+
Please submit and comment on bug reports and feature requests.
|
167
|
+
|
168
|
+
To submit a patch:
|
169
|
+
|
170
|
+
1. Fork it (https://github.com/makenew/ruby-gem/fork).
|
171
|
+
2. Create your feature branch (`git checkout -b my-new-feature`).
|
172
|
+
3. Make changes. Write and run tests.
|
173
|
+
4. Commit your changes (`git commit -am 'Add some feature'`).
|
174
|
+
5. Push to the branch (`git push origin my-new-feature`).
|
175
|
+
6. Create a new Pull Request.
|
176
|
+
|
177
|
+
## License
|
178
|
+
|
179
|
+
This software can be used freely, see [The Unlicense].
|
180
|
+
The copyright text appearing below and elsewhere in this repository
|
181
|
+
is for demonstration purposes only and does not apply to this software.
|
182
|
+
|
183
|
+
This Ruby gem is licensed under the MIT license.
|
184
|
+
|
185
|
+
## Warranty
|
186
|
+
|
187
|
+
This software is provided "as is" and without any express or
|
188
|
+
implied warranties, including, without limitation, the implied
|
189
|
+
warranties of merchantibility and fitness for a particular
|
190
|
+
purpose.
|
data/Rakefile
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
require 'bump/tasks'
|
2
|
+
require 'bundler/gem_tasks'
|
3
|
+
require 'rspec/core/rake_task'
|
4
|
+
require 'rubocop/rake_task'
|
5
|
+
require 'yard'
|
6
|
+
|
7
|
+
task default: [:yard, :rubocop, :spec]
|
8
|
+
|
9
|
+
desc 'Run test suite'
|
10
|
+
task test: [:rubocop, :spec]
|
11
|
+
|
12
|
+
YARD::Config.load_plugin 'redcarpet-ext'
|
13
|
+
YARD::Rake::YardocTask.new do |t|
|
14
|
+
t.files = ['**/*.rb', '-', 'README.md', 'CHANGELOG.md', 'LICENSE.txt']
|
15
|
+
t.options = ['--markup-provider=redcarpet', '--markup=markdown']
|
16
|
+
end
|
17
|
+
|
18
|
+
RuboCop::RakeTask.new do |t|
|
19
|
+
t.formatters = ['progress']
|
20
|
+
end
|
21
|
+
|
22
|
+
RSpec::Core::RakeTask.new
|
data/lib/.rubocop.yml
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
inherit_from: ../.rubocop.yml
|
data/lib/makenew.rb
ADDED
@@ -0,0 +1,41 @@
|
|
1
|
+
lib = File.expand_path('../lib', __FILE__)
|
2
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
3
|
+
require 'makenew/version'
|
4
|
+
|
5
|
+
Gem::Specification.new do |spec|
|
6
|
+
spec.name = 'makenew-ruby_gem'
|
7
|
+
spec.version = Makenew::VERSION
|
8
|
+
spec.authors = ['Evan Sosenko']
|
9
|
+
spec.email = ['razorx@evansosenko.com']
|
10
|
+
spec.description = %q{Ruby gem skeleton.}
|
11
|
+
spec.summary = %q{Ruby gem skeleton from makenew.}
|
12
|
+
spec.homepage = 'https://github.com/makenew/ruby-gem'
|
13
|
+
spec.license = 'MIT'
|
14
|
+
|
15
|
+
spec.files = `git ls-files`.split($/)
|
16
|
+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
17
|
+
spec.test_files = spec.files.grep(%r{^(features|spec|test)/})
|
18
|
+
spec.require_paths = ['lib']
|
19
|
+
|
20
|
+
spec.required_ruby_version = '>= 2.0.0'
|
21
|
+
|
22
|
+
spec.add_development_dependency 'bundler', '~> 1.6'
|
23
|
+
spec.add_development_dependency 'rake', '~> 10.4'
|
24
|
+
spec.add_development_dependency 'bump', '~> 0.5'
|
25
|
+
|
26
|
+
spec.add_development_dependency 'guard', '~> 2.11'
|
27
|
+
spec.add_development_dependency 'guard-yard', '~> 2.1'
|
28
|
+
spec.add_development_dependency 'guard-rubocop', '~> 1.2'
|
29
|
+
spec.add_development_dependency 'guard-rspec', '~> 4.5'
|
30
|
+
|
31
|
+
spec.add_development_dependency 'rubocop', '~> 0.28'
|
32
|
+
spec.add_development_dependency 'rspec', '~> 3.1'
|
33
|
+
spec.add_development_dependency 'simplecov', '~> 0.9'
|
34
|
+
spec.add_development_dependency 'codecov', '~> 0.1'
|
35
|
+
spec.add_development_dependency 'fuubar', '~> 2.0'
|
36
|
+
|
37
|
+
spec.add_development_dependency 'yard', '~> 0.8.7'
|
38
|
+
spec.add_development_dependency 'yard-redcarpet-ext', '~> 0.0.3'
|
39
|
+
spec.add_development_dependency 'redcarpet', '~> 3.2'
|
40
|
+
spec.add_development_dependency 'github-markup', '~> 1.3'
|
41
|
+
end
|
data/makenew.sh
ADDED
@@ -0,0 +1,80 @@
|
|
1
|
+
#!/usr/bin/env sh
|
2
|
+
|
3
|
+
set -e
|
4
|
+
set -u
|
5
|
+
|
6
|
+
find_replace () {
|
7
|
+
git ls-files -z | xargs -0 sed -i "$1"
|
8
|
+
}
|
9
|
+
|
10
|
+
check_env () {
|
11
|
+
test -d .git || (echo 'This is not a Git repository. Exiting.' && exit 1)
|
12
|
+
for cmd in ${1}; do
|
13
|
+
command -v ${cmd} >/dev/null 2>&1 || \
|
14
|
+
(echo "Could not find '$cmd' which is required to continue." && exit 2)
|
15
|
+
done
|
16
|
+
echo
|
17
|
+
echo 'Ready to bootstrap your new project!'
|
18
|
+
echo
|
19
|
+
}
|
20
|
+
|
21
|
+
stage_env () {
|
22
|
+
echo
|
23
|
+
git rm -f makenew.sh
|
24
|
+
echo
|
25
|
+
echo 'Staging changes.'
|
26
|
+
git add --all
|
27
|
+
echo
|
28
|
+
echo 'Done!'
|
29
|
+
echo
|
30
|
+
}
|
31
|
+
|
32
|
+
makenew () {
|
33
|
+
read -p '> Package title: ' mk_title
|
34
|
+
read -p '> Gem name (slug): ' mk_slug
|
35
|
+
read -p '> Gem description: ' mk_description
|
36
|
+
read -p '> Gem summary: ' mk_summary
|
37
|
+
read -p '> Version number: ' mk_version
|
38
|
+
read -p '> Module name: ' mk_module
|
39
|
+
read -p '> Module directory name: ' mk_module_dir
|
40
|
+
read -p '> Class name: ' mk_class
|
41
|
+
read -p '> Class file name (without .rb extension): ' mk_class_file
|
42
|
+
read -p '> Author name: ' mk_author
|
43
|
+
read -p '> Author email: ' mk_email
|
44
|
+
read -p '> Copyright owner: ' mk_owner
|
45
|
+
read -p '> Copyright year: ' mk_year
|
46
|
+
read -p '> GitHub user or organization name: ' mk_user
|
47
|
+
read -p '> GitHub repository name: ' mk_project
|
48
|
+
|
49
|
+
sed -i -e '12,89d;178,181d' README.md
|
50
|
+
sed -i -e "12i ${mk_description}" README.md
|
51
|
+
|
52
|
+
find_replace "s/VERSION =.*/VERSION = '${mk_version}'.freeze/g"
|
53
|
+
find_replace "s/0\.0\.0\.\.\./${mk_version}.../g"
|
54
|
+
find_replace "s/Ruby Gem Skeleton/${mk_title}/g"
|
55
|
+
find_replace "s/Ruby gem skeleton\./${mk_description}/g"
|
56
|
+
find_replace "s/Ruby gem skeleton from makenew\./${mk_summary}/g"
|
57
|
+
find_replace "s/2016 Evan Sosenko/${mk_year} ${mk_owner}/g"
|
58
|
+
find_replace "s/Evan Sosenko/${mk_author}/g"
|
59
|
+
find_replace "s/razorx@evansosenko\.com/${mk_email}/g"
|
60
|
+
find_replace "s/makenew\/ruby-gem/${mk_user}\/${mk_project}/g"
|
61
|
+
find_replace "s/makenew-ruby_gem/${mk_slug}/g"
|
62
|
+
find_replace "s/Makenew/${mk_module}/g"
|
63
|
+
find_replace "s/RubyGem/${mk_class}/g"
|
64
|
+
find_replace "s/'makenew\/ruby_gem/'${mk_module_dir}\/${mk_class_file}/g"
|
65
|
+
find_replace "s/'makenew/'${mk_module_dir}/g"
|
66
|
+
find_replace "s/lib\/makenew/lib\/${mk_module_dir}/g"
|
67
|
+
|
68
|
+
git mv makenew-ruby_gem.gemspec ${mk_slug}.gemspec
|
69
|
+
git mv lib/makenew/ruby_gem.rb lib/makenew/${mk_class_file}.rb
|
70
|
+
git mv lib/makenew.rb lib/${mk_module_dir}.rb
|
71
|
+
git mv lib/makenew lib/${mk_module_dir}
|
72
|
+
|
73
|
+
echo
|
74
|
+
echo 'Replacing boilerplate.'
|
75
|
+
}
|
76
|
+
|
77
|
+
check_env 'git read sed xargs'
|
78
|
+
makenew
|
79
|
+
stage_env
|
80
|
+
exit
|
data/spec/.rubocop.yml
ADDED
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
require 'simplecov'
|
2
|
+
|
3
|
+
SimpleCov.start
|
4
|
+
|
5
|
+
if ENV['CI'] == 'true'
|
6
|
+
require 'codecov'
|
7
|
+
SimpleCov.formatter = SimpleCov::Formatter::Codecov
|
8
|
+
else
|
9
|
+
SimpleCov.formatter = SimpleCov::Formatter::HTMLFormatter
|
10
|
+
end
|
11
|
+
|
12
|
+
require 'makenew'
|
13
|
+
|
14
|
+
RSpec.configure do |c|
|
15
|
+
c.expect_with(:rspec) { |e| e.syntax = :expect }
|
16
|
+
c.before(:each) do
|
17
|
+
allow(FileUtils).to receive(:remove_entry_secure).with(anything)
|
18
|
+
end
|
19
|
+
end
|
metadata
ADDED
@@ -0,0 +1,293 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: makenew-ruby_gem
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 2.0.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Evan Sosenko
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2016-01-21 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.6'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.6'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '10.4'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '10.4'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: bump
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0.5'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0.5'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: guard
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '2.11'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '2.11'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: guard-yard
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '2.1'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '2.1'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: guard-rubocop
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '1.2'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '1.2'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: guard-rspec
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - "~>"
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '4.5'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - "~>"
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '4.5'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: rubocop
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - "~>"
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0.28'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - "~>"
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0.28'
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: rspec
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - "~>"
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '3.1'
|
132
|
+
type: :development
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - "~>"
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '3.1'
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: simplecov
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - "~>"
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: '0.9'
|
146
|
+
type: :development
|
147
|
+
prerelease: false
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - "~>"
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: '0.9'
|
153
|
+
- !ruby/object:Gem::Dependency
|
154
|
+
name: codecov
|
155
|
+
requirement: !ruby/object:Gem::Requirement
|
156
|
+
requirements:
|
157
|
+
- - "~>"
|
158
|
+
- !ruby/object:Gem::Version
|
159
|
+
version: '0.1'
|
160
|
+
type: :development
|
161
|
+
prerelease: false
|
162
|
+
version_requirements: !ruby/object:Gem::Requirement
|
163
|
+
requirements:
|
164
|
+
- - "~>"
|
165
|
+
- !ruby/object:Gem::Version
|
166
|
+
version: '0.1'
|
167
|
+
- !ruby/object:Gem::Dependency
|
168
|
+
name: fuubar
|
169
|
+
requirement: !ruby/object:Gem::Requirement
|
170
|
+
requirements:
|
171
|
+
- - "~>"
|
172
|
+
- !ruby/object:Gem::Version
|
173
|
+
version: '2.0'
|
174
|
+
type: :development
|
175
|
+
prerelease: false
|
176
|
+
version_requirements: !ruby/object:Gem::Requirement
|
177
|
+
requirements:
|
178
|
+
- - "~>"
|
179
|
+
- !ruby/object:Gem::Version
|
180
|
+
version: '2.0'
|
181
|
+
- !ruby/object:Gem::Dependency
|
182
|
+
name: yard
|
183
|
+
requirement: !ruby/object:Gem::Requirement
|
184
|
+
requirements:
|
185
|
+
- - "~>"
|
186
|
+
- !ruby/object:Gem::Version
|
187
|
+
version: 0.8.7
|
188
|
+
type: :development
|
189
|
+
prerelease: false
|
190
|
+
version_requirements: !ruby/object:Gem::Requirement
|
191
|
+
requirements:
|
192
|
+
- - "~>"
|
193
|
+
- !ruby/object:Gem::Version
|
194
|
+
version: 0.8.7
|
195
|
+
- !ruby/object:Gem::Dependency
|
196
|
+
name: yard-redcarpet-ext
|
197
|
+
requirement: !ruby/object:Gem::Requirement
|
198
|
+
requirements:
|
199
|
+
- - "~>"
|
200
|
+
- !ruby/object:Gem::Version
|
201
|
+
version: 0.0.3
|
202
|
+
type: :development
|
203
|
+
prerelease: false
|
204
|
+
version_requirements: !ruby/object:Gem::Requirement
|
205
|
+
requirements:
|
206
|
+
- - "~>"
|
207
|
+
- !ruby/object:Gem::Version
|
208
|
+
version: 0.0.3
|
209
|
+
- !ruby/object:Gem::Dependency
|
210
|
+
name: redcarpet
|
211
|
+
requirement: !ruby/object:Gem::Requirement
|
212
|
+
requirements:
|
213
|
+
- - "~>"
|
214
|
+
- !ruby/object:Gem::Version
|
215
|
+
version: '3.2'
|
216
|
+
type: :development
|
217
|
+
prerelease: false
|
218
|
+
version_requirements: !ruby/object:Gem::Requirement
|
219
|
+
requirements:
|
220
|
+
- - "~>"
|
221
|
+
- !ruby/object:Gem::Version
|
222
|
+
version: '3.2'
|
223
|
+
- !ruby/object:Gem::Dependency
|
224
|
+
name: github-markup
|
225
|
+
requirement: !ruby/object:Gem::Requirement
|
226
|
+
requirements:
|
227
|
+
- - "~>"
|
228
|
+
- !ruby/object:Gem::Version
|
229
|
+
version: '1.3'
|
230
|
+
type: :development
|
231
|
+
prerelease: false
|
232
|
+
version_requirements: !ruby/object:Gem::Requirement
|
233
|
+
requirements:
|
234
|
+
- - "~>"
|
235
|
+
- !ruby/object:Gem::Version
|
236
|
+
version: '1.3'
|
237
|
+
description: Ruby gem skeleton.
|
238
|
+
email:
|
239
|
+
- razorx@evansosenko.com
|
240
|
+
executables: []
|
241
|
+
extensions: []
|
242
|
+
extra_rdoc_files: []
|
243
|
+
files:
|
244
|
+
- ".editorconfig"
|
245
|
+
- ".gitignore"
|
246
|
+
- ".rspec"
|
247
|
+
- ".rubocop.yml"
|
248
|
+
- ".travis.yml"
|
249
|
+
- ".yardopts"
|
250
|
+
- CHANGELOG.md
|
251
|
+
- Gemfile
|
252
|
+
- Guardfile
|
253
|
+
- LICENSE.txt
|
254
|
+
- README.md
|
255
|
+
- Rakefile
|
256
|
+
- lib/.rubocop.yml
|
257
|
+
- lib/makenew.rb
|
258
|
+
- lib/makenew/ruby_gem.rb
|
259
|
+
- lib/makenew/version.rb
|
260
|
+
- makenew-ruby_gem.gemspec
|
261
|
+
- makenew.sh
|
262
|
+
- spec/.rubocop.yml
|
263
|
+
- spec/ruby_gem_spec.rb
|
264
|
+
- spec/spec_helper.rb
|
265
|
+
homepage: https://github.com/makenew/ruby-gem
|
266
|
+
licenses:
|
267
|
+
- MIT
|
268
|
+
metadata: {}
|
269
|
+
post_install_message:
|
270
|
+
rdoc_options: []
|
271
|
+
require_paths:
|
272
|
+
- lib
|
273
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
274
|
+
requirements:
|
275
|
+
- - ">="
|
276
|
+
- !ruby/object:Gem::Version
|
277
|
+
version: 2.0.0
|
278
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
279
|
+
requirements:
|
280
|
+
- - ">="
|
281
|
+
- !ruby/object:Gem::Version
|
282
|
+
version: '0'
|
283
|
+
requirements: []
|
284
|
+
rubyforge_project:
|
285
|
+
rubygems_version: 2.5.1
|
286
|
+
signing_key:
|
287
|
+
specification_version: 4
|
288
|
+
summary: Ruby gem skeleton from makenew.
|
289
|
+
test_files:
|
290
|
+
- spec/.rubocop.yml
|
291
|
+
- spec/ruby_gem_spec.rb
|
292
|
+
- spec/spec_helper.rb
|
293
|
+
has_rdoc:
|