dxopal 1.5.2 → 1.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (48) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +7 -0
  3. data/DEVELOPMENT.md +4 -4
  4. data/Gemfile +0 -1
  5. data/Gemfile.lock +22 -24
  6. data/README.md +4 -0
  7. data/Rakefile +6 -1
  8. data/build/dxopal.js +48950 -38847
  9. data/build/dxopal.min.js +1 -1
  10. data/config.ru +1 -1
  11. data/doc/api/DXOpal/Constants/Colors.html +4 -4
  12. data/doc/api/DXOpal/Constants.html +4 -4
  13. data/doc/api/DXOpal/Font.html +4 -4
  14. data/doc/api/DXOpal/Image.html +19 -19
  15. data/doc/api/DXOpal/Input/KeyCodes.html +6 -6
  16. data/doc/api/DXOpal/Input/MouseCodes.html +4 -4
  17. data/doc/api/DXOpal/Input/Touch.html +47 -47
  18. data/doc/api/DXOpal/Input.html +87 -81
  19. data/doc/api/DXOpal/RemoteResource.html +164 -33
  20. data/doc/api/DXOpal/Sound.html +22 -16
  21. data/doc/api/DXOpal/SoundEffect/WaveTypes.html +4 -4
  22. data/doc/api/DXOpal/SoundEffect.html +6 -6
  23. data/doc/api/DXOpal/Sprite/CollisionArea/Base.html +5 -5
  24. data/doc/api/DXOpal/Sprite/CollisionArea/Circle.html +4 -4
  25. data/doc/api/DXOpal/Sprite/CollisionArea/Point.html +4 -4
  26. data/doc/api/DXOpal/Sprite/CollisionArea/Rect.html +4 -4
  27. data/doc/api/DXOpal/Sprite/CollisionArea/Triangle.html +4 -4
  28. data/doc/api/DXOpal/Sprite/CollisionArea.html +4 -4
  29. data/doc/api/DXOpal/Sprite/CollisionCheck/ClassMethods.html +7 -7
  30. data/doc/api/DXOpal/Sprite/CollisionCheck.html +8 -8
  31. data/doc/api/DXOpal/Sprite/Physics.html +4 -4
  32. data/doc/api/DXOpal/Sprite.html +10 -10
  33. data/doc/api/DXOpal/Window.html +120 -114
  34. data/doc/api/DXOpal.html +5 -5
  35. data/doc/api/Kernel.html +4 -4
  36. data/doc/api/_index.html +5 -5
  37. data/doc/api/file.README.html +23 -20
  38. data/doc/api/frames.html +10 -5
  39. data/doc/api/index.html +23 -20
  40. data/doc/api/method_list.html +214 -206
  41. data/doc/api/top-level-namespace.html +4 -4
  42. data/lib/dxopal/input.rb +5 -2
  43. data/lib/dxopal/remote_resource.rb +33 -1
  44. data/lib/dxopal/sound.rb +5 -2
  45. data/lib/dxopal/version.rb +1 -1
  46. data/lib/dxopal/window.rb +6 -3
  47. data/lib/dxopal.rb +1 -0
  48. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f18ecefbb29167fa733a6fae876b1d5804c1f0da629a616604244cb9c90ade26
4
- data.tar.gz: a55d53b21ef262e04273ad16a0411a53dcb2a44bec2df48969967989e20bdd64
3
+ metadata.gz: 35aa09bed1a5200defa559e412f39edd8b91c072f1d439fec01026d0ff586e4a
4
+ data.tar.gz: 3f07dfc87316d529a07d9e0dda3cba7cb6fad2495d7794160497f77d1249d076
5
5
  SHA512:
