ffi-udis86 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
File without changes
@@ -1,3 +1,11 @@
1
+ ### 0.1.2 / 2011-02-02
2
+
3
+ * Opted into [gem-tester.org](http://gem-testers.org/).
4
+ * Require ffi >= 0.6.0 and <= 1.1.0.
5
+ * JRuby requires ffi >= 1.0.0.
6
+ * A lot of projects still require ~> 0.6.0.
7
+ * Fixed typos in the YARD Documentation.
8
+
1
9
  ### 0.1.1 / 2010-11-06
2
10
 
3
11
  * Added an external requirement for udis86 >= 1.7.
@@ -1,5 +1,4 @@
1
-
2
- Copyright (c) 2009-2010 Hal Brodigan
1
+ Copyright (c) 2009-2011 Hal Brodigan
3
2
 
4
3
  Permission is hereby granted, free of charge, to any person obtaining
5
4
  a copy of this software and associated documentation files (the
@@ -19,4 +18,3 @@ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
19
18
  CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
20
19
  TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
21
20
  SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22
-
data/README.md CHANGED
@@ -2,11 +2,13 @@
2
2
 
3
3
  * [Source](http://github.com/sophsec/ffi-udis86/)
4
4
  * [Issue](http://github.com/sophsec/ffi-udis86/)
5
- * Postmodern (postmodern.mod3 at gmail.com)
5
+ * [Documentation](http://rubydoc.info/gems/ffi-udis86/)
6
+ * [Email](postmodern.mod3 at gmail.com)
6
7
 
7
8
  ## Description
8
9
 
9
- Ruby FFI bindings for udis86, a x86 and x86-64 disassembler.
10
+ {FFI::UDis86} provides Ruby FFI bindings for the udis86, a x86 and x86-64
11
+ disassembler.
10
12
 
11
13
  ## Features
12
14
 
@@ -87,7 +89,7 @@ Disassemble and print information about the instruction and operands:
87
89
  ## Requirements
88
90
 
89
91
  * [udis86](http://udis86.sourceforge.net/) >= 1.7
90
- * [ffi](http://github.com/ffi/ffi) ~> 0.6.0
92
+ * [ffi](http://github.com/ffi/ffi) >= 0.6.0, <= 1.1.0
91
93
 
92
94
  ## Install
93
95
 
@@ -96,4 +98,3 @@ Disassemble and print information about the instruction and operands:
96
98
  ## License
97
99
 
98
100
  See {file:LICENSE.txt} for license information.
99
-
data/Rakefile CHANGED
@@ -2,7 +2,7 @@ require 'rubygems'
2
2
  require 'rake'
3
3
 
4
4
  begin
5
- gem 'ore-tasks', '~> 0.1.2'
5
+ gem 'ore-tasks', '~> 0.3.0'
6
6
  require 'ore/tasks'
7
7
 
8
8
  Ore::Tasks.new
@@ -12,7 +12,7 @@ rescue LoadError => e
12
12
  end
13
13
 
14
14
  begin
15
- gem 'rspec', '~> 2.0.0'
15
+ gem 'rspec', '~> 2.4.0'
16
16
  require 'rspec/core/rake_task'
17
17
 
18
18
  RSpec::Core::RakeTask.new
@@ -21,6 +21,7 @@ rescue LoadError => e
21
21
  abort "Please run `gem install rspec` to install RSpec."
22
22
  end
23
23
  end
24
+ task :test => :spec
24
25
  task :default => :spec
25
26
 
26
27
  begin
@@ -5,6 +5,11 @@ begin
5
5
  # custom logic here
6
6
  end
7
7
  rescue NameError
8
- STDERR.puts "The 'ffi-udis86.gemspec' file requires Ore."
9
- STDERR.puts "Run `gem install ore` to install Ore."
8
+ begin
9
+ require 'ore/specification'
10
+ retry
11
+ rescue LoadError
12
+ STDERR.puts "The 'ffi-udis86.gemspec' file requires Ore."
13
+ STDERR.puts "Run `gem install ore-core` to install Ore."
14
+ end
10
15
  end
@@ -1,19 +1,21 @@
1
1
  name: ffi-udis86
2
2
  summary: Ruby FFI bindings for udis86, a x86 and x86-64 disassembler.
3
- description: Ruby FFI bindings for udis86, a x86 and x86-64 disassembler.
3
+ description:
4
+ ffi-udis86 provides Ruby FFI bindings for the udis86, a x86 and x86-64
5
+ disassembler.
6
+
4
7
  license: MIT
5
8
  authors: Postmodern
6
9
  email: postmodern.mod3@gmail.com
7
10
  homepage: http://github.com/sophsec/ffi-udis86
8
11
  has_yard: true
9
12
 
10
- requirements: udis86, 1.7 or greater
13
+ requirements: udis86 >= 1.7
11
14
 
12
15
  dependencies:
13
- ffi: ~> 0.6.0
16
+ ffi: >= 0.6.0, <= 1.1.0
14
17
 
15
18
  development_dependencies:
16
- ore: ~> 0.2.0
17
- ore-tasks: ~> 0.1.2
18
- rspec: ~> 2.0.0
19
+ ore-tasks: ~> 0.3.0
20
+ rspec: ~> 2.4.0
19
21
  yard: ~> 0.6.0
@@ -118,7 +118,7 @@ module FFI
118
118
  # The path to the file.
119
119
  #
120
120
  # @param [Hash] options
121
- # Additional dissaembly options.
121
+ # Additional options for the disassembler.
122
122
  #
123
123
  # @option options [Integer] :mode (32)
124
124
  # The mode of disassembly, can either 16, 32 or 64.
@@ -195,7 +195,7 @@ module FFI
195
195
  # The new contents of the input buffer.
196
196
  #
197
197
  # @raise [RuntimeError]
198
- # The given input buffer was neigther a String or an Array of bytes.
198
+ # The given input buffer was neither a String or an Array of bytes.
199
199
  #
200
200
  def input_buffer=(data)
201
201
  data = data.to_s
@@ -286,7 +286,7 @@ module FFI
286
286
  end
287
287
 
288
288
  #
289
- # The vendor of whose instructions are to be choosen from during
289
+ # The vendor of whose instructions are to be chosen from during
290
290
  # disassembly.
291
291
  #
292
292
  # @return [Symbol]
@@ -297,7 +297,7 @@ module FFI
297
297
  end
298
298
 
299
299
  #
300
- # Sets the vendor, of whose instructions are to be choosen from
300
+ # Sets the vendor, of whose instructions are to be chosen from
301
301
  # during disassembly.
302
302
  #
303
303
  # @param [Symbol] new_vendor
@@ -7,7 +7,7 @@ module FFI
7
7
  module UDis86
8
8
  extend FFI::Library
9
9
 
10
- ffi_lib 'libudis86'
10
+ ffi_lib 'udis86'
11
11
 
12
12
  attach_function :ud_init, [:pointer], :void
13
13
  attach_function :ud_set_input_hook, [:pointer, :ud_input_callback], :void
@@ -1,6 +1,6 @@
1
1
  module FFI
2
2
  module UDis86
3
3
  # udis86-ffi version
4
- VERSION = '0.1.1'
4
+ VERSION = '0.1.2'
5
5
  end
6
6
  end
@@ -1,4 +1,4 @@
1
- gem 'rspec', '~> 2.0.0'
1
+ gem 'rspec', '~> 2.4.0'
2
2
  require 'rspec'
3
3
  require 'ffi/udis86/version'
4
4
 
metadata CHANGED
@@ -1,12 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ffi-udis86
3
3
  version: !ruby/object:Gem::Version
4
- prerelease: false
5
- segments:
6
- - 0
7
- - 1
8
- - 1
9
- version: 0.1.1
4
+ prerelease:
5
+ version: 0.1.2
10
6
  platform: ruby
11
7
  authors:
12
8
  - Postmodern
@@ -14,7 +10,7 @@ autorequire:
14
10
  bindir: bin
15
11
  cert_chain: []
16
12
 
17
- date: 2010-11-06 00:00:00 -07:00
13
+ date: 2011-02-02 00:00:00 -08:00
18
14
  default_executable:
19
15
  dependencies:
20
16
  - !ruby/object:Gem::Dependency
@@ -23,76 +19,48 @@ dependencies:
23
19
  requirement: &id001 !ruby/object:Gem::Requirement
24
20
  none: false
25
21
  requirements:
26
- - - ~>
22
+ - - ">="
27
23
  - !ruby/object:Gem::Version
28
- segments:
29
- - 0
30
- - 6
31
- - 0
32
24
  version: 0.6.0
25
+ - - <=
26
+ - !ruby/object:Gem::Version
27
+ version: 1.1.0
33
28
  type: :runtime
34
29
  version_requirements: *id001
35
30
  - !ruby/object:Gem::Dependency
36
- name: ore
31
+ name: ore-tasks
37
32
  prerelease: false
38
33
  requirement: &id002 !ruby/object:Gem::Requirement
39
34
  none: false
40
35
  requirements:
41
36
  - - ~>
42
37
  - !ruby/object:Gem::Version
43
- segments:
44
- - 0
45
- - 2
46
- - 0
47
- version: 0.2.0
38
+ version: 0.3.0
48
39
  type: :development
49
40
  version_requirements: *id002
50
41
  - !ruby/object:Gem::Dependency
51
- name: ore-tasks
42
+ name: rspec
52
43
  prerelease: false
53
44
  requirement: &id003 !ruby/object:Gem::Requirement
54
45
  none: false
55
46
  requirements:
56
47
  - - ~>
57
48
  - !ruby/object:Gem::Version
58
- segments:
59
- - 0
60
- - 1
61
- - 2
62
- version: 0.1.2
49
+ version: 2.4.0
63
50
  type: :development
64
51
  version_requirements: *id003
65
- - !ruby/object:Gem::Dependency
66
- name: rspec
67
- prerelease: false
68
- requirement: &id004 !ruby/object:Gem::Requirement
69
- none: false
70
- requirements:
71
- - - ~>
72
- - !ruby/object:Gem::Version
73
- segments:
74
- - 2
75
- - 0
76
- - 0
77
- version: 2.0.0
78
- type: :development
79
- version_requirements: *id004
80
52
  - !ruby/object:Gem::Dependency
81
53
  name: yard
82
54
  prerelease: false
83
- requirement: &id005 !ruby/object:Gem::Requirement
55
+ requirement: &id004 !ruby/object:Gem::Requirement
84
56
  none: false
85
57
  requirements:
86
58
  - - ~>
87
59
  - !ruby/object:Gem::Version
88
- segments:
89
- - 0
90
- - 6
91
- - 0
92
60
  version: 0.6.0
93
61
  type: :development
94
- version_requirements: *id005
95
- description: Ruby FFI bindings for udis86, a x86 and x86-64 disassembler.
62
+ version_requirements: *id004
63
+ description: ffi-udis86 provides Ruby FFI bindings for the udis86, a x86 and x86-64 disassembler.
96
64
  email: postmodern.mod3@gmail.com
97
65
  executables: []
98
66
 
@@ -101,6 +69,7 @@ extensions: []
101
69
  extra_rdoc_files:
102
70
  - README.md
103
71
  files:
72
+ - .gemtest
104
73
  - .rspec
105
74
  - .specopts
106
75
  - .yardopts
@@ -135,7 +104,7 @@ files:
135
104
  - spec/spec_helper.rb
136
105
  - spec/ud_spec.rb
137
106
  - spec/udis86_spec.rb
138
- has_rdoc: yard
107
+ has_rdoc: true
139
108
  homepage: http://github.com/sophsec/ffi-udis86
140
109
  licenses:
141
110
  - MIT
@@ -149,21 +118,17 @@ required_ruby_version: !ruby/object:Gem::Requirement
149
118
  requirements:
150
119
  - - ">="
151
120
  - !ruby/object:Gem::Version
152
- segments:
153
- - 0
154
121
  version: "0"
155
122
  required_rubygems_version: !ruby/object:Gem::Requirement
156
123
  none: false
157
124
  requirements:
158
125
  - - ">="
159
126
  - !ruby/object:Gem::Version
160
- segments:
161
- - 0
162
127
  version: "0"
163
128
  requirements:
164
- - udis86, 1.7 or greater
129
+ - udis86 >= 1.7
165
130
  rubyforge_project: ffi-udis86
166
- rubygems_version: 1.3.7
131
+ rubygems_version: 1.5.0
167
132
  signing_key:
168
133
  specification_version: 3
169
134
  summary: Ruby FFI bindings for udis86, a x86 and x86-64 disassembler.