map 5.1.0 → 5.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/a.rb CHANGED
@@ -1,3 +1,4 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  require 'map'
2
3
 
3
4
  args = [0, 1, {:k => :v, :a => false}]
data/lib/map.rb CHANGED
@@ -1,5 +1,6 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  class Map < Hash
2
- Version = '5.1.0' unless defined?(Version)
3
+ Version = '5.2.0' unless defined?(Version)
3
4
  Load = Kernel.method(:load) unless defined?(Load)
4
5
 
5
6
  class << Map
@@ -987,6 +988,16 @@ class Map < Hash
987
988
  def extractable_options?
988
989
  true
989
990
  end
991
+
992
+ ## for mongoid type system support
993
+ #
994
+ def serialize(object)
995
+ ::Map.for(object)
996
+ end
997
+
998
+ def deserialize(object)
999
+ ::Map.for(object)
1000
+ end
990
1001
  end
991
1002
 
992
1003
  module Kernel
@@ -1,3 +1,4 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  class Map
2
3
  module Options
3
4
  class << Options
@@ -1,3 +1,4 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  class Map
2
3
  class Struct
3
4
  instance_methods.each { |m| undef_method m unless m =~ /^__|object_id/ }
@@ -3,7 +3,7 @@
3
3
 
4
4
  Gem::Specification::new do |spec|
5
5
  spec.name = "map"
6
- spec.version = "5.1.0"
6
+ spec.version = "5.2.0"
7
7
  spec.platform = Gem::Platform::RUBY
8
8
  spec.summary = "map"
9
9
  spec.description = "description: map kicks the ass"
@@ -1,3 +1,4 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  require 'map'
2
3
 
3
4
  ##
@@ -1,3 +1,4 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  # simple testing support
2
3
  #
3
4
  require 'test/unit'
@@ -1,3 +1,4 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  require 'testing'
2
3
  require 'map'
3
4
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: map
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.1.0
4
+ version: 5.2.0
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: 2011-12-01 00:00:00.000000000 Z
12
+ date: 2011-12-29 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: ! 'description: map kicks the ass'
15
15
  email: ara.t.howard@gmail.com