gosu_wrapper 0.0.3 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4714b462fb1c471cf994ff6dc847b3e7b1685b44
4
- data.tar.gz: 06dbe58ba8eb7d0a895a05e2f33927f5fc37a6b1
3
+ metadata.gz: e2ba1a40ecea32f174168345fe06685be79a7666
4
+ data.tar.gz: b6197fde20333ac8079c0bec985e15c1acbdb974
5
5
  SHA512:
6
- metadata.gz: ed5952d37fd52deff3aa3136469684b71b2737e61c1976a29d7105b6c79192ecc946fd93754dfa0ab16f1fb8b5fad43010a57e27f4289c225aec24ee8563c3f9
7
- data.tar.gz: 8e1744ea198b03d390025a3970551903e5b80ddbcc15ebb1e42c040c55bb444b62551a7541d0da8503d14adea3b24d9ff53e875deff9c0cebe284bb49fc1a7d0
6
+ metadata.gz: a5f73310d7ea4c25023d0d760aa610e48132ae63853a82f7cec6f38f9a400f528ab85e55793cad89c8307e5976ca230ba5d9746e537ea81a99db3ef7ba7ce53f
7
+ data.tar.gz: feddd489ed677ebb7bce1ffef019cf2cc339563ee2162dc88faa69361da56bb5474ceea2ad38669f2ab1c8b0f6e8942d942c2c5ff4950d95e040f8f3d6a21a43
data/README.md CHANGED
@@ -150,7 +150,7 @@ They can be called with `#call_helper(name_sym, *args, **keywords, &blk)`
150
150
 
151
151
  The required parameters differ between the helpers.
152
152
 
153
- 1. `div_window_into(num_cols:, num_rows:, margin:)`
153
+ 1. `div_window_into(num_cols:, num_rows:, margin:)`
154
154
  - splits the window into a grid but doesn't draw it
155
155
  - returns a matrix-like hash which can be passed to `draw_grid`
156
156
  as the `sections` argument
data/lib/gosu_wrapper.rb CHANGED
@@ -25,9 +25,9 @@ class GosuWrapper
25
25
  end
26
26
 
27
27
  def add_default_helpers
28
- add_helper :div_window_into, GridHelpers.div_window_into
29
- add_helper :div_section_into, GridHelpers.div_section_into
30
- add_helper :draw_grid, GridHelpers.draw_grid
28
+ add_helper :div_window_into, &GridHelpers.div_window_into
29
+ add_helper :div_section_into, &GridHelpers.div_section_into
30
+ add_helper :draw_grid, &GridHelpers.draw_grid
31
31
  end
32
32
 
33
33
  # Delegate "set_<attr>" setters to window
@@ -1,7 +1,7 @@
1
1
  class GosuWrapper
2
2
  class GridHelpers
3
3
 
4
- def self.div_windo_into
4
+ def self.div_window_into
5
5
  Proc.new do |num_cols:, num_rows:, margin:|
6
6
  call_helper :div_section_into, {
7
7
  start_x: 0,
data/lib/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module GosuWrapper
2
- VERSION = '0.0.3'
2
+ VERSION = '0.0.4'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gosu_wrapper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - maxpleaner