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 +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +2 -8
- data/docs/_includes/footer.html +3 -2
- data/lib/jack/config/yaml_formatter.rb +8 -0
- data/lib/jack/util.rb +1 -1
- data/lib/jack/version.rb +1 -1
- data/spec/lib/config/yaml_formatter_spec.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 363f7ab1dbb4894d1e989f16e9c84e264ef88774c8ad6c9779850d52e2b30d4e
|
4
|
+
data.tar.gz: 9b07a475eaef60cd83b6350be0bc3991d843769de997a495f1fae49542af39fe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: babe16bf7d9f8f11bf43175bc947c5594acfc9278e984486c3f828c870f9768af6142b104c0449c6139a882ad58896bbb7045e5ac3de2e04cd924e6091178d29
|
7
|
+
data.tar.gz: '06860582de81823802aab29bded33a42022186b74de456949571d9aa9f5fc76a3e707f7edc1517dc417a46a2dce3b6f9ded9da55983501d2be0196eae4b51536'
|
data/CHANGELOG.md
CHANGED
@@ -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
|
-
|
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
|
-
|
35
|
+
More installation instructions are on the [Installation docs](http://jack-eb.com/docs/install/).
|
42
36
|
|
43
37
|
## Conventions
|
44
38
|
|
data/docs/_includes/footer.html
CHANGED
@@ -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://
|
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
|
data/lib/jack/util.rb
CHANGED
@@ -155,7 +155,7 @@ module Jack::Util
|
|
155
155
|
region = get_region
|
156
156
|
profile = ENV['AWS_PROFILE']
|
157
157
|
flags = {
|
158
|
-
profile:
|
158
|
+
profile: profile ? " --profile #{profile}" : "",
|
159
159
|
region: region ? " -r #{region}" : ""
|
160
160
|
}
|
161
161
|
@eb_base_flags = "#{flags[:profile]}#{flags[:region]}"
|
data/lib/jack/version.rb
CHANGED
@@ -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.
|
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-
|
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.
|
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
|