little_monster 0.1.0 → 0.1.2

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
2
  SHA1:
3
- metadata.gz: a0a4e055747390da5a8510bda07ccc837d0ee70f
4
- data.tar.gz: f4fde5e129ab06b38e4ed5c72cf81d72097a028d
3
+ metadata.gz: e091364746bf21c36524fbaaf60e32b2afb7ea52
4
+ data.tar.gz: 9a1147d0ebd52f86d0c7581400ecca62576a6102
5
5
  SHA512:
6
- metadata.gz: bd386336c5f12c4338bc6890ce38df6ea3b98d1771690cbe3bd17ced27491402ffb55498c8c71366ad54020da968da83ee6d7fc6b9a84ea219d803d33fe968c9
7
- data.tar.gz: a9fc3185fe91e35cce693dd63a4e56923fc8c8211a9ba3dfaa1f52d135089ed70ff1907b2b0a042e813790cc302e6331b526155c1cb90e9364e68a443fa103f7
6
+ metadata.gz: 1c3e1994dc6521169022549e790df4597603dc1c20b5b27f8a70067a1fb1bd7cd2245433efa41aa5cfd51ddabae799e0ad557eecbec826ecbb03f29b59a0d97a
7
+ data.tar.gz: 86200b21f6e028739c480ff5c003c1abc05906147ae7e58152fc27144e8ec80d0d3ad56b38a4175626ccede9144c41af91b229e198f719738a8bb2fd552e9faa
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- little_monster (0.1.0)
4
+ little_monster (0.1.2)
5
5
  activesupport
6
6
  multi_json
7
7
  thor
@@ -10,6 +10,8 @@ module LittleMonster
10
10
  module_function
11
11
 
12
12
  def init
13
+ $stdout.sync = true
14
+
13
15
  @@config = Config.new default_config_values
14
16
 
15
17
  @@env = ActiveSupport::StringInquirer.new(ENV['LITTLE_MONSTER_ENV'] || ENV['RUBY_ENV'] || 'development')
@@ -1,4 +1,3 @@
1
- # TODO : don't send data on callback fail
2
1
  module LittleMonster::Core
3
2
  class Job::Orchrestator
4
3
  attr_reader :logger
@@ -29,7 +29,7 @@ module LittleMonster::Core
29
29
  res = LittleMonster::API.put "/jobs/#{@params[:id]}/worker", body: {
30
30
  ip: Socket.gethostname,
31
31
  host: Socket.gethostname,
32
- pid: Process.pid
32
+ pid: Process.pid.to_s
33
33
  }
34
34
 
35
35
  raise LittleMonster::JobAlreadyLockedError, "job [id:#{@params[:id]}] is already locked, discarding" if res.code == 401
@@ -32,7 +32,7 @@ module LittleMonster::RSpec
32
32
  data = if options[:data].class == LittleMonster::Job::Data
33
33
  options[:data]
34
34
  else
35
- LittleMonster::Job::Data.new(double(current_task: task_symbol),
35
+ LittleMonster::Job::Data.new(double(current_action: task_symbol),
36
36
  outputs: options.fetch(:data, {}))
37
37
  end
38
38
 
@@ -1,3 +1,3 @@
1
1
  module LittleMonster
2
- VERSION = '0.1.0'.freeze
2
+ VERSION = '0.1.2'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: little_monster
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - arq
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-08-17 00:00:00.000000000 Z
11
+ date: 2016-08-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport