rubinius-bridge 1.0.7 → 1.0.8

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8a6761a1db3b87eca74004b7e46ce2014a6bb6ba
4
- data.tar.gz: 51228658e2f8bae85f73a4b6587a6e70e9aa4088
3
+ metadata.gz: 304ede4b23eaad39ef58ee313c3e971ebf0e390e
4
+ data.tar.gz: 58dc509b3fc14c303c1a4ec154d2c1728e39bc7d
5
5
  SHA512:
6
- metadata.gz: 3ed6f2f4380e47d7ee4d600854749c80636ca5d56f20910832f37689612e286495c537087b1de888f08e85130b54e5efaf18ac85b1833bd7564227c9a6e910f4
7
- data.tar.gz: c8ba3e195ce16c0ff21784c3caa7028cde083029a7945a540c75a441a721d215e9e423ad0f78b8d355b7448af62543200a465ef441f5bb4624d1faa888ad6718
6
+ metadata.gz: acf2c30859b2504498e8fc53addd700308808e4bb40057486a205884a2d936d3994a63ca3645a0610190f68e1fcf7b67163506a22acc1f9d982462f07e046ba1
7
+ data.tar.gz: 0c83c73f0d0dba99c61d39f49a899c6c50533db4abb77c326d0562bfc37d7f29755814df18d7f19c6ef09fc58d730abee50664a1b20e07348f079291c1270656
@@ -0,0 +1,11 @@
1
+ unless RedCard.check "1.9"
2
+ class Encoding
3
+ attr_reader :name
4
+
5
+ def initialize(name="US-ASCII")
6
+ @name = name
7
+ end
8
+
9
+ ASCII_8BIT = new "ASCII-8BIT"
10
+ end
11
+ end
@@ -5,4 +5,15 @@ class String
5
5
  def data
6
6
  self
7
7
  end
8
+
9
+ unless RedCard.check "1.9"
10
+ def encoding
11
+ @encoding ||= Encoding.new
12
+ end
13
+
14
+ def force_encoding(encoding)
15
+ @encoding = encoding
16
+ self
17
+ end
18
+ end
8
19
  end
@@ -1,5 +1,5 @@
1
1
  module Rubinius
2
2
  module Bridge
3
- VERSION = "1.0.7"
3
+ VERSION = "1.0.8"
4
4
  end
5
5
  end
@@ -7,6 +7,7 @@ unless RedCard.check :rubinius
7
7
  require "rubinius/bridge/string"
8
8
  require "rubinius/bridge/rubinius"
9
9
  require "rubinius/bridge/compiled_code"
10
+ require "rubinius/bridge/encoding"
10
11
  require "rubinius/bridge/exception"
11
12
  require "rubinius/bridge/executable"
12
13
  require "rubinius/bridge/iseq"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubinius-bridge
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.7
4
+ version: 1.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Shirai
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-04-28 00:00:00.000000000 Z
11
+ date: 2014-05-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: redcard
@@ -73,6 +73,7 @@ files:
73
73
  - lib/rubinius/bridge.rb
74
74
  - lib/rubinius/bridge/array.rb
75
75
  - lib/rubinius/bridge/compiled_code.rb
76
+ - lib/rubinius/bridge/encoding.rb
76
77
  - lib/rubinius/bridge/exception.rb
77
78
  - lib/rubinius/bridge/executable.rb
78
79
  - lib/rubinius/bridge/iseq.rb