ffidb 0.12.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (67) hide show
  1. checksums.yaml +7 -0
  2. data/AUTHORS +1 -0
  3. data/CHANGES.md +7 -0
  4. data/CREDITS.md +2 -0
  5. data/README.md +201 -0
  6. data/UNLICENSE +24 -0
  7. data/VERSION +1 -0
  8. data/bin/ffidb +387 -0
  9. data/etc/mappings/dart.yaml +35 -0
  10. data/etc/mappings/java.yaml +36 -0
  11. data/etc/mappings/lisp.yaml +35 -0
  12. data/etc/mappings/python.yaml +35 -0
  13. data/etc/mappings/ruby.yaml +35 -0
  14. data/etc/templates/c.erb +46 -0
  15. data/etc/templates/cpp.erb +45 -0
  16. data/etc/templates/dart.erb +64 -0
  17. data/etc/templates/go.erb +50 -0
  18. data/etc/templates/java.erb +56 -0
  19. data/etc/templates/lisp.erb +49 -0
  20. data/etc/templates/python.erb +59 -0
  21. data/etc/templates/ruby.erb +48 -0
  22. data/lib/ffidb.rb +34 -0
  23. data/lib/ffidb/enum.rb +37 -0
  24. data/lib/ffidb/errors.rb +64 -0
  25. data/lib/ffidb/exporter.rb +141 -0
  26. data/lib/ffidb/exporters.rb +28 -0
  27. data/lib/ffidb/exporters/c.rb +52 -0
  28. data/lib/ffidb/exporters/cpp.rb +13 -0
  29. data/lib/ffidb/exporters/csharp.rb +6 -0
  30. data/lib/ffidb/exporters/csv.rb +24 -0
  31. data/lib/ffidb/exporters/dart.rb +60 -0
  32. data/lib/ffidb/exporters/go.rb +16 -0
  33. data/lib/ffidb/exporters/haskell.rb +3 -0
  34. data/lib/ffidb/exporters/java.rb +39 -0
  35. data/lib/ffidb/exporters/json.rb +38 -0
  36. data/lib/ffidb/exporters/julia.rb +3 -0
  37. data/lib/ffidb/exporters/lisp.rb +41 -0
  38. data/lib/ffidb/exporters/luajit.rb +3 -0
  39. data/lib/ffidb/exporters/nim.rb +4 -0
  40. data/lib/ffidb/exporters/nodejs.rb +4 -0
  41. data/lib/ffidb/exporters/ocaml.rb +4 -0
  42. data/lib/ffidb/exporters/php.rb +4 -0
  43. data/lib/ffidb/exporters/python.rb +35 -0
  44. data/lib/ffidb/exporters/racket.rb +3 -0
  45. data/lib/ffidb/exporters/ruby.rb +33 -0
  46. data/lib/ffidb/exporters/rust.rb +5 -0
  47. data/lib/ffidb/exporters/yaml.rb +31 -0
  48. data/lib/ffidb/exporters/zig.rb +3 -0
  49. data/lib/ffidb/function.rb +70 -0
  50. data/lib/ffidb/glob.rb +28 -0
  51. data/lib/ffidb/header.rb +19 -0
  52. data/lib/ffidb/header_parser.rb +339 -0
  53. data/lib/ffidb/library.rb +120 -0
  54. data/lib/ffidb/library_parser.rb +132 -0
  55. data/lib/ffidb/location.rb +17 -0
  56. data/lib/ffidb/parameter.rb +35 -0
  57. data/lib/ffidb/registry.rb +87 -0
  58. data/lib/ffidb/release.rb +14 -0
  59. data/lib/ffidb/struct.rb +41 -0
  60. data/lib/ffidb/symbol_table.rb +90 -0
  61. data/lib/ffidb/symbolic.rb +67 -0
  62. data/lib/ffidb/sysexits.rb +21 -0
  63. data/lib/ffidb/type.rb +214 -0
  64. data/lib/ffidb/typedef.rb +38 -0
  65. data/lib/ffidb/union.rb +37 -0
  66. data/lib/ffidb/version.rb +21 -0
  67. metadata +197 -0
