rsdl 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +9 -3
- data/Gemfile +4 -0
- data/README.md +35 -0
- data/Rakefile +1 -59
- data/bin/console +14 -0
- data/bin/setup +7 -0
- data/{bin → exe}/rsdl +0 -0
- data/extconf.rb +11 -11
- data/rsdl.gemspec +20 -53
- metadata +62 -52
- data/README.rdoc +0 -37
- data/test/helper.rb +0 -10
- data/test/test_rsdl.rb +0 -7
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 8e33ec2ea843ae67893f6bf9c8baad7bc991f456
|
4
|
+
data.tar.gz: d5fa08d733171fde0f3f5bd8f94bfc522a883a17
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 81c6fe216d71e4d5c9b2b291104bd640d1884fe02a82767ee99ac87e54fafddfde2602ec7d009ab24e6bc348b6594121bf44c4a0063cd4676614a40c2cd611c6
|
7
|
+
data.tar.gz: 683f5efeef9619adecb93e589d6a9cec59c104f84dd6754b8cb79ce807072a2ada6d5c656291d4fa4d0b0b57a6f4664318d2c363b47039d50859c820258f9bd2
|
data/.gitignore
CHANGED
data/Gemfile
ADDED
data/README.md
ADDED
@@ -0,0 +1,35 @@
|
|
1
|
+
# rsdl
|
2
|
+
|
3
|
+
rsdl - SDL initialized ruby interpreter
|
4
|
+
|
5
|
+
## Requirements
|
6
|
+
- ruby 1.8 or later
|
7
|
+
- libsdl
|
8
|
+
|
9
|
+
## Installation
|
10
|
+
|
11
|
+
gem install rsdl
|
12
|
+
|
13
|
+
Or
|
14
|
+
|
15
|
+
ruby extconf.rb
|
16
|
+
make
|
17
|
+
sudo make install
|
18
|
+
|
19
|
+
## Usage
|
20
|
+
|
21
|
+
Run your script with rsdl instead of ruby.
|
22
|
+
|
23
|
+
rsdl myscript.rb
|
24
|
+
|
25
|
+
## License
|
26
|
+
|
27
|
+
Ruby's License
|
28
|
+
|
29
|
+
## Copyright Information
|
30
|
+
|
31
|
+
Originally written by:
|
32
|
+
Copyright (C) 2009 Ryuichi Sakamoto
|
33
|
+
|
34
|
+
Modified and packaged by:
|
35
|
+
Copyright (C) 2009 Akinori MUSHA
|
data/Rakefile
CHANGED
@@ -1,59 +1 @@
|
|
1
|
-
require
|
2
|
-
|
3
|
-
require 'rake'
|
4
|
-
|
5
|
-
begin
|
6
|
-
require 'jeweler'
|
7
|
-
Jeweler::Tasks.new do |gem|
|
8
|
-
gem.name = "rsdl"
|
9
|
-
gem.summary = %Q{SDL initialized ruby interpreter}
|
10
|
-
gem.description = <<-EOD
|
11
|
-
RSDL is an SDL initialized ruby interpreter which makes SDL
|
12
|
-
applications possible to run on such platforms as Mac OS X where SDL
|
13
|
-
needs to be initialized before a ruby interpreter is invoked.
|
14
|
-
EOD
|
15
|
-
gem.email = "knu@idaemons.org"
|
16
|
-
gem.homepage = "http://github.com/knu/rsdl"
|
17
|
-
gem.authors = ["Ryuichi Sakamoto", "Akinori MUSHA"]
|
18
|
-
gem.add_development_dependency "thoughtbot-shoulda", ">= 0"
|
19
|
-
# gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
|
20
|
-
gem.extensions << "extconf.rb"
|
21
|
-
end
|
22
|
-
Jeweler::GemcutterTasks.new
|
23
|
-
rescue LoadError
|
24
|
-
puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
|
25
|
-
end
|
26
|
-
|
27
|
-
require 'rake/testtask'
|
28
|
-
Rake::TestTask.new(:test) do |test|
|
29
|
-
test.libs << 'lib' << 'test'
|
30
|
-
test.pattern = 'test/**/test_*.rb'
|
31
|
-
test.verbose = true
|
32
|
-
end
|
33
|
-
|
34
|
-
begin
|
35
|
-
require 'rcov/rcovtask'
|
36
|
-
Rcov::RcovTask.new do |test|
|
37
|
-
test.libs << 'test'
|
38
|
-
test.pattern = 'test/**/test_*.rb'
|
39
|
-
test.verbose = true
|
40
|
-
end
|
41
|
-
rescue LoadError
|
42
|
-
task :rcov do
|
43
|
-
abort "RCov is not available. In order to run rcov, you must: sudo gem install spicycode-rcov"
|
44
|
-
end
|
45
|
-
end
|
46
|
-
|
47
|
-
task :test => :check_dependencies
|
48
|
-
|
49
|
-
task :default => :test
|
50
|
-
|
51
|
-
require 'rake/rdoctask'
|
52
|
-
Rake::RDocTask.new do |rdoc|
|
53
|
-
version = File.exist?('VERSION') ? File.read('VERSION') : ""
|
54
|
-
|
55
|
-
rdoc.rdoc_dir = 'rdoc'
|
56
|
-
rdoc.title = "rsdl #{version}"
|
57
|
-
rdoc.rdoc_files.include('README*')
|
58
|
-
rdoc.rdoc_files.include('lib/**/*.rb')
|
59
|
-
end
|
1
|
+
require "bundler/gem_tasks"
|
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "rsdl"
|
5
|
+
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
8
|
+
|
9
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
+
# require "pry"
|
11
|
+
# Pry.start
|
12
|
+
|
13
|
+
require "irb"
|
14
|
+
IRB.start
|
data/bin/setup
ADDED
data/{bin → exe}/rsdl
RENAMED
File without changes
|
data/extconf.rb
CHANGED
@@ -8,22 +8,22 @@ dir_config('sdl') #--with-sdl-dir, --with-sdl-include, or --with-sdl-lib
|
|
8
8
|
sdlconfig = with_config('sdl-config', 'sdl-config')
|
9
9
|
|
10
10
|
config = {}
|
11
|
-
config['arch'] =
|
12
|
-
config['INSTALL'] =
|
13
|
-
config['RMALL'] =
|
14
|
-
config['CC'] =
|
15
|
-
config['CFLAGS'] =
|
11
|
+
config['arch'] = RbConfig::CONFIG['arch']
|
12
|
+
config['INSTALL'] = RbConfig::CONFIG['INSTALL']
|
13
|
+
config['RMALL'] = RbConfig::CONFIG['RMALL'] || 'rm -fr'
|
14
|
+
config['CC'] = RbConfig::CONFIG['CC']
|
15
|
+
config['CFLAGS'] = RbConfig::CONFIG['CFLAGS']
|
16
16
|
config['CFLAGS'] += " -I\"#{$hdrdir}\"" if $hdrdir
|
17
17
|
config['CFLAGS'] += " -I\"#{$arch_hdrdir}\"" if $arch_hdrdir
|
18
18
|
config['CFLAGS'] += ' ' + `"#{sdlconfig}" --cflags` if sdlconfig and not sdlconfig.empty?
|
19
|
-
config['LDFLAGS'] =
|
20
|
-
config['LIBS'] =
|
19
|
+
config['LDFLAGS'] = RbConfig::CONFIG['LDFLAGS']
|
20
|
+
config['LIBS'] = RbConfig::CONFIG['LIBS']
|
21
21
|
config['LIBS'] += ' ' + `"#{sdlconfig}" --libs` if sdlconfig and not sdlconfig.empty?
|
22
22
|
config['LIBPATH'] = RbConfig::expand(libpathflag)
|
23
|
-
config['LIBRUBYARG'] =
|
24
|
-
config['EXEEXT'] =
|
25
|
-
config['bindir'] =
|
26
|
-
config['RSDL'] =
|
23
|
+
config['LIBRUBYARG'] = RbConfig::CONFIG['LIBRUBYARG']
|
24
|
+
config['EXEEXT'] = RbConfig::CONFIG['EXEEXT']
|
25
|
+
config['bindir'] = RbConfig::CONFIG['bindir']
|
26
|
+
config['RSDL'] = RbConfig::CONFIG['RUBY_INSTALL_NAME'].sub(/ruby/, 'rsdl')
|
27
27
|
|
28
28
|
headers = []
|
29
29
|
headers << '#define HAVE_RUBY_SYSINIT 1' if have_func('ruby_sysinit')
|
data/rsdl.gemspec
CHANGED
@@ -1,60 +1,27 @@
|
|
1
|
-
#
|
2
|
-
|
3
|
-
|
4
|
-
# -*- encoding: utf-8 -*-
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
5
4
|
|
6
|
-
Gem::Specification.new do |
|
7
|
-
|
8
|
-
|
5
|
+
Gem::Specification.new do |spec|
|
6
|
+
spec.name = "rsdl"
|
7
|
+
spec.version = "0.1.5"
|
8
|
+
spec.authors = ["Ryuichi Sakamoto", "Akinori MUSHA"]
|
9
|
+
spec.email = ["knu@idaemons.org"]
|
9
10
|
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
s.default_executable = %q{rsdl}
|
14
|
-
s.description = %q{RSDL is an SDL initialized ruby interpreter which makes SDL
|
11
|
+
spec.summary = %q{SDL initialized ruby interpreter}
|
12
|
+
spec.description = <<EOS
|
13
|
+
RSDL is an SDL initialized ruby interpreter which makes SDL
|
15
14
|
applications possible to run on such platforms as Mac OS X where SDL
|
16
15
|
needs to be initialized before a ruby interpreter is invoked.
|
17
|
-
|
18
|
-
|
19
|
-
s.executables = ["rsdl"]
|
20
|
-
s.extensions = ["extconf.rb"]
|
21
|
-
s.extra_rdoc_files = [
|
22
|
-
"README.rdoc"
|
23
|
-
]
|
24
|
-
s.files = [
|
25
|
-
".gitignore",
|
26
|
-
"Makefile.in",
|
27
|
-
"README.rdoc",
|
28
|
-
"Rakefile",
|
29
|
-
"VERSION",
|
30
|
-
"bin/rsdl",
|
31
|
-
"extconf.rb",
|
32
|
-
"rsdl.c.in",
|
33
|
-
"rsdl.gemspec",
|
34
|
-
"test/helper.rb",
|
35
|
-
"test/test_rsdl.rb"
|
36
|
-
]
|
37
|
-
s.homepage = %q{http://github.com/knu/rsdl}
|
38
|
-
s.rdoc_options = ["--charset=UTF-8"]
|
39
|
-
s.require_paths = ["lib"]
|
40
|
-
s.rubygems_version = %q{1.3.5}
|
41
|
-
s.summary = %q{SDL initialized ruby interpreter}
|
42
|
-
s.test_files = [
|
43
|
-
"test/helper.rb",
|
44
|
-
"test/test_rsdl.rb"
|
45
|
-
]
|
16
|
+
EOS
|
17
|
+
spec.homepage = "https://github.com/knu/rsdl"
|
46
18
|
|
47
|
-
|
48
|
-
|
49
|
-
|
19
|
+
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
20
|
+
spec.bindir = "exe"
|
21
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
22
|
+
spec.require_paths = ["lib"]
|
23
|
+
spec.extensions = ["extconf.rb"]
|
50
24
|
|
51
|
-
|
52
|
-
|
53
|
-
else
|
54
|
-
s.add_dependency(%q<thoughtbot-shoulda>, [">= 0"])
|
55
|
-
end
|
56
|
-
else
|
57
|
-
s.add_dependency(%q<thoughtbot-shoulda>, [">= 0"])
|
58
|
-
end
|
25
|
+
spec.add_development_dependency "bundler", "~> 1.9"
|
26
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
59
27
|
end
|
60
|
-
|
metadata
CHANGED
@@ -1,80 +1,90 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: rsdl
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.5
|
5
5
|
platform: ruby
|
6
|
-
authors:
|
6
|
+
authors:
|
7
7
|
- Ryuichi Sakamoto
|
8
8
|
- Akinori MUSHA
|
9
9
|
autorequire:
|
10
|
-
bindir:
|
10
|
+
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
12
|
+
date: 2015-04-04 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: bundler
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
requirements:
|
18
|
+
- - "~>"
|
19
|
+
- !ruby/object:Gem::Version
|
20
|
+
version: '1.9'
|
18
21
|
type: :development
|
19
|
-
|
20
|
-
version_requirements: !ruby/object:Gem::Requirement
|
21
|
-
requirements:
|
22
|
-
- - "
|
23
|
-
- !ruby/object:Gem::Version
|
24
|
-
version:
|
25
|
-
|
22
|
+
prerelease: false
|
23
|
+
version_requirements: !ruby/object:Gem::Requirement
|
24
|
+
requirements:
|
25
|
+
- - "~>"
|
26
|
+
- !ruby/object:Gem::Version
|
27
|
+
version: '1.9'
|
28
|
+
- !ruby/object:Gem::Dependency
|
29
|
+
name: rake
|
30
|
+
requirement: !ruby/object:Gem::Requirement
|
31
|
+
requirements:
|
32
|
+
- - "~>"
|
33
|
+
- !ruby/object:Gem::Version
|
34
|
+
version: '10.0'
|
35
|
+
type: :development
|
36
|
+
prerelease: false
|
37
|
+
version_requirements: !ruby/object:Gem::Requirement
|
38
|
+
requirements:
|
39
|
+
- - "~>"
|
40
|
+
- !ruby/object:Gem::Version
|
41
|
+
version: '10.0'
|
26
42
|
description: |
|
27
43
|
RSDL is an SDL initialized ruby interpreter which makes SDL
|
28
44
|
applications possible to run on such platforms as Mac OS X where SDL
|
29
45
|
needs to be initialized before a ruby interpreter is invoked.
|
30
|
-
|
31
|
-
|
32
|
-
executables:
|
46
|
+
email:
|
47
|
+
- knu@idaemons.org
|
48
|
+
executables:
|
33
49
|
- rsdl
|
34
|
-
extensions:
|
50
|
+
extensions:
|
35
51
|
- extconf.rb
|
36
|
-
extra_rdoc_files:
|
37
|
-
|
38
|
-
|
39
|
-
-
|
52
|
+
extra_rdoc_files: []
|
53
|
+
files:
|
54
|
+
- ".gitignore"
|
55
|
+
- Gemfile
|
40
56
|
- Makefile.in
|
41
|
-
- README.
|
57
|
+
- README.md
|
42
58
|
- Rakefile
|
43
59
|
- VERSION
|
44
|
-
- bin/
|
60
|
+
- bin/console
|
61
|
+
- bin/setup
|
62
|
+
- exe/rsdl
|
45
63
|
- extconf.rb
|
46
64
|
- rsdl.c.in
|
47
65
|
- rsdl.gemspec
|
48
|
-
|
49
|
-
- test/test_rsdl.rb
|
50
|
-
has_rdoc: true
|
51
|
-
homepage: http://github.com/knu/rsdl
|
66
|
+
homepage: https://github.com/knu/rsdl
|
52
67
|
licenses: []
|
53
|
-
|
68
|
+
metadata: {}
|
54
69
|
post_install_message:
|
55
|
-
rdoc_options:
|
56
|
-
|
57
|
-
require_paths:
|
70
|
+
rdoc_options: []
|
71
|
+
require_paths:
|
58
72
|
- lib
|
59
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
60
|
-
requirements:
|
73
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
74
|
+
requirements:
|
61
75
|
- - ">="
|
62
|
-
- !ruby/object:Gem::Version
|
63
|
-
version:
|
64
|
-
|
65
|
-
|
66
|
-
requirements:
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: '0'
|
78
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
67
80
|
- - ">="
|
68
|
-
- !ruby/object:Gem::Version
|
69
|
-
version:
|
70
|
-
version:
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
71
83
|
requirements: []
|
72
|
-
|
73
84
|
rubyforge_project:
|
74
|
-
rubygems_version:
|
85
|
+
rubygems_version: 2.4.5
|
75
86
|
signing_key:
|
76
|
-
specification_version:
|
87
|
+
specification_version: 4
|
77
88
|
summary: SDL initialized ruby interpreter
|
78
|
-
test_files:
|
79
|
-
|
80
|
-
- test/test_rsdl.rb
|
89
|
+
test_files: []
|
90
|
+
has_rdoc:
|
data/README.rdoc
DELETED
@@ -1,37 +0,0 @@
|
|
1
|
-
= rsdl
|
2
|
-
|
3
|
-
rsdl - SDL initialized ruby interpreter
|
4
|
-
|
5
|
-
== Requirements
|
6
|
-
- ruby 1.8 or later
|
7
|
-
- libsdl
|
8
|
-
|
9
|
-
== Installation
|
10
|
-
|
11
|
-
gem install rsdl
|
12
|
-
|
13
|
-
or
|
14
|
-
|
15
|
-
ruby extconf.rb
|
16
|
-
make
|
17
|
-
sudo make install
|
18
|
-
|
19
|
-
== Usage
|
20
|
-
|
21
|
-
Run your script with rsdl instead of ruby.
|
22
|
-
|
23
|
-
rsdl myscript.rb
|
24
|
-
|
25
|
-
== License
|
26
|
-
|
27
|
-
Ruby's License
|
28
|
-
|
29
|
-
== Copyright Information
|
30
|
-
|
31
|
-
Originally written by:
|
32
|
-
Copyright (C) 2009 Ryuichi Sakamoto
|
33
|
-
mail: kumaryu __at__ kumaryu.net
|
34
|
-
|
35
|
-
Modified and packaged by:
|
36
|
-
Copyright (C) 2009 Akinori MUSHA
|
37
|
-
mail: knu __at__ idaemons.org
|
data/test/helper.rb
DELETED