jack-eb 1.4.3 → 1.4.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
  SHA256:
3
- metadata.gz: b1da14d6bae560995cd4f192e6d6789f4ba7283bbedb1ef95f04c9ea738dbbc9
4
- data.tar.gz: e4208f66ba012a62a409146790c2861827060b5f500999873952fb6a1afc9e4b
3
+ metadata.gz: 363f7ab1dbb4894d1e989f16e9c84e264ef88774c8ad6c9779850d52e2b30d4e
4
+ data.tar.gz: 9b07a475eaef60cd83b6350be0bc3991d843769de997a495f1fae49542af39fe
5
5
  SHA512:
6
- metadata.gz: aee297d29fe4a91e1de4e01ac68b2fff82794b1e8a1440423b25c477f95d70a9bfa37fd83c9e0a5826432da168114eb0ea731447c11e84d03783c57d5b0c20fa
7
- data.tar.gz: c631c4efcca9a320598500eb8030c8bf66808b6c1b195db55d6af2f62df2c64107a8f1c838f8a44a35e6f3deb89cf98960c23e403c9bfcd9cf136d82aa76ab6d
6
+ metadata.gz: babe16bf7d9f8f11bf43175bc947c5594acfc9278e984486c3f828c870f9768af6142b104c0449c6139a882ad58896bbb7045e5ac3de2e04cd924e6091178d29
7
+ data.tar.gz: '06860582de81823802aab29bded33a42022186b74de456949571d9aa9f5fc76a3e707f7edc1517dc417a46a2dce3b6f9ded9da55983501d2be0196eae4b51536'
@@ -3,6 +3,10 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  This project *tries* to adhere to [Semantic Versioning](http://semver.org/), even before v1.0.
5
5
 
6
+ ## [1.4.4]
7
+ - fix yaml formatter for new versions of ruby: pull request #15
8
+ - Small typo for profile: pull request #14 Thanks @luca3m
9
+
6
10
  ## [1.4.3]
7
11
  - Merge pull request #13 from maciejwalkowiak/patch-1: Fix hint message
8
12
  - update install notes
data/README.md CHANGED
@@ -24,13 +24,7 @@ This blog post also provides a good introduction and shows off useful examples o
24
24
 
25
25
  ## Installation
26
26
 
27
- If you want to quickly install jack without having to worry about jack’s dependencies you can simply install the Bolts Toolbelt which has jack included.
28
-
29
- ```sh
30
- brew cask install boltopslabs/software/bolts
31
- ```
32
-
33
- Or if you prefer you can install ufo with RubyGems
27
+ Install jack with RubyGems:
34
28
 
35
29
  ```sh
36
30
  gem install jack-eb
@@ -38,7 +32,7 @@ gem install jack-eb
38
32
 
39
33
  Note that the gem is called jack-eb but the actual command that is installed is called `jack`. If you are installing jack with RubyGems you will need to handle installing the additional dependencies yourself.
40
34
 
41
- Full installation instructions are on the [Installation docs](http://jack-eb.com/docs/install/).
35
+ More installation instructions are on the [Installation docs](http://jack-eb.com/docs/install/).
42
36
 
43
37
  ## Conventions
44
38
 
@@ -6,9 +6,10 @@
6
6
  <div class="footer-col col-md-4">
7
7
  <h3>More Tools</h3>
8
8
  <ul class="list-unstyled tools">
9
- <li><a href="http://sonic-screwdriver.cloud">Sonic Screwdriver</a></li>
10
- <li><a href="http://lono.cloud">Lono</a></li>
9
+ <li><a href="http://rubyonjets.com">Jets</a></li>
11
10
  <li><a href="http://ufoships.com">Ufo</a></li>
11
+ <li><a href="http://lono.cloud">Lono</a></li>
12
+ <li><a href="http://sonic-screwdriver.cloud">Sonic</a></li>
12
13
  <li><a href="https://boltops.com/toolbelt">Toolbelt</a></li>
13
14
  </ul>
14
15
  </div>
@@ -9,6 +9,7 @@ module Jack
9
9
  class YamlFormatter
10
10
  def process(file)
11
11
  data = YAML.load_file(file)
12
+ data = sort_top_level_keys(data)
12
13
  data = strip_metadata_dates(data)
13
14
  dump = YAML.dump(data).gsub("!ruby/object:Hash", '')
14
15
  lines = dump.split("\n")
@@ -27,6 +28,13 @@ module Jack
27
28
  end
28
29
  data
29
30
  end
31
+
32
+ def sort_top_level_keys(data)
33
+ data.keys.sort.inject({}) do |result, k|
34
+ result[k] = data[k]
35
+ result
36
+ end
37
+ end
30
38
  end
31
39
  end
32
40
  end
@@ -155,7 +155,7 @@ module Jack::Util
155
155
  region = get_region
156
156
  profile = ENV['AWS_PROFILE']
157
157
  flags = {
158
- profile: region ? " --profile #{profile}" : "",
158
+ profile: profile ? " --profile #{profile}" : "",
159
159
  region: region ? " -r #{region}" : ""
160
160
  }
161
161
  @eb_base_flags = "#{flags[:profile]}#{flags[:region]}"
@@ -1,3 +1,3 @@
1
1
  module Jack
2
- VERSION = "1.4.3"
2
+ VERSION = "1.4.4"
3
3
  end
@@ -27,11 +27,11 @@ EOL
27
27
 
28
28
  it "process should strip date modified and created" do
29
29
  input = <<-EOL
30
+ AWSConfigurationTemplateVersion: 1.1.0.0
30
31
  EnvironmentConfigurationMetadata:
31
32
  DateModified: '1425215243000'
32
33
  Description: test.
33
34
  DateCreated: '1425215243000'
34
- AWSConfigurationTemplateVersion: 1.1.0.0
35
35
  EOL
36
36
  file = "spec/fixtures/fake.cfg.yml"
37
37
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jack-eb
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.3
4
+ version: 1.4.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tung Nguyen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-02-11 00:00:00.000000000 Z
11
+ date: 2018-08-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
@@ -275,7 +275,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
275
275
  version: '0'
276
276
  requirements: []
277
277
  rubyforge_project:
278
- rubygems_version: 2.7.3
278
+ rubygems_version: 2.7.6
279
279
  signing_key:
280
280
  specification_version: 4
281
281
  summary: Wrapper tool to manage AWS Elastic Beanstalk environments