rcstorable 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.1
1
+ 0.1.2
@@ -0,0 +1,13 @@
1
+ require 'rcstorable'
2
+
3
+ describe RCStorable do
4
+
5
+ it "should correctly decode output" do
6
+ input = "\005\006#{File.read(File.join(File.dirname(__FILE__),'test.store'))}"
7
+
8
+ puts RCStorable.thaw(input).inspect
9
+
10
+ end
11
+
12
+
13
+ end
data/spec/store.pl ADDED
@@ -0,0 +1,19 @@
1
+
2
+ use strict;
3
+ use warnings;
4
+
5
+ use Storable;
6
+ use Data::Dumper;
7
+
8
+ my %blah = (
9
+ "a" => "A longish string",
10
+ "b" => "35",
11
+ "c" => {
12
+ "p" => "blah",
13
+ "q" => "Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.",
14
+ },
15
+ "longer_key_name" => "29",
16
+ );
17
+
18
+ print Storable::freeze(\%blah);
19
+
data/spec/test.store ADDED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rcstorable
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Burke Libbey
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2010-01-13 00:00:00 -06:00
12
+ date: 2010-01-14 00:00:00 -06:00
13
13
  default_executable:
14
14
  dependencies: []
15
15
 
@@ -28,9 +28,10 @@ files:
28
28
  - VERSION
29
29
  - ext/Makefile
30
30
  - ext/extconf.rb
31
- - ext/rcstorable.bundle
32
31
  - ext/rcstorable.c
33
- - ext/rcstorable.o
32
+ - spec/rcstorable_spec.rb
33
+ - spec/store.pl
34
+ - spec/test.store
34
35
  has_rdoc: true
35
36
  homepage: http://canadadrugs.com
36
37
  licenses: []
@@ -59,5 +60,5 @@ rubygems_version: 1.3.5
59
60
  signing_key:
60
61
  specification_version: 3
61
62
  summary: Ruby C implementation of perl Storable's thaw
62
- test_files: []
63
-
63
+ test_files:
64
+ - spec/rcstorable_spec.rb
Binary file
data/ext/rcstorable.o DELETED
Binary file