schlepper 1.0.2 → 1.0.4
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
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 73d6344ded7f597887657a72632855a38473fd8de447293144f8bb6f0d90cbdf
|
4
|
+
data.tar.gz: c521c66e13afafeadcbfdc20bf1b68dbaacd349599c7d8467592bd6ee24678b5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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}"
|
data/lib/schlepper/process.rb
CHANGED
@@ -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.
|
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
|
|
data/lib/schlepper/version.rb
CHANGED
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.
|
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:
|
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
|
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.
|