json-rpc-objects 0.4.0 → 0.4.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.
@@ -1,4 +1,7 @@
1
1
 
2
+ 0.4.1 (2011-07-21)
3
+ * minor bug in general serializer module
4
+
2
5
  0.4.0 (2011-07-20)
3
6
  * multiple serializers support
4
7
  * minor optimization of the version routine
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.0
1
+ 0.4.1
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{json-rpc-objects}
8
- s.version = "0.4.0"
8
+ s.version = "0.4.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = [%q{Martin Kozák}]
12
- s.date = %q{2011-07-20}
12
+ s.date = %q{2011-07-21}
13
13
  s.email = %q{martinkozak@martinkozak.net}
14
14
  s.extra_rdoc_files = [
15
15
  "LICENSE.txt",
@@ -14,8 +14,8 @@ module JsonRpcObjects
14
14
  # Holds the serializer.
15
15
  #
16
16
 
17
- @@serializer = JsonRpcObjects::Serializer::JSON::new
18
-
17
+ @@serializer = nil
18
+
19
19
  ##
20
20
  # Sets the object serializer.
21
21
  #
@@ -26,6 +26,8 @@ module JsonRpcObjects
26
26
  def self.default_serializer(mod = nil)
27
27
  if mod.kind_of? Class
28
28
  mod = mod::new
29
+ elsif @@serializer.nil? and mod.nil?
30
+ @@serializer = JsonRpcObjects::Serializer::JSON::new
29
31
  end
30
32
 
31
33
  @@serializer = mod if not mod.nil?
@@ -101,6 +103,5 @@ module JsonRpcObjects
101
103
  end
102
104
 
103
105
  end
104
-
105
106
  end
106
107
 
@@ -2,8 +2,8 @@
2
2
  # (c) 2011 Martin Kozák (martinkozak@martinkozak.net)
3
3
 
4
4
  $:.push("../../..")
5
- require "json-rpc-objects/serializer/marshal"
6
- JsonRpcObjects::default_serializer(JsonRpcObjects::Serializer::Marshal)
5
+ #require "json-rpc-objects/serializer/marshal"
6
+ #JsonRpcObjects::default_serializer(JsonRpcObjects::Serializer::Marshal)
7
7
 
8
8
  require "../request"
9
9
  req = JsonRpcObjects::V10::Request::create(:alfa, [:beta], :id => 12345)
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: json-rpc-objects
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.4.0
5
+ version: 0.4.1
6
6
  platform: ruby
7
7
  authors:
8
8
  - "Martin Koz\xC3\xA1k"
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-07-20 00:00:00 Z
13
+ date: 2011-07-21 00:00:00 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: hash-utils
@@ -155,7 +155,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
155
155
  requirements:
156
156
  - - ">="
157
157
  - !ruby/object:Gem::Version
158
- hash: -3765115865130944718
158
+ hash: -4448154233428074327
159
159
  segments:
160
160
  - 0
161
161
  version: "0"