akamai_ccu 1.3.0 → 1.3.1

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: 20f56b91f406cdd333d1c23d885c7370658fc906
4
- data.tar.gz: 3887d4f39e9a4b3e7a14e47f2df6ac1aea47aff5
3
+ metadata.gz: 18a49b343fe161a96498116ab33c0615d437daea
4
+ data.tar.gz: e55db06789e8858f8197cf35a5ea4574733defd4
5
5
  SHA512:
6
- metadata.gz: 9590ad88f2e5426399d9049d5f60852ec7212b163e99da0c177ff3a9cb9b4ac3450a33004adb4571a6d9ae701da10f4ed8aa549d2163162669a7b02e97ee8aa3
7
- data.tar.gz: '0403824dafb5fecb2f3d3cb8dfbf07c2b8b1f15399b99bf3591475f5f99b64c3e933e5938a1639548f223550203eaa041f185d6314928782804a2f5dd4a57d21'
6
+ metadata.gz: b1ad4227f6bfff9f0e9cc56085a9caccda224d0856e7e9230c8394593e104e7d7253c2c8c99833a1d3d8717c3924d3d6e1214315c97db08c0caeddd8890f1aa7
7
+ data.tar.gz: 88c48b409ff6c2843fd7c4b346370759d851a27fc2429335c239c2a33bffac19c6a7333df08c0b881fac5079753d9322bc67d73a2d98f79990263a8329fd7552
@@ -69,7 +69,7 @@ module AkamaiCCU
69
69
  end
70
70
 
71
71
  opts.on("-bBULK", "--bulk=BULK", "Specify bulk contents in a file") do |bulk|
72
- @objects = bulk_objects(bulk)
72
+ @objects = bulk_objects(File.expand_path(bulk))
73
73
  end
74
74
 
75
75
  opts.on("--headers=HEADERS", "Specify HTTP headers to sign") do |headers|
@@ -12,16 +12,18 @@ module AkamaiCCU
12
12
  end
13
13
 
14
14
  def by_txt(name, time = Time.now)
15
- return unless File.exist?(name)
16
- data = File.readlines(name).map(&:strip).reject(&:empty?).map do |entry|
15
+ path = File.expand_path(name)
16
+ return unless File.exist?(path)
17
+ data = File.readlines(path).map(&:strip).reject(&:empty?).map do |entry|
17
18
  entry.split(EQUALITY)
18
19
  end
19
20
  factory(Hash[data], time)
20
21
  end
21
22
 
22
23
  def by_edgerc(name = ".edgerc", time = Time.now)
23
- return unless File.exist?(name)
24
- data = File.readlines(name).map(&:strip)
24
+ path = File.expand_path(name)
25
+ return unless File.exist?(path)
26
+ data = File.readlines(path).map(&:strip)
25
27
  data.shift
26
28
  data.map! { |entry| entry.split(EQUALITY) }
27
29
  factory(Hash[data], time)
@@ -1,3 +1,3 @@
1
1
  module AkamaiCCU
2
- VERSION = "1.3.0"
2
+ VERSION = "1.3.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: akamai_ccu
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - costajob