packsnap 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (45) hide show
  1. data/.gitignore +17 -0
  2. data/ChangeLog +29 -0
  3. data/README.rdoc +26 -0
  4. data/Rakefile +150 -0
  5. data/doclib/msgpack.rb +54 -0
  6. data/doclib/packsnap/buffer.rb +177 -0
  7. data/doclib/packsnap/error.rb +14 -0
  8. data/doclib/packsnap/packer.rb +131 -0
  9. data/doclib/packsnap/unpacker.rb +130 -0
  10. data/ext/packsnap/buffer.cc +684 -0
  11. data/ext/packsnap/buffer.hh +439 -0
  12. data/ext/packsnap/buffer_class.cc +490 -0
  13. data/ext/packsnap/buffer_class.hh +32 -0
  14. data/ext/packsnap/compat.h +128 -0
  15. data/ext/packsnap/extconf.rb +94 -0
  16. data/ext/packsnap/packer.cc +137 -0
  17. data/ext/packsnap/packer.h +334 -0
  18. data/ext/packsnap/packer_class.cc +288 -0
  19. data/ext/packsnap/packer_class.hh +32 -0
  20. data/ext/packsnap/packsnap.h +4 -0
  21. data/ext/packsnap/rbinit.cc +52 -0
  22. data/ext/packsnap/rmem.cc +110 -0
  23. data/ext/packsnap/rmem.h +100 -0
  24. data/ext/packsnap/sysdep.h +112 -0
  25. data/ext/packsnap/sysdep_endian.h +50 -0
  26. data/ext/packsnap/sysdep_types.h +46 -0
  27. data/ext/packsnap/unpacker.cc +654 -0
  28. data/ext/packsnap/unpacker.hh +108 -0
  29. data/ext/packsnap/unpacker_class.cc +392 -0
  30. data/ext/packsnap/unpacker_class.hh +32 -0
  31. data/lib/packsnap.rb +12 -0
  32. data/lib/packsnap/version.rb +3 -0
  33. data/packsnap.gemspec +23 -0
  34. data/spec/buffer_io_spec.rb +228 -0
  35. data/spec/buffer_spec.rb +572 -0
  36. data/spec/cases.json +1 -0
  37. data/spec/cases.msg +0 -0
  38. data/spec/cases_compact.msg +0 -0
  39. data/spec/cases_spec.rb +39 -0
  40. data/spec/format_spec.rb +225 -0
  41. data/spec/packer_spec.rb +127 -0
  42. data/spec/random_compat.rb +24 -0
  43. data/spec/spec_helper.rb +21 -0
  44. data/spec/unpacker_spec.rb +128 -0
  45. metadata +183 -0
