infopark_reactor_migrations 1.5.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (62) hide show
  1. data/.gitignore +5 -0
  2. data/Gemfile +4 -0
  3. data/LICENSE +165 -0
  4. data/README +64 -0
  5. data/Rakefile +19 -0
  6. data/infopark_reactor_migrations.gemspec +27 -0
  7. data/lib/generators/cm/migration/USAGE +8 -0
  8. data/lib/generators/cm/migration/migration_generator.rb +15 -0
  9. data/lib/generators/cm/migration/templates/template.rb +7 -0
  10. data/lib/infopark_reactor_migrations.rb +29 -0
  11. data/lib/reactor/cm/attribute.rb +84 -0
  12. data/lib/reactor/cm/bridge.rb +49 -0
  13. data/lib/reactor/cm/editorial_group.rb +22 -0
  14. data/lib/reactor/cm/group.rb +270 -0
  15. data/lib/reactor/cm/language.rb +56 -0
  16. data/lib/reactor/cm/link.rb +132 -0
  17. data/lib/reactor/cm/live_group.rb +22 -0
  18. data/lib/reactor/cm/missing_credentials.rb +7 -0
  19. data/lib/reactor/cm/obj.rb +402 -0
  20. data/lib/reactor/cm/obj_class.rb +186 -0
  21. data/lib/reactor/cm/object_base.rb +164 -0
  22. data/lib/reactor/cm/user.rb +100 -0
  23. data/lib/reactor/cm/workflow.rb +40 -0
  24. data/lib/reactor/cm/xml_attribute.rb +35 -0
  25. data/lib/reactor/cm/xml_markup.rb +85 -0
  26. data/lib/reactor/cm/xml_request.rb +82 -0
  27. data/lib/reactor/cm/xml_request_error.rb +16 -0
  28. data/lib/reactor/cm/xml_response.rb +41 -0
  29. data/lib/reactor/configuration.rb +7 -0
  30. data/lib/reactor/migration.rb +82 -0
  31. data/lib/reactor/migrations/railtie.rb +10 -0
  32. data/lib/reactor/migrations/version.rb +5 -0
  33. data/lib/reactor/plans/common_attribute.rb +32 -0
  34. data/lib/reactor/plans/common_group.rb +44 -0
  35. data/lib/reactor/plans/common_obj_class.rb +69 -0
  36. data/lib/reactor/plans/create_attribute.rb +32 -0
  37. data/lib/reactor/plans/create_group.rb +34 -0
  38. data/lib/reactor/plans/create_obj.rb +48 -0
  39. data/lib/reactor/plans/create_obj_class.rb +28 -0
  40. data/lib/reactor/plans/delete_attribute.rb +23 -0
  41. data/lib/reactor/plans/delete_group.rb +28 -0
  42. data/lib/reactor/plans/delete_obj.rb +22 -0
  43. data/lib/reactor/plans/delete_obj_class.rb +22 -0
  44. data/lib/reactor/plans/prepared.rb +15 -0
  45. data/lib/reactor/plans/rename_group.rb +32 -0
  46. data/lib/reactor/plans/rename_obj_class.rb +24 -0
  47. data/lib/reactor/plans/update_attribute.rb +23 -0
  48. data/lib/reactor/plans/update_group.rb +30 -0
  49. data/lib/reactor/plans/update_obj.rb +30 -0
  50. data/lib/reactor/plans/update_obj_class.rb +26 -0
  51. data/lib/reactor/tools/migrator.rb +135 -0
  52. data/lib/reactor/tools/response_handler/base.rb +22 -0
  53. data/lib/reactor/tools/response_handler/string.rb +19 -0
  54. data/lib/reactor/tools/response_handler/xml_attribute.rb +52 -0
  55. data/lib/reactor/tools/smart_xml_logger.rb +69 -0
  56. data/lib/reactor/tools/sower.rb +89 -0
  57. data/lib/reactor/tools/uploader.rb +131 -0
  58. data/lib/reactor/tools/versioner.rb +120 -0
  59. data/lib/reactor/tools/xml_attributes.rb +70 -0
  60. data/lib/tasks/cm_migrate.rake +8 -0
  61. data/lib/tasks/cm_seeds.rake +41 -0
  62. metadata +193 -0
