ae_users_migrator 1.0.0 → 1.0.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.0.0
1
+ 1.0.1
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{ae_users_migrator}
8
- s.version = "1.0.0"
8
+ s.version = "1.0.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Nat Budin"]
data/bin/export_ae_users CHANGED
@@ -36,4 +36,10 @@ ActiveRecord::Base.establish_connection(options)
36
36
 
37
37
  require 'ae_users_migrator/export'
38
38
 
39
- puts AeUsersMigrator::Export::Person.includes(:email_addresses, :account, :open_id_identities, :roles).all.to_json
39
+ if AeUsersMigrator::Export::Person.respond_to?(:includes)
40
+ # ActiveRecord 3 API
41
+ puts AeUsersMigrator::Export::Person.includes(:email_addresses, :account, :open_id_identities, :roles).all.to_json
42
+ else
43
+ # ActiveRecord 2.3 API
44
+ puts AeUsersMigrator::Export::Person.all(:include => [:email_addresses, :account, :open_id_identities, :roles]).to_json
45
+ end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ae_users_migrator
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 21
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 0
10
- version: 1.0.0
9
+ - 1
10
+ version: 1.0.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Nat Budin