foreplay 0.17.1 → 0.17.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: 2549644d6810e287084e17740a653682877e6243
4
- data.tar.gz: 15a78061f9c39aefa585063eb6c389cc58af37d5
3
+ metadata.gz: 322975f1979b4f664b310b36febd0784ec9d913a
4
+ data.tar.gz: b1dc0ae84ccdcaae0a547c40ce96d1f8d811b495
5
5
  SHA512:
6
- metadata.gz: 50658886356018efd8556c0066c01747c8cf2b26a641116dcd1f621978c1fb5ae212d2eaaf3fcbd669eea65dca4f7b65095fc90a7d90a97944ac4bcfd929b732
7
- data.tar.gz: de2640d6018a3aa287fe0e6ca3e9eae2f8f317abe51e7d362bf6457f56b5c658f76fd5f564793ff97a28a8cbfcf4d581b6687446ab0e7e7385f8947ec451f658
6
+ metadata.gz: 33e55c05a5b08dd6142681f25bd06e037abfbc6bc1d8a5f5072cc1acef62ee84a44017360e5036cd8ccac3aa075f5ca292059ce4ca6263ee9fcecfa56ba52fe8
7
+ data.tar.gz: bcccd6c897e3637c9f7ee67828eb73132d05f2f305a831fc25941aa8095c7b5eec09910bad56613f36d80e3b83c22677e3d0efdce26dea1db6e6813c777fb8b0
data/Guardfile CHANGED
@@ -5,7 +5,7 @@ end
5
5
 
6
6
  guard :rspec, all_after_pass: true, all_on_start: true, cmd: 'bundle exec rspec --fail-fast --format documentation' do
7
7
  watch(%r{^spec/.+_spec\.rb$})
8
- watch(%r{^lib/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
8
+ watch(%r{^lib/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" }
9
9
  watch('spec/spec_helper.rb') { 'spec' }
10
10
  watch(%r{^spec/support/.+\.rb$}) { 'spec' }
11
11
  end
data/Rakefile CHANGED
@@ -24,7 +24,7 @@ begin
24
24
  require 'cucumber/rake/task'
25
25
 
26
26
  Cucumber::Rake::Task.new(:features) do |t|
27
- t.cucumber_opts = "--format pretty"
27
+ t.cucumber_opts = '--format pretty'
28
28
  end
29
29
  rescue LoadError
30
30
  desc 'Cucumber rake task not available'
@@ -19,5 +19,5 @@ Gem::Specification.new do |s|
19
19
 
20
20
  s.add_runtime_dependency 'foreman', '>= 0.76', '< 1.0'
21
21
  s.add_runtime_dependency 'ssh-shell', '>= 0.4', '< 1.0'
22
- s.add_runtime_dependency 'activesupport', '>= 3.2.22', '<= 5'
22
+ s.add_runtime_dependency 'activesupport', '>= 3.2.22', '< 5'
23
23
  end
@@ -36,8 +36,7 @@ module Foreplay
36
36
 
37
37
  def roles_all
38
38
  return @roles_all if @roles_all
39
-
40
- @roles_all = YAML.safe_load(File.read(config_file))
39
+ @roles_all = YAML.safe_load(File.read(config_file), [Date, Symbol, Time], [], true)
41
40
 
42
41
  # This environment
43
42
  unless @roles_all.key? environment
@@ -31,8 +31,7 @@ module Foreplay
31
31
 
32
32
  def all_secrets
33
33
  return @all_secrets if @all_secrets
34
-
35
- @all_secrets = url ? YAML.safe_load(raw_secrets) : {}
34
+ @all_secrets = url ? YAML.safe_load(raw_secrets, [Date, Symbol, Time], [], true) : {}
36
35
  rescue Psych::SyntaxError => e
37
36
  log "Exception caught when loading secrets from this location: #{url}"
38
37
  log "#{e.class}: #{e.message}".red
@@ -78,7 +78,8 @@ module Foreplay
78
78
  File.read(
79
79
  "#{File.dirname(__FILE__)}/steps.yml"
80
80
  )
81
- ).result(binding)
81
+ ).result(binding),
82
+ [Date, Symbol, Time], [], true
82
83
  )
83
84
  end
84
85
  end
@@ -1,3 +1,3 @@
1
1
  module Foreplay
2
- VERSION = '0.17.1'.freeze
2
+ VERSION = '0.17.2'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foreplay
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.17.1
4
+ version: 0.17.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dominic Sayers
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-04-24 00:00:00.000000000 Z
11
+ date: 2017-04-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: foreman
@@ -57,7 +57,7 @@ dependencies:
57
57
  - - ">="
58
58
  - !ruby/object:Gem::Version
59
59
  version: 3.2.22
60
- - - "<="
60
+ - - "<"
61
61
  - !ruby/object:Gem::Version
62
62
  version: '5'
63
63
  type: :runtime
@@ -67,7 +67,7 @@ dependencies:
67
67
  - - ">="
68
68
  - !ruby/object:Gem::Version
69
69
  version: 3.2.22
70
- - - "<="
70
+ - - "<"
71
71
  - !ruby/object:Gem::Version
72
72
  version: '5'
73
73
  description: Deploying Rails projects to Ubuntu using Foreman