ffi-msgpack 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- data/ChangeLog.md +4 -0
- data/Gemfile +1 -1
- data/Gemfile.lock +33 -0
- data/README.md +1 -1
- data/VERSION +1 -1
- data/ffi-msgpack.gemspec +6 -5
- data/lib/ffi/msgpack/msgpack.rb +20 -0
- metadata +8 -7
data/ChangeLog.md
CHANGED
data/Gemfile
CHANGED
data/Gemfile.lock
ADDED
@@ -0,0 +1,33 @@
|
|
1
|
+
GIT
|
2
|
+
remote: git://github.com/technicalpickles/jeweler.git
|
3
|
+
revision: b996854
|
4
|
+
specs:
|
5
|
+
jeweler (1.4.0)
|
6
|
+
bundler (>= 0.9.5)
|
7
|
+
gemcutter (>= 0.1.0)
|
8
|
+
git (>= 1.2.5)
|
9
|
+
rake
|
10
|
+
|
11
|
+
GEM
|
12
|
+
remote: https://rubygems.org/
|
13
|
+
specs:
|
14
|
+
ffi (0.6.3)
|
15
|
+
rake (>= 0.8.7)
|
16
|
+
gemcutter (0.6.1)
|
17
|
+
git (1.2.5)
|
18
|
+
rake (0.8.7)
|
19
|
+
rdiscount (1.6.5)
|
20
|
+
rspec (1.3.0)
|
21
|
+
yard (0.5.8)
|
22
|
+
|
23
|
+
PLATFORMS
|
24
|
+
ruby
|
25
|
+
|
26
|
+
DEPENDENCIES
|
27
|
+
bundler (~> 1.0.0)
|
28
|
+
ffi (~> 0.6.0)
|
29
|
+
jeweler (~> 1.4.0)!
|
30
|
+
rake (~> 0.8.7)
|
31
|
+
rdiscount (~> 1.6.3)
|
32
|
+
rspec (~> 1.3.0)
|
33
|
+
yard (~> 0.5.3)
|
data/README.md
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.4
|
data/ffi-msgpack.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{ffi-msgpack}
|
8
|
-
s.version = "0.1.
|
8
|
+
s.version = "0.1.4"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Postmodern"]
|
12
|
-
s.date = %q{2010-
|
12
|
+
s.date = %q{2010-08-12}
|
13
13
|
s.description = %q{Ruby FFI bindings for the msgpack library.}
|
14
14
|
s.email = %q{postmodern.mod3@gmail.com}
|
15
15
|
s.extra_rdoc_files = [
|
@@ -23,6 +23,7 @@ Gem::Specification.new do |s|
|
|
23
23
|
".yardopts",
|
24
24
|
"ChangeLog.md",
|
25
25
|
"Gemfile",
|
26
|
+
"Gemfile.lock",
|
26
27
|
"LICENSE.txt",
|
27
28
|
"README.md",
|
28
29
|
"Rakefile",
|
@@ -95,20 +96,20 @@ Gem::Specification.new do |s|
|
|
95
96
|
|
96
97
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
97
98
|
s.add_runtime_dependency(%q<ffi>, ["~> 0.6.0"])
|
98
|
-
s.add_development_dependency(%q<bundler>, ["~> 0.
|
99
|
+
s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
|
99
100
|
s.add_development_dependency(%q<rake>, ["~> 0.8.7"])
|
100
101
|
s.add_development_dependency(%q<jeweler>, ["~> 1.4.0"])
|
101
102
|
s.add_development_dependency(%q<rspec>, ["~> 1.3.0"])
|
102
103
|
else
|
103
104
|
s.add_dependency(%q<ffi>, ["~> 0.6.0"])
|
104
|
-
s.add_dependency(%q<bundler>, ["~> 0.
|
105
|
+
s.add_dependency(%q<bundler>, ["~> 1.0.0"])
|
105
106
|
s.add_dependency(%q<rake>, ["~> 0.8.7"])
|
106
107
|
s.add_dependency(%q<jeweler>, ["~> 1.4.0"])
|
107
108
|
s.add_dependency(%q<rspec>, ["~> 1.3.0"])
|
108
109
|
end
|
109
110
|
else
|
110
111
|
s.add_dependency(%q<ffi>, ["~> 0.6.0"])
|
111
|
-
s.add_dependency(%q<bundler>, ["~> 0.
|
112
|
+
s.add_dependency(%q<bundler>, ["~> 1.0.0"])
|
112
113
|
s.add_dependency(%q<rake>, ["~> 0.8.7"])
|
113
114
|
s.add_dependency(%q<jeweler>, ["~> 1.4.0"])
|
114
115
|
s.add_dependency(%q<rspec>, ["~> 1.3.0"])
|
data/lib/ffi/msgpack/msgpack.rb
CHANGED
@@ -10,6 +10,26 @@ module FFI
|
|
10
10
|
|
11
11
|
ffi_lib 'msgpack'
|
12
12
|
|
13
|
+
begin
|
14
|
+
attach_function :msgpack_version, [], :string
|
15
|
+
attach_function :msgpack_version_major, [], :int
|
16
|
+
attach_function :msgpack_version_minor, [], :int
|
17
|
+
rescue FFI::NotFoundError
|
18
|
+
end
|
19
|
+
|
20
|
+
#
|
21
|
+
# The version of libmsgpack.
|
22
|
+
#
|
23
|
+
# @return [String, nil]
|
24
|
+
# The version of `libmsgpack`. `nil` will be returned if the version
|
25
|
+
# of `libmsgpack` is <= 0.5.1.
|
26
|
+
#
|
27
|
+
# @since 0.1.4
|
28
|
+
#
|
29
|
+
def MsgPack.version
|
30
|
+
MsgPack.msgpack_version if MsgPack.respond_to?(:msgpack_version)
|
31
|
+
end
|
32
|
+
|
13
33
|
attach_function :msgpack_object_print, [:pointer, MsgObject.by_value], :void
|
14
34
|
#attach_function :msgpack_object_equal, [MsgObject, MsgObject.by_value], :bool
|
15
35
|
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 1
|
8
|
-
-
|
9
|
-
version: 0.1.
|
8
|
+
- 4
|
9
|
+
version: 0.1.4
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Postmodern
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-
|
17
|
+
date: 2010-08-12 00:00:00 -07:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
@@ -40,10 +40,10 @@ dependencies:
|
|
40
40
|
- - ~>
|
41
41
|
- !ruby/object:Gem::Version
|
42
42
|
segments:
|
43
|
+
- 1
|
44
|
+
- 0
|
43
45
|
- 0
|
44
|
-
|
45
|
-
- 25
|
46
|
-
version: 0.9.25
|
46
|
+
version: 1.0.0
|
47
47
|
type: :development
|
48
48
|
prerelease: false
|
49
49
|
version_requirements: *id002
|
@@ -108,6 +108,7 @@ files:
|
|
108
108
|
- .yardopts
|
109
109
|
- ChangeLog.md
|
110
110
|
- Gemfile
|
111
|
+
- Gemfile.lock
|
111
112
|
- LICENSE.txt
|
112
113
|
- README.md
|
113
114
|
- Rakefile
|
@@ -165,7 +166,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
165
166
|
requirements:
|
166
167
|
- - ">="
|
167
168
|
- !ruby/object:Gem::Version
|
168
|
-
hash:
|
169
|
+
hash: 1626239469308121946
|
169
170
|
segments:
|
170
171
|
- 0
|
171
172
|
version: "0"
|