6
- metadata.gz: b1632bc406507fb157353503ef164c3463ab38999b5b0bd237c5246048967fd143df48660f83ad6dc46c71e4c353e262327347d90649dfdca804478d14030786
7
- data.tar.gz: 9c6fdbeeb4c69ccb376bf1e57b01fde6a74121c012e92b91e98c9193c0a69b96676b5cd0d5c6847c54435383773b1dd725e374d5301cc5cff138cab057e37e38
6
+ metadata.gz: f232b0edc56eb64710722443a8092916ab658202ff625cdcbfb365f023de0b984b689570c3f9ab45c679f0b5ffc7d837f09e06fd8c860ac78d79df5231811f2c
7
+ data.tar.gz: 72bdc8e96b9a8fa420fdc1a2b7da8cd114c32fd4e7bbb241b94efeb2a0832a66abe22d23cf7e96b092ffda56ababdc95ed23576463b0f84a0f79f688ed9f82c6
data/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## v1.6.0 (2024-07-09)
2
+
3
+ - Upgrade Opal to 1.8.2 (#53)
4
+ - feat: "Now Loading" (#54)
5
+ - feat: `Sound#play(true)` to enable looping (#51)
6
+ - fix: NameError with newer Opal (#46)
7
+
1
8
  ## v1.5.2 (2020-12-29)
2
9
 
3
10
  - Upgrade opal to 1.0 (#37)
data/DEVELOPMENT.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  ## Prerequisites
4
4
 
5
- - Ruby (tested with 2.5.1)
5
+ - Ruby (tested with 3.2.2)
6
6
  - Node.js (to minify .js)
7
7
 
8
8
  ## Setup
@@ -11,8 +11,8 @@
11
11
  $ git clone https://github.com/yhara/dxopal
12
12
  $ cd dxopal
13
13
  $ bundle install
14
- $ npm install uglify-es -g
15
- $ bundle exec rackup
14
+ $ npm install terser -g
15
+ $ rake server
16
16
  $ open http://localhost:9292/
17
17
  ```
18
18
 
@@ -28,7 +28,7 @@ $ git clone https://github.com/yhara/dxopal-starter-kit
28
28
  $ rake build
29
29
  $ rake build_min # Build and minify
30
30
 
31
- (If some error is printed by build_min, make sure you have installed uglify-es)
31
+ (If some error is printed by build_min, make sure you have installed terser)
32
32
 
33
33
  ## Documents
34
34
 
data/Gemfile CHANGED
@@ -2,7 +2,6 @@ source 'https://rubygems.org'
2
2
 
3
3
  gem 'opal'
4
4
  gem 'opal-sprockets'
5
- gem 'c_lexer'
6
5
  gem 'rake'
7
6
  gem 'yard'
8
7
  gem 'puma'
data/Gemfile.lock CHANGED
@@ -1,44 +1,42 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- dxopal (1.5.2)
4
+ dxopal (1.6.0)
5
5
  rack (~> 2.0)
6
6
  thor (~> 0.20)
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
- ast (2.4.1)
12
- c_lexer (2.6.4.1.1)
13
- ast (~> 2.4.0)
14
- parser (= 2.6.4.1)
15
- concurrent-ruby (1.1.7)
16
- nio4r (2.5.4)
17
- opal (1.0.5)
11
+ ast (2.4.2)
12
+ concurrent-ruby (1.3.3)
13
+ nio4r (2.7.3)
14
+ opal (1.8.2)
18
15
  ast (>= 2.3.0)
19
- parser (~> 2.6)
20
- opal-sprockets (0.4.9.1.0.3.7)
21
- opal (~> 1.0.0)
22
- sprockets (~> 3.7)
16
+ parser (~> 3.0, >= 3.0.3.2)
17
+ opal-sprockets (1.0.3)
18
+ opal (>= 1.0, < 2.0)
19
+ sprockets (~> 4.0)
23
20
  tilt (>= 1.4)
24
- parser (2.6.4.1)
25
- ast (~> 2.4.0)
26
- puma (5.1.1)
21
+ parser (3.3.3.0)
22
+ ast (~> 2.4.1)
23
+ racc
24
+ puma (6.4.2)
27
25
  nio4r (~> 2.0)
28
- rack (2.2.3)
29
- rake (13.0.3)
30
- sprockets (3.7.2)
26
+ racc (1.8.0)
27
+ rack (2.2.9)
28
+ rake (13.2.1)
29
+ sprockets (4.2.1)
31
30
  concurrent-ruby (~> 1.0)
32
- rack (> 1, < 3)
31
+ rack (>= 2.2.4, < 4)
33
32
  thor (0.20.3)
34
- tilt (2.0.10)
35
- yard (0.9.26)
33
+ tilt (2.3.0)
34
+ yard (0.9.36)
36
35
 
37
36
  PLATFORMS
38
- ruby
37
+ arm64-darwin-21
39
38
 
40
39
  DEPENDENCIES
41
- c_lexer
42
40
  dxopal!
43
41
  opal
44
42
  opal-sprockets
@@ -47,4 +45,4 @@ DEPENDENCIES
47
45
  yard
48
46
 
49
47
  BUNDLED WITH
50
- 2.1.2
48
+ 2.4.13
data/README.md CHANGED
@@ -7,6 +7,10 @@ has similar API to [DXRuby](http://dxruby.osdn.jp/)
7
7
 
8
8
  see https://yhara.github.io/dxopal/
9
9
 
10
+ ## Development
11
+
12
+ see DEVELOPMENT.md
13
+
10
14
  ## License
11
15
 
12
16
  MIT (including images and sounds under examples/)
data/Rakefile CHANGED
@@ -8,7 +8,7 @@ desc "Build dxopal.js and dxopal.min.js"
8
8
  task :build_min => "build/dxopal.min.js"
9
9
 
10
10
  file "build/dxopal.min.js" => "build/dxopal.js" do |t|
11
- sh "uglifyjs #{t.source} -o #{t.name}"
11
+ sh "terser #{t.source} -o #{t.name}"
12
12
  end
13
13
 
14
14
  file "build/dxopal.js" => Dir["lib/**/*.rb"] do |t|
@@ -24,6 +24,11 @@ task :api do
24
24
  sh "yard doc -o doc/api/ lib/**/*.rb lib/**/**/*.rb"
25
25
  end
26
26
 
27
+ desc "Run server"
28
+ task :server do
29
+ sh "bundle exec rackup -p 9292"
30
+ end
31
+
27
32
  desc "git ci, git tag and git push"
28
33
  task :release do
29
34
  sh "git diff HEAD"