imdb_vote_history 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/imdb_vote_history.gemspec +1 -1
- data/lib/imdb_vote_history.rb +1 -0
- data/spec/imdb_vote_history_spec.rb +6 -0
- metadata +2 -28
data/imdb_vote_history.gemspec
CHANGED
data/lib/imdb_vote_history.rb
CHANGED
@@ -96,6 +96,12 @@ describe ImdbVoteHistory do
|
|
96
96
|
lambda { ImdbVoteHistory.find_by_id(id) }.should_not raise_error(ArgumentError)
|
97
97
|
end
|
98
98
|
end
|
99
|
+
|
100
|
+
it "should not be possible to pass nil or n <= 9" do
|
101
|
+
["0", nil, "1", "string", "9"].each do |id|
|
102
|
+
lambda { ImdbVoteHistory.find_by_id(id) }.should raise_error(ArgumentError)
|
103
|
+
end
|
104
|
+
end
|
99
105
|
end
|
100
106
|
|
101
107
|
context "the find_by_url method" do
|
metadata
CHANGED
@@ -1,13 +1,8 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: imdb_vote_history
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash: 23
|
5
4
|
prerelease:
|
6
|
-
|
7
|
-
- 1
|
8
|
-
- 0
|
9
|
-
- 0
|
10
|
-
version: 1.0.0
|
5
|
+
version: 1.0.1
|
11
6
|
platform: ruby
|
12
7
|
authors:
|
13
8
|
- Linus Oleander
|
@@ -15,7 +10,7 @@ autorequire:
|
|
15
10
|
bindir: bin
|
16
11
|
cert_chain: []
|
17
12
|
|
18
|
-
date: 2011-03-
|
13
|
+
date: 2011-03-06 00:00:00 +01:00
|
19
14
|
default_executable:
|
20
15
|
dependencies:
|
21
16
|
- !ruby/object:Gem::Dependency
|
@@ -26,9 +21,6 @@ dependencies:
|
|
26
21
|
requirements:
|
27
22
|
- - ">="
|
28
23
|
- !ruby/object:Gem::Version
|
29
|
-
hash: 3
|
30
|
-
segments:
|
31
|
-
- 0
|
32
24
|
version: "0"
|
33
25
|
type: :runtime
|
34
26
|
version_requirements: *id001
|
@@ -40,9 +32,6 @@ dependencies:
|
|
40
32
|
requirements:
|
41
33
|
- - ">="
|
42
34
|
- !ruby/object:Gem::Version
|
43
|
-
hash: 3
|
44
|
-
segments:
|
45
|
-
- 0
|
46
35
|
version: "0"
|
47
36
|
type: :runtime
|
48
37
|
version_requirements: *id002
|
@@ -54,9 +43,6 @@ dependencies:
|
|
54
43
|
requirements:
|
55
44
|
- - ">="
|
56
45
|
- !ruby/object:Gem::Version
|
57
|
-
hash: 3
|
58
|
-
segments:
|
59
|
-
- 0
|
60
46
|
version: "0"
|
61
47
|
type: :runtime
|
62
48
|
version_requirements: *id003
|
@@ -68,9 +54,6 @@ dependencies:
|
|
68
54
|
requirements:
|
69
55
|
- - ">="
|
70
56
|
- !ruby/object:Gem::Version
|
71
|
-
hash: 3
|
72
|
-
segments:
|
73
|
-
- 0
|
74
57
|
version: "0"
|
75
58
|
type: :development
|
76
59
|
version_requirements: *id004
|
@@ -82,9 +65,6 @@ dependencies:
|
|
82
65
|
requirements:
|
83
66
|
- - ">="
|
84
67
|
- !ruby/object:Gem::Version
|
85
|
-
hash: 3
|
86
|
-
segments:
|
87
|
-
- 0
|
88
68
|
version: "0"
|
89
69
|
type: :development
|
90
70
|
version_requirements: *id005
|
@@ -127,18 +107,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
127
107
|
requirements:
|
128
108
|
- - ">="
|
129
109
|
- !ruby/object:Gem::Version
|
130
|
-
hash: 3
|
131
|
-
segments:
|
132
|
-
- 0
|
133
110
|
version: "0"
|
134
111
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
135
112
|
none: false
|
136
113
|
requirements:
|
137
114
|
- - ">="
|
138
115
|
- !ruby/object:Gem::Version
|
139
|
-
hash: 3
|
140
|
-
segments:
|
141
|
-
- 0
|
142
116
|
version: "0"
|
143
117
|
requirements: []
|
144
118
|
|