codeforces 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
data/spec/helper_spec.rb CHANGED
@@ -4,6 +4,16 @@ describe Codeforces::Helper, :vcr => true do
4
4
 
5
5
  let!(:client) { Codeforces::Client.new }
6
6
 
7
+ describe "#contests" do
8
+
9
+ context "contests.grep :name => /#10/" do
10
+ subject! { client.contests.grep :name => /#10/ }
11
+ it { expect(subject).to be_a Array }
12
+ it { expect(subject.map &:name).to include "Codeforces Round #100" }
13
+ end
14
+
15
+ end
16
+
7
17
  describe "#contest" do
8
18
 
9
19
  context "contest 154" do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: codeforces
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hiroyuki Sano
@@ -146,6 +146,8 @@ files:
146
146
  - lib/codeforces/helper.rb
147
147
  - lib/codeforces/models.rb
148
148
  - lib/codeforces/models/base.rb
149
+ - lib/codeforces/models/contest.rb
150
+ - lib/codeforces/models/contests.rb
149
151
  - lib/codeforces/models/submission.rb
150
152
  - lib/codeforces/models/user.rb
151
153
  - lib/codeforces/models/users.rb
@@ -167,6 +169,7 @@ files:
167
169
  - spec/api_fixtures/Codeforces_Helper/_contest/contest_/Codeforces_109_Div_1/.yml
168
170
  - spec/api_fixtures/Codeforces_Helper/_contest/contest_154/.yml
169
171
  - spec/api_fixtures/Codeforces_Helper/_contest/contest_Codeforces_Round_109_Div_1_/.yml
172
+ - spec/api_fixtures/Codeforces_Helper/_contests/contests_grep_name_/_10/.yml
170
173
  - spec/api_fixtures/Codeforces_Helper/_each_contest/.yml
171
174
  - spec/api_fixtures/Codeforces_Helper/_each_contest/it_is_called_450_or_more_times.yml
172
175
  - spec/api_fixtures/Codeforces_Helper/_each_status/first_user/.yml
@@ -219,6 +222,7 @@ test_files:
219
222
  - spec/api_fixtures/Codeforces_Helper/_contest/contest_/Codeforces_109_Div_1/.yml
220
223
  - spec/api_fixtures/Codeforces_Helper/_contest/contest_154/.yml
221
224
  - spec/api_fixtures/Codeforces_Helper/_contest/contest_Codeforces_Round_109_Div_1_/.yml
225
+ - spec/api_fixtures/Codeforces_Helper/_contests/contests_grep_name_/_10/.yml
222
226
  - spec/api_fixtures/Codeforces_Helper/_each_contest/.yml
223
227
  - spec/api_fixtures/Codeforces_Helper/_each_contest/it_is_called_450_or_more_times.yml
224
228
  - spec/api_fixtures/Codeforces_Helper/_each_status/first_user/.yml