@@ -0,0 +1,8 @@
1
+ namespace :cm do
2
+ desc "Migrate CM"
3
+ task :migrate => :environment do
4
+ require 'reactor/tools/migrator'
5
+ migrator = Reactor::Migrator.new("#{Rails.root}/cm/migrate", ENV["VERSION"])
6
+ migrator.migrate
7
+ end
8
+ end
@@ -0,0 +1,41 @@
1
+ namespace :cm do
2
+
3
+ desc "Load the seed data from cm/seeds.rb"
4
+ task :seed => :environment do
5
+ require 'reactor/tools/sower'
6
+ sower = Reactor::Sower.new("#{Rails.root}/cm/seeds.rb")
7
+ sower.sow
8
+ end
9
+
10
+ namespace :seed do
11
+
12
+ desc "Load the seed data from cm/seeds-develop.rb"
13
+ task :develop => :environment do
14
+ require 'reactor/tools/sower'
15
+ sower = Reactor::Sower.new("#{Rails.root}/cm/seeds-develop.rb")
16
+ sower.sow
17
+ end
18
+
19
+ task :test => :environment do
20
+ require 'reactor/tools/sower'
21
+ sower = Reactor::Sower.new("#{Rails.root}/cm/seeds-test.rb")
22
+ sower.sow
23
+ end
24
+ end
25
+
26
+ namespace :maintenance do
27
+
28
+ Dir["#{Rails.root}/cm/maintenance-scripts/*.rb"].each do |maint_script|
29
+
30
+ desc "Execute seed in cm/maintenance-scripts/#{File.basename(maint_script)}"
31
+ task File.basename(maint_script, '.rb').to_sym => :environment do
32
+ require 'reactor/tools/sower'
33
+ sower = Reactor::Sower.new(maint_script)
34
+ sower.sow
35
+ end
36
+
37
+ end
38
+
39
+ end
40
+
41
+ end
metadata ADDED
@@ -0,0 +1,193 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: infopark_reactor_migrations
3
+ version: !ruby/object:Gem::Version
4
+ hash: 1
5
+ prerelease:
6
+ segments:
7
+ - 1
8
+ - 5
9
+ - 1
10
+ version: 1.5.1
11
+ platform: ruby
12
+ authors:
13
+ - Tomasz Przedmojski
14
+ autorequire:
15
+ bindir: bin
16
+ cert_chain: []
17
+
18
+ date: 2012-12-12 00:00:00 +01:00
19
+ default_executable:
20
+ dependencies:
21
+ - !ruby/object:Gem::Dependency
22
+ name: rails
23
+ prerelease: false
24
+ requirement: &id001 !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ hash: 19
30
+ segments:
31
+ - 3
32
+ - 0
33
+ - 10
34
+ version: 3.0.10
35
+ - - <=
36
+ - !ruby/object:Gem::Version
37
+ hash: 29
38
+ segments:
39
+ - 3
40
+ - 2
41
+ - 9
42
+ version: 3.2.9
43
+ type: :runtime
44
+ version_requirements: *id001
45
+ - !ruby/object:Gem::Dependency
46
+ name: term-ansicolor
47
+ prerelease: false
48
+ requirement: &id002 !ruby/object:Gem::Requirement
49
+ none: false
50
+ requirements:
51
+ - - ">="
52
+ - !ruby/object:Gem::Version
53
+ hash: 3
54
+ segments:
55
+ - 0
56
+ version: "0"
57
+ type: :runtime
58
+ version_requirements: *id002
59
+ - !ruby/object:Gem::Dependency
60
+ name: nokogiri
61
+ prerelease: false
62
+ requirement: &id003 !ruby/object:Gem::Requirement
63
+ none: false
64
+ requirements:
65
+ - - ">="
66
+ - !ruby/object:Gem::Version
67
+ hash: 3
68
+ segments:
69
+ - 0
70
+ version: "0"
71
+ type: :runtime
72
+ version_requirements: *id003
73
+ - !ruby/object:Gem::Dependency
74
+ name: rspec
75
+ prerelease: false
76
+ requirement: &id004 !ruby/object:Gem::Requirement
77
+ none: false
78
+ requirements:
79
+ - - ">="
80
+ - !ruby/object:Gem::Version
81
+ hash: 3
82
+ segments:
83
+ - 0
84
+ version: "0"
85
+ type: :development
86
+ version_requirements: *id004
87
+ description: Create classes, attributes, store version information and synchronize multiple servers with one command.
88
+ email:
89
+ - tomasz.przedmojski@infopark.de
90
+ executables: []
91
+
92
+ extensions: []
93
+
94
+ extra_rdoc_files: []
95
+
96
+ files:
97
+ - .gitignore
98
+ - Gemfile
99
+ - LICENSE
100
+ - README
101
+ - Rakefile
102
+ - infopark_reactor_migrations.gemspec
103
+ - lib/generators/cm/migration/USAGE
104
+ - lib/generators/cm/migration/migration_generator.rb
105
+ - lib/generators/cm/migration/templates/template.rb
106
+ - lib/infopark_reactor_migrations.rb
107
+ - lib/reactor/cm/attribute.rb
108
+ - lib/reactor/cm/bridge.rb
109
+ - lib/reactor/cm/editorial_group.rb
110
+ - lib/reactor/cm/group.rb
111
+ - lib/reactor/cm/language.rb
112
+ - lib/reactor/cm/link.rb
113
+ - lib/reactor/cm/live_group.rb
114
+ - lib/reactor/cm/missing_credentials.rb
115
+ - lib/reactor/cm/obj.rb
116
+ - lib/reactor/cm/obj_class.rb
117
+ - lib/reactor/cm/object_base.rb
118
+ - lib/reactor/cm/user.rb
119
+ - lib/reactor/cm/workflow.rb
120
+ - lib/reactor/cm/xml_attribute.rb
121
+ - lib/reactor/cm/xml_markup.rb
122
+ - lib/reactor/cm/xml_request.rb
123
+ - lib/reactor/cm/xml_request_error.rb
124
+ - lib/reactor/cm/xml_response.rb
125
+ - lib/reactor/configuration.rb
126
+ - lib/reactor/migration.rb
127
+ - lib/reactor/migrations/railtie.rb
128
+ - lib/reactor/migrations/version.rb
129
+ - lib/reactor/plans/common_attribute.rb
130
+ - lib/reactor/plans/common_group.rb
131
+ - lib/reactor/plans/common_obj_class.rb
132
+ - lib/reactor/plans/create_attribute.rb
133
+ - lib/reactor/plans/create_group.rb
134
+ - lib/reactor/plans/create_obj.rb
135
+ - lib/reactor/plans/create_obj_class.rb
136
+ - lib/reactor/plans/delete_attribute.rb
137
+ - lib/reactor/plans/delete_group.rb
138
+ - lib/reactor/plans/delete_obj.rb
139
+ - lib/reactor/plans/delete_obj_class.rb
140
+ - lib/reactor/plans/prepared.rb
141
+ - lib/reactor/plans/rename_group.rb
142
+ - lib/reactor/plans/rename_obj_class.rb
143
+ - lib/reactor/plans/update_attribute.rb
144
+ - lib/reactor/plans/update_group.rb
145
+ - lib/reactor/plans/update_obj.rb
146
+ - lib/reactor/plans/update_obj_class.rb
147
+ - lib/reactor/tools/migrator.rb
148
+ - lib/reactor/tools/response_handler/base.rb
149
+ - lib/reactor/tools/response_handler/string.rb
150
+ - lib/reactor/tools/response_handler/xml_attribute.rb
151
+ - lib/reactor/tools/smart_xml_logger.rb
152
+ - lib/reactor/tools/sower.rb
153
+ - lib/reactor/tools/uploader.rb
154
+ - lib/reactor/tools/versioner.rb
155
+ - lib/reactor/tools/xml_attributes.rb
156
+ - lib/tasks/cm_migrate.rake
157
+ - lib/tasks/cm_seeds.rake
158
+ has_rdoc: true
159
+ homepage: ""
160
+ licenses:
161
+ - LGPL-3
162
+ post_install_message:
163
+ rdoc_options: []
164
+
165
+ require_paths:
166
+ - lib
167
+ required_ruby_version: !ruby/object:Gem::Requirement
168
+ none: false
169
+ requirements:
170
+ - - ">="
171
+ - !ruby/object:Gem::Version
172
+ hash: 3
173
+ segments:
174
+ - 0
175
+ version: "0"
176
+ required_rubygems_version: !ruby/object:Gem::Requirement
177
+ none: false
178
+ requirements:
179
+ - - ">="
180
+ - !ruby/object:Gem::Version
181
+ hash: 3
182
+ segments:
183
+ - 0
184
+ version: "0"
185
+ requirements: []
186
+
187
+ rubyforge_project:
188
+ rubygems_version: 1.5.2
189
+ signing_key:
190
+ specification_version: 3
191
+ summary: The power of rails migrations for Inforpark Fiona CMS
192
+ test_files: []
193
+