MrMurano 1.1.3 → 1.1.4

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: b30c051164d206ea8803801def2814e56b53c5d4
4
- data.tar.gz: 58bfc2487e906542bc9e75a947838d98313016d7
3
+ metadata.gz: 0a5093bd76cafdb8ab726abb77602c2b19b1fb2e
4
+ data.tar.gz: 763e072b76d582ad97046a89e194e12551f1ce23
5
5
  SHA512:
6
- metadata.gz: a306b2126c6023bea0c8f20f0e8d285f66d5c564609b9658ee3ecfd83bf7415b51f6ce9cc18fe02b600afc8b7d4bb7612060c78a3861229e8c267356a5577ec3
7
- data.tar.gz: 7ae234da9d3a0bf0d39abdb8311d55da2f59c652633efd7f91bfcd036cc21aec8fa042f2f514de3cf785775190bbc2d23ff8f9528a40f46efa17a583e2315c30
6
+ metadata.gz: 09131c8d2d1a5acee4b297f55a90fa3ea2bc284940dd95de6d7c361572a567366625768f4b3b39c9cb15772a42e8a27eeb876a4342e21227bc800bddf557bec5
7
+ data.tar.gz: 7294edb4f8bd9fe50685d11a1cf51f3670c9dbe49d1109ba60c31c919368375e96827fd886c2b905a916db1756e016c1dcfeaa83654c728f7a3dc00bf59dad41
@@ -85,7 +85,7 @@ module MrMurano
85
85
 
86
86
  def get(path='', &block)
87
87
  uri = endPoint(path)
88
- workit(Net::HTTP::Get.new(uri), &block)
88
+ workit(Net::HTTP::Get.new(uri), &block)
89
89
  end
90
90
 
91
91
  def post(path='', body={}, &block)
@@ -112,7 +112,7 @@ module MrMurano
112
112
  ##
113
113
  # Compute a remote item hash from the local path
114
114
  # @param root Pathname: Root path for this resource type from config files
115
- # @param path Pathname: Path to local item
115
+ # @param path Pathname: Path to local item
116
116
  # @return Hash: hash of the details for the remote item for this path
117
117
  def toRemoteItem(root, path)
118
118
  path = Pathname.new(path) unless path.kind_of? Pathname
@@ -130,7 +130,7 @@ module MrMurano
130
130
 
131
131
  ##
132
132
  # Compute the local path from the listing details
133
- #
133
+ #
134
134
  # If there is already a matching local item, some of its details are also in
135
135
  # the item hash.
136
136
  #
@@ -142,6 +142,8 @@ module MrMurano
142
142
  itemkey = @itemkey.to_sym
143
143
  name = tolocalname(item, itemkey)
144
144
  raise "Bad key(#{itemkey}) for #{item}" if name.nil?
145
+ name = Pathname.new(name) unless name.kind_of? Pathname
146
+ name = name.relative_path_from(Pathname.new('/')) if name.absolute?
145
147
  dest = into + name
146
148
  end
147
149
 
@@ -172,7 +174,7 @@ module MrMurano
172
174
  bitems = localitems(bndl + @location)
173
175
  bitems.map!{|b| b[:bundled] = true; b} # mark items from bundles.
174
176
 
175
-
177
+
176
178
  # use synckey for quicker merging.
177
179
  bitems.each { |b| items[synckey(b)] = b }
178
180
  end
@@ -336,7 +338,7 @@ module MrMurano
336
338
  there = list()
337
339
  here = locallist()
338
340
  itemkey = @itemkey.to_sym
339
-
341
+
340
342
  therebox = {}
341
343
  there.each do |item|
342
344
  item = Hash.transform_keys_to_symbols(item)
@@ -1,4 +1,4 @@
1
1
  module MrMurano
2
- VERSION = '1.1.3'.freeze
2
+ VERSION = '1.1.4'.freeze
3
3
  end
4
4
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: MrMurano
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.3
4
+ version: 1.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Conrad Tadpol Tilstra
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-08-23 00:00:00.000000000 Z
11
+ date: 2016-08-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: commander