ae_users_migrator 1.0.5 → 1.0.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 57c94820c5a015f32663db225409b93ec1d37bb4
4
+ data.tar.gz: 973347913f889f7ed53493df05057ec85db3867c
5
+ SHA512:
6
+ metadata.gz: 1566963129bd35502caae5cd40b2440dabc501bd8a8cc6ea9596f4b64c800ec25d12d3e43136418626ec7bbf41e6509cec6bd84369bede221e58091eb87f19e4
7
+ data.tar.gz: 34bc307d41d3a7a2e02e8d79f4858755deefcd972e2735b8aeefeca2ca0ec7bde0f23f69167d581e9fa2873d1df635c06de4eae86f27709cfadc270461f78d62
@@ -0,0 +1,17 @@
1
+ *.gem
2
+ *.rbc
3
+ .bundle
4
+ .config
5
+ .yardoc
6
+ Gemfile.lock
7
+ InstalledFiles
8
+ _yardoc
9
+ coverage
10
+ doc/
11
+ lib/bundler/man
12
+ pkg
13
+ rdoc
14
+ spec/reports
15
+ test/tmp
16
+ test/version_tmp
17
+ tmp
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'http://rubygems.org'
2
+
3
+ gemspec
4
+ gem 'mysql2'
data/Rakefile CHANGED
@@ -1,53 +1 @@
1
- require 'rubygems'
2
- require 'rake'
3
-
4
- begin
5
- require 'jeweler'
6
- Jeweler::Tasks.new do |gem|
7
- gem.name = "ae_users_migrator"
8
- gem.summary = %Q{Migrate ae_users installations using dumpfiles}
9
- gem.description = %Q{Importer and exporter for ae_users databases using JSON-based dumpfiles}
10
- gem.email = "natbudin@gmail.com"
11
- gem.homepage = "http://github.com/nbudin/ae_users_migrator"
12
- gem.authors = ["Nat Budin"]
13
- gem.bindir = "bin"
14
- gem.add_dependency("activerecord", ">= 2.3")
15
- end
16
- Jeweler::GemcutterTasks.new
17
- rescue LoadError
18
- puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
19
- end
20
-
21
- require 'rake/testtask'
22
- Rake::TestTask.new(:test) do |test|
23
- test.libs << 'lib' << 'test'
24
- test.pattern = 'test/**/test_*.rb'
25
- test.verbose = true
26
- end
27
-
28
- begin
29
- require 'rcov/rcovtask'
30
- Rcov::RcovTask.new do |test|
31
- test.libs << 'test'
32
- test.pattern = 'test/**/test_*.rb'
33
- test.verbose = true
34
- end
35
- rescue LoadError
36
- task :rcov do
37
- abort "RCov is not available. In order to run rcov, you must: sudo gem install spicycode-rcov"
38
- end
39
- end
40
-
41
- task :test => :check_dependencies
42
-
43
- task :default => :test
44
-
45
- require 'rake/rdoctask'
46
- Rake::RDocTask.new do |rdoc|
47
- version = File.exist?('VERSION') ? File.read('VERSION') : ""
48
-
49
- rdoc.rdoc_dir = 'rdoc'
50
- rdoc.title = "ae_users_migrator #{version}"
51
- rdoc.rdoc_files.include('README*')
52
- rdoc.rdoc_files.include('lib/**/*.rb')
53
- end
1
+ require "bundler/gem_tasks"
@@ -1,49 +1,24 @@
1
- # Generated by jeweler
2
- # DO NOT EDIT THIS FILE DIRECTLY
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
- # -*- encoding: utf-8 -*-
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'ae_users_migrator/version'
5
5
 
6
- Gem::Specification.new do |s|
7
- s.name = %q{ae_users_migrator}
8
- s.version = "1.0.5"
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "ae_users_migrator"
8
+ spec.version = AeUsersMigrator::VERSION
9
+ spec.authors = ["Nat Budin"]
10
+ spec.email = ["natbudin@gmail.com"]
11
+ spec.summary = %q{Get the hell off ae_users}
12
+ spec.description = %q{Importer and exporter for ae_users databases using JSON-based dumpfiles}
13
+ spec.homepage = ""
14
+ spec.license = "MIT"
9
15
 
