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.
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module MuxTf
4
- VERSION = '0.2.0'
4
+ VERSION = "0.3.0"
5
5
  end
@@ -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") do
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).sort.last.to_s
13
- end
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
@@ -1,4 +1,4 @@
1
- require 'yaml/store'
1
+ require "yaml/store"
2
2
 
3
3
  module MuxTf
4
4
  class YamlCache
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.2.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-06-23 00:00:00.000000000 Z
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