fulmar 1.2.0 → 1.2.1

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: 55cfab2d652861606d72d808bd871adcf42f4178
4
- data.tar.gz: db07f7edbc5d57b033b3fa37182cab5eb2dc313a
3
+ metadata.gz: 8ddda32a4d9e3c7843c763f983ceb4e0aba8dcb1
4
+ data.tar.gz: af45f53450e669157ba9a389c3b73d0f7df096e0
5
5
  SHA512:
6
- metadata.gz: 51e636bea32532f3b0f9471b88d56f99011672729bd90c9527fea7577c6640498e661f784f3d28df82188bb43754f4105bddcf40c0a74b004bf78a1a2557a498
7
- data.tar.gz: be2e26605ab98d0577d91a76d839a269ac06bbe760880465043523c1f1abb0dcf9ca58613f388ea862fb77ee6b8e4f3daf1f1521c0359fd1091fdb02009d5f44
6
+ metadata.gz: 7b11cf1ec6da68384117a78f4a143a2d49edfc7227a1e42f928ba4a2b3d1b9c408f714e65231b5bfba866d6de2052770d577c68341edab8e3adf899e8fbc52aa
7
+ data.tar.gz: 4819b51d5fc2b07adc59729f0e34ef521251108cd1dd846fbe3257825ca85d380e5de2951b7af78d4d4950e1ad1f5f682a56464898cae690e08c001fea551a4c
@@ -68,10 +68,10 @@ module Fulmar
68
68
  end
69
69
 
70
70
  def feature?(feature)
71
- return configuration[:features][feature] unless configuration[:features][feature].nil?
71
+ return configuration[:features].include? feature.to_s unless configuration[:features].nil?
72
72
  case feature
73
73
  when :database
74
- configuration[:features][:database] = any? { |data| data[:type] == 'maria' }
74
+ any? { |data| data[:type] == 'maria' }
75
75
  else
76
76
  false
77
77
  end
@@ -8,6 +8,7 @@ module Fulmar
8
8
  def initialize(shell, config)
9
9
  @remote_shell = shell
10
10
  @config = config
11
+ test_config
11
12
  end
12
13
 
13
14
  def cache_clear
@@ -36,6 +37,10 @@ module Fulmar
36
37
  def export_filename
37
38
  "export_#{Time.now.strftime('%Y-%m-%dT%H%M%S')}.xml"
38
39
  end
40
+
41
+ def test_config
42
+ fail 'Neos environment is not set.' unless @config[:neos] && @config[:neos][:environment]
43
+ end
39
44
  end
40
45
  end
41
46
  end
@@ -33,7 +33,7 @@ module Fulmar
33
33
  end
34
34
 
35
35
  def branches
36
- @git.branches.collect(:name)
36
+ @git.branches.collect(&:name)
37
37
  end
38
38
 
39
39
  def feature_branches
@@ -1,4 +1,4 @@
1
1
  # Provides a global version number
2
2
  module Fulmar
3
- VERSION = '1.2.0'
3
+ VERSION = '1.2.1'
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fulmar
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonas Siegl
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-03-31 00:00:00.000000000 Z
12
+ date: 2015-04-01 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler