triviacrack 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.
Files changed (63) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +14 -0
  3. data/.rspec +2 -0
  4. data/.travis.yml +19 -0
  5. data/Gemfile +7 -0
  6. data/LICENSE.txt +22 -0
  7. data/README.md +120 -0
  8. data/Rakefile +7 -0
  9. data/lib/triviacrack.rb +12 -0
  10. data/lib/triviacrack/api/client.rb +31 -0
  11. data/lib/triviacrack/api/common.rb +76 -0
  12. data/lib/triviacrack/api/game.rb +72 -0
  13. data/lib/triviacrack/api/login.rb +35 -0
  14. data/lib/triviacrack/api/profile.rb +44 -0
  15. data/lib/triviacrack/api/question.rb +43 -0
  16. data/lib/triviacrack/api/user.rb +56 -0
  17. data/lib/triviacrack/category_statistics.rb +27 -0
  18. data/lib/triviacrack/errors/parse_error.rb +7 -0
  19. data/lib/triviacrack/errors/request_error.rb +18 -0
  20. data/lib/triviacrack/game.rb +100 -0
  21. data/lib/triviacrack/game_statistics.rb +35 -0
  22. data/lib/triviacrack/parsers/category_statistics_parser.rb +45 -0
  23. data/lib/triviacrack/parsers/game_parser.rb +74 -0
  24. data/lib/triviacrack/parsers/game_statistics_parser.rb +44 -0
  25. data/lib/triviacrack/parsers/profile_parser.rb +55 -0
  26. data/lib/triviacrack/parsers/question_parser.rb +36 -0
  27. data/lib/triviacrack/parsers/session_parser.rb +36 -0
  28. data/lib/triviacrack/parsers/time_parser.rb +26 -0
  29. data/lib/triviacrack/parsers/user_parser.rb +47 -0
  30. data/lib/triviacrack/profile.rb +96 -0
  31. data/lib/triviacrack/question.rb +43 -0
  32. data/lib/triviacrack/session.rb +30 -0
  33. data/lib/triviacrack/user.rb +91 -0
  34. data/lib/triviacrack/version.rb +4 -0
  35. data/spec/api/game_spec.rb +72 -0
  36. data/spec/api/login_spec.rb +34 -0
  37. data/spec/api/profile_spec.rb +51 -0
  38. data/spec/api/question_spec.rb +45 -0
  39. data/spec/api/user_spec.rb +50 -0
  40. data/spec/data/answer.json +161 -0
  41. data/spec/data/dashboard.json +949 -0
  42. data/spec/data/game.json +147 -0
  43. data/spec/data/login.json +25 -0
  44. data/spec/data/my_profile.json +556 -0
  45. data/spec/data/new_game.json +363 -0
  46. data/spec/data/profile.json +553 -0
  47. data/spec/data/question.json +14 -0
  48. data/spec/data/question_image.json +15 -0
  49. data/spec/data/search.json +123 -0
  50. data/spec/data/user.json +25 -0
  51. data/spec/game_spec.rb +60 -0
  52. data/spec/parsers/category_statistics_parser_spec.rb +41 -0
  53. data/spec/parsers/game_parser_spec.rb +114 -0
  54. data/spec/parsers/game_statistics_parser_spec.rb +56 -0
  55. data/spec/parsers/profile_parser_spec.rb +59 -0
  56. data/spec/parsers/question_parser_spec.rb +34 -0
  57. data/spec/parsers/session_parser_spec.rb +20 -0
  58. data/spec/parsers/time_parser_spec.rb +19 -0
  59. data/spec/parsers/user_parser_spec.rb +51 -0
  60. data/spec/spec_helper.rb +48 -0
  61. data/spec/user_spec.rb +33 -0
  62. data/triviacrack.gemspec +31 -0
  63. metadata +258 -0
