kisaweb 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.
- data/VERSION +1 -1
- data/kisaweb.gemspec +2 -2
- data/lib/kisaweb/contest.rb +9 -0
- data/spec/contest_spec.rb +15 -0
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.4
|
data/kisaweb.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{kisaweb}
|
8
|
-
s.version = "0.0.
|
8
|
+
s.version = "0.0.4"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Jarkko Laine"]
|
12
|
-
s.date = %q{2009-
|
12
|
+
s.date = %q{2009-10-01}
|
13
13
|
s.description = %q{Ruby Gem for interfacing with the SSL Kisaweb API}
|
14
14
|
s.email = %q{jarkko@jlaine.net}
|
15
15
|
s.extra_rdoc_files = [
|
data/lib/kisaweb/contest.rb
CHANGED
data/spec/contest_spec.rb
CHANGED
@@ -49,4 +49,19 @@ describe Kisaweb::Contest do
|
|
49
49
|
end
|
50
50
|
|
51
51
|
end
|
52
|
+
|
53
|
+
describe "attributes" do
|
54
|
+
before(:each) do
|
55
|
+
Date.stub(:new).and_return(:date)
|
56
|
+
Date.stub(:parse).and_return(:date)
|
57
|
+
@line = ["(9399) 12.4.2009 ", "Saaristorastit", " Pargas IF "]
|
58
|
+
@contest = Kisaweb::Contest.from_csv_array(@line)
|
59
|
+
end
|
60
|
+
|
61
|
+
it "should return a hash of attributes" do
|
62
|
+
@contest.attributes.should == {:code => "9399", :date => Date.new(2009,12,4),
|
63
|
+
:title => "Saaristorastit",
|
64
|
+
:organizer => "Pargas IF"}
|
65
|
+
end
|
66
|
+
end
|
52
67
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kisaweb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jarkko Laine
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-
|
12
|
+
date: 2009-10-01 00:00:00 +03:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|