dxrubynd 1.4.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 04d052adff8684ae52e2687ed915315be1f98412a4ab95fe4473328c6c2c0845
4
+ data.tar.gz: 2559e9f943260677e3d99b55ece5e415d8746153c43397e58c78d1d5fb7142cc
5
+ SHA512:
6
+ metadata.gz: 17fbaa97da059166ac1405bcecd52a56c136602ace692821c07a42809b9e48597d203048f17a193c04461fc26ab57bfca0c5d921feb3631be5b5fd02b5fb5b60
7
+ data.tar.gz: 82defafae38469306ef8ec642f5b7c9e622c4c0ccbb055ad6de3cdfee35bad3aeef3b3cfa3ad6ff00735789e7bcfd1b7a305cde00e19434b8bc3c77a7af25794
@@ -0,0 +1,84 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.
6
+
7
+ We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
8
+
9
+ ## Our Standards
10
+
11
+ Examples of behavior that contributes to a positive environment for our community include:
12
+
13
+ * Demonstrating empathy and kindness toward other people
14
+ * Being respectful of differing opinions, viewpoints, and experiences
15
+ * Giving and gracefully accepting constructive feedback
16
+ * Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
17
+ * Focusing on what is best not just for us as individuals, but for the overall community
18
+
19
+ Examples of unacceptable behavior include:
20
+
21
+ * The use of sexualized language or imagery, and sexual attention or
22
+ advances of any kind
23
+ * Trolling, insulting or derogatory comments, and personal or political attacks
24
+ * Public or private harassment
25
+ * Publishing others' private information, such as a physical or email
26
+ address, without their explicit permission
27
+ * Other conduct which could reasonably be considered inappropriate in a
28
+ professional setting
29
+
30
+ ## Enforcement Responsibilities
31
+
32
+ Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
33
+
34
+ Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate.
35
+
36
+ ## Scope
37
+
38
+ This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
39
+
40
+ ## Enforcement
41
+
42
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at nodai2h.itc@gmail.com. All complaints will be reviewed and investigated promptly and fairly.
43
+
44
+ All community leaders are obligated to respect the privacy and security of the reporter of any incident.
45
+
46
+ ## Enforcement Guidelines
47
+
48
+ Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:
49
+
50
+ ### 1. Correction
51
+
52
+ **Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
53
+
54
+ **Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.
55
+
56
+ ### 2. Warning
57
+
58
+ **Community Impact**: A violation through a single incident or series of actions.
59
+
60
+ **Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.
61
+
62
+ ### 3. Temporary Ban
63
+
64
+ **Community Impact**: A serious violation of community standards, including sustained inappropriate behavior.
65
+
66
+ **Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
67
+
68
+ ### 4. Permanent Ban
69
+
70
+ **Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
71
+
72
+ **Consequence**: A permanent ban from any sort of public interaction within the community.
73
+
74
+ ## Attribution
75
+
76
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.0,
77
+ available at https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
78
+
79
+ Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder](https://github.com/mozilla/diversity).
80
+
81
+ [homepage]: https://www.contributor-covenant.org
82
+
83
+ For answers to common questions about this code of conduct, see the FAQ at
84
+ https://www.contributor-covenant.org/faq. Translations are available at https://www.contributor-covenant.org/translations.
data/Gemfile ADDED
@@ -0,0 +1,8 @@
1
+ # frozen_string_literal: true
2
+
3
+ source "https://rubygems.org"
4
+
5
+ # Specify your gem's dependencies in dxrubynd.gemspec
6
+ gemspec
7
+
8
+ gem "rake", "~> 13.0"
data/LICENSE.txt ADDED
@@ -0,0 +1,12 @@
1
+ The zlib/libpng License
2
+ Copyright (c) <2012> <DXRubyDevelopers>
3
+
4
+ This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software.
5
+
6
+ Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions:
7
+
8
+ 1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required.
9
+
10
+ 2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software.
11
+
12
+ 3. This notice may not be removed or altered from any source distribution.
data/README.md ADDED
@@ -0,0 +1,31 @@
1
+ # DXRubynd
2
+
3
+ Ruby + Windows 用ゲームライブラリ [DXRuby](http://dxruby.osdn.jp/) を、インストール時にビルドする方式に変えたものです。そのためインストール時に DevKit が必要になりますが、代わりに Ruby のバージョンに依らずインストールが可能です。(ただし後述するように、現在 64 bit 環境では正常に動作しません。)
4
+
5
+ なお、オリジナル版にも言えることですが、最近の環境では [d3dx9_40.dll のインストールが必要になります。](https://github.com/mirichi/dxruby/issues/3)
6
+
7
+ ## 使い方
8
+
9
+ 使う人は
10
+
11
+ gem install dxrubynd
12
+
13
+ でどうぞ。
14
+
15
+ ```ruby
16
+ require 'dxrubynd'
17
+
18
+ Window.loop do
19
+ # ここにゲームの処理を書く
20
+ end
21
+ ```
22
+
23
+ 1 行目は `require 'dxruby'` でも動くっぽいのですが、オリジナルの DXRuby もインストールされている環境では正常に動かない可能性があるので、`'dxrubynd'` の方を読み込ませたほうが確実です。
24
+
25
+ リファレンスマニュアルは
26
+ http://mirichi.github.io/dxruby-doc/index.html
27
+ にあります。
28
+
29
+ ## 既知の問題点
30
+
31
+ 現状、64 bit 環境では正常に動作しません。オリジナル版でも [64 bit 版では Sound.new でエラーになる](https://github.com/mirichi/dxruby/issues/4)ようですが、こちらに至っては `require` しただけで `failed create window - CreateWindow (DXRuby::DXRubyError)` となってしまいます。解決方法をご存じの方はいらっしゃらないでしょうか…
data/Rakefile ADDED
@@ -0,0 +1,9 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "bundler/gem_tasks"
4
+ task default: %i[]
5
+
6
+ require "rake/extensiontask"
7
+ Rake::ExtensionTask.new("dxruby") do |ext|
8
+ ext.lib_dir = "lib/dxrubynd"
9
+ end
data/dxrubynd.gemspec ADDED
@@ -0,0 +1,41 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "lib/dxrubynd/version"
4
+
5
+ Gem::Specification.new do |spec|
6
+ spec.name = "dxrubynd"
7
+ spec.version = DXRubynd::VERSION
8
+ spec.authors = ["nodai2hITC"]
9
+ spec.email = ["nodai2h.itc@gmail.com"]
10
+
11
+ spec.summary = ":-)"
12
+ spec.description = "2D game library for Windows(DirectX9)"
13
+ spec.homepage = "http://dxruby.osdn.jp/"
14
+ spec.license = "zlib/libpng"
15
+ spec.required_ruby_version = ">= 2.6.0"
16
+
17
+ # spec.metadata["allowed_push_host"] = "TODO: Set to your gem server 'https://example.com'"
18
+
19
+ spec.metadata["homepage_uri"] = spec.homepage
20
+ spec.metadata["source_code_uri"] = "https://github.com/nodai2hITC/dxrubynd"
21
+ # spec.metadata["changelog_uri"] = "TODO: Put your gem's CHANGELOG.md URL here."
22
+
23
+ # Specify which files should be added to the gem when it is released.
24
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
25
+ spec.files = Dir.chdir(__dir__) do
26
+ `git ls-files -z`.split("\x0").reject do |f|
27
+ (f == __FILE__) || f.match(%r{\A(?:(?:bin|test|spec|features)/|\.(?:git|circleci)|appveyor)})
28
+ end
29
+ end
30
+ spec.bindir = "exe"
31
+ spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
32
+ spec.require_paths = ["lib"]
33
+ spec.extensions = "ext/dxruby/extconf.rb"
34
+
35
+ spec.add_development_dependency "rake-compiler"
36
+ # Uncomment to register a new dependency of your gem
37
+ # spec.add_dependency "example-gem", "~> 1.0"
38
+
39
+ # For more information and examples about making a new gem, check out our
40
+ # guide at: https://bundler.io/guides/creating_gem.html
41
+ end
@@ -0,0 +1,13 @@
1
+ The zlib/libpng License
2
+ Copyright (c) <2012> <DXRubyDevelopers>
3
+
4
+ This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software.
5
+
6
+ Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions:
7
+
8
+ 1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required.
9
+
10
+ 2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software.
11
+
12
+ 3. This notice may not be removed or altered from any source distribution.
13
+