adaptation 0.0.7 → 0.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/CHANGELOG +4 -0
- data/bin/adaptation +2 -0
- data/bin/console +0 -0
- data/bin/mom +2 -0
- data/lib/adaptation/console/environment.rb +0 -0
- data/lib/adaptation/validateable.rb +30 -0
- data/lib/commands/adaptor_path.rb +0 -0
- data/lib/commands/console.rb +1 -3
- metadata +61 -52
data/CHANGELOG
CHANGED
@@ -8,3 +8,7 @@
|
|
8
8
|
- forced to use ROXML version 1.2
|
9
9
|
* 0.0.7
|
10
10
|
- Documentation update + Message class clean up
|
11
|
+
* 0.0.8
|
12
|
+
- Activerecord 2.2.2 broke our tests, because it has some new methods not present in Adaptation::Message class.
|
13
|
+
Three class methods have been added in Validateable module to fix that.
|
14
|
+
- Removed comment when starting console.
|
data/bin/adaptation
CHANGED
data/bin/console
CHANGED
File without changes
|
data/bin/mom
CHANGED
File without changes
|
@@ -13,6 +13,36 @@ module Validateable
|
|
13
13
|
base.send(:include, ActiveRecord::Validations)
|
14
14
|
end
|
15
15
|
|
16
|
+
|
17
|
+
def self.included(base) # :nodoc:
|
18
|
+
base.extend ClassMethods
|
19
|
+
end
|
20
|
+
|
21
|
+
module ClassMethods
|
22
|
+
# Define class methods here.
|
23
|
+
|
24
|
+
def self_and_descendents_from_active_record#nodoc:
|
25
|
+
klass = self
|
26
|
+
classes = [klass]
|
27
|
+
while klass != klass.base_class
|
28
|
+
classes << klass = klass.superclass
|
29
|
+
end
|
30
|
+
classes
|
31
|
+
rescue
|
32
|
+
[self]
|
33
|
+
end
|
34
|
+
|
35
|
+
def human_name
|
36
|
+
""
|
37
|
+
end
|
38
|
+
|
39
|
+
def human_attribute_name(attribute_key_name, options = {})
|
40
|
+
""
|
41
|
+
end
|
42
|
+
|
43
|
+
end
|
44
|
+
|
45
|
+
|
16
46
|
end
|
17
47
|
|
18
48
|
module ActiveRecord
|
File without changes
|
data/lib/commands/console.rb
CHANGED
@@ -10,9 +10,7 @@ begin
|
|
10
10
|
if !exists_debug_lib.nil? && exists_debug_lib == true
|
11
11
|
libs << " -r ruby-debug"
|
12
12
|
end
|
13
|
-
|
14
|
-
rescue Exception => e
|
15
|
-
puts "Console haven't installed \"ruby-debug\" library."
|
13
|
+
rescue
|
16
14
|
end
|
17
15
|
|
18
16
|
libs << " -r adaptation"
|
metadata
CHANGED
@@ -1,33 +1,46 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
|
-
rubygems_version: 0.9.4
|
3
|
-
specification_version: 1
|
4
2
|
name: adaptation
|
5
3
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 0.0.
|
7
|
-
date: 2008-11-24 00:00:00 +01:00
|
8
|
-
summary: Framework to facilitate web-application interaction.
|
9
|
-
require_paths:
|
10
|
-
- lib
|
11
|
-
email: xavi@oaproject.net
|
12
|
-
homepage: http://www.oaproject.net
|
13
|
-
rubyforge_project:
|
14
|
-
description: Adaptation is a framework for building "adaptors" for web-applications, so they can interact with other web-applications publishing messages and being subscribed to a message queue.
|
15
|
-
autorequire: adaptation
|
16
|
-
default_executable: adaptation
|
17
|
-
bindir: bin
|
18
|
-
has_rdoc: true
|
19
|
-
required_ruby_version: !ruby/object:Gem::Version::Requirement
|
20
|
-
requirements:
|
21
|
-
- - ">"
|
22
|
-
- !ruby/object:Gem::Version
|
23
|
-
version: 0.0.0
|
24
|
-
version:
|
4
|
+
version: 0.0.8
|
25
5
|
platform: ruby
|
26
|
-
signing_key:
|
27
|
-
cert_chain:
|
28
|
-
post_install_message:
|
29
6
|
authors:
|
30
7
|
- Xavi Vila Morell
|
8
|
+
autorequire: adaptation
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
|
12
|
+
date: 2008-12-12 00:00:00 +01:00
|
13
|
+
default_executable: adaptation
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
16
|
+
name: roxml
|
17
|
+
type: :runtime
|
18
|
+
version_requirement:
|
19
|
+
version_requirements: !ruby/object:Gem::Requirement
|
20
|
+
requirements:
|
21
|
+
- - "="
|
22
|
+
- !ruby/object:Gem::Version
|
23
|
+
version: "1.2"
|
24
|
+
version:
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
|
+
name: activerecord
|
27
|
+
type: :runtime
|
28
|
+
version_requirement:
|
29
|
+
version_requirements: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: "0"
|
34
|
+
version:
|
35
|
+
description: Adaptation is a framework for building "adaptors" for web-applications, so they can interact with other web-applications publishing messages and being subscribed to a message queue.
|
36
|
+
email: xavi@oaproject.net
|
37
|
+
executables:
|
38
|
+
- adaptation
|
39
|
+
- mom
|
40
|
+
extensions: []
|
41
|
+
|
42
|
+
extra_rdoc_files:
|
43
|
+
- README
|
31
44
|
files:
|
32
45
|
- bin/subscribe
|
33
46
|
- bin/destroy
|
@@ -120,36 +133,32 @@ files:
|
|
120
133
|
- README
|
121
134
|
- CHANGELOG
|
122
135
|
- fresh_rakefile
|
123
|
-
|
124
|
-
|
136
|
+
has_rdoc: true
|
137
|
+
homepage: http://www.oaproject.net
|
138
|
+
post_install_message:
|
125
139
|
rdoc_options:
|
126
140
|
- --main
|
127
141
|
- README
|
128
|
-
|
129
|
-
-
|
130
|
-
|
131
|
-
|
132
|
-
-
|
133
|
-
|
134
|
-
|
142
|
+
require_paths:
|
143
|
+
- lib
|
144
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
145
|
+
requirements:
|
146
|
+
- - ">="
|
147
|
+
- !ruby/object:Gem::Version
|
148
|
+
version: "0"
|
149
|
+
version:
|
150
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
151
|
+
requirements:
|
152
|
+
- - ">="
|
153
|
+
- !ruby/object:Gem::Version
|
154
|
+
version: "0"
|
155
|
+
version:
|
135
156
|
requirements: []
|
136
157
|
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
- !ruby/object:Gem::Version
|
145
|
-
version: "1.2"
|
146
|
-
version:
|
147
|
-
- !ruby/object:Gem::Dependency
|
148
|
-
name: activerecord
|
149
|
-
version_requirement:
|
150
|
-
version_requirements: !ruby/object:Gem::Version::Requirement
|
151
|
-
requirements:
|
152
|
-
- - ">"
|
153
|
-
- !ruby/object:Gem::Version
|
154
|
-
version: 0.0.0
|
155
|
-
version:
|
158
|
+
rubyforge_project: adaptation
|
159
|
+
rubygems_version: 1.3.1
|
160
|
+
signing_key:
|
161
|
+
specification_version: 2
|
162
|
+
summary: Framework to facilitate web-application interaction.
|
163
|
+
test_files: []
|
164
|
+
|