oneshot_task_generator 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/lib/generators/oneshot/templates/oneshot.rake.erb +1 -3
- data/lib/oneshot_task_generator/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '0949a50a2b28085c2484021b65c336d62b23009cbe6684fb2a493049d12632fa'
|
4
|
+
data.tar.gz: a0233a2086f30d2fc1ce7920be4310003e2f52440ee0ba4c25f9da577ea4aae2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8399849ac3eed46c05b95097127d0b08d0f5494681261466116b0bbbbacacb842835dfb142d906cdb6fed06abe6149ad8dec0c5b01899149145f8b6da35658f2
|
7
|
+
data.tar.gz: dbb0c1473312f8317262dfac53fd9cc8374414620f0cf35bcfa6b6d4d8aaed08b687764ef8ef1384e9ad2a47d47a137663e8720b41a99c8d8cffe73ac94ecaf7
|
data/README.md
CHANGED
@@ -41,7 +41,7 @@ $ bundle
|
|
41
41
|
### Task Body
|
42
42
|
|
43
43
|
```ruby
|
44
|
-
# config/initializers/
|
44
|
+
# config/initializers/oneshot_task_generator.rb
|
45
45
|
OneshotGenerator.configure do |config|
|
46
46
|
config.body = <<-BODY
|
47
47
|
ActiveRecord::Base.transaction do
|
@@ -67,7 +67,7 @@ end
|
|
67
67
|
### Arguments
|
68
68
|
|
69
69
|
```ruby
|
70
|
-
# config/initializers/
|
70
|
+
# config/initializers/oneshot_task_generator.rb
|
71
71
|
OneshotGenerator.configure do |config|
|
72
72
|
config.arguments = ['task', 'args']
|
73
73
|
end
|
@@ -6,9 +6,7 @@ namespace :oneshot do
|
|
6
6
|
desc ''
|
7
7
|
task <%= task_name %>: :environment do<%= configuration.arguments && " |#{configuration.arguments.join(", ")}|" %>
|
8
8
|
<%- if configuration.body -%>
|
9
|
-
|
10
|
-
<%= line %>
|
11
|
-
<%- end -%>
|
9
|
+
<%= configuration.body.indent(4) %>
|
12
10
|
<%- end -%>
|
13
11
|
end
|
14
12
|
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.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- OSA Shunsuke
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-03-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|