tern 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +4 -0
- data/MIT-LICENSE +20 -0
- data/README.markdown +189 -0
- data/Rakefile +2 -0
- data/bin/tern +6 -0
- data/lib/tern.rb +207 -0
- data/lib/tern/app.rb +65 -0
- data/lib/tern/generators/change.sql +4 -0
- data/lib/tern/generators/new/alterations/.empty_directory +0 -0
- data/lib/tern/generators/new/alterations/001_create_people.sql.example +16 -0
- data/lib/tern/generators/new/config.yml.tt +15 -0
- data/lib/tern/generators/new/definitions/sequence.yml +18 -0
- data/lib/tern/generators/new/definitions/ultimate_answer.sql.example +7 -0
- data/spec/projects/alterations/alterations/001_create_people.sql +8 -0
- data/spec/projects/alterations/alterations/002_create_animals.sql +8 -0
- data/spec/projects/alterations/alterations/003_create_plants.sql +8 -0
- data/spec/projects/alterations/config.yml +15 -0
- data/spec/projects/alterations/definitions/sequence.yml +18 -0
- data/spec/projects/alterations/definitions/ultimate_answer.sql.example +7 -0
- data/spec/projects/definitions/alterations/001_create_people.sql.example +16 -0
- data/spec/projects/definitions/config.yml +15 -0
- data/spec/projects/definitions/definitions/sequence.yml +19 -0
- data/spec/projects/definitions/definitions/ultimate_answer.sql +7 -0
- data/spec/projects/dependencies_1/alterations/001_create_widgets.sql +9 -0
- data/spec/projects/dependencies_1/config.yml +15 -0
- data/spec/projects/dependencies_1/definitions/sequence.yml +19 -0
- data/spec/projects/dependencies_1/definitions/ultimate_answer.sql.example +7 -0
- data/spec/projects/dependencies_1/definitions/widgets_view.sql +5 -0
- data/spec/projects/dependencies_2/alterations/001_create_widgets.sql +9 -0
- data/spec/projects/dependencies_2/config.yml +15 -0
- data/spec/projects/dependencies_2/definitions/sequence.yml +18 -0
- data/spec/projects/dependencies_2/definitions/ultimate_answer.sql.example +7 -0
- data/spec/projects/duplicated_alteration/alterations/001_create_people.sql +8 -0
- data/spec/projects/duplicated_alteration/alterations/002_create_animals.sql +8 -0
- data/spec/projects/duplicated_alteration/alterations/002_create_plants.sql +8 -0
- data/spec/projects/duplicated_alteration/config.yml +15 -0
- data/spec/projects/duplicated_alteration/definitions/sequence.yml +18 -0
- data/spec/projects/duplicated_alteration/definitions/ultimate_answer.sql.example +7 -0
- data/spec/projects/irreversible_alterations/alterations/001_create_people.sql +8 -0
- data/spec/projects/irreversible_alterations/alterations/002_create_animals.sql +4 -0
- data/spec/projects/irreversible_alterations/alterations/003_create_plants.sql +8 -0
- data/spec/projects/irreversible_alterations/config.yml +15 -0
- data/spec/projects/irreversible_alterations/definitions/sequence.yml +18 -0
- data/spec/projects/irreversible_alterations/definitions/ultimate_answer.sql.example +7 -0
- data/spec/projects/missing_alteration/alterations/001_create_people.sql +8 -0
- data/spec/projects/missing_alteration/alterations/003_create_plants.sql +8 -0
- data/spec/projects/missing_alteration/config.yml +15 -0
- data/spec/projects/missing_alteration/definitions/sequence.yml +18 -0
- data/spec/projects/missing_alteration/definitions/ultimate_answer.sql.example +7 -0
- data/spec/projects/multiple_sequences/alterations/001_create_people.sql.example +16 -0
- data/spec/projects/multiple_sequences/config.yml +15 -0
- data/spec/projects/multiple_sequences/definitions/create_view_a.sql +5 -0
- data/spec/projects/multiple_sequences/definitions/create_view_b.sql +5 -0
- data/spec/projects/multiple_sequences/definitions/sequence.yml +21 -0
- data/spec/projects/multiple_sequences/definitions/ultimate_answer.sql.example +7 -0
- data/spec/projects/new/alterations/001_create_people.sql.example +16 -0
- data/spec/projects/new/config.yml +15 -0
- data/spec/projects/new/definitions/sequence.yml +18 -0
- data/spec/projects/new/definitions/ultimate_answer.sql.example +7 -0
- data/spec/projects/no_alterations/alterations/001_create_people.sql.example +16 -0
- data/spec/projects/no_alterations/config.yml +15 -0
- data/spec/projects/no_alterations/definitions/sequence.yml +18 -0
- data/spec/projects/no_alterations/definitions/ultimate_answer.sql.example +7 -0
- data/spec/tern_spec.rb +215 -0
- data/tern.gemspec +23 -0
- metadata +174 -0
data/tern.gemspec
ADDED
@@ -0,0 +1,23 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
$:.push File.expand_path("../lib", __FILE__)
|
3
|
+
|
4
|
+
Gem::Specification.new do |s|
|
5
|
+
s.name = "tern"
|
6
|
+
s.version = '0.6.0'
|
7
|
+
s.platform = Gem::Platform::RUBY
|
8
|
+
s.authors = ["Jack Christensen"]
|
9
|
+
s.email = ["jack@jackchristensen.com"]
|
10
|
+
s.homepage = "https://github.com/JackC/tern"
|
11
|
+
s.summary = %q{The SQL Fan's Migrator}
|
12
|
+
s.description = %q{Manages schemas with views, functions, triggers along with traditional migrations}
|
13
|
+
|
14
|
+
s.add_dependency "sequel", ">= 3.19.0"
|
15
|
+
s.add_dependency "thor", ">= 0.14.6"
|
16
|
+
|
17
|
+
s.add_development_dependency 'rspec', '>= 2.4.0'
|
18
|
+
|
19
|
+
s.files = `git ls-files`.split("\n")
|
20
|
+
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
21
|
+
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
22
|
+
s.require_paths = ["lib"]
|
23
|
+
end
|
metadata
ADDED
@@ -0,0 +1,174 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: tern
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
prerelease: false
|
5
|
+
segments:
|
6
|
+
- 0
|
7
|
+
- 6
|
8
|
+
- 0
|
9
|
+
version: 0.6.0
|
10
|
+
platform: ruby
|
11
|
+
authors:
|
12
|
+
- Jack Christensen
|
13
|
+
autorequire:
|
14
|
+
bindir: bin
|
15
|
+
cert_chain: []
|
16
|
+
|
17
|
+
date: 2011-02-07 00:00:00 -06:00
|
18
|
+
default_executable:
|
19
|
+
dependencies:
|
20
|
+
- !ruby/object:Gem::Dependency
|
21
|
+
name: sequel
|
22
|
+
prerelease: false
|
23
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
24
|
+
none: false
|
25
|
+
requirements:
|
26
|
+
- - ">="
|
27
|
+
- !ruby/object:Gem::Version
|
28
|
+
segments:
|
29
|
+
- 3
|
30
|
+
- 19
|
31
|
+
- 0
|
32
|
+
version: 3.19.0
|
33
|
+
type: :runtime
|
34
|
+
version_requirements: *id001
|
35
|
+
- !ruby/object:Gem::Dependency
|
36
|
+
name: thor
|
37
|
+
prerelease: false
|
38
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
39
|
+
none: false
|
40
|
+
requirements:
|
41
|
+
- - ">="
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
segments:
|
44
|
+
- 0
|
45
|
+
- 14
|
46
|
+
- 6
|
47
|
+
version: 0.14.6
|
48
|
+
type: :runtime
|
49
|
+
version_requirements: *id002
|
50
|
+
- !ruby/object:Gem::Dependency
|
51
|
+
name: rspec
|
52
|
+
prerelease: false
|
53
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
54
|
+
none: false
|
55
|
+
requirements:
|
56
|
+
- - ">="
|
57
|
+
- !ruby/object:Gem::Version
|
58
|
+
segments:
|
59
|
+
- 2
|
60
|
+
- 4
|
61
|
+
- 0
|
62
|
+
version: 2.4.0
|
63
|
+
type: :development
|
64
|
+
version_requirements: *id003
|
65
|
+
description: Manages schemas with views, functions, triggers along with traditional migrations
|
66
|
+
email:
|
67
|
+
- jack@jackchristensen.com
|
68
|
+
executables:
|
69
|
+
- tern
|
70
|
+
extensions: []
|
71
|
+
|
72
|
+
extra_rdoc_files: []
|
73
|
+
|
74
|
+
files:
|
75
|
+
- .gitignore
|
76
|
+
- MIT-LICENSE
|
77
|
+
- README.markdown
|
78
|
+
- Rakefile
|
79
|
+
- bin/tern
|
80
|
+
- lib/tern.rb
|
81
|
+
- lib/tern/app.rb
|
82
|
+
- lib/tern/generators/change.sql
|
83
|
+
- lib/tern/generators/new/alterations/.empty_directory
|
84
|
+
- lib/tern/generators/new/alterations/001_create_people.sql.example
|
85
|
+
- lib/tern/generators/new/config.yml.tt
|
86
|
+
- lib/tern/generators/new/definitions/sequence.yml
|
87
|
+
- lib/tern/generators/new/definitions/ultimate_answer.sql.example
|
88
|
+
- spec/projects/alterations/alterations/001_create_people.sql
|
89
|
+
- spec/projects/alterations/alterations/002_create_animals.sql
|
90
|
+
- spec/projects/alterations/alterations/003_create_plants.sql
|
91
|
+
- spec/projects/alterations/config.yml
|
92
|
+
- spec/projects/alterations/definitions/sequence.yml
|
93
|
+
- spec/projects/alterations/definitions/ultimate_answer.sql.example
|
94
|
+
- spec/projects/definitions/alterations/001_create_people.sql.example
|
95
|
+
- spec/projects/definitions/config.yml
|
96
|
+
- spec/projects/definitions/definitions/sequence.yml
|
97
|
+
- spec/projects/definitions/definitions/ultimate_answer.sql
|
98
|
+
- spec/projects/dependencies_1/alterations/001_create_widgets.sql
|
99
|
+
- spec/projects/dependencies_1/config.yml
|
100
|
+
- spec/projects/dependencies_1/definitions/sequence.yml
|
101
|
+
- spec/projects/dependencies_1/definitions/ultimate_answer.sql.example
|
102
|
+
- spec/projects/dependencies_1/definitions/widgets_view.sql
|
103
|
+
- spec/projects/dependencies_2/alterations/001_create_widgets.sql
|
104
|
+
- spec/projects/dependencies_2/config.yml
|
105
|
+
- spec/projects/dependencies_2/definitions/sequence.yml
|
106
|
+
- spec/projects/dependencies_2/definitions/ultimate_answer.sql.example
|
107
|
+
- spec/projects/duplicated_alteration/alterations/001_create_people.sql
|
108
|
+
- spec/projects/duplicated_alteration/alterations/002_create_animals.sql
|
109
|
+
- spec/projects/duplicated_alteration/alterations/002_create_plants.sql
|
110
|
+
- spec/projects/duplicated_alteration/config.yml
|
111
|
+
- spec/projects/duplicated_alteration/definitions/sequence.yml
|
112
|
+
- spec/projects/duplicated_alteration/definitions/ultimate_answer.sql.example
|
113
|
+
- spec/projects/irreversible_alterations/alterations/001_create_people.sql
|
114
|
+
- spec/projects/irreversible_alterations/alterations/002_create_animals.sql
|
115
|
+
- spec/projects/irreversible_alterations/alterations/003_create_plants.sql
|
116
|
+
- spec/projects/irreversible_alterations/config.yml
|
117
|
+
- spec/projects/irreversible_alterations/definitions/sequence.yml
|
118
|
+
- spec/projects/irreversible_alterations/definitions/ultimate_answer.sql.example
|
119
|
+
- spec/projects/missing_alteration/alterations/001_create_people.sql
|
120
|
+
- spec/projects/missing_alteration/alterations/003_create_plants.sql
|
121
|
+
- spec/projects/missing_alteration/config.yml
|
122
|
+
- spec/projects/missing_alteration/definitions/sequence.yml
|
123
|
+
- spec/projects/missing_alteration/definitions/ultimate_answer.sql.example
|
124
|
+
- spec/projects/multiple_sequences/alterations/001_create_people.sql.example
|
125
|
+
- spec/projects/multiple_sequences/config.yml
|
126
|
+
- spec/projects/multiple_sequences/definitions/create_view_a.sql
|
127
|
+
- spec/projects/multiple_sequences/definitions/create_view_b.sql
|
128
|
+
- spec/projects/multiple_sequences/definitions/sequence.yml
|
129
|
+
- spec/projects/multiple_sequences/definitions/ultimate_answer.sql.example
|
130
|
+
- spec/projects/new/alterations/001_create_people.sql.example
|
131
|
+
- spec/projects/new/config.yml
|
132
|
+
- spec/projects/new/definitions/sequence.yml
|
133
|
+
- spec/projects/new/definitions/ultimate_answer.sql.example
|
134
|
+
- spec/projects/no_alterations/alterations/001_create_people.sql.example
|
135
|
+
- spec/projects/no_alterations/config.yml
|
136
|
+
- spec/projects/no_alterations/definitions/sequence.yml
|
137
|
+
- spec/projects/no_alterations/definitions/ultimate_answer.sql.example
|
138
|
+
- spec/tern_spec.rb
|
139
|
+
- spec/tmp/.gitignore
|
140
|
+
- tern.gemspec
|
141
|
+
has_rdoc: true
|
142
|
+
homepage: https://github.com/JackC/tern
|
143
|
+
licenses: []
|
144
|
+
|
145
|
+
post_install_message:
|
146
|
+
rdoc_options: []
|
147
|
+
|
148
|
+
require_paths:
|
149
|
+
- lib
|
150
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
151
|
+
none: false
|
152
|
+
requirements:
|
153
|
+
- - ">="
|
154
|
+
- !ruby/object:Gem::Version
|
155
|
+
segments:
|
156
|
+
- 0
|
157
|
+
version: "0"
|
158
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
159
|
+
none: false
|
160
|
+
requirements:
|
161
|
+
- - ">="
|
162
|
+
- !ruby/object:Gem::Version
|
163
|
+
segments:
|
164
|
+
- 0
|
165
|
+
version: "0"
|
166
|
+
requirements: []
|
167
|
+
|
168
|
+
rubyforge_project:
|
169
|
+
rubygems_version: 1.3.7
|
170
|
+
signing_key:
|
171
|
+
specification_version: 3
|
172
|
+
summary: The SQL Fan's Migrator
|
173
|
+
test_files: []
|
174
|
+
|