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 +4 -4
- data/lib/MrMurano/Solution-Services.rb +2 -2
- data/lib/MrMurano/SyncUpDown.rb +5 -0
- data/lib/MrMurano/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d8ad8fbaf5b63c58af42e049c8239ceb1f21b438
|
4
|
+
data.tar.gz: 492f2947db94667d266c21412a2f508f0515b4af
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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=>
|
61
|
+
:alias=>mkalias(remote),
|
62
62
|
:name=>[remote[:service], remote[:event]].join('_')
|
63
63
|
})
|
64
64
|
# try put, if 404, then post.
|
data/lib/MrMurano/SyncUpDown.rb
CHANGED
@@ -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
|
data/lib/MrMurano/version.rb
CHANGED