xnd 0.2.0dev3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (93) hide show
  1. checksums.yaml +7 -0
  2. data/CONTRIBUTING.md +42 -0
  3. data/Gemfile +3 -0
  4. data/History.md +0 -0
  5. data/README.md +7 -0
  6. data/Rakefile +135 -0
  7. data/ext/ruby_xnd/extconf.rb +70 -0
  8. data/ext/ruby_xnd/float_pack_unpack.c +277 -0
  9. data/ext/ruby_xnd/float_pack_unpack.h +39 -0
  10. data/ext/ruby_xnd/gc_guard.c +36 -0
  11. data/ext/ruby_xnd/gc_guard.h +12 -0
  12. data/ext/ruby_xnd/include/xnd.h +449 -0
  13. data/ext/ruby_xnd/lib/libxnd.a +0 -0
  14. data/ext/ruby_xnd/lib/libxnd.so +1 -0
  15. data/ext/ruby_xnd/lib/libxnd.so.0 +1 -0
  16. data/ext/ruby_xnd/lib/libxnd.so.0.2.0dev3 +0 -0
  17. data/ext/ruby_xnd/memory_block_object.c +32 -0
  18. data/ext/ruby_xnd/memory_block_object.h +33 -0
  19. data/ext/ruby_xnd/ruby_xnd.c +1953 -0
  20. data/ext/ruby_xnd/ruby_xnd.h +61 -0
  21. data/ext/ruby_xnd/ruby_xnd_internal.h +85 -0
  22. data/ext/ruby_xnd/util.h +170 -0
  23. data/ext/ruby_xnd/xnd/AUTHORS.txt +5 -0
  24. data/ext/ruby_xnd/xnd/INSTALL.txt +134 -0
  25. data/ext/ruby_xnd/xnd/LICENSE.txt +29 -0
  26. data/ext/ruby_xnd/xnd/MANIFEST.in +3 -0
  27. data/ext/ruby_xnd/xnd/Makefile.in +80 -0
  28. data/ext/ruby_xnd/xnd/README.rst +44 -0
  29. data/ext/ruby_xnd/xnd/config.guess +1530 -0
  30. data/ext/ruby_xnd/xnd/config.h.in +22 -0
  31. data/ext/ruby_xnd/xnd/config.sub +1782 -0
  32. data/ext/ruby_xnd/xnd/configure +4867 -0
  33. data/ext/ruby_xnd/xnd/configure.ac +164 -0
  34. data/ext/ruby_xnd/xnd/doc/Makefile +14 -0
  35. data/ext/ruby_xnd/xnd/doc/_static/copybutton.js +66 -0
  36. data/ext/ruby_xnd/xnd/doc/conf.py +26 -0
  37. data/ext/ruby_xnd/xnd/doc/index.rst +44 -0
  38. data/ext/ruby_xnd/xnd/doc/libxnd/data-structures.rst +186 -0
  39. data/ext/ruby_xnd/xnd/doc/libxnd/functions.rst +148 -0
  40. data/ext/ruby_xnd/xnd/doc/libxnd/index.rst +25 -0
  41. data/ext/ruby_xnd/xnd/doc/releases/index.rst +34 -0
  42. data/ext/ruby_xnd/xnd/doc/xnd/align-pack.rst +96 -0
  43. data/ext/ruby_xnd/xnd/doc/xnd/buffer-protocol.rst +42 -0
  44. data/ext/ruby_xnd/xnd/doc/xnd/index.rst +30 -0
  45. data/ext/ruby_xnd/xnd/doc/xnd/quickstart.rst +62 -0
  46. data/ext/ruby_xnd/xnd/doc/xnd/types.rst +674 -0
  47. data/ext/ruby_xnd/xnd/install-sh +527 -0
  48. data/ext/ruby_xnd/xnd/libxnd/Makefile.in +102 -0
  49. data/ext/ruby_xnd/xnd/libxnd/Makefile.vc +112 -0
  50. data/ext/ruby_xnd/xnd/libxnd/bitmaps.c +345 -0
  51. data/ext/ruby_xnd/xnd/libxnd/contrib.h +313 -0
  52. data/ext/ruby_xnd/xnd/libxnd/copy.c +944 -0
  53. data/ext/ruby_xnd/xnd/libxnd/equal.c +1216 -0
  54. data/ext/ruby_xnd/xnd/libxnd/inline.h +154 -0
  55. data/ext/ruby_xnd/xnd/libxnd/overflow.h +147 -0
  56. data/ext/ruby_xnd/xnd/libxnd/split.c +286 -0
  57. data/ext/ruby_xnd/xnd/libxnd/tests/Makefile.in +39 -0
  58. data/ext/ruby_xnd/xnd/libxnd/tests/Makefile.vc +44 -0
  59. data/ext/ruby_xnd/xnd/libxnd/tests/README.txt +2 -0
  60. data/ext/ruby_xnd/xnd/libxnd/tests/runtest.c +101 -0
  61. data/ext/ruby_xnd/xnd/libxnd/tests/test.h +48 -0
  62. data/ext/ruby_xnd/xnd/libxnd/tests/test_fixed.c +108 -0
  63. data/ext/ruby_xnd/xnd/libxnd/xnd.c +1304 -0
  64. data/ext/ruby_xnd/xnd/libxnd/xnd.h +449 -0
  65. data/ext/ruby_xnd/xnd/python/test_xnd.py +3144 -0
  66. data/ext/ruby_xnd/xnd/python/xnd/__init__.py +290 -0
  67. data/ext/ruby_xnd/xnd/python/xnd/_xnd.c +2822 -0
  68. data/ext/ruby_xnd/xnd/python/xnd/contrib/pretty.py +850 -0
  69. data/ext/ruby_xnd/xnd/python/xnd/docstrings.h +129 -0
  70. data/ext/ruby_xnd/xnd/python/xnd/pyxnd.h +200 -0
  71. data/ext/ruby_xnd/xnd/python/xnd/util.h +182 -0
  72. data/ext/ruby_xnd/xnd/python/xnd_randvalue.py +1121 -0
  73. data/ext/ruby_xnd/xnd/python/xnd_support.py +106 -0
  74. data/ext/ruby_xnd/xnd/setup.py +303 -0
  75. data/ext/ruby_xnd/xnd/vcbuild/INSTALL.txt +42 -0
  76. data/ext/ruby_xnd/xnd/vcbuild/runtest32.bat +16 -0
  77. data/ext/ruby_xnd/xnd/vcbuild/runtest64.bat +14 -0
  78. data/ext/ruby_xnd/xnd/vcbuild/vcbuild32.bat +29 -0
  79. data/ext/ruby_xnd/xnd/vcbuild/vcbuild64.bat +29 -0
  80. data/ext/ruby_xnd/xnd/vcbuild/vcclean.bat +13 -0
  81. data/ext/ruby_xnd/xnd/vcbuild/vcdistclean.bat +14 -0
  82. data/lib/ruby_xnd.so +0 -0
  83. data/lib/xnd.rb +306 -0
  84. data/lib/xnd/monkeys.rb +29 -0
  85. data/lib/xnd/version.rb +6 -0
  86. data/spec/debug_spec.rb +9 -0
  87. data/spec/gc_guard_spec.rb +10 -0
  88. data/spec/leakcheck.rb +9 -0
  89. data/spec/spec_helper.rb +877 -0
  90. data/spec/type_inference_spec.rb +81 -0
  91. data/spec/xnd_spec.rb +2921 -0
  92. data/xnd.gemspec +47 -0
  93. metadata +215 -0
