scripter 0.0.2 → 0.0.3

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
  SHA1:
3
- metadata.gz: 47254c305b731afb7663c223bf2a615d0b9da916
4
- data.tar.gz: 3f71c598220223027123c6f9b05101892ca97bf6
3
+ metadata.gz: 3c66bf719d7e14053871e12fbc8c827863094f1b
4
+ data.tar.gz: a5754f961a63a731ac262c8f6af29b1c9b0c48da
5
5
  SHA512:
6
- metadata.gz: 4bdee889a7f9a02631f671a323eae5c0ad491801cf345c7357daa05717669b7b2ff18a8001d9c39405b92818e7d429238157c000b55abc6da0d13e24f27f08e0
7
- data.tar.gz: 8620c33279ef52b812b99ef7633d58a0e309c4346feb84db63acf2a829f56cf464bd30b32d69061b32d99f4e52023c796c4e8b2951fe1853449f8f92a026855f
6
+ metadata.gz: cf09a1d44d70d1871f209f58b38ba12fba38a30da1eefe983f346df966e2d2093a24b26ecd69c8478aee21c63f7fa34ef383ef4510340489c3f0eb13b0c620cc
7
+ data.tar.gz: 9f161a11fc0033c6b93295a8804f6c5823a04739b6a5db4f6e3e27526447078cee7066ec6273aca5cbab05083d22bbc72246e5abf7ae5e9f8ddd7f57eeb3416e
data/lib/scripter/base.rb CHANGED
@@ -27,7 +27,6 @@ module Scripter
27
27
  trap("SIGINT") { exit! }
28
28
 
29
29
  scripter_instance.with_fault_monitoring do
30
- scripter_instance.instance_variable_set :@iteration_idx, 0
31
30
  scripter_instance.public_send(iteration_function_name)
32
31
  end
33
32
 
@@ -48,7 +47,7 @@ module Scripter
48
47
  end
49
48
 
50
49
  def perform_iteration(iteration_id, iteration_meta={}, verbose=true)
51
- @iteration_idx += 1
50
+ @iteration_idx = (@iteration_idx || 0) + 1
52
51
  begin
53
52
  unless iteration_processed?(iteration_id)
54
53
  yield
@@ -1,7 +1,6 @@
1
1
  # -*- encoding : utf-8 -*-
2
2
  require 'active_support'
3
3
 
4
-
5
4
  module Scripter
6
5
  class CacheStore
7
6
  def initialize
@@ -1,4 +1,4 @@
1
1
  # -*- encoding : utf-8 -*-
2
2
  module Scripter
3
- VERSION = '0.0.2'
3
+ VERSION = '0.0.3'
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: scripter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Artūrs Mekšs
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-10-13 00:00:00.000000000 Z
11
+ date: 2014-10-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler