asir 1.2.6 → 1.2.7

Sign up to get free protection for your applications and to get access to all the features.
data/ChangeLog CHANGED
@@ -1,3 +1,9 @@
1
+ 2012-03-14 Kurt A. Stephens <ks.github@kurtstephens.com>
2
+
3
+ * v1.2.7: New Version: Fixed for 1.9.2-p320.
4
+ * YAML/Syck protocol changes.
5
+ * New API: Transport#conduit_status.
6
+
1
7
  2012-03-13 Kurt A. Stephens <ks.github@kurtstephens.com>
2
8
 
3
9
  * v1.2.6: New Version: additional functionality.
@@ -25,7 +25,7 @@ module ASIR
25
25
 
26
26
  attr_accessor :yaml_options
27
27
  case RUBY_VERSION
28
- when /^1\.8/
28
+ when /^1\.8|^1\.9\.2/
29
29
  def yaml_dump obj
30
30
  ::YAML::dump obj
31
31
  end
@@ -62,6 +62,10 @@ module Asir
62
62
  def _start_conduit!
63
63
  raise Error::SubclassResponsibility
64
64
  end
65
+
66
+ def conduit_status
67
+ nil
68
+ end
65
69
  end
66
70
  end
67
71
  end
@@ -1,3 +1,3 @@
1
1
  module ASIR
2
- VERSION = "1.2.6"
2
+ VERSION = "1.2.7"
3
3
  end
@@ -2,7 +2,7 @@ require File.expand_path('../spec_helper', __FILE__)
2
2
  require 'asir/coder/yaml'
3
3
 
4
4
  describe "ASIR::Coder::Yaml" do
5
- before(:each) do
5
+ before(:each) do
6
6
  @enc = ASIR::Coder::Yaml.new
7
7
  @dec = @enc.dup
8
8
  end
@@ -20,9 +20,6 @@ describe "ASIR::Coder::Yaml" do
20
20
  ].each do | x |
21
21
  x, str = *x
22
22
  if x == nil
23
- if RUBY_VERSION == '1.9.2'
24
- str = '!!null '
25
- end
26
23
  end
27
24
  str ||= x.to_s
28
25
  unless x == nil and RUBY_VERSION !~ /^1\.8/ and RUBY_ENGINE =~ /jruby/i
@@ -94,12 +91,17 @@ describe "ASIR::Coder::Yaml" do
94
91
  yaml = ::YAML.dump(str)
95
92
  case RUBY_VERSION
96
93
  when '1.9.2'
97
- yaml.should == "--- ! '#<Encoding:ASCII-8BIT>'\n"
94
+ yaml.should == "--- \"#<Encoding:ASCII-8BIT>\"\n"
98
95
  else
99
96
  yaml.should == "--- !binary |-\n IzxFbmNvZGluZzpBU0NJSS04QklUPg==\n"
100
97
  end
101
98
 
102
- yaml = ::YAML.dump(str, nil, :never_binary => true)
99
+ case RUBY_VERSION
100
+ when '1.9.2'
101
+ yaml = ::YAML.dump(str)
102
+ else
103
+ yaml = ::YAML.dump(str, nil, :never_binary => true)
104
+ end
103
105
  yaml.should =~ /\A--- (! )?['"]\#<Encoding:ASCII-8BIT>['"]\n/
104
106
  end
105
107
 
@@ -114,7 +116,7 @@ describe "ASIR::Coder::Yaml" do
114
116
  when /jruby/i
115
117
  out.should == "--- 8bitascii\n"
116
118
  else
117
- out.should == "--- 8bitascii\n...\n"
119
+ out.should == "--- 8bitascii\n"
118
120
  end
119
121
  else
120
122
  out.should == "--- !binary |-\n OGJpdGFzY2lp\n"
@@ -128,7 +130,12 @@ describe "ASIR::Coder::Yaml" do
128
130
  when /jruby/i
129
131
  out.should == "--- 8bitascii\n"
130
132
  else
131
- out.should == "--- 8bitascii\n...\n"
133
+ case RUBY_VERSION
134
+ when /^1\.8|^1\.9\.2/
135
+ out.should == "--- 8bitascii\n"
136
+ else
137
+ out.should == "--- 8bitascii\n...\n"
138
+ end
132
139
  end
133
140
  inp = @dec.prepare.decode(str)
134
141
  inp.should == str
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: asir
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.6
4
+ version: 1.2.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -270,7 +270,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
270
270
  version: '0'
271
271
  segments:
272
272
  - 0
273
- hash: -2818264757772260278
273
+ hash: 1685953318029082194
274
274
  required_rubygems_version: !ruby/object:Gem::Requirement
275
275
  none: false
276
276
  requirements:
@@ -279,7 +279,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
279
279
  version: '0'
280
280
  segments:
281
281
  - 0
282
- hash: -2818264757772260278
282
+ hash: 1685953318029082194
283
283
  requirements: []
284
284
  rubyforge_project:
285
285
  rubygems_version: 1.8.25