rsdl 0.1.4 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -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
@@ -1,4 +1,10 @@
1
- Makefile
2
- mkmf.log
3
- pkg/
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
4
10
  rsdl.c
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in rsdl.gemspec
4
+ gemspec
@@ -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 'rubygems'
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"
@@ -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
@@ -0,0 +1,7 @@
1
+ #!/bin/bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+
5
+ bundle install
6
+
7
+ # Do any other automated setup that you need to do here
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'] = Config::CONFIG['arch']
12
- config['INSTALL'] = Config::CONFIG['INSTALL']
13
- config['RMALL'] = Config::CONFIG['RMALL'] || 'rm -fr'
14
- config['CC'] = Config::CONFIG['CC']
15
- config['CFLAGS'] = Config::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'] = Config::CONFIG['LDFLAGS']
20
- config['LIBS'] = Config::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'] = Config::CONFIG['LIBRUBYARG']
24
- config['EXEEXT'] = Config::CONFIG['EXEEXT']
25
- config['bindir'] = Config::CONFIG['bindir']
26
- config['RSDL'] = Config::CONFIG['RUBY_INSTALL_NAME'].sub(/ruby/, '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')
@@ -1,60 +1,27 @@
1
- # Generated by jeweler
2
- # DO NOT EDIT THIS FILE DIRECTLY
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
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 |s|
7
- s.name = %q{rsdl}
8
- s.version = "0.1.4"
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
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
- s.authors = ["Ryuichi Sakamoto", "Akinori MUSHA"]
12
- s.date = %q{2010-02-18}
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
- s.email = %q{knu@idaemons.org}
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
- if s.respond_to? :specification_version then
48
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
49
- s.specification_version = 3
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
- if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
52
- s.add_development_dependency(%q<thoughtbot-shoulda>, [">= 0"])
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.4
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: bin
10
+ bindir: exe
11
11
  cert_chain: []
12
-
13
- date: 2010-02-18 00:00:00 +09:00
14
- default_executable: rsdl
15
- dependencies:
16
- - !ruby/object:Gem::Dependency
17
- name: thoughtbot-shoulda
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
- version_requirement:
20
- version_requirements: !ruby/object:Gem::Requirement
21
- requirements:
22
- - - ">="
23
- - !ruby/object:Gem::Version
24
- version: "0"
25
- version:
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
- email: knu@idaemons.org
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
- - README.rdoc
38
- files:
39
- - .gitignore
52
+ extra_rdoc_files: []
53
+ files:
54
+ - ".gitignore"
55
+ - Gemfile
40
56
  - Makefile.in
41
- - README.rdoc
57
+ - README.md
42
58
  - Rakefile
43
59
  - VERSION
44
- - bin/rsdl
60
+ - bin/console
61
+ - bin/setup
62
+ - exe/rsdl
45
63
  - extconf.rb
46
64
  - rsdl.c.in
47
65
  - rsdl.gemspec
48
- - test/helper.rb
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
- - --charset=UTF-8
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: "0"
64
- version:
65
- required_rubygems_version: !ruby/object:Gem::Requirement
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: "0"
70
- version:
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
71
83
  requirements: []
72
-
73
84
  rubyforge_project:
74
- rubygems_version: 1.3.5
85
+ rubygems_version: 2.4.5
75
86
  signing_key:
76
- specification_version: 3
87
+ specification_version: 4
77
88
  summary: SDL initialized ruby interpreter
78
- test_files:
79
- - test/helper.rb
80
- - test/test_rsdl.rb
89
+ test_files: []
90
+ has_rdoc:
@@ -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
@@ -1,10 +0,0 @@
1
- require 'rubygems'
2
- require 'test/unit'
3
- require 'shoulda'
4
-
5
- $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
6
- $LOAD_PATH.unshift(File.dirname(__FILE__))
7
- #require 'rsdl'
8
-
9
- class Test::Unit::TestCase
10
- end
@@ -1,7 +0,0 @@
1
- require 'helper'
2
-
3
- class TestRsdl < Test::Unit::TestCase
4
- should "probably rename this file and start testing for real" do
5
- flunk "hey buddy, you should probably rename this file and start testing for real"
6
- end
7
- end