dxopal 1.3.0 → 1.4.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (44) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +21 -0
  3. data/Gemfile +2 -2
  4. data/Gemfile.lock +22 -11
  5. data/HACKING.md +18 -0
  6. data/Rakefile +30 -42
  7. data/TODO.md +2 -2
  8. data/build/dxopal.js +26126 -18430
  9. data/build/dxopal.min.js +1 -1
  10. data/config.ru +2 -2
  11. data/doc/api/_index.html +7 -138
  12. data/doc/api/class_list.html +3 -3
  13. data/doc/api/css/style.css +2 -2
  14. data/doc/api/file.README.html +6 -6
  15. data/doc/api/file_list.html +2 -2
  16. data/doc/api/frames.html +2 -2
  17. data/doc/api/index.html +6 -6
  18. data/doc/api/js/app.js +25 -3
  19. data/doc/api/method_list.html +2 -970
  20. data/doc/api/top-level-namespace.html +6 -16
  21. data/doc/en/index.html +3 -2
  22. data/doc/ja/index.html +3 -2
  23. data/dxopal.gemspec +2 -2
  24. data/exe/dxopal +13 -1
  25. data/{opal → lib}/dxopal.rb +1 -0
  26. data/{opal → lib}/dxopal/constants/colors.rb +0 -0
  27. data/{opal → lib}/dxopal/font.rb +5 -0
  28. data/{opal → lib}/dxopal/image.rb +40 -9
  29. data/{opal → lib}/dxopal/input.rb +55 -0
  30. data/{opal → lib}/dxopal/input/key_codes.rb +64 -66
  31. data/lib/dxopal/patches/require_dxopal.rb +30 -0
  32. data/{opal → lib}/dxopal/patches/require_remote.rb +0 -0
  33. data/{opal → lib}/dxopal/remote_resource.rb +2 -2
  34. data/{opal → lib}/dxopal/sound.rb +0 -0
  35. data/{opal → lib}/dxopal/sound_effect.rb +0 -0
  36. data/{opal → lib}/dxopal/sprite.rb +0 -0
  37. data/{opal → lib}/dxopal/sprite/collision_area.rb +0 -0
  38. data/{opal → lib}/dxopal/sprite/collision_check.rb +0 -0
  39. data/{opal → lib}/dxopal/sprite/collision_checker.rb +0 -0
  40. data/{opal → lib}/dxopal/sprite/physics.rb +0 -0
  41. data/lib/dxopal/version.rb +3 -0
  42. data/{opal → lib}/dxopal/window.rb +0 -0
  43. metadata +24 -23
  44. data/opal/dxopal/version.rb +0 -3
@@ -0,0 +1,30 @@
1
+ #
2
+ # Patch to ignore `require "dxopal"`
3
+ #
4
+
5
+ # TODO: why this does not work?
6
+ #module DXOpal
7
+ # module PatchRequire
8
+ # def require(*args)
9
+ # if args == ['dxopal']
10
+ # # Do nothing
11
+ # else
12
+ # super
13
+ # end
14
+ # end
15
+ # end
16
+ #
17
+ # Kernel.prepend(PatchRequire)
18
+ #end
19
+
20
+ module Kernel
21
+ alias dxopal_orig_require require
22
+ end
23
+
24
+ def require(*args)
25
+ if args == ['dxopal']
26
+ # Do nothing, because DXOpal is already loaded and you don't need to find it
27
+ else
28
+ dxopal_orig_require(*args)
29
+ end
30
+ end
@@ -37,9 +37,9 @@ module DXOpal
37
37
  def self._load_resources(&block)
38
38
  @@resources.each do |klass_name, items|
39
39
  klass = @@klasses[klass_name]
40
- items.each do |name, (block, args)|
40
+ items.each do |name, (block2, args)|
41
41
  if !@@promises[klass_name][name]
42
- instance, promise = klass._load(*args, &block)
42
+ instance, promise = klass._load(*args, &block2)
43
43
  @@instances[klass_name][name] = instance
44
44
  @@promises[klass_name][name] = promise
45
45
  end
File without changes
File without changes
File without changes
File without changes
@@ -0,0 +1,3 @@
1
+ module DXOpal
2
+ VERSION = "1.4.2"
3
+ end
File without changes
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dxopal
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yutaka HARA
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-09-29 00:00:00.000000000 Z
11
+ date: 2020-01-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 0.19.1
19
+ version: '0.20'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 0.19.1
26
+ version: '0.20'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rack
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -53,6 +53,7 @@ files:
53
53
  - DEVELOPMENT.md
54
54
  - Gemfile
55
55
  - Gemfile.lock
56
+ - HACKING.md
56
57
  - README.md
57
58
  - Rakefile
58
59
  - TODO.md
@@ -90,23 +91,24 @@ files:
90
91
  - dxopal.gemspec
91
92
  - exe/dxopal
92
93
  - index.html
93
- - opal/dxopal.rb
94
- - opal/dxopal/constants/colors.rb
95
- - opal/dxopal/font.rb
96
- - opal/dxopal/image.rb
97
- - opal/dxopal/input.rb
98
- - opal/dxopal/input/key_codes.rb
99
- - opal/dxopal/patches/require_remote.rb
100
- - opal/dxopal/remote_resource.rb
101
- - opal/dxopal/sound.rb
102
- - opal/dxopal/sound_effect.rb
103
- - opal/dxopal/sprite.rb
104
- - opal/dxopal/sprite/collision_area.rb
105
- - opal/dxopal/sprite/collision_check.rb
106
- - opal/dxopal/sprite/collision_checker.rb
107
- - opal/dxopal/sprite/physics.rb
108
- - opal/dxopal/version.rb
109
- - opal/dxopal/window.rb
94
+ - lib/dxopal.rb
95
+ - lib/dxopal/constants/colors.rb
96
+ - lib/dxopal/font.rb
97
+ - lib/dxopal/image.rb
98
+ - lib/dxopal/input.rb
99
+ - lib/dxopal/input/key_codes.rb
100
+ - lib/dxopal/patches/require_dxopal.rb
101
+ - lib/dxopal/patches/require_remote.rb
102
+ - lib/dxopal/remote_resource.rb
103
+ - lib/dxopal/sound.rb
104
+ - lib/dxopal/sound_effect.rb
105
+ - lib/dxopal/sprite.rb
106
+ - lib/dxopal/sprite/collision_area.rb
107
+ - lib/dxopal/sprite/collision_check.rb
108
+ - lib/dxopal/sprite/collision_checker.rb
109
+ - lib/dxopal/sprite/physics.rb
110
+ - lib/dxopal/version.rb
111
+ - lib/dxopal/window.rb
110
112
  - template/index.html
111
113
  - template/main.rb
112
114
  homepage: https://yhara.github.io/dxopal/
@@ -129,8 +131,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
129
131
  - !ruby/object:Gem::Version
130
132
  version: '0'
131
133
  requirements: []
132
- rubyforge_project:
133
- rubygems_version: 2.7.6
134
+ rubygems_version: 3.0.3
134
135
  signing_key:
135
136
  specification_version: 4
136
137
  summary: Game development framework for Opal
@@ -1,3 +0,0 @@
1
- module DXOpal
2
- VERSION = "1.3.0"
3
- end