scripterator 1.3.0 → 1.3.1
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 +4 -4
- data/CHANGELOG.md +3 -0
- data/README.md +1 -0
- data/lib/scripterator/runner.rb +1 -1
- data/lib/scripterator/version.rb +1 -1
- data/lib/scripterator.rb +1 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 84c395b5214ac475e3763c5bda472573e92d1361
|
4
|
+
data.tar.gz: c707c8e28c4359292895d4fa3e18fbb939ec3f65
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c31e0e84edea8cdb24d48ce7390c28f9fa0c27dcb0663e941b78b1d55f398c1ff6f7bdd06693b8af3a8cb75e8d94a127ee75ab8bcac456241c8937c01b671635
|
7
|
+
data.tar.gz: dcfedbcc6041a308b9cadc1ca56b2c04b48f5d40a171a35af6151410c27340731246f0baeb4009ea415c6e1ab9a4fbbc969ee31027807185307a60dad923d370
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -101,6 +101,7 @@ Environment variable options:
|
|
101
101
|
|
102
102
|
- `START`: first model ID to scripterate
|
103
103
|
- `END`: last model ID to scripterate
|
104
|
+
- `BATCH_SIZE`: how many records to process in a batch
|
104
105
|
- `ID_LIST`: comma-delimited list of IDs to scripterate (e.g. "ID_LIST=1,99,440,23")
|
105
106
|
- `REDIS_EXPIRATION`: amount of time (in seconds) before Redis result sets (checked IDs and failed IDs) are expired
|
106
107
|
|
data/lib/scripterator/runner.rb
CHANGED
data/lib/scripterator/version.rb
CHANGED
data/lib/scripterator.rb
CHANGED
@@ -18,6 +18,7 @@ module Scripterator
|
|
18
18
|
options = {}.tap do |o|
|
19
19
|
o[:start_id] = ENV['START'].try(:to_i)
|
20
20
|
o[:end_id] = ENV['END'].try(:to_i)
|
21
|
+
o[:batch_size] = ENV['BATCH_SIZE'].try(:to_i)
|
21
22
|
o[:id_list] = ENV['ID_LIST'].try(:split, ',')
|
22
23
|
o[:redis_expiration] = ENV['REDIS_EXPIRATION'].try(:to_i) || config.redis_expiration
|
23
24
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: scripterator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ted Dumitrescu
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2017-02-
|
12
|
+
date: 2017-02-27 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activerecord
|