robobuilder 0.3.0 → 0.3.1
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.
- checksums.yaml +7 -0
- data/Rakefile +5 -88
- data/config.rb +22 -0
- data/lib/robobuilder_ext.rb +1 -1
- metadata +28 -45
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: a8a537c4a59634f7f674694e1d933cd35ab37b5f
|
4
|
+
data.tar.gz: d7cf5ee8239311dbde55c945c0a147f72ee33dc1
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: ccc78bd0a974880254d444bc559631e39a8d1304e4116223f08fda710aa4769b26c35e88aef762e8496d5a76d44c7a2499baf9ecaa5b84c123e1d347e1f8c4a8
|
7
|
+
data.tar.gz: 296225bcf0135486878205e10ec202a3567b5f01acf0daf2af339a66f558b15cedcf44ff8ad20717d5e382d41f4ac33a6946d71cdbc537ba2cb2d12fa69f03f3
|
data/Rakefile
CHANGED
@@ -5,32 +5,14 @@ require 'rake/testtask'
|
|
5
5
|
require 'rake/packagetask'
|
6
6
|
require 'rake/loaders/makefile'
|
7
7
|
require 'rbconfig'
|
8
|
-
|
9
|
-
PKG_NAME = 'robobuilder'
|
10
|
-
PKG_VERSION = '0.3.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{Ruby extension for controlling a Robobuilder}
|
24
|
-
DESCRIPTION = %q{This Ruby extension defines the Robobuilder class for communicating a Robobuilder via the serial port or a Bluetooth serial connection.}
|
25
|
-
AUTHOR = %q{Jan Wedekind}
|
26
|
-
EMAIL = %q{jan@wedesoft.de}
|
27
|
-
HOMEPAGE = %q{http://wedesoft.github.com/robobuilder/}
|
8
|
+
require_relative 'config'
|
28
9
|
|
29
10
|
OBJ = CC_FILES.ext 'o'
|
30
11
|
$CXXFLAGS = "-DNDEBUG #{CFG[ 'CPPFLAGS' ]} #{CFG[ 'CFLAGS' ]}"
|
31
|
-
if CFG[
|
32
|
-
$CXXFLAGS = "#{$CXXFLAGS} -I#{CFG[
|
33
|
-
|
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']}"
|
34
16
|
else
|
35
17
|
$CXXFLAGS = "#{$CXXFLAGS} -I#{CFG[ 'archdir' ]}"
|
36
18
|
end
|
@@ -92,71 +74,6 @@ Rake::PackageTask.new PKG_NAME, PKG_VERSION do |p|
|
|
92
74
|
p.package_files = PKG_FILES
|
93
75
|
end
|
94
76
|
|
95
|
-
begin
|
96
|
-
require 'rubygems'
|
97
|
-
require 'rubygems/builder'
|
98
|
-
$SPEC = Gem::Specification.new do |s|
|
99
|
-
s.name = PKG_NAME
|
100
|
-
s.version = PKG_VERSION
|
101
|
-
s.platform = Gem::Platform::RUBY
|
102
|
-
s.date = Date.today.to_s
|
103
|
-
s.summary = SUMMARY
|
104
|
-
s.description = DESCRIPTION
|
105
|
-
s.author = AUTHOR
|
106
|
-
s.email = EMAIL
|
107
|
-
s.homepage = HOMEPAGE
|
108
|
-
s.files = PKG_FILES
|
109
|
-
s.test_files = TC_FILES
|
110
|
-
s.require_paths = [ 'lib', 'ext' ]
|
111
|
-
# s.rubyforge_project = %q{}
|
112
|
-
s.extensions = %w{Rakefile}
|
113
|
-
s.has_rdoc = 'yard'
|
114
|
-
s.extra_rdoc_files = []
|
115
|
-
s.add_development_dependency %q{rake}
|
116
|
-
end
|
117
|
-
GEM_SOURCE = "#{PKG_NAME}-#{PKG_VERSION}.gem"
|
118
|
-
$BINSPEC = Gem::Specification.new do |s|
|
119
|
-
s.name = PKG_NAME
|
120
|
-
s.version = PKG_VERSION
|
121
|
-
s.platform = Gem::Platform::CURRENT
|
122
|
-
s.date = Date.today.to_s
|
123
|
-
s.summary = SUMMARY
|
124
|
-
s.description = DESCRIPTION
|
125
|
-
s.author = AUTHOR
|
126
|
-
s.email = EMAIL
|
127
|
-
s.homepage = HOMEPAGE
|
128
|
-
s.files = BIN_FILES
|
129
|
-
s.test_files = TC_FILES
|
130
|
-
s.require_paths = [ 'lib', 'ext' ]
|
131
|
-
# s.rubyforge_project = %q{}
|
132
|
-
s.has_rdoc = 'yard'
|
133
|
-
s.extra_rdoc_files = []
|
134
|
-
end
|
135
|
-
GEM_BINARY = "#{PKG_NAME}-#{PKG_VERSION}-#{$BINSPEC.platform}.gem"
|
136
|
-
desc "Build the gem file #{GEM_SOURCE}"
|
137
|
-
task :gem => [ "pkg/#{GEM_SOURCE}" ]
|
138
|
-
file "pkg/#{GEM_SOURCE}" => [ 'pkg' ] + $SPEC.files do
|
139
|
-
when_writing 'Creating GEM' do
|
140
|
-
Gem::Builder.new( $SPEC ).build
|
141
|
-
verbose true do
|
142
|
-
FileUtils.mv GEM_SOURCE, "pkg/#{GEM_SOURCE}"
|
143
|
-
end
|
144
|
-
end
|
145
|
-
end
|
146
|
-
desc "Build the gem file #{GEM_BINARY}"
|
147
|
-
task :gem_binary => [ "pkg/#{GEM_BINARY}" ]
|
148
|
-
file "pkg/#{GEM_BINARY}" => [ 'pkg' ] + $BINSPEC.files do
|
149
|
-
when_writing 'Creating binary GEM' do
|
150
|
-
Gem::Builder.new( $BINSPEC ).build
|
151
|
-
verbose true do
|
152
|
-
FileUtils.mv GEM_BINARY, "pkg/#{GEM_BINARY}"
|
153
|
-
end
|
154
|
-
end
|
155
|
-
end
|
156
|
-
rescue LoadError
|
157
|
-
STDERR.puts 'Please install \'rubygems\' if you want to create Gem packages'
|
158
|
-
end
|
159
|
-
|
160
77
|
rule '.o' => '.cc' do |t|
|
161
78
|
sh "#{CXX} #{$CXXFLAGS} -c -o #{t.name} #{t.source}"
|
162
79
|
end
|
data/config.rb
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
require 'rake'
|
2
|
+
|
3
|
+
PKG_NAME = 'robobuilder'
|
4
|
+
PKG_VERSION = '0.3.1'
|
5
|
+
CFG = RbConfig::CONFIG
|
6
|
+
CXX = ENV[ 'CXX' ] || 'g++'
|
7
|
+
RB_FILES =['config.rb'] + FileList[ 'lib/**/*.rb' ]
|
8
|
+
CC_FILES = FileList[ 'ext/*.cc' ]
|
9
|
+
HH_FILES = FileList[ 'ext/*.hh' ] + FileList[ 'ext/*.tcc' ]
|
10
|
+
TC_FILES = FileList[ 'test/tc_*.rb' ]
|
11
|
+
TS_FILES = FileList[ 'test/ts_*.rb' ]
|
12
|
+
SO_FILE = "ext/#{PKG_NAME.tr '\-', '_'}.#{CFG[ 'DLEXT' ]}"
|
13
|
+
PKG_FILES = [ 'Rakefile', 'README.md', 'COPYING', '.document' ] +
|
14
|
+
RB_FILES + CC_FILES + HH_FILES + TS_FILES + TC_FILES
|
15
|
+
BIN_FILES = [ 'README.md', 'COPYING', '.document', SO_FILE ] +
|
16
|
+
RB_FILES + TS_FILES + TC_FILES
|
17
|
+
SUMMARY = %q{Ruby extension for controlling a Robobuilder}
|
18
|
+
DESCRIPTION = %q{This Ruby extension defines the Robobuilder class for communicating a Robobuilder via the serial port or a Bluetooth serial connection.}
|
19
|
+
AUTHOR = %q{Jan Wedekind}
|
20
|
+
EMAIL = %q{jan@wedesoft.de}
|
21
|
+
HOMEPAGE = %q{http://wedesoft.github.com/robobuilder/}
|
22
|
+
|
data/lib/robobuilder_ext.rb
CHANGED
metadata
CHANGED
@@ -1,70 +1,53 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: robobuilder
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
version: 0.3.0
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.3.1
|
6
5
|
platform: ruby
|
7
|
-
authors:
|
6
|
+
authors:
|
8
7
|
- Jan Wedekind
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
name: rake
|
17
|
-
prerelease: false
|
18
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
19
|
-
none: false
|
20
|
-
requirements:
|
21
|
-
- - ">="
|
22
|
-
- !ruby/object:Gem::Version
|
23
|
-
version: "0"
|
24
|
-
type: :development
|
25
|
-
version_requirements: *id001
|
26
|
-
description: This Ruby extension defines the Robobuilder class for communicating a Robobuilder via the serial port or a Bluetooth serial connection.
|
11
|
+
date: 2015-05-15 00:00:00.000000000 Z
|
12
|
+
dependencies: []
|
13
|
+
description: This Ruby extension defines the Robobuilder class for communicating a
|
14
|
+
Robobuilder via the serial port or a Bluetooth serial connection.
|
27
15
|
email: jan@wedesoft.de
|
28
16
|
executables: []
|
29
|
-
|
30
|
-
extensions:
|
17
|
+
extensions:
|
31
18
|
- Rakefile
|
32
19
|
extra_rdoc_files: []
|
33
|
-
|
34
|
-
|
35
|
-
- Rakefile
|
36
|
-
- README.md
|
20
|
+
files:
|
21
|
+
- ".document"
|
37
22
|
- COPYING
|
38
|
-
- .
|
39
|
-
-
|
23
|
+
- README.md
|
24
|
+
- Rakefile
|
25
|
+
- config.rb
|
40
26
|
- ext/robobuilder.cc
|
27
|
+
- lib/robobuilder_ext.rb
|
41
28
|
homepage: http://wedesoft.github.com/robobuilder/
|
42
29
|
licenses: []
|
43
|
-
|
30
|
+
metadata: {}
|
44
31
|
post_install_message:
|
45
32
|
rdoc_options: []
|
46
|
-
|
47
|
-
require_paths:
|
33
|
+
require_paths:
|
48
34
|
- lib
|
49
35
|
- ext
|
50
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
51
|
-
|
52
|
-
requirements:
|
36
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
53
38
|
- - ">="
|
54
|
-
- !ruby/object:Gem::Version
|
55
|
-
version:
|
56
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
57
|
-
|
58
|
-
requirements:
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
42
|
+
requirements:
|
59
43
|
- - ">="
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version:
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: '0'
|
62
46
|
requirements: []
|
63
|
-
|
64
47
|
rubyforge_project:
|
65
|
-
rubygems_version:
|
48
|
+
rubygems_version: 2.4.6
|
66
49
|
signing_key:
|
67
|
-
specification_version:
|
50
|
+
specification_version: 4
|
68
51
|
summary: Ruby extension for controlling a Robobuilder
|
69
52
|
test_files: []
|
70
|
-
|
53
|
+
has_rdoc: yard
|