malloc 1.5.0 → 1.5.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +7 -0
  2. data/Rakefile +5 -103
  3. data/config.rb +20 -0
  4. metadata +16 -32
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 744b1efa3fefda1dc22c7dde2fe028bc0b1d5bbc
4
+ data.tar.gz: 1e54d024c3f1cc6d4a8ab169aa6c5057cc549cb2
5
+ SHA512:
6
+ metadata.gz: 403b45df414258edf9db593fc42e4dfe289412d15b325ce3ec2a7167d08b05eb1783be506b5b0365e02259cefd620158bc27bd5cc0b6e647d578efb357537e7d
7
+ data.tar.gz: b5af283f2dcd991216868342b2c65d6ac12522230ec3c55ca49644bca1c9f9d1b39efb87ba6d4b74e68bca8fb8f618d7810e8eadfed2294fa5f07c27b8248f9d
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
@@ -0,0 +1,20 @@
1
+ require 'rake'
2
+
3
+ PKG_NAME = 'malloc'
4
+ PKG_VERSION = '1.5.1'
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.com/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,15 @@
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.1
6
5
  platform: ruby
7
6
  authors:
8
7
  - Jan Wedekind
9
8
  autorequire:
10
9
  bindir: bin
11
10
  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'
11
+ date: 2015-05-15 00:00:00.000000000 Z
12
+ dependencies: []
30
13
  description: This Ruby extension defines the class Hornetseye::Malloc. Hornetseye::Malloc#new
31
14
  allows you to allocate memory, using Hornetseye::Malloc#+ one can do pointer manipulation,
32
15
  and Hornetseye::Malloc#read and Hornetseye::Malloc#write provide reading Ruby strings
@@ -37,43 +20,44 @@ extensions:
37
20
  - Rakefile
38
21
  extra_rdoc_files: []
39
22
  files:
40
- - Rakefile
41
- - README.md
23
+ - ".document"
42
24
  - COPYING
43
- - .document
44
- - lib/malloc_ext.rb
25
+ - README.md
26
+ - Rakefile
27
+ - config.rb
28
+ - ext/error.hh
45
29
  - ext/init.cc
46
30
  - ext/malloc.cc
47
- - ext/error.hh
48
31
  - ext/malloc.hh
49
32
  - ext/rubyinc.hh
50
- - test/ts_malloc.rb
33
+ - lib/malloc_ext.rb
51
34
  - test/tc_malloc.rb
35
+ - test/ts_malloc.rb
52
36
  homepage: http://wedesoft.github.com/malloc/
53
37
  licenses:
54
38
  - GPL-3+
39
+ metadata: {}
55
40
  post_install_message:
56
41
  rdoc_options: []
57
42
  require_paths:
58
43
  - lib
59
44
  - ext
60
45
  required_ruby_version: !ruby/object:Gem::Requirement
61
- none: false
62
46
  requirements:
63
- - - ! '>='
47
+ - - ">="
64
48
  - !ruby/object:Gem::Version
65
49
  version: '0'
66
50
  required_rubygems_version: !ruby/object:Gem::Requirement
67
- none: false
68
51
  requirements:
69
- - - ! '>='
52
+ - - ">="
70
53
  - !ruby/object:Gem::Version
71
54
  version: '0'
72
55
  requirements: []
73
56
  rubyforge_project: hornetseye
74
- rubygems_version: 1.8.23
57
+ rubygems_version: 2.4.6
75
58
  signing_key:
76
- specification_version: 3
59
+ specification_version: 4
77
60
  summary: Object for raw memory allocation and pointer operations
78
61
  test_files:
79
62
  - test/tc_malloc.rb
63
+ has_rdoc: yard