malloc 1.5.0 → 1.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (5) hide show
  1. checksums.yaml +7 -0
  2. data/COPYING +10 -15
  3. data/Rakefile +5 -103
  4. data/config.rb +20 -0
  5. metadata +16 -37
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 6e42b2f77163f3b96b0a6fbfe8af83e28a45196de59a838c89a65180d103ab9e
4
+ data.tar.gz: 1873d9927d98a9520d114e8826d04cc79a395dc123d243c89808619fc734ef9f
5
+ SHA512:
6
+ metadata.gz: 3280c4e497ebaebe621d0d27375a7c7de6eec4840630b446fd8927a631a62eccb9bcb494f6b2386f5c477cbf4b0edbd95f955f0514b6e69a767638edcdfc5b95
7
+ data.tar.gz: c3a1affba201fcaf49d4d3caea28cf3115d146e328639ed9a6eda615f35074b291138b01125f3c59bdc9d39be96724232cca28dea778a838217e8f0b0a3cd080
data/COPYING CHANGED
@@ -1,15 +1,11 @@
1
- This is the license for the computer vision library Hornetseye.
2
- Copyright (C) 2006 - 2010 Jan Wedekind, Sheffield, United Kingdom.
1
+ GNU GENERAL PUBLIC LICENSE
2
+ Version 3, 29 June 2007
3
3
 
4
-
5
- GNU GENERAL PUBLIC LICENSE
6
- Version 3, 29 June 2007
7
-
8
- Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
4
+ Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
9
5
  Everyone is permitted to copy and distribute verbatim copies
10
6
  of this license document, but changing it is not allowed.
11
7
 
12
- Preamble
8
+ Preamble
13
9
 
14
10
  The GNU General Public License is a free, copyleft license for
15
11
  software and other kinds of works.
@@ -72,7 +68,7 @@ patents cannot be used to render the program non-free.
72
68
  The precise terms and conditions for copying, distribution and
73
69
  modification follow.
74
70
 
75
- TERMS AND CONDITIONS
71
+ TERMS AND CONDITIONS
76
72
 
77
73
  0. Definitions.
78
74
 
@@ -622,9 +618,9 @@ an absolute waiver of all civil liability in connection with the
622
618
  Program, unless a warranty or assumption of liability accompanies a
623
619
  copy of the Program in return for a fee.
624
620
 
625
- END OF TERMS AND CONDITIONS
621
+ END OF TERMS AND CONDITIONS
626
622
 
627
- How to Apply These Terms to Your New Programs
623
+ How to Apply These Terms to Your New Programs
628
624
 
629
625
  If you develop a new program, and you want it to be of the greatest
630
626
  possible use to the public, the best way to achieve this is to make it
@@ -649,7 +645,7 @@ the "copyright" line and a pointer to where the full notice is found.
649
645
  GNU General Public License for more details.
650
646
 
651
647
  You should have received a copy of the GNU General Public License
652
- along with this program. If not, see <http://www.gnu.org/licenses/>.
648
+ along with this program. If not, see <https://www.gnu.org/licenses/>.
653
649
 
654
650
  Also add information on how to contact you by electronic and paper mail.
655
651
 
@@ -668,12 +664,11 @@ might be different; for a GUI interface, you would use an "about box".
668
664
  You should also get your employer (if you work as a programmer) or school,
669
665
  if any, to sign a "copyright disclaimer" for the program, if necessary.
670
666
  For more information on this, and how to apply and follow the GNU GPL, see
671
- <http://www.gnu.org/licenses/>.
667
+ <https://www.gnu.org/licenses/>.
672
668
 
673
669
  The GNU General Public License does not permit incorporating your program
674
670
  into proprietary programs. If your program is a subroutine library, you
675
671
  may consider it more useful to permit linking proprietary applications with
676
672
  the library. If this is what you want to do, use the GNU Lesser General
677
673
  Public License instead of this License. But first, please read
678
- <http://www.gnu.org/philosophy/why-not-lgpl.html>.
679
-
674
+ <https://www.gnu.org/licenses/why-not-lgpl.html>.
data/Rakefile CHANGED
@@ -5,33 +5,14 @@ require 'rake/testtask'
5
5
  require 'rake/packagetask'
