whereabouts 0.5.1 → 0.5.2

Sign up to get free protection for your applications and to get access to all the features.
data/README.markdown CHANGED
@@ -5,12 +5,15 @@ Whereabouts is a Rails plugin that generates a polymorphic address model
5
5
  to be associated to ActiveRecord models.
6
6
 
7
7
  To install on Rails 3.x add this to your Gemfile
8
+
8
9
  gem 'whereabouts'
9
10
 
10
- Generate the base address class and migration
11
+ Generate the base address class and migration
12
+
11
13
  rails g address
12
14
 
13
15
  Run migrations
16
+
14
17
  rake db:migrate
15
18
 
16
19
 
@@ -47,5 +50,5 @@ Contributing to whereabouts
47
50
  * Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
48
51
 
49
52
  Copyright (c) 2011 [Nicholas Fine](http://ndfine.com), released under the MIT license
50
- v0.2.0
53
+ v0.5.1
51
54
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.5.1
1
+ 0.5.2
@@ -55,7 +55,7 @@ module Yrgoldteeth
55
55
  # type of Address. Defaults to the parent class.
56
56
  def has_whereabouts klass=:address, options={}
57
57
  # extend Address with class name if not defined.
58
- unless Class.constants.include?(klass.to_s.camelize.to_sym)
58
+ unless Object.const_defined?(klass.to_s.camelize)
59
59
  create_address_class(klass.to_s.camelize)
60
60
  end
61
61
 
data/whereabouts.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{whereabouts}
8
- s.version = "0.5.1"
8
+ s.version = "0.5.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Nicholas Fine"]
12
- s.date = %q{2011-06-16}
12
+ s.date = %q{2011-07-13}
13
13
  s.description = %q{Rails plugin for adding associated addresses to Active Record Models}
14
14
  s.email = %q{nicholas.fine@gmail.com}
15
15
  s.extra_rdoc_files = [
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: whereabouts
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.5.1
5
+ version: 0.5.2
6
6
  platform: ruby
7
7
  authors:
8
8
  - Nicholas Fine
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-06-16 00:00:00 -05:00
13
+ date: 2011-07-13 00:00:00 -05:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
@@ -118,7 +118,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
118
118
  requirements:
119
119
  - - ">="
120
120
  - !ruby/object:Gem::Version
121
- hash: 927639709
121
+ hash: -940392017
122
122
  segments:
123
123
  - 0
124
124
  version: "0"