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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b2a4bcc6d9df171a074aa70c2ec1c820a217872b2df3f50a19dac55737402499
4
- data.tar.gz: 23f351be635729cd26708da82b4beeb3e8a710e9742a00932e8fd6ac510b7fc6
3
+ metadata.gz: ac672e3e9dd4873faa07b2bde9c474b9cfd53dee81dd10c952c7d02bf79eb8d5
4
+ data.tar.gz: eee05b726c05767bf7de889ddb73903d25d1a246c757281739edb197846ae7df
5
5
  SHA512:
6
- metadata.gz: 6fd11271922627823e6e306281d41ad8a4239f38378ccc31615cadf35607f1902634d97f95a5e8828fcdcb4b699013b79fb1720e1a4d710b7b74752d1a143638
7
- data.tar.gz: 4cde89841935252c75bbea34cee09e381b57aeff2fc634aa4528109522f2c652017f1d14da731e4ddb07b163588b1874a088dd142080ca607e688d0f4d5c7507
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
@@ -3,3 +3,4 @@ require "runfile-tasks/version"
3
3
  require "runfile-tasks/rubygems"
4
4
  require "runfile-tasks/docs"
5
5
  require "runfile-tasks/testing"
6
+ require "runfile-tasks/changelog"
@@ -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
@@ -1,3 +1,3 @@
1
1
  module RunfileTasks
2
- VERSION = "0.4.9"
2
+ VERSION = "0.5.1"
3
3
  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.9
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-02-04 00:00:00.000000000 Z
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.0.3
68
+ rubygems_version: 3.1.2
68
69
  signing_key:
69
70
  specification_version: 4
70
71
  summary: Runfile tasks collection