@@ -0,0 +1,59 @@
1
+ require "spec_helper"
2
+
3
+ describe TriviaCrack::Parsers::ProfileParser do
4
+
5
+ describe ".parse" do
6
+
7
+ subject { TriviaCrack::Parsers::ProfileParser.parse raw_data }
8
+
9
+ context 'when given data from the profile API' do
10
+ let(:raw_data) { SpecData.get "profile.json" }
11
+
12
+ it { is_expected.to be_a TriviaCrack::Profile }
13
+ its(:id) { is_expected.to be 111 }
14
+ its(:is_friend) { is_expected.to be false }
15
+ its(:is_blocked) { is_expected.to be false }
16
+ its(:username) { is_expected.to eq "example" }
17
+ its(:country) { is_expected.to be :us }
18
+ its(:email) { is_expected.to eq "user@example.com" }
19
+ its(:last_play) { is_expected.to be_a Time }
20
+ its(:last_login) { is_expected.to be_a Time }
21
+ its(:games_won) { is_expected.to be 530 }
22
+ its(:games_lost) { is_expected.to be 240 }
23
+ its(:games_resigned) { is_expected.to be 0 }
24
+ its(:consecutive_games_won) { is_expected.to be 3 }
25
+ its(:consecutive_answers_correct) { is_expected.to be 0 }
26
+ its(:level) { is_expected.to be 167 }
27
+ its(:challenges_won) { is_expected.to be 35 }
28
+ its(:challenges_lost) { is_expected.to be 6 }
29
+ its('categories.count') { is_expected.to eq 6 }
30
+ its(:my_wins_vs_user) { is_expected.to be 0 }
31
+ its(:my_losses_vs_user) { is_expected.to be 1 }
32
+ end
33
+
34
+ context 'when given data from the current user profile API' do
35
+ let(:raw_data) { SpecData.get "my_profile.json" }
36
+
37
+ it { is_expected.to be_a TriviaCrack::Profile }
38
+ its(:id) { is_expected.to be 222 }
39
+ its(:is_friend) { is_expected.to be false }
40
+ its(:is_blocked) { is_expected.to be false }
41
+ its(:username) { is_expected.to eq "example2" }
42
+ its(:country) { is_expected.to be :ca }
43
+ its(:email) { is_expected.to eq "user2@example.com" }
44
+ its(:last_play) { is_expected.to be_a Time }
45
+ its(:last_login) { is_expected.to be_a Time }
46
+ its(:games_won) { is_expected.to be 37 }
47
+ its(:games_lost) { is_expected.to be 12 }
48
+ its(:games_resigned) { is_expected.to be 0 }
49
+ its(:consecutive_games_won) { is_expected.to be 0 }
50
+ its(:consecutive_answers_correct) { is_expected.to be 12 }
51
+ its(:level) { is_expected.to be 42 }
52
+ its(:challenges_won) { is_expected.to be 4 }
53
+ its(:challenges_lost) { is_expected.to be 0 }
54
+ its('categories.count') { is_expected.to eq 6 }
55
+ its(:my_wins_vs_user) { is_expected.to be nil }
56
+ its(:my_losses_vs_user) { is_expected.to be nil }
57
+ end
58
+ end
59
+ end
@@ -0,0 +1,34 @@
1
+ require "spec_helper"
2
+
3
+ describe TriviaCrack::Parsers::QuestionParser do
4
+
5
+ describe ".parse" do
6
+
7
+ subject { TriviaCrack::Parsers::QuestionParser.parse raw_data }
8
+
9
+ context 'when given data without an image' do
10
+ let(:raw_data) { SpecData.get "question.json" }
11
+
12
+ it { is_expected.to be_a TriviaCrack::Question }
13
+ its(:type) { is_expected.to be :normal }
14
+ its(:media_type) { is_expected.to be :normal }
15
+ its(:text) { is_expected.to eq "Who recorded this album?" }
16
+ its(:correct_answer) { is_expected.to be 3 }
17
+ its(:category) { is_expected.to be :entertainment }
18
+ its(:answers) { is_expected.to contain_exactly "Creedence Cleawater Revival", "Bob Marley", "blink-182", "Jimmy Hendrix" }
19
+ end
20
+
21
+ context 'when given data with an image' do
22
+ let(:raw_data) { SpecData.get "question_image.json" }
23
+
24
+ it { is_expected.to be_a TriviaCrack::Question }
25
+ its(:type) { is_expected.to be :normal }
26
+ its(:media_type) { is_expected.to be :image }
27
+ its(:text) { is_expected.to eq "Who recorded this album?" }
28
+ its(:correct_answer) { is_expected.to be 3 }
29
+ its(:category) { is_expected.to be :entertainment }
30
+ its(:image_url) { is_expected.to eq "http://qimg.preguntados.com/ENT_3028" }
31
+ its(:answers) { is_expected.to contain_exactly "Creedence Cleawater Revival", "Bob Marley", "blink-182", "Jimmy Hendrix" }
32
+ end
33
+ end
34
+ end
@@ -0,0 +1,20 @@
1
+ require "spec_helper"
2
+
3
+ describe TriviaCrack::Parsers::SessionParser do
4
+
5
+ describe ".parse" do
6
+
7
+ subject { TriviaCrack::Parsers::SessionParser.parse raw_data }
8
+
9
+ context 'when given data from the login API' do
10
+ let(:raw_data) { SpecData.get "login.json" }
11
+
12
+ it { is_expected.to be_a TriviaCrack::Session }
13
+ its(:user_id) { is_expected.to be 111 }
14
+ its(:username) { is_expected.to eq "example" }
15
+ its(:session_id) { is_expected.to eq "session123" }
16
+ its(:device_key) { is_expected.to eq "device123" }
17
+ its(:expiration) { is_expected.to be_a Time }
18
+ end
19
+ end
20
+ end
@@ -0,0 +1,19 @@
1
+ require "spec_helper"
2
+
3
+ describe TriviaCrack::Parsers::TimeParser do
4
+
5
+ describe ".parse" do
6
+
7
+ subject { TriviaCrack::Parsers::TimeParser.parse raw_data }
8
+
9
+ let(:raw_data) { "02/18/2015 00:11:33 EST" }
10
+
11
+ it { is_expected.to be_a Time }
12
+ its(:day) { is_expected.to be 18 }
13
+ its(:month) { is_expected.to be 2 }
14
+ its(:year) { is_expected.to be 2015 }
15
+ its(:hour) { is_expected.to be 0 }
16
+ its(:min) { is_expected.to be 11 }
17
+ its(:sec) { is_expected.to be 33 }
18
+ end
19
+ end
@@ -0,0 +1,51 @@
1
+ require "spec_helper"
2
+
3
+ describe TriviaCrack::Parsers::UserParser do
4
+
5
+ describe ".parse" do
6
+
7
+ subject { TriviaCrack::Parsers::UserParser.parse raw_data }
8
+
9
+ context 'when given data from the user API' do
10
+ let(:raw_data) { SpecData.get "user.json" }
11
+
12
+ it { is_expected.to be_a TriviaCrack::User }
13
+ its(:id) { is_expected.to be 111 }
14
+ its(:username) { is_expected.to eq "example" }
15
+ its(:facebook_id) { is_expected.to eq "1" }
16
+ its(:facebook_name) { is_expected.to eq "Example Name" }
17
+ its(:coins) { is_expected.to be 111 }
18
+ its(:lives) { is_expected.to be 3 }
19
+ its(:max_lives) { is_expected.to be 3 }
20
+ its(:unlimited_lives) { is_expected.to be false }
21
+ its(:country) { is_expected.to be :ca }
22
+ its(:extra_shots) { is_expected.to be 3 }
23
+ its(:level) { is_expected.to be 31 }
24
+ its(:level_points) { is_expected.to be 546 }
25
+ its(:level_progress) { is_expected.to be 63 }
26
+ its(:goal_points) { is_expected.to be 558 }
27
+ its(:level_up) { is_expected.to be false }
28
+ end
29
+
30
+ context 'when given opponent data from the game API' do
31
+ let(:raw_data) { SpecData.get("game.json")["opponent"] }
32
+
33
+ it { is_expected.to be_a TriviaCrack::User }
34
+ its(:id) { is_expected.to be 111 }
35
+ its(:username) { is_expected.to eq "example.2" }
36
+ its(:facebook_id) { is_expected.to eq "" }
37
+ its(:facebook_name) { is_expected.to be nil }
38
+ its(:coins) { is_expected.to be nil }
39
+ its(:lives) { is_expected.to be nil }
40
+ its(:max_lives) { is_expected.to be nil }
41
+ its(:unlimited_lives) { is_expected.to be nil }
42
+ its(:country) { is_expected.to be nil }
43
+ its(:extra_shots) { is_expected.to be nil }
44
+ its(:level) { is_expected.to be 116 }
45
+ its(:level_points) { is_expected.to be nil }
46
+ its(:level_progress) { is_expected.to be nil }
47
+ its(:goal_points) { is_expected.to be nil }
48
+ its(:level_up) { is_expected.to be nil }
49
+ end
50
+ end
51
+ end
@@ -0,0 +1,48 @@
1
+ require 'simplecov'
2
+ SimpleCov.start
3
+
4
+ require "json"
5
+ require "rspec/its"
6
+
7
+ require_relative "../lib/triviacrack/category_statistics"
8
+ require_relative "../lib/triviacrack/game"
9
+ require_relative "../lib/triviacrack/game_statistics"
10
+ require_relative "../lib/triviacrack/profile"
11
+ require_relative "../lib/triviacrack/question"
12
+ require_relative "../lib/triviacrack/session"
13
+ require_relative "../lib/triviacrack/user"
14
+
15
+ require_relative "../lib/triviacrack/api/client"
16
+ require_relative "../lib/triviacrack/api/game"
17
+ require_relative "../lib/triviacrack/api/login"
18
+ require_relative "../lib/triviacrack/api/profile"
19
+ require_relative "../lib/triviacrack/api/question"
20
+ require_relative "../lib/triviacrack/api/user"
21
+
22
+ require_relative "../lib/triviacrack/errors/parse_error"
23
+ require_relative "../lib/triviacrack/errors/request_error"
24
+
25
+ require_relative "../lib/triviacrack/parsers/category_statistics_parser"
26
+ require_relative "../lib/triviacrack/parsers/game_parser"
27
+ require_relative "../lib/triviacrack/parsers/game_statistics_parser"
28
+ require_relative "../lib/triviacrack/parsers/profile_parser"
29
+ require_relative "../lib/triviacrack/parsers/question_parser"
30
+ require_relative "../lib/triviacrack/parsers/session_parser"
31
+ require_relative "../lib/triviacrack/parsers/user_parser"
32
+
33
+ class SpecData
34
+
35
+ def self.get(filename)
36
+ file = File.read(File.expand_path("../data/#{filename}", __FILE__))
37
+ JSON.parse(file)
38
+ end
39
+
40
+ end
41
+
42
+ class APIStub
43
+
44
+ def initialize(session = nil)
45
+ @session = session
46
+ end
47
+
48
+ end
@@ -0,0 +1,33 @@
1
+ require_relative "spec_helper"
2
+
3
+ describe TriviaCrack::User do
4
+
5
+ let(:user_id) { 111 }
6
+ let(:user) { TriviaCrack::User.new id: user_id, lives: lives, unlimited_lives: unlimited_lives }
7
+
8
+ describe "#start_new_game?" do
9
+
10
+ subject { user.start_new_game? }
11
+
12
+ context 'when the user has one or more live' do
13
+ let(:lives) { 1 }
14
+ let(:unlimited_lives) { false }
15
+
16
+ it { is_expected.to be true }
17
+ end
18
+
19
+ context 'when the user has unlimited lives' do
20
+ let(:lives) { 0 }
21
+ let(:unlimited_lives) { true }
22
+
23
+ it { is_expected.to be true }
24
+ end
25
+
26
+ context 'when the user has no more lives' do
27
+ let(:lives) { 0 }
28
+ let(:unlimited_lives) { false }
29
+
30
+ it { is_expected.to be false }
31
+ end
32
+ end
33
+ end
@@ -0,0 +1,31 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'triviacrack/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "triviacrack"
8
+ spec.version = TriviaCrack::VERSION
9
+ spec.authors = ["David Kus"]
10
+ spec.email = ["david@kus.dk"]
11
+ spec.summary = %q{A Ruby interface to the Trivia Crack API.}
12
+ spec.description = %q{A Ruby interface to the Trivia Crack API.}
13
+ spec.homepage = "https://github.com/davidkus/triviacrack"
14
+ spec.license = "MIT"
15
+
16
+ spec.files = `git ls-files -z`.split("\x0")
17
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
18
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
+ spec.require_paths = ["lib"]
20
+
21
+ spec.add_development_dependency "bundler", "~> 1.7"
22
+ spec.add_development_dependency "simplecov", "~> 0.15.1"
23
+ spec.add_development_dependency "codeclimate-test-reporter", "~> 0.4.7"
24
+ spec.add_development_dependency "rake", "~> 10.0"
25
+ spec.add_development_dependency "rspec", "~> 3.2.0"
26
+ spec.add_development_dependency "rspec-its", "~> 1.2.0"
27
+ spec.add_development_dependency "json", "~> 2.0.0"
28
+ spec.add_development_dependency "fuubar", "~> 2.0.0"
29
+
30
+ spec.add_dependency "unirest-2x", "~> 1.1.3"
31
+ end
metadata ADDED
@@ -0,0 +1,258 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: triviacrack
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - David Kus
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2019-03-09 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.7'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.7'
27
+ - !ruby/object:Gem::Dependency
28
+ name: simplecov
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: 0.15.1
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: 0.15.1
41
+ - !ruby/object:Gem::Dependency
42
+ name: codeclimate-test-reporter
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: 0.4.7
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: 0.4.7
55
+ - !ruby/object:Gem::Dependency
56
+ name: rake
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '10.0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '10.0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: rspec
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: 3.2.0
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: 3.2.0
83
+ - !ruby/object:Gem::Dependency
84
+ name: rspec-its
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: 1.2.0
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: 1.2.0
97
+ - !ruby/object:Gem::Dependency
98
+ name: json
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: 2.0.0
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "~>"
109
+ - !ruby/object:Gem::Version
110
+ version: 2.0.0
111
+ - !ruby/object:Gem::Dependency
112
+ name: fuubar
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - "~>"
116
+ - !ruby/object:Gem::Version
117
+ version: 2.0.0
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - "~>"
123
+ - !ruby/object:Gem::Version
124
+ version: 2.0.0
125
+ - !ruby/object:Gem::Dependency
126
+ name: unirest-2x
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - "~>"
130
+ - !ruby/object:Gem::Version
131
+ version: 1.1.3
132
+ type: :runtime
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - "~>"
137
+ - !ruby/object:Gem::Version
138
+ version: 1.1.3
139
+ description: A Ruby interface to the Trivia Crack API.
140
+ email:
141
+ - david@kus.dk
142
+ executables: []
143
+ extensions: []
144
+ extra_rdoc_files: []
145
+ files:
146
+ - ".gitignore"
147
+ - ".rspec"
148
+ - ".travis.yml"
149
+ - Gemfile
150
+ - LICENSE.txt
151
+ - README.md
152
+ - Rakefile
153
+ - lib/triviacrack.rb
154
+ - lib/triviacrack/api/client.rb
155
+ - lib/triviacrack/api/common.rb
156
+ - lib/triviacrack/api/game.rb
157
+ - lib/triviacrack/api/login.rb
158
+ - lib/triviacrack/api/profile.rb
159
+ - lib/triviacrack/api/question.rb
160
+ - lib/triviacrack/api/user.rb
161
+ - lib/triviacrack/category_statistics.rb
162
+ - lib/triviacrack/errors/parse_error.rb
163
+ - lib/triviacrack/errors/request_error.rb
164
+ - lib/triviacrack/game.rb
165
+ - lib/triviacrack/game_statistics.rb
166
+ - lib/triviacrack/parsers/category_statistics_parser.rb
167
+ - lib/triviacrack/parsers/game_parser.rb
168
+ - lib/triviacrack/parsers/game_statistics_parser.rb
169
+ - lib/triviacrack/parsers/profile_parser.rb
170
+ - lib/triviacrack/parsers/question_parser.rb
171
+ - lib/triviacrack/parsers/session_parser.rb
172
+ - lib/triviacrack/parsers/time_parser.rb
173
+ - lib/triviacrack/parsers/user_parser.rb
174
+ - lib/triviacrack/profile.rb
175
+ - lib/triviacrack/question.rb
176
+ - lib/triviacrack/session.rb
177
+ - lib/triviacrack/user.rb
178
+ - lib/triviacrack/version.rb
179
+ - spec/api/game_spec.rb
180
+ - spec/api/login_spec.rb
181
+ - spec/api/profile_spec.rb
182
+ - spec/api/question_spec.rb
183
+ - spec/api/user_spec.rb
184
+ - spec/data/answer.json
185
+ - spec/data/dashboard.json
186
+ - spec/data/game.json
187
+ - spec/data/login.json
188
+ - spec/data/my_profile.json
189
+ - spec/data/new_game.json
190
+ - spec/data/profile.json
191
+ - spec/data/question.json
192
+ - spec/data/question_image.json
193
+ - spec/data/search.json
194
+ - spec/data/user.json
195
+ - spec/game_spec.rb
196
+ - spec/parsers/category_statistics_parser_spec.rb
197
+ - spec/parsers/game_parser_spec.rb
198
+ - spec/parsers/game_statistics_parser_spec.rb
199
+ - spec/parsers/profile_parser_spec.rb
200
+ - spec/parsers/question_parser_spec.rb
201
+ - spec/parsers/session_parser_spec.rb
202
+ - spec/parsers/time_parser_spec.rb
203
+ - spec/parsers/user_parser_spec.rb
204
+ - spec/spec_helper.rb
205
+ - spec/user_spec.rb
206
+ - triviacrack.gemspec
207
+ homepage: https://github.com/davidkus/triviacrack
208
+ licenses:
209
+ - MIT
210
+ metadata: {}
211
+ post_install_message:
212
+ rdoc_options: []
213
+ require_paths:
214
+ - lib
215
+ required_ruby_version: !ruby/object:Gem::Requirement
216
+ requirements:
217
+ - - ">="
218
+ - !ruby/object:Gem::Version
219
+ version: '0'
220
+ required_rubygems_version: !ruby/object:Gem::Requirement
221
+ requirements:
222
+ - - ">="
223
+ - !ruby/object:Gem::Version
224
+ version: '0'
225
+ requirements: []
226
+ rubyforge_project:
227
+ rubygems_version: 2.6.14
228
+ signing_key:
229
+ specification_version: 4
230
+ summary: A Ruby interface to the Trivia Crack API.
231
+ test_files:
232
+ - spec/api/game_spec.rb
233
+ - spec/api/login_spec.rb
234
+ - spec/api/profile_spec.rb
235
+ - spec/api/question_spec.rb
236
+ - spec/api/user_spec.rb
237
+ - spec/data/answer.json
238
+ - spec/data/dashboard.json
239
+ - spec/data/game.json
240
+ - spec/data/login.json
241
+ - spec/data/my_profile.json
242
+ - spec/data/new_game.json
243
+ - spec/data/profile.json
244
+ - spec/data/question.json
245
+ - spec/data/question_image.json
246
+ - spec/data/search.json
247
+ - spec/data/user.json
248
+ - spec/game_spec.rb
249
+ - spec/parsers/category_statistics_parser_spec.rb
250
+ - spec/parsers/game_parser_spec.rb
251
+ - spec/parsers/game_statistics_parser_spec.rb
252
+ - spec/parsers/profile_parser_spec.rb
253
+ - spec/parsers/question_parser_spec.rb
254
+ - spec/parsers/session_parser_spec.rb
255
+ - spec/parsers/time_parser_spec.rb
256
+ - spec/parsers/user_parser_spec.rb
257
+ - spec/spec_helper.rb
258
+ - spec/user_spec.rb