restfulx 1.3.0 → 1.3.1
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/README.rdoc +1 -1
- data/Rakefile +0 -10
- data/VERSION.yml +2 -1
- data/lib/restfulx.rb +1 -12
- data/lib/restfulx/amf.rb +1 -7
- metadata +5 -7
- data/ext/restfulx/ext/amf/serializer/extconf.rb +0 -3
- data/lib/restfulx/amf/ext.rb +0 -11
- data/lib/restfulx/amf/ext/serializer.bundle +0 -0
data/README.rdoc
CHANGED
data/Rakefile
CHANGED
@@ -24,16 +24,6 @@ rescue LoadError
|
|
24
24
|
puts "jeweler not available. Install it with: sudo gem install jeweler"
|
25
25
|
end
|
26
26
|
|
27
|
-
require 'rake/extensiontask'
|
28
|
-
Rake::ExtensionTask.new do |ext|
|
29
|
-
ext.name = 'serializer'
|
30
|
-
ext.gem_spec = Rake.application.jeweler_tasks.gemspec
|
31
|
-
# ext.cross_compile = true
|
32
|
-
# ext.cross_platform = %w[i386-mswin32 i386-mingw32]
|
33
|
-
ext.ext_dir = 'ext/restfulx/ext/amf/serializer'
|
34
|
-
ext.lib_dir = 'lib/restfulx/amf/ext'
|
35
|
-
end
|
36
|
-
|
37
27
|
require 'rake/rdoctask'
|
38
28
|
Rake::RDocTask.new do |rdoc|
|
39
29
|
config = YAML.load(File.read('VERSION.yml'))
|
data/VERSION.yml
CHANGED
data/lib/restfulx.rb
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
$:.unshift(File.dirname(__FILE__)) unless $:.include?(File.dirname(__FILE__)) || $:.include?(File.expand_path(File.dirname(__FILE__)))
|
2
2
|
require 'yaml'
|
3
3
|
require 'restfulx/configuration'
|
4
|
+
require 'restfulx/amf'
|
4
5
|
|
5
6
|
# Settings
|
6
7
|
module RestfulX
|
@@ -9,18 +10,6 @@ module RestfulX
|
|
9
10
|
APPLICATION_FXML = 'application/xml'.freeze
|
10
11
|
APPLICATION_AMF = 'application/x-amf'.freeze
|
11
12
|
end
|
12
|
-
|
13
|
-
# get the currently defined AMF serializer
|
14
|
-
def self.amf_serializer
|
15
|
-
@amf_serializer
|
16
|
-
end
|
17
|
-
|
18
|
-
# set the amf serializer to use
|
19
|
-
# valid options are :native and :pure, using :pure is recommended as it is as fast
|
20
|
-
# as native but currently better tested/supported
|
21
|
-
def self.amf_serializer=(value)
|
22
|
-
@amf_serializer = value
|
23
|
-
end
|
24
13
|
|
25
14
|
VERSION_SOURCE = YAML.load(File.read(File.join(File.dirname(__FILE__), '..', 'VERSION.yml')))
|
26
15
|
VERSION = "#{VERSION_SOURCE[:major]}.#{VERSION_SOURCE[:minor]}.#{VERSION_SOURCE[:patch]}"
|
data/lib/restfulx/amf.rb
CHANGED
@@ -1,14 +1,8 @@
|
|
1
1
|
$:.unshift(File.dirname(__FILE__)) unless $:.include?(File.dirname(__FILE__)) || $:.include?(File.expand_path(File.dirname(__FILE__)))
|
2
2
|
require 'amf/class_mapping'
|
3
|
+
require 'amf/pure'
|
3
4
|
|
4
5
|
# implements ruby-side AMF support for RestfulX
|
5
6
|
module RestfulX::AMF
|
6
|
-
|
7
7
|
ClassMapper = RestfulX::AMF::ClassMapping.new
|
8
|
-
|
9
|
-
begin
|
10
|
-
require RestfulX.amf_serializer == :native ? 'amf/ext' : 'amf/pure'
|
11
|
-
rescue LoadError
|
12
|
-
require 'amf/pure'
|
13
|
-
end
|
14
8
|
end
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 1
|
7
7
|
- 3
|
8
|
-
-
|
9
|
-
version: 1.3.
|
8
|
+
- 1
|
9
|
+
version: 1.3.1
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Dima Berastau
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date:
|
17
|
+
date: 2011-01-01 00:00:00 -08:00
|
18
18
|
default_executable: rx-gen
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
@@ -49,8 +49,8 @@ description: "RestfulX: The RESTful Way to develop Adobe Flex and AIR applicatio
|
|
49
49
|
email: dima.berastau@gmail.com
|
50
50
|
executables:
|
51
51
|
- rx-gen
|
52
|
-
extensions:
|
53
|
-
|
52
|
+
extensions: []
|
53
|
+
|
54
54
|
extra_rdoc_files:
|
55
55
|
- README.rdoc
|
56
56
|
files:
|
@@ -89,8 +89,6 @@ files:
|
|
89
89
|
- lib/restfulx/active_record_uuid_helper.rb
|
90
90
|
- lib/restfulx/amf.rb
|
91
91
|
- lib/restfulx/amf/class_mapping.rb
|
92
|
-
- lib/restfulx/amf/ext.rb
|
93
|
-
- lib/restfulx/amf/ext/serializer.bundle
|
94
92
|
- lib/restfulx/amf/pure.rb
|
95
93
|
- lib/restfulx/amf/pure/io_helpers.rb
|
96
94
|
- lib/restfulx/amf/pure/serializer.rb
|
data/lib/restfulx/amf/ext.rb
DELETED
@@ -1,11 +0,0 @@
|
|
1
|
-
require 'restfulx/amf/ext/serializer'
|
2
|
-
|
3
|
-
module RestfulX::AMF #:nodoc:
|
4
|
-
# This module holds all the modules/classes that implement AMF's
|
5
|
-
# functionality in native C code
|
6
|
-
module Ext
|
7
|
-
$DEBUG and warn "Using native extension for AMF."
|
8
|
-
end
|
9
|
-
|
10
|
-
include RestfulX::AMF::Ext
|
11
|
-
end
|
Binary file
|