6
6
  require 'rake/loaders/makefile'
7
7
  require 'rbconfig'
8
-
9
- PKG_NAME = 'malloc'
10
- PKG_VERSION = '1.5.0'
11
- CFG = RbConfig::CONFIG
12
- CXX = ENV[ 'CXX' ] || 'g++'
13
- RB_FILES = FileList[ 'lib/**/*.rb' ]
14
- CC_FILES = FileList[ 'ext/*.cc' ]
15
- HH_FILES = FileList[ 'ext/*.hh' ] + FileList[ 'ext/*.tcc' ]
16
- TC_FILES = FileList[ 'test/tc_*.rb' ]
17
- TS_FILES = FileList[ 'test/ts_*.rb' ]
18
- SO_FILE = "ext/#{PKG_NAME.tr '\-', '_'}.#{CFG[ 'DLEXT' ]}"
19
- PKG_FILES = [ 'Rakefile', 'README.md', 'COPYING', '.document' ] +
20
- RB_FILES + CC_FILES + HH_FILES + TS_FILES + TC_FILES
21
- BIN_FILES = [ 'README.md', 'COPYING', '.document', SO_FILE ] +
22
- RB_FILES + TS_FILES + TC_FILES
23
- SUMMARY = %q{Object for raw memory allocation and pointer operations}
24
- DESCRIPTION = %q{This Ruby extension defines the class Hornetseye::Malloc. Hornetseye::Malloc#new allows you to allocate memory, using Hornetseye::Malloc#+ one can do pointer manipulation, and Hornetseye::Malloc#read and Hornetseye::Malloc#write provide reading Ruby strings from memory and writing Ruby strings to memory.}
25
- LICENSE = 'GPL-3+'
26
- AUTHOR = %q{Jan Wedekind}
27
- EMAIL = %q{jan@wedesoft.de}
28
- HOMEPAGE = %q{http://wedesoft.github.com/malloc/}
8
+ require_relative 'config'
29
9
 
30
10
  OBJ = CC_FILES.ext 'o'
31
11
  $CXXFLAGS = "-DNDEBUG #{CFG[ 'CPPFLAGS' ]} #{CFG[ 'CFLAGS' ]}"
32
- if CFG[ 'rubyhdrdir' ]
33
- $CXXFLAGS = "#{$CXXFLAGS} -I#{CFG[ 'rubyhdrdir' ]} " +
34
- "-I#{CFG[ 'rubyhdrdir' ]}/#{CFG[ 'arch' ]}"
12
+ if CFG['rubyarchhdrdir']
13
+ $CXXFLAGS = "#{$CXXFLAGS} -I#{CFG['rubyhdrdir']} -I#{CFG['rubyarchhdrdir']}"
14
+ elsif CFG['rubyhdrdir']
15
+ $CXXFLAGS = "#{$CXXFLAGS} -I#{CFG['rubyhdrdir' ]} -I#{CFG['rubyhdrdir']}/#{CFG['arch']}"
35
16
  else
36
17
  $CXXFLAGS = "#{$CXXFLAGS} -I#{CFG[ 'archdir' ]}"
37
18
  end
@@ -88,90 +69,11 @@ rescue LoadError
88
69
  STDERR.puts 'Please install \'yard\' if you want to generate documentation'
89
70
  end
90
71
 
91
- begin
92
- require 'fpm'
93
- desc 'Create Debian package'
94
- task :deb => :gem do
95
- system "fpm -f -s gem -t deb -n #{PKG_NAME} -m '#{AUTHOR} <#{EMAIL}>' " +
96
- "--deb-priority optional -d ruby1.9.1 " +
97
- "pkg/#{PKG_NAME}-#{PKG_VERSION}.gem"
98
- end
99
- rescue LoadError
100
- STDERR.puts 'Please install \'fpm\' if you want to create Debian packages'
101
- end
102
-
103
72
  Rake::PackageTask.new PKG_NAME, PKG_VERSION do |p|
104
73
  p.need_tar = true
105
74
  p.package_files = PKG_FILES
106
75
  end
107
76
 
108
- begin
109
- require 'rubygems'
110
- require 'rubygems/builder'
111
- $SPEC = Gem::Specification.new do |s|
112
- s.name = PKG_NAME
113
- s.version = PKG_VERSION
114
- s.platform = Gem::Platform::RUBY
115
- s.date = Date.today.to_s
116
- s.summary = SUMMARY
117
- s.description = DESCRIPTION
118
- s.license = LICENSE
119
- s.author = AUTHOR
120
- s.email = EMAIL
121
- s.homepage = HOMEPAGE
122
- s.files = PKG_FILES
123
- s.test_files = TC_FILES
124
- s.require_paths = [ 'lib', 'ext' ]
125
- s.rubyforge_project = %q{hornetseye}
126
- s.extensions = %w{Rakefile}
127
- s.has_rdoc = 'yard'
128
- s.extra_rdoc_files = []
129
- s.add_development_dependency %q{rake}
130
- end
131
- GEM_SOURCE = "#{PKG_NAME}-#{PKG_VERSION}.gem"
132
- $BINSPEC = Gem::Specification.new do |s|
133
- s.name = PKG_NAME
134
- s.version = PKG_VERSION
135
- s.platform = Gem::Platform::CURRENT
136
- s.date = Date.today.to_s
137
- s.summary = SUMMARY
138
- s.description = DESCRIPTION
139
- s.license = LICENSE
140
- s.author = AUTHOR
141
- s.email = EMAIL
142
- s.homepage = HOMEPAGE
143
- s.files = BIN_FILES
144
- s.test_files = TC_FILES
145
- s.require_paths = [ 'lib', 'ext' ]
146
- s.rubyforge_project = %q{hornetseye}
147
- s.has_rdoc = 'yard'
148
- s.extra_rdoc_files = []
149
- end
150
- GEM_BINARY = "#{PKG_NAME}-#{PKG_VERSION}-#{$BINSPEC.platform}.gem"
151
- desc "Build the gem file #{GEM_SOURCE}"
152
- task :gem => [ "pkg/#{GEM_SOURCE}" ]
153
- file "pkg/#{GEM_SOURCE}" => [ 'pkg' ] + $SPEC.files do
154
- when_writing 'Creating GEM' do
155
- Gem::Builder.new( $SPEC ).build
156
- verbose true do
157
- FileUtils.mv GEM_SOURCE, "pkg/#{GEM_SOURCE}"
158
- end
159
- end
160
- end
161
- desc "Build the gem file #{GEM_BINARY}"
162
- task :gem_binary => [ "pkg/#{GEM_BINARY}" ]
163
- file "pkg/#{GEM_BINARY}" => [ 'pkg' ] + $BINSPEC.files do
164
- when_writing 'Creating binary GEM' do
165
- Gem::Builder.new( $BINSPEC ).build
166
- verbose true do
167
- FileUtils.mv GEM_BINARY, "pkg/#{GEM_BINARY}"
168
- end
169
- end
170
- end
171
- rescue LoadError
172
- STDERR.puts 'Please install \'rubygems\' if you want to create Gem packages'
173
- end
174
-
175
77
  rule '.o' => '.cc' do |t|
176
78
  sh "#{CXX} #{$CXXFLAGS} -c -o #{t.name} #{t.source}"
177
79
  end
data/config.rb ADDED
@@ -0,0 +1,20 @@
1
+ require 'rake'
2
+
3
+ PKG_NAME = 'malloc'
4
+ PKG_VERSION = '1.5.2'
5
+ SUMMARY = %q{Object for raw memory allocation and pointer operations}
6
+ DESCRIPTION = %q{This Ruby extension defines the class Hornetseye::Malloc. Hornetseye::Malloc#new allows you to allocate memory, using Hornetseye::Malloc#+ one can do pointer manipulation, and Hornetseye::Malloc#read and Hornetseye::Malloc#write provide reading Ruby strings from memory and writing Ruby strings to memory.}
7
+ LICENSE = 'GPL-3+'
8
+ AUTHOR = %q{Jan Wedekind}
9
+ EMAIL = %q{jan@wedesoft.de}
10
+ HOMEPAGE = %q{http://wedesoft.github.io/malloc/}
11
+ CFG = RbConfig::CONFIG
12
+ CXX = ENV[ 'CXX' ] || 'g++'
13
+ RB_FILES = FileList[ 'config.rb', 'lib/**/*.rb' ]
14
+ CC_FILES = FileList[ 'ext/*.cc' ]
15
+ HH_FILES = FileList[ 'ext/*.hh' ] + FileList[ 'ext/*.tcc' ]
16
+ TC_FILES = FileList[ 'test/tc_*.rb' ]
17
+ TS_FILES = FileList[ 'test/ts_*.rb' ]
18
+ SO_FILE = "ext/#{PKG_NAME.tr '\-', '_'}.#{CFG[ 'DLEXT' ]}"
19
+ PKG_FILES = [ 'Rakefile', 'README.md', 'COPYING', '.document' ] +
20
+ RB_FILES + CC_FILES + HH_FILES + TS_FILES + TC_FILES
metadata CHANGED
@@ -1,32 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: malloc
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.0
5
- prerelease:
4
+ version: 1.5.2
6
5
  platform: ruby
7
6
  authors:
8
7
  - Jan Wedekind
9
- autorequire:
10
8
  bindir: bin
11
9
  cert_chain: []
12
- date: 2015-05-04 00:00:00.000000000 Z
13
- dependencies:
14
- - !ruby/object:Gem::Dependency
15
- name: rake
16
- requirement: !ruby/object:Gem::Requirement
17
- none: false
18
- requirements:
19
- - - ! '>='
20
- - !ruby/object:Gem::Version
21
- version: '0'
22
- type: :development
23
- prerelease: false
24
- version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
- requirements:
27
- - - ! '>='
28
- - !ruby/object:Gem::Version
29
- version: '0'
10
+ date: 2025-06-30 00:00:00.000000000 Z
11
+ dependencies: []
30
12
  description: This Ruby extension defines the class Hornetseye::Malloc. Hornetseye::Malloc#new
31
13
  allows you to allocate memory, using Hornetseye::Malloc#+ one can do pointer manipulation,
32
14
  and Hornetseye::Malloc#read and Hornetseye::Malloc#write provide reading Ruby strings
@@ -37,43 +19,40 @@ extensions:
37
19
  - Rakefile
38
20
  extra_rdoc_files: []
39
21
  files:
40
- - Rakefile
41
- - README.md
22
+ - ".document"
42
23
  - COPYING
43
- - .document
44
- - lib/malloc_ext.rb
24
+ - README.md
25
+ - Rakefile
26
+ - config.rb
27
+ - ext/error.hh
45
28
  - ext/init.cc
46
29
  - ext/malloc.cc
47
- - ext/error.hh
48
30
  - ext/malloc.hh
49
31
  - ext/rubyinc.hh
50
- - test/ts_malloc.rb
32
+ - lib/malloc_ext.rb
51
33
  - test/tc_malloc.rb
52
- homepage: http://wedesoft.github.com/malloc/
34
+ - test/ts_malloc.rb
35
+ homepage: http://wedesoft.github.io/malloc/
53
36
  licenses:
54
37
  - GPL-3+
55
- post_install_message:
38
+ metadata: {}
56
39
  rdoc_options: []
57
40
  require_paths:
58
41
  - lib
59
42
  - ext
60
43
  required_ruby_version: !ruby/object:Gem::Requirement
61
- none: false
62
44
  requirements:
63
- - - ! '>='
45
+ - - ">="
64
46
  - !ruby/object:Gem::Version
65
47
  version: '0'
66
48
  required_rubygems_version: !ruby/object:Gem::Requirement
67
- none: false
68
49
  requirements:
69
- - - ! '>='
50
+ - - ">="
70
51
  - !ruby/object:Gem::Version
71
52
  version: '0'
72
53
  requirements: []
73
- rubyforge_project: hornetseye
74
- rubygems_version: 1.8.23
75
- signing_key:
76
- specification_version: 3
54
+ rubygems_version: 3.6.3
55
+ specification_version: 4
77
56
  summary: Object for raw memory allocation and pointer operations
78
57
  test_files:
79
58
  - test/tc_malloc.rb