ec2ctl 0.9.8 → 0.9.9

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: f5b98d7b9d9b2dd4e25ba115a464bbfc026a5bff
4
- data.tar.gz: 815717a464313caf8711ac002e94abd894d187a2
3
+ metadata.gz: 3295ca73bd89c2cc15d3b8d66afddc03999fd3a1
4
+ data.tar.gz: 8d0a77f8b71f742b03f907dff0cdbdcec38fb4ca
5
5
  SHA512:
6
- metadata.gz: f5deacc01b22e5668574e35bedeb9166fad61447cb8ee5c323fc334e3cffb62d91cb358ead0d3760b8f347abaae7bf61e59f3d1ca8fbe1aad86edca50e34cfdd
7
- data.tar.gz: 830310f036cfa898145f3d46c6d25f548d5fcdde7d864c56960b2b5cb15cd435ce6545be8d1a11a94f44068d01ae646e4c87aba37c512c7bc08f4b5708fb7868
6
+ metadata.gz: 7a6afe01532aabdd4a690cb7af08a2c697413b79e643a19771fdfd8258b2676e87d74738c0b8fb432821d7db1ba19c1e36243cd669fbf71c5b739f505402b31c
7
+ data.tar.gz: 1873d16a54c70737982852abed955d91c28ceb98af26644d5f16dc1c2b69cb6ecd03c0f522e68a9f849323b5a9432cfdf52d411bd870b5bc26b30077786e3926
data/lib/ec2ctl/cli.rb CHANGED
@@ -288,7 +288,14 @@ module EC2Ctl
288
288
 
289
289
  def options_from_file
290
290
  pathnames = [
291
- Pathname.new(Dir.pwd).ascend.to_a,
291
+ # Ruby < 2.3
292
+ (
293
+ a = []
294
+ Pathname.new(Dir.pwd).ascend {|path| a.push path}
295
+ a
296
+ ),
297
+ # Ruby >= 2.3
298
+ # Pathname.new(Dir.pwd).ascend.to_a,
292
299
  Pathname.new(Dir.home),
293
300
  ].flatten.map do |pathname|
294
301
  pathname + OPTION_FILE_NAME
@@ -1,3 +1,3 @@
1
1
  module EC2Ctl
2
- VERSION = "0.9.8"
2
+ VERSION = "0.9.9"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ec2ctl
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.8
4
+ version: 0.9.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yoriki Yamaguchi