salamander 0.0.5 → 0.1.0

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.
@@ -1,5 +1,5 @@
1
1
  module Salamander::Drawing
2
- %w{line shapes}.each do |mod|
2
+ %w{point line shapes}.each do |mod|
3
3
  require "salamander/drawing/#{mod}"
4
4
  include Salamander::Drawing.const_get(mod.capitalize)
5
5
  end
@@ -0,0 +1,8 @@
1
+ module Salamander::Drawing
2
+ module Point
3
+ def point
4
+ x, y = *position
5
+ SDL::Gfx.pixelColor(surface, x, y, color)
6
+ end
7
+ end
8
+ end
@@ -1,3 +1,3 @@
1
1
  module Salamander
2
- VERSION = "0.0.5"
2
+ VERSION = "0.1.0"
3
3
  end
metadata CHANGED
@@ -1,12 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: salamander
3
3
  version: !ruby/object:Gem::Version
4
+ hash: 27
4
5
  prerelease: false
5
6
  segments:
6
7
  - 0
8
+ - 1
7
9
  - 0
8
- - 5
9
- version: 0.0.5
10
+ version: 0.1.0
10
11
  platform: ruby
11
12
  authors:
12
13
  - Jonathan Castello
@@ -25,6 +26,7 @@ dependencies:
25
26
  requirements:
26
27
  - - ~>
27
28
  - !ruby/object:Gem::Version
29
+ hash: 25
28
30
  segments:
29
31
  - 1
30
32
  - 0
@@ -40,6 +42,7 @@ dependencies:
40
42
  requirements:
41
43
  - - ~>
42
44
  - !ruby/object:Gem::Version
45
+ hash: 13
43
46
  segments:
44
47
  - 0
45
48
  - 3
@@ -59,6 +62,7 @@ files:
59
62
  - lib/salamander/support/radians.rb
60
63
  - lib/salamander/constants.rb
61
64
  - lib/salamander/actor.rb
65
+ - lib/salamander/drawing/point.rb
62
66
  - lib/salamander/drawing/line.rb
63
67
  - lib/salamander/drawing/shapes.rb
64
68
  - lib/salamander/version.rbc
@@ -80,16 +84,18 @@ required_ruby_version: !ruby/object:Gem::Requirement
80
84
  requirements:
81
85
  - - ~>
82
86
  - !ruby/object:Gem::Version
87
+ hash: 55
83
88
  segments:
84
89
  - 1
85
- - 9
90
+ - 8
86
91
  - 0
87
- version: 1.9.0
92
+ version: 1.8.0
88
93
  required_rubygems_version: !ruby/object:Gem::Requirement
89
94
  none: false
90
95
  requirements:
91
96
  - - ">="
92
97
  - !ruby/object:Gem::Version
98
+ hash: 3
93
99
  segments:
94
100
  - 0
95
101
  version: "0"