mlins-godwit 1.0.0
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/CHANGELOG +3 -0
- data/MIT-LICENSE +20 -0
- data/README +110 -0
- data/Rakefile +37 -0
- data/VERSION.yml +4 -0
- data/app_generators/godwit/godwit_generator.rb +91 -0
- data/app_generators/godwit/templates/Rakefile +8 -0
- data/app_generators/godwit/templates/config/database.yml +13 -0
- data/app_generators/godwit/templates/config/environment.rb +22 -0
- data/app_generators/godwit/templates/log/active_migration.log +0 -0
- data/app_generators/godwit/templates/log/active_record.log +0 -0
- data/app_generators/godwit/templates/script/console +8 -0
- data/app_generators/godwit/templates/script/lib/console.rb +3 -0
- data/app_generators/godwit/templates/script/migrate +6 -0
- data/bin/godwit +17 -0
- data/godwit_generators/active_migration/active_migration_generator.rb +55 -0
- data/godwit_generators/active_migration/templates/active_migration.rb +9 -0
- data/godwit_generators/active_model/active_model_generator.rb +53 -0
- data/godwit_generators/active_model/templates/active_model.rb +3 -0
- data/godwit_generators/legacy_model/legacy_model_generator.rb +53 -0
- data/godwit_generators/legacy_model/templates/legacy_model.rb +7 -0
- data/lib/godwit/active_migration.rb +97 -0
- data/lib/godwit/base.rb +43 -0
- data/lib/godwit/bootloader.rb +79 -0
- data/lib/godwit/buffer.rb +46 -0
- data/lib/godwit/callbacks.rb +34 -0
- data/lib/godwit/config.rb +120 -0
- data/lib/godwit/irb.rb +33 -0
- data/lib/godwit/legacy_record.rb +11 -0
- data/lib/godwit/version.rb +9 -0
- data/lib/godwit.rb +44 -0
- data/spec/active_migration_generator_spec.rb +23 -0
- data/spec/active_model_generator_spec.rb +23 -0
- data/spec/buffer_spec.rb +51 -0
- data/spec/callbacks_spec.rb +29 -0
- data/spec/config_spec.rb +54 -0
- data/spec/godwit_generator_spec.rb +34 -0
- data/spec/legacy_model_generator_spec.rb +23 -0
- data/spec/spec.opts +1 -0
- data/spec/spec_helper.rb +28 -0
- metadata +131 -0
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,28 @@
|
|
1
|
+
begin
|
2
|
+
require 'spec'
|
3
|
+
require 'rubigen'
|
4
|
+
rescue LoadError
|
5
|
+
require 'rubygems'
|
6
|
+
gem 'rspec'
|
7
|
+
require 'spec'
|
8
|
+
require 'rubigen'
|
9
|
+
end
|
10
|
+
|
11
|
+
require 'rubigen/scripts/generate'
|
12
|
+
|
13
|
+
APP_ROOT = File.dirname(__FILE__) + "/../tmp"
|
14
|
+
|
15
|
+
module GeneratorSpecHelper
|
16
|
+
|
17
|
+
def silence_generator
|
18
|
+
logger_original=RubiGen::Base.logger
|
19
|
+
myout=StringIO.new
|
20
|
+
RubiGen::Base.logger=RubiGen::SimpleLogger.new(myout)
|
21
|
+
# TODO redirect $stdout to myout
|
22
|
+
yield if block_given?
|
23
|
+
RubiGen::Base.logger=logger_original
|
24
|
+
# TODO fix $stdout again
|
25
|
+
myout.string
|
26
|
+
end
|
27
|
+
|
28
|
+
end
|
metadata
ADDED
@@ -0,0 +1,131 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: mlins-godwit
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Matt Lins
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
|
12
|
+
date: 2008-11-24 00:00:00 -08:00
|
13
|
+
default_executable: godwit
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
16
|
+
name: activesupport
|
17
|
+
version_requirement:
|
18
|
+
version_requirements: !ruby/object:Gem::Requirement
|
19
|
+
requirements:
|
20
|
+
- - ">="
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: 2.1.0
|
23
|
+
version:
|
24
|
+
- !ruby/object:Gem::Dependency
|
25
|
+
name: mlins-active_migration
|
26
|
+
version_requirement:
|
27
|
+
version_requirements: !ruby/object:Gem::Requirement
|
28
|
+
requirements:
|
29
|
+
- - ">="
|
30
|
+
- !ruby/object:Gem::Version
|
31
|
+
version: 1.0.4
|
32
|
+
version:
|
33
|
+
- !ruby/object:Gem::Dependency
|
34
|
+
name: rubigen
|
35
|
+
version_requirement:
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 1.3.4
|
41
|
+
version:
|
42
|
+
description: A framework to assist in the migration of data from legacy databases.
|
43
|
+
email: mattlins@gmail.com
|
44
|
+
executables:
|
45
|
+
- godwit
|
46
|
+
extensions: []
|
47
|
+
|
48
|
+
extra_rdoc_files: []
|
49
|
+
|
50
|
+
files:
|
51
|
+
- CHANGELOG
|
52
|
+
- MIT-LICENSE
|
53
|
+
- Rakefile
|
54
|
+
- README
|
55
|
+
- VERSION.yml
|
56
|
+
- lib/godwit
|
57
|
+
- lib/godwit/active_migration.rb
|
58
|
+
- lib/godwit/base.rb
|
59
|
+
- lib/godwit/bootloader.rb
|
60
|
+
- lib/godwit/buffer.rb
|
61
|
+
- lib/godwit/callbacks.rb
|
62
|
+
- lib/godwit/config.rb
|
63
|
+
- lib/godwit/irb.rb
|
64
|
+
- lib/godwit/legacy_record.rb
|
65
|
+
- lib/godwit/version.rb
|
66
|
+
- lib/godwit.rb
|
67
|
+
- spec/active_migration_generator_spec.rb
|
68
|
+
- spec/active_model_generator_spec.rb
|
69
|
+
- spec/buffer_spec.rb
|
70
|
+
- spec/callbacks_spec.rb
|
71
|
+
- spec/config_spec.rb
|
72
|
+
- spec/godwit_generator_spec.rb
|
73
|
+
- spec/legacy_model_generator_spec.rb
|
74
|
+
- spec/spec.opts
|
75
|
+
- spec/spec_helper.rb
|
76
|
+
- app_generators/godwit
|
77
|
+
- app_generators/godwit/godwit_generator.rb
|
78
|
+
- app_generators/godwit/templates
|
79
|
+
- app_generators/godwit/templates/config
|
80
|
+
- app_generators/godwit/templates/config/database.yml
|
81
|
+
- app_generators/godwit/templates/config/environment.rb
|
82
|
+
- app_generators/godwit/templates/log
|
83
|
+
- app_generators/godwit/templates/log/active_migration.log
|
84
|
+
- app_generators/godwit/templates/log/active_record.log
|
85
|
+
- app_generators/godwit/templates/Rakefile
|
86
|
+
- app_generators/godwit/templates/script
|
87
|
+
- app_generators/godwit/templates/script/console
|
88
|
+
- app_generators/godwit/templates/script/lib
|
89
|
+
- app_generators/godwit/templates/script/lib/console.rb
|
90
|
+
- app_generators/godwit/templates/script/migrate
|
91
|
+
- godwit_generators/active_migration
|
92
|
+
- godwit_generators/active_migration/active_migration_generator.rb
|
93
|
+
- godwit_generators/active_migration/templates
|
94
|
+
- godwit_generators/active_migration/templates/active_migration.rb
|
95
|
+
- godwit_generators/active_model
|
96
|
+
- godwit_generators/active_model/active_model_generator.rb
|
97
|
+
- godwit_generators/active_model/templates
|
98
|
+
- godwit_generators/active_model/templates/active_model.rb
|
99
|
+
- godwit_generators/legacy_model
|
100
|
+
- godwit_generators/legacy_model/legacy_model_generator.rb
|
101
|
+
- godwit_generators/legacy_model/templates
|
102
|
+
- godwit_generators/legacy_model/templates/legacy_model.rb
|
103
|
+
- bin/godwit
|
104
|
+
has_rdoc: false
|
105
|
+
homepage: http://github.com/mlins/godwit
|
106
|
+
post_install_message:
|
107
|
+
rdoc_options: []
|
108
|
+
|
109
|
+
require_paths:
|
110
|
+
- lib
|
111
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
112
|
+
requirements:
|
113
|
+
- - ">="
|
114
|
+
- !ruby/object:Gem::Version
|
115
|
+
version: "0"
|
116
|
+
version:
|
117
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
118
|
+
requirements:
|
119
|
+
- - ">="
|
120
|
+
- !ruby/object:Gem::Version
|
121
|
+
version: "0"
|
122
|
+
version:
|
123
|
+
requirements: []
|
124
|
+
|
125
|
+
rubyforge_project:
|
126
|
+
rubygems_version: 1.2.0
|
127
|
+
signing_key:
|
128
|
+
specification_version: 2
|
129
|
+
summary: A framework to assist in the migration of data from legacy databases.
|
130
|
+
test_files: []
|
131
|
+
|