fcoury-mongomapper 0.3.1 → 0.3.3

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/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.1
1
+ 0.3.3
data/mongomapper.gemspec CHANGED
@@ -2,11 +2,11 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{mongomapper}
5
- s.version = "0.3.1"
5
+ s.version = "0.3.3"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["John Nunemaker"]
9
- s.date = %q{2009-07-19}
9
+ s.date = %q{2009-07-20}
10
10
  s.default_executable = %q{mmconsole}
11
11
  s.email = %q{nunemaker@gmail.com}
12
12
  s.executables = ["mmconsole"]
@@ -95,59 +95,6 @@ module TrModels
95
95
  end
96
96
  end
97
97
 
98
- class Media
99
- include MongoMapper::EmbeddedDocument
100
- key :file, String
101
- end
102
-
103
- class Video < Media
104
- key :length, Integer
105
- end
106
-
107
- class Image < Media
108
- key :width, Integer
109
- key :height, Integer
110
- end
111
-
112
- class Music < Media
113
- key :bitrate, String
114
- end
115
-
116
- class Catalog
117
- include MongoMapper::Document
118
-
119
- many :medias, :polymorphic => true
120
- end
121
-
122
- module TrModels
123
- class Transport
124
- include MongoMapper::EmbeddedDocument
125
- key :license_plate, String
126
- end
127
-
128
- class Car < TrModels::Transport
129
- include MongoMapper::EmbeddedDocument
130
- key :model, String
131
- key :year, Integer
132
- end
133
-
134
- class Bus < TrModels::Transport
135
- include MongoMapper::EmbeddedDocument
136
- key :max_passengers, Integer
137
- end
138
-
139
- class Ambulance < TrModels::Transport
140
- include MongoMapper::EmbeddedDocument
141
- key :icu, Boolean
142
- end
143
-
144
- class Fleet
145
- include MongoMapper::Document
146
- many :transports, :polymorphic => true, :class_name => "TrModels::Transport"
147
- key :name, String
148
- end
149
- end
150
-
151
98
  class AssociationsTest < Test::Unit::TestCase
152
99
  def setup
153
100
  Project.collection.clear
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fcoury-mongomapper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Nunemaker
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-07-19 00:00:00 -07:00
12
+ date: 2009-07-20 00:00:00 -07:00
13
13
  default_executable: mmconsole
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency