cf-s3-invalidator 0.3.5 → 0.3.6

Sign up to get free protection for your applications and to get access to all the features.
data/bin/cf-s3-inv CHANGED
@@ -1,6 +1,12 @@
1
1
  #!/usr/bin/env ruby
2
2
  require 'rubygems'
3
- require 'extensions/kernel' # For 'require_relative' support
3
+ unless Kernel.respond_to?(:require_relative)
4
+ module Kernel
5
+ def require_relative(path)
6
+ require File.join(File.dirname(caller[0]), path.to_str)
7
+ end
8
+ end
9
+ end
4
10
  require 'optparse'
5
11
  require 'yaml'
6
12
  require_relative '../lib/cloudfront_invalidator'
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'cf-s3-invalidator'
3
- s.version = '0.3.5'
3
+ s.version = '0.3.6'
4
4
  s.license = 'MIT'
5
5
  s.summary = 'A tool for invalidating AWS S3-based Cloudfront distributions'
6
6
  s.description =
@@ -17,7 +17,6 @@ Gem::Specification.new do |s|
17
17
  s.homepage = 'https://github.com/laurilehmijoki/cf-s3-invalidator'
18
18
 
19
19
  s.add_dependency 'aws-sdk'
20
- s.add_dependency 'extensions'
21
20
  s.add_dependency 'colored', '= 1.2'
22
21
 
23
22
  s.add_development_dependency 'cucumber'
@@ -52,7 +52,7 @@ class CloudfrontInvalidator
52
52
  puts " #{item}".blue
53
53
  end
54
54
  if success
55
- puts "succeeded".green.bold
55
+ puts "succeeded".green
56
56
  else
57
57
  puts "FAILED, reason:".red
58
58
  puts http_response.body
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cf-s3-invalidator
3
3
  version: !ruby/object:Gem::Version
4
- hash: 25
4
+ hash: 31
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 3
9
- - 5
10
- version: 0.3.5
9
+ - 6
10
+ version: 0.3.6
11
11
  platform: ruby
12
12
  authors:
13
13
  - Lauri Lehmijoki
@@ -31,24 +31,10 @@ dependencies:
31
31
  version: "0"
32
32
  type: :runtime
33
33
  version_requirements: *id001
34
- - !ruby/object:Gem::Dependency
35
- name: extensions
36
- prerelease: false
37
- requirement: &id002 !ruby/object:Gem::Requirement
38
- none: false
39
- requirements:
40
- - - ">="
41
- - !ruby/object:Gem::Version
42
- hash: 3
43
- segments:
44
- - 0
45
- version: "0"
46
- type: :runtime
47
- version_requirements: *id002
48
34
  - !ruby/object:Gem::Dependency
49
35
  name: colored
50
36
  prerelease: false
51
- requirement: &id003 !ruby/object:Gem::Requirement
37
+ requirement: &id002 !ruby/object:Gem::Requirement
52
38
  none: false
53
39
  requirements:
54
40
  - - "="
@@ -59,11 +45,11 @@ dependencies:
59
45
  - 2
60
46
  version: "1.2"
61
47
  type: :runtime
62
- version_requirements: *id003
48
+ version_requirements: *id002
63
49
  - !ruby/object:Gem::Dependency
64
50
  name: cucumber
65
51
  prerelease: false
66
- requirement: &id004 !ruby/object:Gem::Requirement
52
+ requirement: &id003 !ruby/object:Gem::Requirement
67
53
  none: false
68
54
  requirements:
69
55
  - - ">="
@@ -73,11 +59,11 @@ dependencies:
73
59
  - 0
74
60
  version: "0"
75
61
  type: :development
76
- version_requirements: *id004
62
+ version_requirements: *id003
77
63
  - !ruby/object:Gem::Dependency
78
64
  name: rake
79
65
  prerelease: false
80
- requirement: &id005 !ruby/object:Gem::Requirement
66
+ requirement: &id004 !ruby/object:Gem::Requirement
81
67
  none: false
82
68
  requirements:
83
69
  - - ">="
@@ -87,11 +73,11 @@ dependencies:
87
73
  - 0
88
74
  version: "0"
89
75
  type: :development
90
- version_requirements: *id005
76
+ version_requirements: *id004
91
77
  - !ruby/object:Gem::Dependency
92
78
  name: aruba
93
79
  prerelease: false
94
- requirement: &id006 !ruby/object:Gem::Requirement
80
+ requirement: &id005 !ruby/object:Gem::Requirement
95
81
  none: false
96
82
  requirements:
97
83
  - - ">="
@@ -103,7 +89,7 @@ dependencies:
103
89
  - 7
104
90
  version: 0.4.7
105
91
  type: :development
106
- version_requirements: *id006
92
+ version_requirements: *id005
107
93
  description: |-
108
94
  This lib fetches the names of all objects on an Amazon Web
109
95
  Services S3 bucket. Then it calls the Cloudfront invalidation REST API on the