cloud_powers 0.2.7.15 → 0.2.7.16

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: b03dba271c1be74477dbab7f5dd6c2ab0ecfae29
4
- data.tar.gz: 5d18228258a8b4be63b2c72bf0dc390018c7a3cd
3
+ metadata.gz: 15a17486c12b5e0469c0716a448257dcadc48e4b
4
+ data.tar.gz: 2af3ec297893db4a92a70f7778a6f6d011867203
5
5
  SHA512:
6
- metadata.gz: a38563605e25d0cc3a4de802a6096fafb7fe370d9e068a4cd1e78446707c506a75ac8eb2f6c56ca4df91cab9eccefd992be8183a5539265f34bfee054baad9e4
7
- data.tar.gz: bdf7ecd94a8af7a12a3ae49816f9a1ced6e9446c94554ad4b486be2e337e0a9ba6da83426eac1482ec807d0ac950a51228e86ba7933a4931599e03f130f76d97
6
+ metadata.gz: 79b6acec6b736b2b8de1546fe7986fe75ee8c4736929aea755a6151d7f5a070aa7f41b104d3cb7f9c1c99d557511e2fef1e5f316c04390a1ba71b2efc5b22d71
7
+ data.tar.gz: 133bd74a5f96133ca9151d51b9676a80e9fd6c5351d0de90cdf7f0911da33d350b7b233db7c0593827652ea2e5251be1082bb14c3a5319b7196ead59903adf50
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- cloud_powers (0.2.7.15)
4
+ cloud_powers (0.2.7.16)
5
5
  activesupport-core-ext (~> 4)
6
6
  aws-sdk (~> 2)
7
7
  dotenv (~> 2.1)
@@ -27,7 +27,7 @@ module Smash
27
27
  # Notes
28
28
  # * TODO: needs improvement
29
29
  def approved_task?(name = nil)
30
- ['demo', 'testinz'].include? to_snake(name)
30
+ ['demo', 'testinz', 'true_roas'].include? to_snake(name)
31
31
  end
32
32
 
33
33
  # responsible for sourcing, loading into the global namespace
@@ -54,13 +54,13 @@ module Smash
54
54
  def build(id, msg)
55
55
  body = decipher_message(msg)
56
56
  begin
57
- task = body.delete('task')
57
+ task = body['task']
58
58
  if approved_task? task
59
59
  source_task(task)
60
60
  require_relative task_require_path(task)
61
- Smash.const_get(to_pascal(task)).new(id, msg)
61
+ Smash.const_get(to_pascal(task)).new(id, body)
62
62
  else
63
- Smash::Task.new(id, msg) # returns a default Task
63
+ Smash::Task.new(id, body) # returns a default Task
64
64
  end
65
65
  rescue JSON::ParserError => e
66
66
  message = [msg.body, format_error_message(e)].join("\n")
@@ -41,7 +41,7 @@ module Smash
41
41
  def source_task(file)
42
42
  # TODO: better path management
43
43
  bucket = zfind('task storage')
44
- if task_path(file).nil?
44
+ if task_path(to_ruby_file_name(file)).nil?
45
45
  objects = s3.list_objects(bucket: bucket).contents.select do |f|
46
46
  /#{Regexp.escape file}/i =~ f.key
47
47
  end
@@ -1,3 +1,3 @@
1
1
  module CloudPowers
2
- VERSION = "0.2.7.15"
2
+ VERSION = "0.2.7.16"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cloud_powers
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.7.15
4
+ version: 0.2.7.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Phillipps