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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b35743f117a7ab221abb9342c3259e5d73b9e53aa4de7956e3117350724ab187
4
- data.tar.gz: 69a8cf94f8388777bf198fd96a7d08d291aeecdbb8e13980a3bd8c517a28c839
3
+ metadata.gz: '0949a50a2b28085c2484021b65c336d62b23009cbe6684fb2a493049d12632fa'
4
+ data.tar.gz: a0233a2086f30d2fc1ce7920be4310003e2f52440ee0ba4c25f9da577ea4aae2
5
5
  SHA512:
6
- metadata.gz: 7e5a3c54e9bc6d7d8dade7ad1a2aa4546b76fb2fa4aa44c8149a9dd2a1432925b7170de6d729fa8cbf54153e9c5cf0d71158768d5aeed55fbd61e8589d44859c
7
- data.tar.gz: 7a4a8921412ff677f61740be661098133943e7e9ed0d16c23d537f7296af7dd2b1b1d0ea340fa8f21822e27276b40be1c7c86bd7e30328ab3b0a5303a2aefcc1
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/ohesnot_task_generator.rb
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/ohesnot_task_generator.rb
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
- <%- configuration.body.each_line.map(&:chomp).each do |line| -%>
10
- <%= line %>
11
- <%- end -%>
9
+ <%= configuration.body.indent(4) %>
12
10
  <%- end -%>
13
11
  end
14
12
  end
@@ -1,3 +1,3 @@
1
1
  module OneshotTaskGenerator
2
- VERSION = '0.1.3'
2
+ VERSION = '0.1.4'
3
3
  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.3
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: 2019-08-20 00:00:00.000000000 Z
11
+ date: 2020-03-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails