oneshot_task_generator 0.1.5 → 0.2.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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2a314fba0676ad53998616ecd7f1c6d6a867b52336e78139a6e4500f57e52cfc
|
|
4
|
+
data.tar.gz: f9167edfcb98a7ce8d32c37521ab4372bbc7a25971e826c7ca63040df0ac1079
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b87c57adbaebe2d9216829a9fb40b1634c294441df6e5b8e3bf39a03ac881bd45559113bf15f751e16d00166dffd3a159ef4b3404536e9648fdb50b58ac49aa8
|
|
7
|
+
data.tar.gz: b78e5b2589534e4896154ff8956cbd59ffb76e0f7cc684253a9af2963120be9bc0e29c9ca643b2a454898df04ef4946e4447c0966f430a2f5523e892929620f7
|
data/CHANGELOG.md
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
All notable changes to this project will be documented in this file.
|
|
3
|
+
|
|
4
|
+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
5
|
+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
6
|
+
|
|
7
|
+
## [0.2.0] - 2020-05-31
|
|
8
|
+
### Changed
|
|
9
|
+
- Task name format follows file name style ('YYYYMMDD_foo_bar') [#13](https://github.com/s-osa/oneshot_task_generator/pull/13)
|
|
10
|
+
|
|
11
|
+
## [0.1.5] - 2020-04-25
|
|
12
|
+
### Added
|
|
13
|
+
- Enable to specify the directory to place task files [#11](https://github.com/s-osa/oneshot_task_generator/pull/11)
|
|
14
|
+
|
|
15
|
+
## [0.1.4] - 2020-03-11
|
|
16
|
+
### Fixed
|
|
17
|
+
- Remove trailing spaces on blank line [#9](https://github.com/s-osa/oneshot_task_generator/pull/9)
|
|
18
|
+
|
|
19
|
+
## [0.1.3] - 2019-08-20
|
|
20
|
+
### Added
|
|
21
|
+
- Enable to configure task arguments [#5](https://github.com/s-osa/oneshot_task_generator/pull/5)
|
|
22
|
+
|
|
23
|
+
## [0.1.2] - 2019-05-13
|
|
24
|
+
### Fixed
|
|
25
|
+
- Require generator [#4](https://github.com/s-osa/oneshot_task_generator/pull/4)
|
|
26
|
+
|
|
27
|
+
## [0.1.1] - 2018-08-14
|
|
28
|
+
### Added
|
|
29
|
+
- frozen_string_literal magic comment [#2](https://github.com/s-osa/oneshot_task_generator/pull/2)
|
|
30
|
+
|
|
31
|
+
## [0.1.0] - 2018-02-08
|
|
32
|
+
### Added
|
|
33
|
+
- Enable to configure task body
|
|
34
|
+
|
|
35
|
+
## [0.0.1] - 2018-02-06
|
|
36
|
+
First release
|
data/README.md
CHANGED
|
@@ -10,12 +10,12 @@ class OneshotGenerator < Rails::Generators::NamedBase
|
|
|
10
10
|
def setup
|
|
11
11
|
@current = Time.current
|
|
12
12
|
@timestamp = @current.strftime('%Y%m%d')
|
|
13
|
-
@task_name = "#{
|
|
13
|
+
@task_name = "#{timestamp}_#{name.underscore}"
|
|
14
14
|
@configuration = self.class.configuration
|
|
15
15
|
end
|
|
16
16
|
|
|
17
17
|
def create_file_with_template
|
|
18
|
-
path = File.join(@configuration.directory, "#{
|
|
18
|
+
path = File.join(@configuration.directory, "#{task_name}.rake")
|
|
19
19
|
template 'oneshot.rake.erb', path
|
|
20
20
|
end
|
|
21
21
|
end
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
<%= "# For copy and paste: `bin/rake oneshot:#{task_name}`" %>
|
|
5
5
|
namespace :oneshot do
|
|
6
6
|
desc ''
|
|
7
|
-
task <%= task_name %>: :environment do<%= configuration.arguments && " |#{configuration.arguments.join(", ")}|" %>
|
|
7
|
+
task <%= "'#{task_name}'" %>: :environment do<%= configuration.arguments && " |#{configuration.arguments.join(", ")}|" %>
|
|
8
8
|
<%- if configuration.body -%>
|
|
9
9
|
<%= configuration.body.indent(4) %>
|
|
10
10
|
<%- end -%>
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: oneshot_task_generator
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.2.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- OSA Shunsuke
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2020-
|
|
11
|
+
date: 2020-05-31 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|
|
@@ -104,6 +104,7 @@ files:
|
|
|
104
104
|
- ".gitignore"
|
|
105
105
|
- ".rspec"
|
|
106
106
|
- ".travis.yml"
|
|
107
|
+
- CHANGELOG.md
|
|
107
108
|
- Gemfile
|
|
108
109
|
- LICENSE
|
|
109
110
|
- README.md
|