10
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
- s.authors = ["Nat Budin"]
12
- s.date = %q{2011-05-23}
13
- s.default_executable = %q{export_ae_users}
14
- s.description = %q{Importer and exporter for ae_users databases using JSON-based dumpfiles}
15
- s.email = %q{natbudin@gmail.com}
16
- s.executables = ["export_ae_users"]
17
- s.extra_rdoc_files = [
18
- "LICENSE",
19
- "README.rdoc"
20
- ]
21
- s.files = [
22
- "LICENSE",
23
- "README.rdoc",
24
- "Rakefile",
25
- "VERSION",
26
- "ae_users_migrator.gemspec",
27
- "bin/export_ae_users",
28
- "lib/ae_users_migrator.rb",
29
- "lib/ae_users_migrator/export.rb",
30
- "lib/ae_users_migrator/import.rb"
31
- ]
32
- s.homepage = %q{http://github.com/nbudin/ae_users_migrator}
33
- s.require_paths = ["lib"]
34
- s.rubygems_version = %q{1.5.0}
35
- s.summary = %q{Migrate ae_users installations using dumpfiles}
16
+ spec.files = `git ls-files -z`.split("\x0")
17
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
18
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
+ spec.require_paths = ["lib"]
36
20
 
37
- if s.respond_to? :specification_version then
38
- s.specification_version = 3
39
-
40
- if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
41
- s.add_runtime_dependency(%q<activerecord>, [">= 2.3"])
42
- else
43
- s.add_dependency(%q<activerecord>, [">= 2.3"])
44
- end
45
- else
46
- s.add_dependency(%q<activerecord>, [">= 2.3"])
47
- end
21
+ spec.add_dependency "activerecord", ">= 2.3"
22
+ spec.add_development_dependency "bundler", "~> 1.5"
23
+ spec.add_development_dependency "rake"
48
24
  end
49
-
@@ -3,7 +3,7 @@
3
3
  require 'optparse'
4
4
 
5
5
  options = {
6
- :adapter => "mysql",
6
+ :adapter => "mysql2",
7
7
  :host => "localhost",
8
8
  :username => "root",
9
9
  :database => "ae_users"
@@ -1 +1,4 @@
1
+ require "ae_users_migrator/version"
1
2
 
3
+ module AeUsersMigrator
4
+ end
@@ -3,22 +3,22 @@ require 'active_record'
3
3
  module AeUsersMigrator
4
4
  module Export
5
5
  class Account < ActiveRecord::Base
6
- belongs_to :person
6
+ belongs_to :person, :class_name => "AeUsersMigrator::Export::Person"
7
7
  end
8
8
 
9
9
  class EmailAddress < ActiveRecord::Base
10
- belongs_to :person
10
+ belongs_to :person, :class_name => "AeUsersMigrator::Export::Person"
11
11
  end
12
12
 
13
13
  class OpenIdIdentity < ActiveRecord::Base
14
- belongs_to :person
14
+ belongs_to :person, :class_name => "AeUsersMigrator::Export::Person"
15
15
  end
16
16
 
17
17
  class Person < ActiveRecord::Base
18
- has_many :email_addresses
19
- has_one :account
20
- has_many :open_id_identities
21
- has_and_belongs_to_many :roles
18
+ has_many :email_addresses, :class_name => "AeUsersMigrator::Export::EmailAddress"
19
+ has_one :account, :class_name => "AeUsersMigrator::Export::Account"
20
+ has_many :open_id_identities, :class_name => "AeUsersMigrator::Export::OpenIdIdentity"
21
+ has_and_belongs_to_many :roles, :class_name => "AeUsersMigrator::Export::Role"
22
22
 
23
23
  def as_json(options = {})
24
24
  json = super(options)
@@ -35,7 +35,7 @@ module AeUsersMigrator
35
35
  end
36
36
 
37
37
  class Role < ActiveRecord::Base
38
- has_and_belongs_to_many :people
38
+ has_and_belongs_to_many :people, :class_name => "AeUsersMigrator::Export::Person"
39
39
  end
40
40
  end
41
41
  end
@@ -0,0 +1,3 @@
1
+ module AeUsersMigrator
2
+ VERSION = "1.0.6"
3
+ end
metadata CHANGED
@@ -1,48 +1,67 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: ae_users_migrator
3
- version: !ruby/object:Gem::Version
4
- hash: 29
5
- prerelease:
6
- segments:
7
- - 1
8
- - 0
9
- - 5
10
- version: 1.0.5
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.6
11
5
  platform: ruby
12
- authors:
6
+ authors:
13
7
  - Nat Budin
14
8
  autorequire:
15
9
  bindir: bin
16
10
  cert_chain: []
17
-
18
- date: 2011-05-23 00:00:00 -04:00
19
- default_executable: export_ae_users
20
- dependencies:
21
- - !ruby/object:Gem::Dependency
11
+ date: 2014-05-23 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
22
14
  name: activerecord
23
- prerelease: false
24
- requirement: &id001 !ruby/object:Gem::Requirement
25
- none: false
26
- requirements:
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
27
17
  - - ">="
28
- - !ruby/object:Gem::Version
29
- hash: 5
30
- segments:
31
- - 2
32
- - 3
33
- version: "2.3"
18
+ - !ruby/object:Gem::Version
19
+ version: '2.3'
34
20
  type: :runtime
35
- version_requirements: *id001
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '2.3'
27
+ - !ruby/object:Gem::Dependency
28
+ name: bundler
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '1.5'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '1.5'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rake
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
36
55
  description: Importer and exporter for ae_users databases using JSON-based dumpfiles
37
- email: natbudin@gmail.com
38
- executables:
56
+ email:
57
+ - natbudin@gmail.com
58
+ executables:
39
59
  - export_ae_users
40
60
  extensions: []
41
-
42
- extra_rdoc_files:
43
- - LICENSE
44
- - README.rdoc
45
- files:
61
+ extra_rdoc_files: []
62
+ files:
63
+ - ".gitignore"
64
+ - Gemfile
46
65
  - LICENSE
47
66
  - README.rdoc
48
67
  - Rakefile
@@ -52,39 +71,30 @@ files:
52
71
  - lib/ae_users_migrator.rb
53
72
  - lib/ae_users_migrator/export.rb
54
73
  - lib/ae_users_migrator/import.rb
55
- has_rdoc: true
56
- homepage: http://github.com/nbudin/ae_users_migrator
57
- licenses: []
58
-
74
+ - lib/ae_users_migrator/version.rb
75
+ homepage: ''
76
+ licenses:
77
+ - MIT
78
+ metadata: {}
59
79
  post_install_message:
60
80
  rdoc_options: []
61
-
62
- require_paths:
81
+ require_paths:
63
82
  - lib
64
- required_ruby_version: !ruby/object:Gem::Requirement
65
- none: false
66
- requirements:
83
+ required_ruby_version: !ruby/object:Gem::Requirement
84
+ requirements:
67
85
  - - ">="
68
- - !ruby/object:Gem::Version
69
- hash: 3
70
- segments:
71
- - 0
72
- version: "0"
73
- required_rubygems_version: !ruby/object:Gem::Requirement
74
- none: false
75
- requirements:
86
+ - !ruby/object:Gem::Version
87
+ version: '0'
88
+ required_rubygems_version: !ruby/object:Gem::Requirement
89
+ requirements:
76
90
  - - ">="
77
- - !ruby/object:Gem::Version
78
- hash: 3
79
- segments:
80
- - 0
81
- version: "0"
91
+ - !ruby/object:Gem::Version
92
+ version: '0'
82
93
  requirements: []
83
-
84
94
  rubyforge_project:
85
- rubygems_version: 1.5.0
95
+ rubygems_version: 2.2.0
86
96
  signing_key:
87
- specification_version: 3
88
- summary: Migrate ae_users installations using dumpfiles
97
+ specification_version: 4
98
+ summary: Get the hell off ae_users
89
99
  test_files: []
90
-
100
+ has_rdoc: