couchbase-settings 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
1
  module CouchbaseSettings
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
3
3
  end
@@ -24,13 +24,14 @@ module CouchbaseSettings
24
24
  klass_name = "CouchbaseSetting"
25
25
  #klass_name = "#{klass_name}CouchbaseSetting" unless klass_name=="CouchbaseSetting"
26
26
  klass = Object.const_set(klass_name,Class.new)
27
+
27
28
  hash.each do |key,value|
28
29
  #Rails.logger.debug "hash: key = #{key}, value = #{value}"
29
30
  klass.define_singleton_method(key){ value }
30
31
  end
31
32
 
32
33
  # add a method to inspect the entire yml hash
33
- klass.define_singleton_method("inspect") { hash }
34
+ klass.define_singleton_method("to_hash") { hash }
34
35
 
35
36
  klass.class_eval do
36
37
  def self.method_missing(method_id,*args)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: couchbase-settings
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: