gosu_extensions 0.1.9 → 0.1.10
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.
- data/Rakefile +7 -0
- data/VERSION +1 -1
- data/spec/lib/extensions/numeric_spec.rb +5 -1
- metadata +2 -2
data/Rakefile
CHANGED
@@ -19,4 +19,11 @@ begin
|
|
19
19
|
Jeweler::GemcutterTasks.new
|
20
20
|
rescue LoadError => e
|
21
21
|
puts "Jeweler not available (#{e}). Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
|
22
|
+
end
|
23
|
+
|
24
|
+
require 'spec'
|
25
|
+
require 'spec/rake/spectask'
|
26
|
+
desc "Run all specs in spec directory"
|
27
|
+
Spec::Rake::SpecTask.new(:spec) do |t|
|
28
|
+
t.spec_files = FileList['spec/**/*_spec.rb']
|
22
29
|
end
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.10
|
@@ -4,7 +4,11 @@ describe Numeric do
|
|
4
4
|
|
5
5
|
describe "radians_to_vec2" do
|
6
6
|
it "should convert radians into a vector" do
|
7
|
-
10.0.radians_to_vec2.should
|
7
|
+
10.0.radians_to_vec2.should be_kind_of(CP::Vec2)
|
8
|
+
end
|
9
|
+
it "should convert correctly" do
|
10
|
+
Math::PI.radians_to_vec2.x.should == -1.0
|
11
|
+
Math::PI.radians_to_vec2.y.should be_close 0.0, 0.000001
|
8
12
|
end
|
9
13
|
end
|
10
14
|
|