mux_tf 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mux_tf.rb +21 -20
- data/lib/mux_tf/cli/current.rb +71 -62
- data/lib/mux_tf/cli/mux.rb +26 -24
- 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 +3 -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.0
|
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-
|
11
|
+
date: 2020-10-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -146,6 +146,7 @@ files:
|
|
146
146
|
- lib/mux_tf/cli/mux.rb
|
147
147
|
- lib/mux_tf/cli/plan_summary.rb
|
148
148
|
- lib/mux_tf/plan_formatter.rb
|
149
|
+
- lib/mux_tf/plan_summary_handler.rb
|
149
150
|
- lib/mux_tf/terraform_helpers.rb
|
150
151
|
- lib/mux_tf/tmux.rb
|
151
152
|
- lib/mux_tf/version.rb
|