choices 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/choices.rb +2 -2
  2. metadata +7 -8
@@ -28,7 +28,7 @@ module Choices
28
28
  end
29
29
 
30
30
  def yaml_load(content)
31
- if defined? YAML::ENGINE
31
+ if defined?(YAML::ENGINE) && defined?(Syck)
32
32
  # avoid using broken Psych in 1.9.2
33
33
  old_yamler = YAML::ENGINE.yamler
34
34
  YAML::ENGINE.yamler = 'syck'
@@ -36,7 +36,7 @@ module Choices
36
36
  begin
37
37
  YAML::load(content)
38
38
  ensure
39
- YAML::ENGINE.yamler = old_yamler if defined? YAML::ENGINE
39
+ YAML::ENGINE.yamler = old_yamler if defined?(YAML::ENGINE) && defined?(Syck)
40
40
  end
41
41
  end
42
42
  end
metadata CHANGED
@@ -1,27 +1,27 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: choices
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
5
4
  prerelease:
5
+ version: 0.3.1
6
6
  platform: ruby
7
7
  authors:
8
8
  - Mislav Marohnić
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-12-12 00:00:00.000000000 Z
12
+ date: 2013-07-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
- name: hashie
16
- requirement: !ruby/object:Gem::Requirement
15
+ prerelease: false
16
+ type: :runtime
17
+ version_requirements: !ruby/object:Gem::Requirement
17
18
  none: false
18
19
  requirements:
19
20
  - - ! '>='
20
21
  - !ruby/object:Gem::Version
21
22
  version: 0.4.0
22
- type: :runtime
23
- prerelease: false
24
- version_requirements: !ruby/object:Gem::Requirement
23
+ name: hashie
24
+ requirement: !ruby/object:Gem::Requirement
25
25
  none: false
26
26
  requirements:
27
27
  - - ! '>='
@@ -62,4 +62,3 @@ signing_key:
62
62
  specification_version: 3
63
63
  summary: Easy settings for your app
64
64
  test_files: []
65
- has_rdoc: