map 6.0.1 → 6.1.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.
Files changed (5) hide show
  1. data/lib/map.rb +13 -1
  2. data/map.gemspec +1 -3
  3. metadata +3 -5
  4. data/TODO +0 -8
  5. data/a.rb +0 -56
data/lib/map.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  # -*- encoding : utf-8 -*-
2
2
  class Map < Hash
3
- Version = '6.0.1' unless defined?(Version)
3
+ Version = '6.1.0' unless defined?(Version)
4
4
  Load = Kernel.method(:load) unless defined?(Load)
5
5
 
6
6
  class << Map
@@ -1136,6 +1136,18 @@ class Map < Hash
1136
1136
  def deserialize(object)
1137
1137
  ::Map.for(object)
1138
1138
  end
1139
+
1140
+ def Map.demongoize(object)
1141
+ Map.for(object)
1142
+ end
1143
+
1144
+ def Map.evolve(object)
1145
+ Map.for(object)
1146
+ end
1147
+
1148
+ def mongoize
1149
+ self
1150
+ end
1139
1151
  end
1140
1152
 
1141
1153
  module Kernel
@@ -3,7 +3,7 @@
3
3
 
4
4
  Gem::Specification::new do |spec|
5
5
  spec.name = "map"
6
- spec.version = "6.0.1"
6
+ spec.version = "6.1.0"
7
7
  spec.platform = Gem::Platform::RUBY
8
8
  spec.summary = "map"
9
9
  spec.description = "description: map kicks the ass"
@@ -12,8 +12,6 @@ Gem::Specification::new do |spec|
12
12
  ["LICENSE",
13
13
  "README",
14
14
  "Rakefile",
15
- "TODO",
16
- "a.rb",
17
15
  "lib",
18
16
  "lib/map",
19
17
  "lib/map.rb",
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: 6.0.1
4
+ version: 6.1.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: 2012-05-28 00:00:00.000000000 Z
12
+ date: 2012-06-27 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: ! 'description: map kicks the ass'
15
15
  email: ara.t.howard@gmail.com
@@ -20,8 +20,6 @@ files:
20
20
  - LICENSE
21
21
  - README
22
22
  - Rakefile
23
- - TODO
24
- - a.rb
25
23
  - lib/map.rb
26
24
  - lib/map/integrations/active_record.rb
27
25
  - lib/map/options.rb
@@ -50,7 +48,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
50
48
  version: '0'
51
49
  requirements: []
52
50
  rubyforge_project: codeforpeople
53
- rubygems_version: 1.8.24
51
+ rubygems_version: 1.8.23
54
52
  signing_key:
55
53
  specification_version: 3
56
54
  summary: map
data/TODO DELETED
@@ -1,8 +0,0 @@
1
- todo:
2
- - #slice operator
3
- - depth first each-ish delete operator
4
-
5
- - struct tests
6
- - map.push(object)
7
-
8
- done:
data/a.rb DELETED
@@ -1,56 +0,0 @@
1
- #!/usr/bin/env ruby
2
- # -*- encoding : utf-8 -*-
3
-
4
- require './lib/map.rb'
5
-
6
-
7
- def assert(&block)
8
- block.call
9
- end
10
-
11
-
12
- ###
13
- m = Map.new
14
- p m.add(
15
- :comments => [
16
- { :body => 'a' },
17
- { :body => 'b' },
18
- ],
19
-
20
- [:comments, 0] => {'title' => 'teh title', 'description' => 'description'},
21
- [:comments, 1] => {'description' => 'description'},
22
- )
23
- puts
24
- puts
25
- p :m => m
26
-
27
-
28
- __END__
29
- =begin
30
-
31
- {"comments"=>
32
- [{"body"=>"a", "title"=>"teh title", "description"=>"description"},
33
- {"body"=>"b", "description"=>"description"}]}
34
-
35
- =end
36
-
37
-
38
- ###
39
- m = Map.new
40
- p m.add(
41
- [:a, :b, :c] => 42,
42
-
43
- [:a, :b] => {:d => 42.0}
44
- )
45
- puts
46
- puts
47
- p m
48
-
49
- =begin
50
-
51
- {"a"=>{"b"=>{"c"=>42, "d"=>42.0}}}
52
-
53
- =end
54
-
55
- Map.new.add
56
- Map.new.add({})