schlepper 1.0.2 → 1.0.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
- SHA1:
3
- metadata.gz: '08c02b1f20e7944465a02e2fbf4c0f3fd2602006'
4
- data.tar.gz: 9be4f044693fffd835322d35df5599a739215894
2
+ SHA256:
3
+ metadata.gz: 73d6344ded7f597887657a72632855a38473fd8de447293144f8bb6f0d90cbdf
4
+ data.tar.gz: c521c66e13afafeadcbfdc20bf1b68dbaacd349599c7d8467592bd6ee24678b5
5
5
  SHA512:
6
- metadata.gz: 6bedefdce224de73b3b7ec84d99dbf8779d84fda48a552957b7c27e90d10fb65db08b1174bd052cae4ace62cdc754115dd8f64f6e7782051f10adebac1a2b70b
7
- data.tar.gz: 72d2055cd25df83cf495369bb3b02a07bef9cad2c557ad50cbca1bb63aff66d7ad69bba0d875fb6636c5d5a626e08f83ad3e5198b7fa0145042de4bbefa117cc
6
+ metadata.gz: 4f6cad5e4e1226e4e02e84fad531c35dad65f0b91e9d39e01427559f5a1135e1f67d64a7ffe62592b71785f6ee2940808afcbcf9d088e33c7e6edb962a979040
7
+ data.tar.gz: 7d0059b5d807ebada7fe22e4d231e0b0686f066e5aa1090f9d408f359e0013337c6fe886676d0f984d2a9c233e743c6c64828b90657126307958cfbfdc459ee0
@@ -1,6 +1,14 @@
1
1
  class <%= file_name.classify %> < Schlepper::Task
2
2
  attr_reader :failure_message
3
3
 
4
+ # Signals to the task runner that this task will control its own transaction.
5
+ # When true the task runner will not open a transaction.
6
+ # Use with caution.
7
+ # @return [Boolean]
8
+ def controls_transaction?
9
+ false
10
+ end
11
+
4
12
  # @return [String] A short note on what the purpose of this task is
5
13
  def description
6
14
  <<-DOC.strip_heredoc
@@ -9,7 +17,7 @@ class <%= file_name.classify %> < Schlepper::Task
9
17
  fail NotImplementedError, "Documentation has not been added for #{self.class.name}"
10
18
  end
11
19
 
12
- # @return [String] The individuals that owns this task
20
+ # @return [String] The individuals that own this task
13
21
  def owner
14
22
  "John Bjön"
15
23
  fail NotImplementedError, "Ownership has not been claimed for #{self.class.name}"
@@ -106,7 +106,7 @@ module Schlepper
106
106
  if status
107
107
  ActiveRecord::Base.connection.execute <<-SQL
108
108
  INSERT INTO schlepper_tasks (version, owner, description, completed_at)
109
- VALUES (#{task.version_number}, #{ActiveRecord::Base.sanitize(task.owner)}, #{ActiveRecord::Base.sanitize(task.description)}, #{ActiveRecord::Base.connection.quote(Time.now.to_s(:db))});
109
+ VALUES (#{task.version_number}, #{ActiveRecord::Base.connection.quote(task.owner)}, #{ActiveRecord::Base.connection.quote(task.description)}, #{ActiveRecord::Base.connection.quote(Time.now.to_s(:db))});
110
110
  SQL
111
111
  end
112
112
 
@@ -1,3 +1,3 @@
1
1
  module Schlepper
2
- VERSION = '1.0.2'
2
+ VERSION = '1.0.4'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: schlepper
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rory O'Connell
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-12-20 00:00:00.000000000 Z
11
+ date: 2018-05-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -173,7 +173,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
173
173
  version: '0'
174
174
  requirements: []
175
175
  rubyforge_project:
176
- rubygems_version: 2.6.11
176
+ rubygems_version: 2.7.6
177
177
  signing_key:
178
178
  specification_version: 4
179
179
  summary: Adds tracking of one off data scripts for Rails.