runfile-tasks 0.4.9 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +17 -0
- data/lib/runfile-tasks/all.rb +1 -0
- data/lib/runfile-tasks/changelog.rb +18 -0
- data/lib/runfile-tasks/version.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ac672e3e9dd4873faa07b2bde9c474b9cfd53dee81dd10c952c7d02bf79eb8d5
|
4
|
+
data.tar.gz: eee05b726c05767bf7de889ddb73903d25d1a246c757281739edb197846ae7df
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e526c7757166b57513067c65ede4cd3f4d710af45b425494584cac02eb106f728da3257e915c0851dfa8e70054f675c7f86b3425f82da91fd6542206b2298ba0
|
7
|
+
data.tar.gz: 0ef524732ec2e034754ca456ef77e90056b9059d01064275696a1d3bfc560d2fbe5e55df25156ff25775f665369ed43862689aa0b52b976f88bff8d41b7b3161
|
data/README.md
CHANGED
@@ -180,6 +180,23 @@ RunfileTasks::Docs.rdoc '**/*.{rb,md}', ["--main README.md", "--all",]
|
|
180
180
|
```
|
181
181
|
|
182
182
|
|
183
|
+
### Changelog Tasks
|
184
|
+
|
185
|
+
This command requires that you have [github_changelog_generator] in your Gemfile.
|
186
|
+
|
187
|
+
Commands Added:
|
188
|
+
|
189
|
+
- `changelog [--commit]` - Generates a changelog and optionally commits it to the git repository.
|
190
|
+
|
191
|
+
|
192
|
+
```ruby
|
193
|
+
require 'runfile-tasks/changelog'
|
194
|
+
|
195
|
+
# Include the task and provide your github user/repo
|
196
|
+
RunfileTasks::Changelog.generator "DannyBen/runfile"
|
197
|
+
```
|
198
|
+
|
183
199
|
---
|
184
200
|
[Runfile]: https://github.com/DannyBen/runfile
|
185
201
|
[random cat]: http://thecatapi.com/api/images/get
|
202
|
+
[github_changelog_generator]: https://github.com/github-changelog-generator/github-changelog-generator
|
data/lib/runfile-tasks/all.rb
CHANGED
@@ -0,0 +1,18 @@
|
|
1
|
+
module RunfileTasks
|
2
|
+
module Changelog
|
3
|
+
extend self
|
4
|
+
|
5
|
+
def generator(repo)
|
6
|
+
usage "changelog [--commit]"
|
7
|
+
help "Generate changelog"
|
8
|
+
option "-c, --commit", "Also commit CHANGELOG.md"
|
9
|
+
action :changelog do |args|
|
10
|
+
user, project = repo.split "/"
|
11
|
+
commit = args['--commit'] || args['--push']
|
12
|
+
|
13
|
+
run "github_changelog_generator --project #{project} --user #{user}"
|
14
|
+
run "git add CHANGELOG.md && git commit -am 'update changelog'" if commit
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: runfile-tasks
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Danny Ben Shitrit
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-06-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: runfile
|
@@ -33,6 +33,7 @@ files:
|
|
33
33
|
- README.md
|
34
34
|
- lib/runfile-tasks.rb
|
35
35
|
- lib/runfile-tasks/all.rb
|
36
|
+
- lib/runfile-tasks/changelog.rb
|
36
37
|
- lib/runfile-tasks/docs.rb
|
37
38
|
- lib/runfile-tasks/docs/all.rb
|
38
39
|
- lib/runfile-tasks/docs/rdoc.rb
|
@@ -64,7 +65,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
64
65
|
- !ruby/object:Gem::Version
|
65
66
|
version: '0'
|
66
67
|
requirements: []
|
67
|
-
rubygems_version: 3.
|
68
|
+
rubygems_version: 3.1.2
|
68
69
|
signing_key:
|
69
70
|
specification_version: 4
|
70
71
|
summary: Runfile tasks collection
|