metadata ADDED
@@ -0,0 +1,183 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: packsnap
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Burke Libbey
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2012-10-20 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: bundler
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: 1.0.0
22
+ type: :development
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: 1.0.0
30
+ - !ruby/object:Gem::Dependency
31
+ name: rake
32
+ requirement: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ! '>='
36
+ - !ruby/object:Gem::Version
37
+ version: 0.8.7
38
+ type: :development
39
+ prerelease: false
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: 0.8.7
46
+ - !ruby/object:Gem::Dependency
47
+ name: rspec
48
+ requirement: !ruby/object:Gem::Requirement
49
+ none: false
50
+ requirements:
51
+ - - ! '>='
52
+ - !ruby/object:Gem::Version
53
+ version: 2.10.0
54
+ type: :development
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ! '>='
60
+ - !ruby/object:Gem::Version
61
+ version: 2.10.0
62
+ - !ruby/object:Gem::Dependency
63
+ name: json
64
+ requirement: !ruby/object:Gem::Requirement
65
+ none: false
66
+ requirements:
67
+ - - ~>
68
+ - !ruby/object:Gem::Version
69
+ version: '1.7'
70
+ type: :development
71
+ prerelease: false
72
+ version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ~>
76
+ - !ruby/object:Gem::Version
77
+ version: '1.7'
78
+ - !ruby/object:Gem::Dependency
79
+ name: yard
80
+ requirement: !ruby/object:Gem::Requirement
81
+ none: false
82
+ requirements:
83
+ - - ~>
84
+ - !ruby/object:Gem::Version
85
+ version: '0.8'
86
+ type: :development
87
+ prerelease: false
88
+ version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
90
+ requirements:
91
+ - - ~>
92
+ - !ruby/object:Gem::Version
93
+ version: '0.8'
94
+ description: MessagePack is a binary-based efficient object serialization library.
95
+ It enables to exchange structured objects between many languages like JSON. But
96
+ unlike JSON, it is very fast and small.
97
+ email: burke@libbey.me
98
+ executables: []
99
+ extensions:
100
+ - ext/packsnap/extconf.rb
101
+ extra_rdoc_files: []
102
+ files:
103
+ - .gitignore
104
+ - ChangeLog
105
+ - Gemfile
106
+ - README.rdoc
107
+ - Rakefile
108
+ - doclib/msgpack.rb
109
+ - doclib/packsnap/buffer.rb
110
+ - doclib/packsnap/error.rb
111
+ - doclib/packsnap/packer.rb
112
+ - doclib/packsnap/unpacker.rb
113
+ - ext/packsnap/buffer.cc
114
+ - ext/packsnap/buffer.hh
115
+ - ext/packsnap/buffer_class.cc
116
+ - ext/packsnap/buffer_class.hh
117
+ - ext/packsnap/compat.h
118
+ - ext/packsnap/extconf.rb
119
+ - ext/packsnap/packer.cc
120
+ - ext/packsnap/packer.h
121
+ - ext/packsnap/packer_class.cc
122
+ - ext/packsnap/packer_class.hh
123
+ - ext/packsnap/packsnap.h
124
+ - ext/packsnap/rbinit.cc
125
+ - ext/packsnap/rmem.cc
126
+ - ext/packsnap/rmem.h
127
+ - ext/packsnap/sysdep.h
128
+ - ext/packsnap/sysdep_endian.h
129
+ - ext/packsnap/sysdep_types.h
130
+ - ext/packsnap/unpacker.cc
131
+ - ext/packsnap/unpacker.hh
132
+ - ext/packsnap/unpacker_class.cc
133
+ - ext/packsnap/unpacker_class.hh
134
+ - lib/packsnap.rb
135
+ - lib/packsnap/version.rb
136
+ - packsnap.gemspec
137
+ - spec/buffer_io_spec.rb
138
+ - spec/buffer_spec.rb
139
+ - spec/cases.json
140
+ - spec/cases.msg
141
+ - spec/cases_compact.msg
142
+ - spec/cases_spec.rb
143
+ - spec/format_spec.rb
144
+ - spec/packer_spec.rb
145
+ - spec/random_compat.rb
146
+ - spec/spec_helper.rb
147
+ - spec/unpacker_spec.rb
148
+ homepage: https://github.com/burke/packsnap
149
+ licenses: []
150
+ post_install_message:
151
+ rdoc_options: []
152
+ require_paths:
153
+ - lib
154
+ required_ruby_version: !ruby/object:Gem::Requirement
155
+ none: false
156
+ requirements:
157
+ - - ! '>='
158
+ - !ruby/object:Gem::Version
159
+ version: '0'
160
+ required_rubygems_version: !ruby/object:Gem::Requirement
161
+ none: false
162
+ requirements:
163
+ - - ! '>='
164
+ - !ruby/object:Gem::Version
165
+ version: '0'
166
+ requirements: []
167
+ rubyforge_project:
168
+ rubygems_version: 1.8.23
169
+ signing_key:
170
+ specification_version: 3
171
+ summary: MessagePack, a binary-based efficient data interchange format.
172
+ test_files:
173
+ - spec/buffer_io_spec.rb
174
+ - spec/buffer_spec.rb
175
+ - spec/cases.json
176
+ - spec/cases.msg
177
+ - spec/cases_compact.msg
178
+ - spec/cases_spec.rb
179
+ - spec/format_spec.rb
180
+ - spec/packer_spec.rb
181
+ - spec/random_compat.rb
182
+ - spec/spec_helper.rb
183
+ - spec/unpacker_spec.rb