mux_tf 0.2.2 → 0.3.2
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/exe/tf_current +10 -3
- data/exe/tf_mux +10 -3
- data/exe/tf_plan_summary +10 -3
- data/lib/deps.rb +5 -0
- data/lib/mux_tf.rb +28 -25
- data/lib/mux_tf/cli/current.rb +70 -61
- data/lib/mux_tf/cli/mux.rb +50 -25
- data/lib/mux_tf/cli/plan_summary.rb +20 -246
- data/lib/mux_tf/plan_formatter.rb +36 -36
- data/lib/mux_tf/plan_summary_handler.rb +258 -0
- data/lib/mux_tf/terraform_helpers.rb +28 -28
- data/lib/mux_tf/tmux.rb +18 -11
- data/lib/mux_tf/version.rb +1 -1
- data/lib/mux_tf/version_check.rb +6 -6
- data/lib/mux_tf/yaml_cache.rb +1 -1
- metadata +4 -2
data/lib/mux_tf/version.rb
CHANGED
data/lib/mux_tf/version_check.rb
CHANGED
@@ -1,20 +1,20 @@
|
|
1
1
|
module MuxTf
|
2
2
|
module VersionCheck
|
3
3
|
def has_updates?
|
4
|
-
current_gem_version < latest_gem_version
|
4
|
+
current_gem_version < latest_gem_version
|
5
5
|
end
|
6
|
-
|
6
|
+
|
7
7
|
def latest_gem_version
|
8
|
-
value = cache.fetch("latest_gem_version")
|
8
|
+
value = cache.fetch("latest_gem_version") {
|
9
9
|
fetcher = Gem::SpecFetcher.fetcher
|
10
10
|
dependency = Gem::Dependency.new "mux_tf"
|
11
11
|
remotes, = fetcher.search_for_dependency dependency
|
12
|
-
remotes.map(&:first).map(&:version).
|
13
|
-
|
12
|
+
remotes.map(&:first).map(&:version).max.to_s
|
13
|
+
}
|
14
14
|
|
15
15
|
Gem::Version.new(value)
|
16
16
|
end
|
17
|
-
|
17
|
+
|
18
18
|
def current_gem_version
|
19
19
|
Gem::Version.new(MuxTf::VERSION)
|
20
20
|
end
|
data/lib/mux_tf/yaml_cache.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mux_tf
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Piotr Banasik
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-06
|
11
|
+
date: 2020-10-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -140,12 +140,14 @@ files:
|
|
140
140
|
- exe/tf_current
|
141
141
|
- exe/tf_mux
|
142
142
|
- exe/tf_plan_summary
|
143
|
+
- lib/deps.rb
|
143
144
|
- lib/mux_tf.rb
|
144
145
|
- lib/mux_tf/cli.rb
|
145
146
|
- lib/mux_tf/cli/current.rb
|
146
147
|
- lib/mux_tf/cli/mux.rb
|
147
148
|
- lib/mux_tf/cli/plan_summary.rb
|
148
149
|
- lib/mux_tf/plan_formatter.rb
|
150
|
+
- lib/mux_tf/plan_summary_handler.rb
|
149
151
|
- lib/mux_tf/terraform_helpers.rb
|
150
152
|
- lib/mux_tf/tmux.rb
|
151
153
|
- lib/mux_tf/version.rb
|