tern 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (66) hide show
  1. data/.gitignore +4 -0
  2. data/MIT-LICENSE +20 -0
  3. data/README.markdown +189 -0
  4. data/Rakefile +2 -0
  5. data/bin/tern +6 -0
  6. data/lib/tern.rb +207 -0
  7. data/lib/tern/app.rb +65 -0
  8. data/lib/tern/generators/change.sql +4 -0
  9. data/lib/tern/generators/new/alterations/.empty_directory +0 -0
  10. data/lib/tern/generators/new/alterations/001_create_people.sql.example +16 -0
  11. data/lib/tern/generators/new/config.yml.tt +15 -0
  12. data/lib/tern/generators/new/definitions/sequence.yml +18 -0
  13. data/lib/tern/generators/new/definitions/ultimate_answer.sql.example +7 -0
  14. data/spec/projects/alterations/alterations/001_create_people.sql +8 -0
  15. data/spec/projects/alterations/alterations/002_create_animals.sql +8 -0
  16. data/spec/projects/alterations/alterations/003_create_plants.sql +8 -0
  17. data/spec/projects/alterations/config.yml +15 -0
  18. data/spec/projects/alterations/definitions/sequence.yml +18 -0
  19. data/spec/projects/alterations/definitions/ultimate_answer.sql.example +7 -0
  20. data/spec/projects/definitions/alterations/001_create_people.sql.example +16 -0
  21. data/spec/projects/definitions/config.yml +15 -0
  22. data/spec/projects/definitions/definitions/sequence.yml +19 -0
  23. data/spec/projects/definitions/definitions/ultimate_answer.sql +7 -0
  24. data/spec/projects/dependencies_1/alterations/001_create_widgets.sql +9 -0
  25. data/spec/projects/dependencies_1/config.yml +15 -0
  26. data/spec/projects/dependencies_1/definitions/sequence.yml +19 -0
  27. data/spec/projects/dependencies_1/definitions/ultimate_answer.sql.example +7 -0
  28. data/spec/projects/dependencies_1/definitions/widgets_view.sql +5 -0
  29. data/spec/projects/dependencies_2/alterations/001_create_widgets.sql +9 -0
  30. data/spec/projects/dependencies_2/config.yml +15 -0
  31. data/spec/projects/dependencies_2/definitions/sequence.yml +18 -0
  32. data/spec/projects/dependencies_2/definitions/ultimate_answer.sql.example +7 -0
  33. data/spec/projects/duplicated_alteration/alterations/001_create_people.sql +8 -0
  34. data/spec/projects/duplicated_alteration/alterations/002_create_animals.sql +8 -0
  35. data/spec/projects/duplicated_alteration/alterations/002_create_plants.sql +8 -0
  36. data/spec/projects/duplicated_alteration/config.yml +15 -0
  37. data/spec/projects/duplicated_alteration/definitions/sequence.yml +18 -0
  38. data/spec/projects/duplicated_alteration/definitions/ultimate_answer.sql.example +7 -0
  39. data/spec/projects/irreversible_alterations/alterations/001_create_people.sql +8 -0
  40. data/spec/projects/irreversible_alterations/alterations/002_create_animals.sql +4 -0
  41. data/spec/projects/irreversible_alterations/alterations/003_create_plants.sql +8 -0
  42. data/spec/projects/irreversible_alterations/config.yml +15 -0
  43. data/spec/projects/irreversible_alterations/definitions/sequence.yml +18 -0
  44. data/spec/projects/irreversible_alterations/definitions/ultimate_answer.sql.example +7 -0
  45. data/spec/projects/missing_alteration/alterations/001_create_people.sql +8 -0
  46. data/spec/projects/missing_alteration/alterations/003_create_plants.sql +8 -0
  47. data/spec/projects/missing_alteration/config.yml +15 -0
  48. data/spec/projects/missing_alteration/definitions/sequence.yml +18 -0
  49. data/spec/projects/missing_alteration/definitions/ultimate_answer.sql.example +7 -0
  50. data/spec/projects/multiple_sequences/alterations/001_create_people.sql.example +16 -0
  51. data/spec/projects/multiple_sequences/config.yml +15 -0
  52. data/spec/projects/multiple_sequences/definitions/create_view_a.sql +5 -0
  53. data/spec/projects/multiple_sequences/definitions/create_view_b.sql +5 -0
  54. data/spec/projects/multiple_sequences/definitions/sequence.yml +21 -0
  55. data/spec/projects/multiple_sequences/definitions/ultimate_answer.sql.example +7 -0
  56. data/spec/projects/new/alterations/001_create_people.sql.example +16 -0
  57. data/spec/projects/new/config.yml +15 -0
  58. data/spec/projects/new/definitions/sequence.yml +18 -0
  59. data/spec/projects/new/definitions/ultimate_answer.sql.example +7 -0
  60. data/spec/projects/no_alterations/alterations/001_create_people.sql.example +16 -0
  61. data/spec/projects/no_alterations/config.yml +15 -0
  62. data/spec/projects/no_alterations/definitions/sequence.yml +18 -0
  63. data/spec/projects/no_alterations/definitions/ultimate_answer.sql.example +7 -0
  64. data/spec/tern_spec.rb +215 -0
  65. data/tern.gemspec +23 -0
  66. metadata +174 -0
@@ -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
+