ec2_hosts 0.1.0 → 0.1.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: f3d3a81641bffc23b95c18e6979f3847387c9f65
4
- data.tar.gz: 4798f749b1729aae57c0fc72bba3a0a67a4ffa27
3
+ metadata.gz: 8f46822709fd271e65f58580362728d15b1b9874
4
+ data.tar.gz: 9bbedae1de2fd59814a6445cf9eab7053d7b2d3d
5
5
  SHA512:
6
- metadata.gz: 0628070a21cf3c3cb8d4cf0429b77e68077d822cfa97978201b650d9a92abd316cc8f33056b398e4e86a980ed774ccf9b5de08ce3c72b9dba597c46c945062ea
7
- data.tar.gz: c8a91a6e75de1ab71968ec13c62933471ec902cb1c6d2723681e0d66d118fe7b420c66f69ea9b2728c97f02e82159b237379c1194832a95bb6551967e3526448
6
+ metadata.gz: 1f1830e1fd2fbcbe1c1246d2d20ed2f97cbbe4f85b8a18882c5d649fd6a91b77fd2865cc644f537436d9353b43507bb6f4764a456c87bad88cbc73de85a757b1
7
+ data.tar.gz: c38ff1e99cf4e7d20f23aa17c83a01d3074de94566c6428671d473bc3a973a77d95ac01e87aed6b2421af1e3044920b2ef7b3fee77953a9d2b1fc9d9375861be
@@ -46,7 +46,7 @@ module Ec2Hosts
46
46
  if options[:delete]
47
47
  new_content = old_hosts
48
48
  else
49
- new_content = [old_hosts, start_marker, new_hosts, end_marker].join("\n")
49
+ new_content = [old_hosts, start_marker, new_hosts, end_marker].flatten.join("\n")
50
50
  end
51
51
  # remove one or more white space characters at end of file with
52
52
  # a single new-line
@@ -103,7 +103,7 @@ module Ec2Hosts
103
103
  new_content << start_marker + "\n"
104
104
  marker_state = Marker::INSIDE
105
105
  # add new host content
106
- new_hosts.split("\n").each do |host|
106
+ new_hosts.each do |host|
107
107
  new_content << host + "\n"
108
108
  end
109
109
  else
@@ -1,3 +1,3 @@
1
1
  module Ec2Hosts
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ec2_hosts
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Tongen