mongoid-rspec 1.1.0 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.0
1
+ 1.1.1
@@ -88,17 +88,17 @@ module Mongoid
88
88
  def type_description(type = nil, passive = true)
89
89
  type ||= @association[:type]
90
90
  case type.name
91
- when "Mongoid::Associations::EmbedsOne"
91
+ when EMBEDS_ONE.name
92
92
  (passive ? 'embed' : 'embeds') << ' one'
93
- when "Mongoid::Associations::EmbedsMany"
93
+ when EMBEDS_MANY.name
94
94
  (passive ? 'embed' : 'embeds') << ' many'
95
- when "Mongoid::Associations::EmbeddedIn"
95
+ when EMBEDDED_IN.name
96
96
  (passive ? 'be' : 'is') << ' embedded in'
97
- when "Mongoid::Associations::HasOneRelated"
97
+ when HAS_ONE.name
98
98
  (passive ? 'have' : 'has') << ' one related'
99
- when "Mongoid::Associations::HasManyRelated"
99
+ when HAS_MANY.name
100
100
  (passive ? 'have' : 'has') << ' many related'
101
- when "Mongoid::Associations::BelongsToRelated"
101
+ when BELONGS_TO.name
102
102
  (passive ? 'belong' : 'belongs') << ' to related'
103
103
  else
104
104
  raise "Unknown association type"
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{mongoid-rspec}
8
- s.version = "1.1.0"
8
+ s.version = "1.1.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Evan Sagge"]
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 1
7
7
  - 1
8
- - 0
9
- version: 1.1.0
8
+ - 1
9
+ version: 1.1.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - Evan Sagge