@@ -0,0 +1,47 @@
1
+ # coding: utf-8
2
+ $:.unshift File.expand_path("../lib", __FILE__)
3
+
4
+ require 'xnd/version.rb'
5
+
6
+ def self.get_files
7
+ files = []
8
+ ['ext', 'lib', 'spec'].each do |folder|
9
+ files.concat Dir.glob "#{folder}/**/*"
10
+ end
11
+
12
+ files.concat(
13
+ ["CONTRIBUTING.md", "Gemfile", "History.md", "xnd.gemspec",
14
+ "README.md", "Rakefile"
15
+ ])
16
+
17
+ files
18
+ end
19
+ files = get_files
20
+
21
+ RubyXND::DESCRIPTION = <<MSG
22
+ XND is a library for typed data arrays in Ruby. It is a wrapper over the libxnd C library.
23
+ MSG
24
+
25
+ Gem::Specification.new do |spec|
26
+ spec.name = 'xnd'
27
+ spec.version = RubyXND::VERSION
28
+ spec.authors = ['Sameer Deshmukh']
29
+ spec.email = ['sameer.deshmukh93@gmail.com']
30
+ spec.summary = %q{Ruby wrapper over libxnd. A library for typed data containers.}
31
+ spec.description = RubyXND::DESCRIPTION
32
+ spec.homepage = "https://github.com/plures/xnd"
33
+ spec.license = 'BSD-3 Clause'
34
+
35
+ spec.files = files
36
+ spec.extensions = "ext/ruby_xnd/extconf.rb"
37
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
38
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
39
+ spec.require_paths = ["lib"]
40
+
41
+ spec.add_development_dependency 'rspec', '~> 3.8'
42
+ spec.add_development_dependency 'rake-compiler'
43
+ spec.add_development_dependency 'pry'
44
+ spec.add_development_dependency 'pry-byebug'
45
+
46
+ spec.add_runtime_dependency 'ndtypes', '>= 0.2.0dev4'
47
+ end
metadata ADDED
@@ -0,0 +1,215 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: xnd
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.2.0dev3
5
+ platform: ruby
6
+ authors:
7
+ - Sameer Deshmukh
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2018-09-25 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rspec
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '3.8'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '3.8'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake-compiler
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: pry
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: pry-byebug
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: ndtypes
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: 0.2.0dev4
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: 0.2.0dev4
83
+ description: 'XND is a library for typed data arrays in Ruby. It is a wrapper over
84
+ the libxnd C library.
85
+
86
+ '
87
+ email:
88
+ - sameer.deshmukh93@gmail.com
89
+ executables: []
90
+ extensions:
91
+ - ext/ruby_xnd/extconf.rb
92
+ extra_rdoc_files: []
93
+ files:
94
+ - CONTRIBUTING.md
95
+ - Gemfile
96
+ - History.md
97
+ - README.md
98
+ - Rakefile
99
+ - ext/ruby_xnd/extconf.rb
100
+ - ext/ruby_xnd/float_pack_unpack.c
101
+ - ext/ruby_xnd/float_pack_unpack.h
102
+ - ext/ruby_xnd/gc_guard.c
103
+ - ext/ruby_xnd/gc_guard.h
104
+ - ext/ruby_xnd/include/xnd.h
105
+ - ext/ruby_xnd/lib/libxnd.a
106
+ - ext/ruby_xnd/lib/libxnd.so
107
+ - ext/ruby_xnd/lib/libxnd.so.0
108
+ - ext/ruby_xnd/lib/libxnd.so.0.2.0dev3
109
+ - ext/ruby_xnd/memory_block_object.c
110
+ - ext/ruby_xnd/memory_block_object.h
111
+ - ext/ruby_xnd/ruby_xnd.c
112
+ - ext/ruby_xnd/ruby_xnd.h
113
+ - ext/ruby_xnd/ruby_xnd_internal.h
114
+ - ext/ruby_xnd/util.h
115
+ - ext/ruby_xnd/xnd/AUTHORS.txt
116
+ - ext/ruby_xnd/xnd/INSTALL.txt
117
+ - ext/ruby_xnd/xnd/LICENSE.txt
118
+ - ext/ruby_xnd/xnd/MANIFEST.in
119
+ - ext/ruby_xnd/xnd/Makefile.in
120
+ - ext/ruby_xnd/xnd/README.rst
121
+ - ext/ruby_xnd/xnd/config.guess
122
+ - ext/ruby_xnd/xnd/config.h.in
123
+ - ext/ruby_xnd/xnd/config.sub
124
+ - ext/ruby_xnd/xnd/configure
125
+ - ext/ruby_xnd/xnd/configure.ac
126
+ - ext/ruby_xnd/xnd/doc/Makefile
127
+ - ext/ruby_xnd/xnd/doc/_static/copybutton.js
128
+ - ext/ruby_xnd/xnd/doc/conf.py
129
+ - ext/ruby_xnd/xnd/doc/index.rst
130
+ - ext/ruby_xnd/xnd/doc/libxnd/data-structures.rst
131
+ - ext/ruby_xnd/xnd/doc/libxnd/functions.rst
132
+ - ext/ruby_xnd/xnd/doc/libxnd/index.rst
133
+ - ext/ruby_xnd/xnd/doc/releases/index.rst
134
+ - ext/ruby_xnd/xnd/doc/xnd/align-pack.rst
135
+ - ext/ruby_xnd/xnd/doc/xnd/buffer-protocol.rst
136
+ - ext/ruby_xnd/xnd/doc/xnd/index.rst
137
+ - ext/ruby_xnd/xnd/doc/xnd/quickstart.rst
138
+ - ext/ruby_xnd/xnd/doc/xnd/types.rst
139
+ - ext/ruby_xnd/xnd/install-sh
140
+ - ext/ruby_xnd/xnd/libxnd/Makefile.in
141
+ - ext/ruby_xnd/xnd/libxnd/Makefile.vc
142
+ - ext/ruby_xnd/xnd/libxnd/bitmaps.c
143
+ - ext/ruby_xnd/xnd/libxnd/contrib.h
144
+ - ext/ruby_xnd/xnd/libxnd/copy.c
145
+ - ext/ruby_xnd/xnd/libxnd/equal.c
146
+ - ext/ruby_xnd/xnd/libxnd/inline.h
147
+ - ext/ruby_xnd/xnd/libxnd/overflow.h
148
+ - ext/ruby_xnd/xnd/libxnd/split.c
149
+ - ext/ruby_xnd/xnd/libxnd/tests/Makefile.in
150
+ - ext/ruby_xnd/xnd/libxnd/tests/Makefile.vc
151
+ - ext/ruby_xnd/xnd/libxnd/tests/README.txt
152
+ - ext/ruby_xnd/xnd/libxnd/tests/runtest.c
153
+ - ext/ruby_xnd/xnd/libxnd/tests/test.h
154
+ - ext/ruby_xnd/xnd/libxnd/tests/test_fixed.c
155
+ - ext/ruby_xnd/xnd/libxnd/xnd.c
156
+ - ext/ruby_xnd/xnd/libxnd/xnd.h
157
+ - ext/ruby_xnd/xnd/python/test_xnd.py
158
+ - ext/ruby_xnd/xnd/python/xnd/__init__.py
159
+ - ext/ruby_xnd/xnd/python/xnd/_xnd.c
160
+ - ext/ruby_xnd/xnd/python/xnd/contrib/pretty.py
161
+ - ext/ruby_xnd/xnd/python/xnd/docstrings.h
162
+ - ext/ruby_xnd/xnd/python/xnd/pyxnd.h
163
+ - ext/ruby_xnd/xnd/python/xnd/util.h
164
+ - ext/ruby_xnd/xnd/python/xnd_randvalue.py
165
+ - ext/ruby_xnd/xnd/python/xnd_support.py
166
+ - ext/ruby_xnd/xnd/setup.py
167
+ - ext/ruby_xnd/xnd/vcbuild/INSTALL.txt
168
+ - ext/ruby_xnd/xnd/vcbuild/runtest32.bat
169
+ - ext/ruby_xnd/xnd/vcbuild/runtest64.bat
170
+ - ext/ruby_xnd/xnd/vcbuild/vcbuild32.bat
171
+ - ext/ruby_xnd/xnd/vcbuild/vcbuild64.bat
172
+ - ext/ruby_xnd/xnd/vcbuild/vcclean.bat
173
+ - ext/ruby_xnd/xnd/vcbuild/vcdistclean.bat
174
+ - lib/ruby_xnd.so
175
+ - lib/xnd.rb
176
+ - lib/xnd/monkeys.rb
177
+ - lib/xnd/version.rb
178
+ - spec/debug_spec.rb
179
+ - spec/gc_guard_spec.rb
180
+ - spec/leakcheck.rb
181
+ - spec/spec_helper.rb
182
+ - spec/type_inference_spec.rb
183
+ - spec/xnd_spec.rb
184
+ - xnd.gemspec
185
+ homepage: https://github.com/plures/xnd
186
+ licenses:
187
+ - BSD-3 Clause
188
+ metadata: {}
189
+ post_install_message:
190
+ rdoc_options: []
191
+ require_paths:
192
+ - lib
193
+ required_ruby_version: !ruby/object:Gem::Requirement
194
+ requirements:
195
+ - - ">="
196
+ - !ruby/object:Gem::Version
197
+ version: '0'
198
+ required_rubygems_version: !ruby/object:Gem::Requirement
199
+ requirements:
200
+ - - ">"
201
+ - !ruby/object:Gem::Version
202
+ version: 1.3.1
203
+ requirements: []
204
+ rubyforge_project:
205
+ rubygems_version: 2.6.14
206
+ signing_key:
207
+ specification_version: 4
208
+ summary: Ruby wrapper over libxnd. A library for typed data containers.
209
+ test_files:
210
+ - spec/debug_spec.rb
211
+ - spec/gc_guard_spec.rb
212
+ - spec/leakcheck.rb
213
+ - spec/spec_helper.rb
214
+ - spec/type_inference_spec.rb
215
+ - spec/xnd_spec.rb