MrMurano 1.10.2 → 1.10.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: 574ef4f27498d16c52295624e8fa756add475d51
4
- data.tar.gz: 707004eea35dfe071ba5f92ed796c05b23c6a258
3
+ metadata.gz: d8ad8fbaf5b63c58af42e049c8239ceb1f21b438
4
+ data.tar.gz: 492f2947db94667d266c21412a2f508f0515b4af
5
5
  SHA512:
6
- metadata.gz: 8bd23498aff57723655464e0003a123e6ec23fd1b4c2b3f3d7b149e7f4b5688581c627d809e476a53fb16c537d9cd330efb848e6e8f8fe38c045b6d77646951d
7
- data.tar.gz: 013b4d3e6af229f10afadc22611765c9d2d3232decd9025bd45dd55e61ea1a29a0a6df2fb644b8b7f22b877aabd8ffca983902dc80b01ee34c08967e6c9aa221
6
+ metadata.gz: 1d2bac59edab8835c44941342df644c8beded98c4e5dacb5a3885f66d13013f90706e4cce057d41589c2a4a12291e251969ccacf5e94af32c794c3d0b5d95e92
7
+ data.tar.gz: 792d2ac4a45c882aa657103abe3f60ef32e76ec47ce78eed5b4f5190b626582b1ee7e0500a0840056695fc87f4a1f3ef409a0cf4e24bde3909021747c6dfa35f
@@ -10,7 +10,7 @@ module MrMurano
10
10
  ##
11
11
  # Things that servers do that is common.
12
12
  class ServiceBase < SolutionBase
13
- # not quite sure why this is needed, but…
13
+
14
14
  def mkalias(name)
15
15
  case name
16
16
  when String
@@ -58,7 +58,7 @@ module MrMurano
58
58
  pst = remote.merge ({
59
59
  :solution_id => $cfg['solution.id'],
60
60
  :script => script,
61
- :alias=>[$cfg['solution.id'], remote[:service], remote[:event]].join('_'),
61
+ :alias=>mkalias(remote),
62
62
  :name=>[remote[:service], remote[:event]].join('_')
63
63
  })
64
64
  # try put, if 404, then post.
@@ -172,6 +172,11 @@ module MrMurano
172
172
  end
173
173
  local.dirname.mkpath
174
174
  id = item[@itemkey.to_sym]
175
+ if id.nil? then
176
+ debug "!!! Missing '#{@itemkey}', using :id instead!"
177
+ debug ":id => #{item[:id]}"
178
+ id = item[:id]
179
+ end
175
180
  local.open('wb') do |io|
176
181
  fetch(id) do |chunk|
177
182
  io.write chunk
@@ -1,4 +1,4 @@
1
1
  module MrMurano
2
- VERSION = '1.10.2'.freeze
2
+ VERSION = '1.10.3'.freeze
3
3
  end
4
4
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: MrMurano
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.10.2
4
+ version: 1.10.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Conrad Tadpol Tilstra