chozo 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
data/chozo.gemspec CHANGED
@@ -17,7 +17,6 @@ Gem::Specification.new do |s|
17
17
  s.required_ruby_version = ">= 1.9.1"
18
18
 
19
19
  s.add_runtime_dependency 'activesupport', '>= 3.2.0'
20
- s.add_runtime_dependency 'activemodel', '>= 3.2.0'
21
20
  s.add_runtime_dependency 'multi_json', '>= 1.3.0'
22
21
  s.add_runtime_dependency 'hashie'
23
22
  end
@@ -19,6 +19,7 @@ module Chozo
19
19
  #
20
20
  # @return [~Chozo::Config::JSON]
21
21
  def from_file(path)
22
+ path = File.expand_path(path)
22
23
  data = File.read(path)
23
24
  new(path).from_json(data)
24
25
  rescue Errno::ENOENT, Errno::EISDIR
@@ -0,0 +1,9 @@
1
+ require 'set'
2
+
3
+ class Set
4
+ # Serialize a Set as it's close cousin - the array
5
+ def to_json(*args)
6
+ self.to_a.to_json(*args)
7
+ end
8
+ alias_method :as_json, :to_json
9
+ end
data/lib/chozo/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Chozo
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chozo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-11-01 00:00:00.000000000 Z
12
+ date: 2012-11-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport
@@ -27,22 +27,6 @@ dependencies:
27
27
  - - ! '>='
28
28
  - !ruby/object:Gem::Version
29
29
  version: 3.2.0
30
- - !ruby/object:Gem::Dependency
31
- name: activemodel
32
- requirement: !ruby/object:Gem::Requirement
33
- none: false
34
- requirements:
35
- - - ! '>='
36
- - !ruby/object:Gem::Version
37
- version: 3.2.0
38
- type: :runtime
39
- prerelease: false
40
- version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
- requirements:
43
- - - ! '>='
44
- - !ruby/object:Gem::Version
45
- version: 3.2.0
46
30
  - !ruby/object:Gem::Dependency
47
31
  name: multi_json
48
32
  requirement: !ruby/object:Gem::Requirement
@@ -99,6 +83,7 @@ files:
99
83
  - lib/chozo/core_ext/boolean.rb
100
84
  - lib/chozo/core_ext/hash.rb
101
85
  - lib/chozo/core_ext/kernel.rb
86
+ - lib/chozo/core_ext/set.rb
102
87
  - lib/chozo/errors.rb
103
88
  - lib/chozo/hashie_ext.rb
104
89
  - lib/chozo/hashie_ext/mash.rb
@@ -135,7 +120,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
135
120
  version: '0'
136
121
  segments:
137
122
  - 0
138
- hash: 534389849781461156
123
+ hash: -257548737276151229
139
124
  requirements: []
140
125
  rubyforge_project:
141
126
  rubygems_version: 1.8.23