infopark_reactor_migrations 1.6.1 → 1.6.3
Sign up to get free protection for your applications and to get access to all the features.
- data/infopark_reactor_migrations.gemspec +1 -1
- data/lib/generators/cm/migration/migration_generator.rb +2 -1
- data/lib/generators/cm/migration/templates/template.rb +2 -1
- data/lib/infopark_reactor_migrations.rb +1 -0
- data/lib/reactor/cm/attribute.rb +2 -1
- data/lib/reactor/cm/bridge.rb +2 -1
- data/lib/reactor/cm/channel.rb +1 -0
- data/lib/reactor/cm/editorial_group.rb +1 -0
- data/lib/reactor/cm/group.rb +1 -0
- data/lib/reactor/cm/language.rb +2 -1
- data/lib/reactor/cm/link.rb +2 -1
- data/lib/reactor/cm/live_group.rb +1 -0
- data/lib/reactor/cm/missing_credentials.rb +2 -1
- data/lib/reactor/cm/obj.rb +1 -0
- data/lib/reactor/cm/obj_class.rb +2 -1
- data/lib/reactor/cm/object_base.rb +2 -1
- data/lib/reactor/cm/user.rb +1 -0
- data/lib/reactor/cm/workflow.rb +2 -1
- data/lib/reactor/cm/xml_attribute.rb +1 -0
- data/lib/reactor/cm/xml_markup.rb +4 -3
- data/lib/reactor/cm/xml_request.rb +1 -0
- data/lib/reactor/cm/xml_request_error.rb +2 -1
- data/lib/reactor/cm/xml_response.rb +2 -0
- data/lib/reactor/configuration.rb +2 -1
- data/lib/reactor/migration.rb +1 -0
- data/lib/reactor/migrations/railtie.rb +2 -1
- data/lib/reactor/migrations/version.rb +2 -1
- data/lib/reactor/plans/common_attribute.rb +2 -1
- data/lib/reactor/plans/common_channel.rb +1 -0
- data/lib/reactor/plans/common_group.rb +1 -0
- data/lib/reactor/plans/common_obj_class.rb +2 -1
- data/lib/reactor/plans/create_attribute.rb +2 -1
- data/lib/reactor/plans/create_channel.rb +1 -0
- data/lib/reactor/plans/create_group.rb +1 -0
- data/lib/reactor/plans/create_obj.rb +1 -0
- data/lib/reactor/plans/create_obj_class.rb +2 -1
- data/lib/reactor/plans/delete_attribute.rb +2 -1
- data/lib/reactor/plans/delete_channel.rb +1 -0
- data/lib/reactor/plans/delete_group.rb +1 -0
- data/lib/reactor/plans/delete_obj.rb +2 -1
- data/lib/reactor/plans/delete_obj_class.rb +2 -1
- data/lib/reactor/plans/prepared.rb +2 -1
- data/lib/reactor/plans/rename_group.rb +1 -0
- data/lib/reactor/plans/rename_obj_class.rb +2 -1
- data/lib/reactor/plans/update_attribute.rb +2 -1
- data/lib/reactor/plans/update_group.rb +1 -0
- data/lib/reactor/plans/update_obj.rb +2 -1
- data/lib/reactor/plans/update_obj_class.rb +2 -1
- data/lib/reactor/tools/migrator.rb +2 -1
- data/lib/reactor/tools/response_handler/base.rb +1 -0
- data/lib/reactor/tools/response_handler/string.rb +1 -0
- data/lib/reactor/tools/response_handler/xml_attribute.rb +1 -0
- data/lib/reactor/tools/smart_xml_logger.rb +1 -0
- data/lib/reactor/tools/sower.rb +2 -1
- data/lib/reactor/tools/uploader.rb +6 -3
- data/lib/reactor/tools/versioner.rb +1 -0
- data/lib/reactor/tools/xml_attributes.rb +1 -0
- metadata +7 -7
@@ -20,7 +20,7 @@ Gem::Specification.new do |s|
|
|
20
20
|
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
21
21
|
s.require_paths = ["lib"]
|
22
22
|
|
23
|
-
s.add_dependency 'rails', '>= 3.0.10', '<= 3.2.
|
23
|
+
s.add_dependency 'rails', '>= 3.0.10', '<= 3.2.12'
|
24
24
|
s.add_dependency 'term-ansicolor'
|
25
25
|
s.add_dependency 'nokogiri'
|
26
26
|
s.add_development_dependency 'rspec'
|
data/lib/reactor/cm/attribute.rb
CHANGED
data/lib/reactor/cm/bridge.rb
CHANGED
data/lib/reactor/cm/channel.rb
CHANGED
data/lib/reactor/cm/group.rb
CHANGED
data/lib/reactor/cm/language.rb
CHANGED
data/lib/reactor/cm/link.rb
CHANGED
data/lib/reactor/cm/obj.rb
CHANGED
data/lib/reactor/cm/obj_class.rb
CHANGED
data/lib/reactor/cm/user.rb
CHANGED
data/lib/reactor/cm/workflow.rb
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
# -*- encoding : utf-8 -*-
|
1
2
|
require 'builder'
|
2
3
|
|
3
4
|
module Reactor
|
@@ -30,7 +31,7 @@ module Reactor
|
|
30
31
|
|
31
32
|
def get_key_tag!(base_name, key)
|
32
33
|
get_tag!(base_name) do |xml|
|
33
|
-
if key.kind_of?(Array)
|
34
|
+
if key.kind_of?(::Array)
|
34
35
|
key.each {|k| xml.tag!(k.to_s) }
|
35
36
|
else
|
36
37
|
xml.tag!(key.to_s) ; end
|
@@ -56,8 +57,8 @@ module Reactor
|
|
56
57
|
end
|
57
58
|
|
58
59
|
def value_tag!(key, value, options = {})
|
59
|
-
if value.kind_of? Array then array_value_tag!(key, value, options)
|
60
|
-
elsif value.kind_of? Hash then hash_value_tag!(key, value)
|
60
|
+
if value.kind_of? ::Array then array_value_tag!(key, value, options)
|
61
|
+
elsif value.kind_of? ::Hash then hash_value_tag!(key, value)
|
61
62
|
else tag!(key.to_s) { text!(value.to_s) }
|
62
63
|
end
|
63
64
|
end
|
data/lib/reactor/migration.rb
CHANGED
data/lib/reactor/tools/sower.rb
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
# -*- encoding : utf-8 -*-
|
1
2
|
module Reactor
|
2
3
|
module Tools
|
3
4
|
class Uploader
|
@@ -57,8 +58,9 @@ module Reactor
|
|
57
58
|
# Stream into CM from memory. Used in cases when the file
|
58
59
|
# has already been read into memory
|
59
60
|
def stream_data(data, extension)
|
60
|
-
response
|
61
|
+
response = (Net::HTTP.new(self.class.streaming_host, self.class.streaming_port).post('/stream', data,
|
61
62
|
{'Content-Type' => self.class.content_type_for_ext(extension)}))
|
63
|
+
ticket_id = response.body
|
62
64
|
|
63
65
|
handle_response(response, ticket_id)
|
64
66
|
end
|
@@ -75,7 +77,8 @@ module Reactor
|
|
75
77
|
Net::HTTP.start(self.class.streaming_host, self.class.streaming_port) do |http|
|
76
78
|
http.read_timeout = 60
|
77
79
|
#http.set_debug_output $stderr
|
78
|
-
response
|
80
|
+
response = http.request(request)
|
81
|
+
ticket_id = response.body
|
79
82
|
end
|
80
83
|
|
81
84
|
handle_response(response, ticket_id)
|
@@ -128,4 +131,4 @@ module Reactor
|
|
128
131
|
end
|
129
132
|
end
|
130
133
|
end
|
131
|
-
end
|
134
|
+
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: infopark_reactor_migrations
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 9
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 6
|
9
|
-
-
|
10
|
-
version: 1.6.
|
9
|
+
- 3
|
10
|
+
version: 1.6.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Tomasz Przedmojski
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2013-
|
18
|
+
date: 2013-02-13 00:00:00 +01:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -34,12 +34,12 @@ dependencies:
|
|
34
34
|
version: 3.0.10
|
35
35
|
- - <=
|
36
36
|
- !ruby/object:Gem::Version
|
37
|
-
hash:
|
37
|
+
hash: 23
|
38
38
|
segments:
|
39
39
|
- 3
|
40
40
|
- 2
|
41
|
-
-
|
42
|
-
version: 3.2.
|
41
|
+
- 12
|
42
|
+
version: 3.2.12
|
43
43
|
type: :runtime
|
44
44
|
version_requirements: *id001
|
45
45
|
- !ruby/object:Gem::Dependency
|