ffi_dry 0.1.8 → 0.1.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. data/History.txt +4 -0
  2. data/VERSION +1 -1
  3. data/ffi_dry.gemspec +14 -4
  4. data/lib/ffi/dry.rb +1 -1
  5. metadata +34 -6
data/History.txt CHANGED
@@ -1,3 +1,7 @@
1
+ === 0.1.9 / 2010-3-5
2
+ * Workaround peculiar FFI::MemoryPointer.from_string() bugs when using
3
+ :raw => buf in ruby 1.9.x
4
+
1
5
  === 0.1.8 / 2010-2-16
2
6
  * Updated for compatability with ffi 0.6.x's new requirement that
3
7
  libraries be included with 'ffi_lib' even if they are already linked.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.8
1
+ 0.1.9
data/ffi_dry.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{ffi_dry}
8
- s.version = "0.1.8"
8
+ s.version = "0.1.9"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Eric Monti"]
12
- s.date = %q{2010-02-16}
12
+ s.date = %q{2010-03-05}
13
13
  s.description = %q{Provides some useful modules, classes, and methods for FFI bindings as well as a DSL-like syntax for FFI::Struct layouts}
14
14
  s.email = %q{emonti@matasano.com}
15
15
  s.extra_rdoc_files = [
@@ -33,10 +33,11 @@ Gem::Specification.new do |s|
33
33
  "spec/ffi_dry_spec.rb",
34
34
  "spec/spec_helper.rb"
35
35
  ]
36
+ s.has_rdoc = true
36
37
  s.homepage = %q{http://github.com/emonti/ffi_dry}
37
38
  s.rdoc_options = ["--charset=UTF-8"]
38
39
  s.require_paths = ["lib"]
39
- s.rubygems_version = %q{1.3.5}
40
+ s.rubygems_version = %q{1.3.1}
40
41
  s.summary = %q{Syntactic sugar and helper utilities for FFI}
41
42
  s.test_files = [
42
43
  "spec/ffi_dry_spec.rb",
@@ -45,21 +46,30 @@ Gem::Specification.new do |s|
45
46
 
46
47
  if s.respond_to? :specification_version then
47
48
  current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
48
- s.specification_version = 3
49
+ s.specification_version = 2
49
50
 
50
51
  if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
51
52
  s.add_runtime_dependency(%q<ffi>, [">= 0.5.0"])
52
53
  s.add_development_dependency(%q<rspec>, [">= 0"])
53
54
  s.add_development_dependency(%q<yard>, [">= 0"])
55
+ s.add_runtime_dependency(%q<ffi>, [">= 0.5.0"])
56
+ s.add_development_dependency(%q<rspec>, [">= 0"])
57
+ s.add_development_dependency(%q<yard>, [">= 0"])
54
58
  else
55
59
  s.add_dependency(%q<ffi>, [">= 0.5.0"])
56
60
  s.add_dependency(%q<rspec>, [">= 0"])
57
61
  s.add_dependency(%q<yard>, [">= 0"])
62
+ s.add_dependency(%q<ffi>, [">= 0.5.0"])
63
+ s.add_dependency(%q<rspec>, [">= 0"])
64
+ s.add_dependency(%q<yard>, [">= 0"])
58
65
  end
59
66
  else
60
67
  s.add_dependency(%q<ffi>, [">= 0.5.0"])
61
68
  s.add_dependency(%q<rspec>, [">= 0"])
62
69
  s.add_dependency(%q<yard>, [">= 0"])
70
+ s.add_dependency(%q<ffi>, [">= 0.5.0"])
71
+ s.add_dependency(%q<rspec>, [">= 0"])
72
+ s.add_dependency(%q<yard>, [">= 0"])
63
73
  end
64
74
  end
65
75
 
data/lib/ffi/dry.rb CHANGED
@@ -90,7 +90,7 @@ module FFI::DRY
90
90
  if args.size == 1 and (oparams=args[0]).is_a? Hash
91
91
  params = oparams.dup
92
92
  if raw=params.delete(:raw)
93
- super( ::FFI::MemoryPointer.from_string(raw) )
93
+ super( ::FFI::MemoryPointer.new(raw.size).write_string(raw) )
94
94
  else
95
95
  super()
96
96
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ffi_dry
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8
4
+ version: 0.1.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Monti
@@ -9,9 +9,39 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2010-02-16 00:00:00 -06:00
12
+ date: 2010-03-05 00:00:00 -06:00
13
13
  default_executable:
14
14
  dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: ffi
17
+ type: :runtime
18
+ version_requirement:
19
+ version_requirements: !ruby/object:Gem::Requirement
20
+ requirements:
21
+ - - ">="
22
+ - !ruby/object:Gem::Version
23
+ version: 0.5.0
24
+ version:
25
+ - !ruby/object:Gem::Dependency
26
+ name: rspec
27
+ type: :development
28
+ version_requirement:
29
+ version_requirements: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: "0"
34
+ version:
35
+ - !ruby/object:Gem::Dependency
36
+ name: yard
37
+ type: :development
38
+ version_requirement:
39
+ version_requirements: !ruby/object:Gem::Requirement
40
+ requirements:
41
+ - - ">="
42
+ - !ruby/object:Gem::Version
43
+ version: "0"
44
+ version:
15
45
  - !ruby/object:Gem::Dependency
16
46
  name: ffi
17
47
  type: :runtime
@@ -69,8 +99,6 @@ files:
69
99
  - spec/spec_helper.rb
70
100
  has_rdoc: true
71
101
  homepage: http://github.com/emonti/ffi_dry
72
- licenses: []
73
-
74
102
  post_install_message:
75
103
  rdoc_options:
76
104
  - --charset=UTF-8
@@ -91,9 +119,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
91
119
  requirements: []
92
120
 
93
121
  rubyforge_project:
94
- rubygems_version: 1.3.5
122
+ rubygems_version: 1.3.1
95
123
  signing_key:
96
- specification_version: 3
124
+ specification_version: 2
97
125
  summary: Syntactic sugar and helper utilities for FFI
98
126
  test_files:
99
127
  - spec/ffi_dry_spec.rb