@@ -0,0 +1,21 @@
1
+ # This is free and unencumbered software released into the public domain.
2
+
3
+ module FFIDB
4
+ module VERSION
5
+ FILE = File.expand_path('../../VERSION', __dir__).freeze
6
+ STRING = File.read(FILE).chomp.freeze
7
+ MAJOR, MINOR, TINY, EXTRA = STRING.split('.').map(&:to_i).freeze
8
+
9
+ ##
10
+ # @return [String]
11
+ def self.to_s() STRING end
12
+
13
+ ##
14
+ # @return [String]
15
+ def self.to_str() STRING end
16
+
17
+ ##
18
+ # @return [Array(Integer, Integer, Integer)]
19
+ def self.to_a() [MAJOR, MINOR, TINY].freeze end
20
+ end # VERSION
21
+ end # FFIDB
metadata ADDED
@@ -0,0 +1,197 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: ffidb
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.12.0
5
+ platform: ruby
6
+ authors:
7
+ - Arto Bendiken
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2020-05-21 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rake
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '13'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '13'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rspec
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '3.9'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '3.9'
41
+ - !ruby/object:Gem::Dependency
42
+ name: yard
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0.9'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0.9'
55
+ - !ruby/object:Gem::Dependency
56
+ name: ffi-clang
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0.6'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0.6'
69
+ - !ruby/object:Gem::Dependency
70
+ name: tilt
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '2.0'
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '2.0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: thor
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: '1.0'
90
+ type: :runtime
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: '1.0'
97
+ description: Command-line interface (CLI) for the FFI DB registry.
98
+ email: arto@bendiken.net
99
+ executables:
100
+ - ffidb
101
+ extensions: []
102
+ extra_rdoc_files: []
103
+ files:
104
+ - AUTHORS
105
+ - CHANGES.md
106
+ - CREDITS.md
107
+ - README.md
108
+ - UNLICENSE
109
+ - VERSION
110
+ - bin/ffidb
111
+ - etc/mappings/dart.yaml
112
+ - etc/mappings/java.yaml
113
+ - etc/mappings/lisp.yaml
114
+ - etc/mappings/python.yaml
115
+ - etc/mappings/ruby.yaml
116
+ - etc/templates/c.erb
117
+ - etc/templates/cpp.erb
118
+ - etc/templates/dart.erb
119
+ - etc/templates/go.erb
120
+ - etc/templates/java.erb
121
+ - etc/templates/lisp.erb
122
+ - etc/templates/python.erb
123
+ - etc/templates/ruby.erb
124
+ - lib/ffidb.rb
125
+ - lib/ffidb/enum.rb
126
+ - lib/ffidb/errors.rb
127
+ - lib/ffidb/exporter.rb
128
+ - lib/ffidb/exporters.rb
129
+ - lib/ffidb/exporters/c.rb
130
+ - lib/ffidb/exporters/cpp.rb
131
+ - lib/ffidb/exporters/csharp.rb
132
+ - lib/ffidb/exporters/csv.rb
133
+ - lib/ffidb/exporters/dart.rb
134
+ - lib/ffidb/exporters/go.rb
135
+ - lib/ffidb/exporters/haskell.rb
136
+ - lib/ffidb/exporters/java.rb
137
+ - lib/ffidb/exporters/json.rb
138
+ - lib/ffidb/exporters/julia.rb
139
+ - lib/ffidb/exporters/lisp.rb
140
+ - lib/ffidb/exporters/luajit.rb
141
+ - lib/ffidb/exporters/nim.rb
142
+ - lib/ffidb/exporters/nodejs.rb
143
+ - lib/ffidb/exporters/ocaml.rb
144
+ - lib/ffidb/exporters/php.rb
145
+ - lib/ffidb/exporters/python.rb
146
+ - lib/ffidb/exporters/racket.rb
147
+ - lib/ffidb/exporters/ruby.rb
148
+ - lib/ffidb/exporters/rust.rb
149
+ - lib/ffidb/exporters/yaml.rb
150
+ - lib/ffidb/exporters/zig.rb
151
+ - lib/ffidb/function.rb
152
+ - lib/ffidb/glob.rb
153
+ - lib/ffidb/header.rb
154
+ - lib/ffidb/header_parser.rb
155
+ - lib/ffidb/library.rb
156
+ - lib/ffidb/library_parser.rb
157
+ - lib/ffidb/location.rb
158
+ - lib/ffidb/parameter.rb
159
+ - lib/ffidb/registry.rb
160
+ - lib/ffidb/release.rb
161
+ - lib/ffidb/struct.rb
162
+ - lib/ffidb/symbol_table.rb
163
+ - lib/ffidb/symbolic.rb
164
+ - lib/ffidb/sysexits.rb
165
+ - lib/ffidb/type.rb
166
+ - lib/ffidb/typedef.rb
167
+ - lib/ffidb/union.rb
168
+ - lib/ffidb/version.rb
169
+ homepage: https://github.com/ffidb
170
+ licenses:
171
+ - Unlicense
172
+ metadata:
173
+ bug_tracker_uri: https://github.com/ffidb/ffidb.rb/issues
174
+ changelog_uri: https://github.com/ffidb/ffidb.rb/blob/master/CHANGES.md
175
+ documentation_uri: https://www.rubydoc.info/github/ffidb/ffidb.rb/master
176
+ homepage_uri: https://github.com/ffidb
177
+ source_code_uri: https://github.com/ffidb/ffidb.rb
178
+ post_install_message:
179
+ rdoc_options: []
180
+ require_paths:
181
+ - lib
182
+ required_ruby_version: !ruby/object:Gem::Requirement
183
+ requirements:
184
+ - - ">="
185
+ - !ruby/object:Gem::Version
186
+ version: 2.7.0
187
+ required_rubygems_version: !ruby/object:Gem::Requirement
188
+ requirements:
189
+ - - ">="
190
+ - !ruby/object:Gem::Version
191
+ version: 3.1.2
192
+ requirements: []
193
+ rubygems_version: 3.1.2
194
+ signing_key:
195
+ specification_version: 4
196
+ summary: Command-line interface (CLI) for the FFI DB registry.
197
+ test_files: []