adaptation 0.1.9 → 0.1.10
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +2 -0
- data/helpers/publish.rb +2 -5
- data/lib/adaptation/version.rb +1 -1
- metadata +2 -3
data/CHANGELOG
CHANGED
data/helpers/publish.rb
CHANGED
@@ -8,17 +8,14 @@ class Adaptation::Adaptor
|
|
8
8
|
elsif options.first.is_a?(String)
|
9
9
|
xml_message = options.first
|
10
10
|
message_type = xml_message[1..(xml_message.index(/(>| )/) - 1)]
|
11
|
-
message_class = get_class_object(message_type.capitalize)
|
11
|
+
message_class = Adaptation::Message.get_class_object(message_type.capitalize)
|
12
12
|
message_object = message_class.to_object(xml_message)
|
13
13
|
end
|
14
14
|
|
15
|
-
mom = File.new(
|
15
|
+
mom = File.new(ADAPTOR_ROOT + '/test/mocks/test/mom.txt', "a")
|
16
16
|
mom.write("#{message_object.to_xml.to_s}\n")
|
17
17
|
mom.close
|
18
18
|
|
19
|
-
# configuration = {}
|
20
|
-
# configuration.update(options.pop) if options.last.is_a?(Hash)
|
21
|
-
|
22
19
|
end
|
23
20
|
|
24
21
|
end
|
data/lib/adaptation/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: adaptation
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Xavi Vila Morell
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-
|
12
|
+
date: 2009-05-18 00:00:00 +02:00
|
13
13
|
default_executable: adaptation
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -66,7 +66,6 @@ files:
|
|
66
66
|
- lib/adaptation/test/fake_fixtures.rb
|
67
67
|
- lib/adaptation/test/test_help.rb
|
68
68
|
- lib/adaptation/validateable.rb
|
69
|
-
- lib/tasks
|
70
69
|
- lib/commands.rb
|
71
70
|
- lib/rails_generator
|
72
71
|
- lib/rails_generator/options.rb
|