kafo 0.7.1 → 0.7.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: efd6788d5d586e1f56a82ac1d5f442d80cd95e71
4
- data.tar.gz: 02931bee1bffb8a76c4feb422b1fecda92a40f03
3
+ metadata.gz: 631c545585673f01f7e7887718b47ccf1b28166f
4
+ data.tar.gz: def948da2ad4fa1eda020e4d0a7e822fcfaa45b9
5
5
  SHA512:
6
- metadata.gz: c436eb4071e8db5ea1fed921a99677a4c0af5c6e3ac45f5c3110305678f2b3f2fee5f4815ce128915136b83f71dcb3cbf29c20f1a01f91460224ecbdd27a6502
7
- data.tar.gz: 4be01e07788850234518f54d72cf2e13eb923776a74c24dea23bb613f186c136dcaa889a9d60417a3a8255f9b1d5dae0dd3dad97fa6ae484c5e2ecb2bd739975
6
+ metadata.gz: ed6861706c4aee64ac86bf1cd9af46bdec15a43375fe66738af4b941a96a84f21a405e9215719c4b23865b0dfab8a9d8edf50b72703dee46d1d69121fdbb488d
7
+ data.tar.gz: f8d316dd8859f49d4ed8407c232337aa76782f1c767c9e4697f0caca046261f4e59338ccccaade0d9df51049d6da448b0e83f904527773a5ef616b619d39c5b6
@@ -1,5 +1,6 @@
1
1
  # encoding: UTF-8
2
2
  require 'kafo_wizards'
3
+ require 'pathname'
3
4
 
4
5
  module Kafo
5
6
  class ScenarioManager
@@ -8,7 +9,7 @@ module Kafo
8
9
  def initialize(config, last_scenario_link_name='last_scenario.yaml')
9
10
  @config_dir = File.file?(config) ? File.dirname(config) : config
10
11
  @last_scenario_link = File.join(config_dir, last_scenario_link_name)
11
- @previous_scenario = File.realpath(last_scenario_link) if File.exists?(last_scenario_link)
12
+ @previous_scenario = Pathname.new(last_scenario_link).realpath.to_s if File.exists?(last_scenario_link)
12
13
  end
13
14
 
14
15
  def available_scenarios
@@ -67,7 +68,7 @@ module Kafo
67
68
  end
68
69
 
69
70
  def scenario_changed?(scenario)
70
- scenario = File.realpath(scenario) if File.symlink?(scenario)
71
+ scenario = Pathname.new(scenario).realpath.to_s if File.symlink?(scenario)
71
72
  !!previous_scenario && scenario != previous_scenario
72
73
  end
73
74
 
@@ -1,4 +1,4 @@
1
1
  # encoding: UTF-8
2
2
  module Kafo
3
- VERSION = "0.7.1"
3
+ VERSION = "0.7.2"
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kafo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.1
4
+ version: 0.7.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marek Hulan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-01-28 00:00:00.000000000 Z
11
+ date: 2016-02-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -301,3 +301,4 @@ specification_version: 4
301
301
  summary: If you write puppet modules for installing your software, you can use kafo
302
302
  to create powerful installer
303
303
  test_files: []
304
+ has_rdoc: