triviacrack 0.3.0 → 0.3.2

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 92b5c77a56e170172762ed6a3c145743b913128803db0980fe500d23f355dfc8
4
- data.tar.gz: 64e7b4d9ca31159378e038bcd5892a8caed86f053ad0550ac026d1d74ca6bad8
3
+ metadata.gz: 1fb67144378010ccdb7d4f1c3827dcc632edf3947de9303428778ddd906196f0
4
+ data.tar.gz: e25ada0b08a6a906e992e449b6d269ccd04253deb77a573b1d907c26ffd4506c
5
5
  SHA512:
6
- metadata.gz: 5ab48a4eb4d28486d4a898bea402ece598b3643e0dad5ca2f19eddc35bbadf3a7aac55ac181d21949a88ea0bb18ccfeb9064ee63eb5231247c46f06e8cd94f15
7
- data.tar.gz: ca05c593330b0b7ddad16214c3bedc8c3e211d0eba02004f17447832f09ae083fe5117e151fab833818b872e358bc350e3634c61ccb4e67fa63881542469df97
6
+ metadata.gz: 662f27c81247ce6b788e03727585cfb8af826e54afd93b17f38b813a684029935a2e5b276ab0b30bf8040bf9701400a843a00a6ef57bd991f1849cf9693efabb
7
+ data.tar.gz: e687e13f2c5c1f03859de4e48c484f24bbb708520f3b1f76128531635298337f36ea3fe1ddd77c9aff4165b10e74b3fa51f9a45e2959db3d1fff8b1c6a9bdb97
@@ -0,0 +1,40 @@
1
+ name: Publish
2
+
3
+ on:
4
+ push:
5
+ tags:
6
+ - 'v*'
7
+
8
+ jobs:
9
+ build:
10
+ runs-on: ubuntu-latest
11
+
12
+ steps:
13
+ - uses: actions/checkout@v1
14
+
15
+ - uses: actions/setup-ruby@v1
16
+ with:
17
+ ruby-version: 2.6.5
18
+
19
+ - name: Bundle Install
20
+ run: |
21
+ gem install bundler
22
+ bundle install --jobs 4 --retry 3
23
+
24
+ - name: Run RSpec and Code Coverage
25
+ uses: paambaati/codeclimate-action@v2.4.0
26
+ env:
27
+ CC_TEST_REPORTER_ID: 79d8e81f3c0ccfce30d983b4454d2f042d2883fa64b23527c3a94587930b37be
28
+ with:
29
+ coverageCommand: bundle exec rspec
30
+
31
+ - name: Publish to RubyGems
32
+ run: |
33
+ mkdir -p $HOME/.gem
34
+ touch $HOME/.gem/credentials
35
+ chmod 0600 $HOME/.gem/credentials
36
+ printf -- "---\n:rubygems_api_key: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
37
+ gem build *.gemspec
38
+ gem push *.gem
39
+ env:
40
+ GEM_HOST_API_KEY: ${{secrets.RUBYGEMS_API_KEY}}
data/.gitignore CHANGED
@@ -1,6 +1,5 @@
1
1
  /.bundle/
2
2
  /.yardoc
3
- /Gemfile.lock
4
3
  /_yardoc/
5
4
  /coverage/
6
5
  /doc/
@@ -12,3 +11,4 @@
12
11
  *.o
13
12
  *.a
14
13
  mkmf.log
14
+ *.gem
data/Gemfile.lock ADDED
@@ -0,0 +1,78 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ triviacrack (0.3.2)
5
+ unirest-2x (~> 1.1.3)
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ addressable (2.7.0)
11
+ public_suffix (>= 2.0.2, < 5.0)
12
+ diff-lcs (1.3)
13
+ docile (1.3.2)
14
+ domain_name (0.5.20190701)
15
+ unf (>= 0.0.5, < 1.0.0)
16
+ fuubar (2.5.0)
17
+ rspec-core (~> 3.0)
18
+ ruby-progressbar (~> 1.4)
19
+ http-accept (1.7.0)
20
+ http-cookie (1.0.3)
21
+ domain_name (~> 0.5)
22
+ json (2.3.0)
23
+ mime-types (3.3.1)
24
+ mime-types-data (~> 3.2015)
25
+ mime-types-data (3.2019.1009)
26
+ netrc (0.11.0)
27
+ public_suffix (4.0.3)
28
+ rake (13.0.1)
29
+ rest-client (2.1.0)
30
+ http-accept (>= 1.7.0, < 2.0)
31
+ http-cookie (>= 1.0.2, < 2.0)
32
+ mime-types (>= 1.16, < 4.0)
33
+ netrc (~> 0.8)
34
+ rspec (3.9.0)
35
+ rspec-core (~> 3.9.0)
36
+ rspec-expectations (~> 3.9.0)
37
+ rspec-mocks (~> 3.9.0)
38
+ rspec-core (3.9.1)
39
+ rspec-support (~> 3.9.1)
40
+ rspec-expectations (3.9.0)
41
+ diff-lcs (>= 1.2.0, < 2.0)
42
+ rspec-support (~> 3.9.0)
43
+ rspec-its (1.3.0)
44
+ rspec-core (>= 3.0.0)
45
+ rspec-expectations (>= 3.0.0)
46
+ rspec-mocks (3.9.1)
47
+ diff-lcs (>= 1.2.0, < 2.0)
48
+ rspec-support (~> 3.9.0)
49
+ rspec-support (3.9.2)
50
+ ruby-progressbar (1.10.1)
51
+ simplecov (0.17.1)
52
+ docile (~> 1.1)
53
+ json (>= 1.8, < 3)
54
+ simplecov-html (~> 0.10.0)
55
+ simplecov-html (0.10.2)
56
+ unf (0.1.4)
57
+ unf_ext
58
+ unf_ext (0.0.7.6)
59
+ unirest-2x (1.1.3)
60
+ addressable (~> 2.4)
61
+ json (~> 2.0)
62
+ rest-client (~> 2.0)
63
+
64
+ PLATFORMS
65
+ ruby
66
+
67
+ DEPENDENCIES
68
+ bundler (~> 2.1.4)
69
+ fuubar (~> 2.5.0)
70
+ json (~> 2.3.0)
71
+ rake (~> 13.0.1)
72
+ rspec (~> 3.9.0)
73
+ rspec-its (~> 1.3.0)
74
+ simplecov (~> 0.17.1)
75
+ triviacrack!
76
+
77
+ BUNDLED WITH
78
+ 2.1.4
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Triviacrack ![CI](https://github.com/davidkus/triviacrack/workflows/CI/badge.svg) [![Code Climate](https://codeclimate.com/github/davidkus/triviacrack/badges/gpa.svg)](https://codeclimate.com/github/davidkus/triviacrack) [![Test Coverage](https://codeclimate.com/github/davidkus/triviacrack/badges/coverage.svg)](https://codeclimate.com/github/davidkus/triviacrack)
1
+ # Triviacrack [![Gem Version](https://badge.fury.io/rb/triviacrack.svg)](https://badge.fury.io/rb/triviacrack) ![CI](https://github.com/davidkus/triviacrack/workflows/CI/badge.svg) [![Code Climate](https://codeclimate.com/github/davidkus/triviacrack/badges/gpa.svg)](https://codeclimate.com/github/davidkus/triviacrack) [![Test Coverage](https://codeclimate.com/github/davidkus/triviacrack/badges/coverage.svg)](https://codeclimate.com/github/davidkus/triviacrack)
2
2
 
3
3
  A Ruby interface for the Trivia Crack API.
4
4
 
@@ -21,6 +21,7 @@ module TriviaCrack
21
21
  def initialize(code, url, body)
22
22
  @code = code
23
23
  @url = url
24
+ @body = body
24
25
  end
25
26
  end
26
27
  end
@@ -1,4 +1,4 @@
1
1
  # Public: The version of this gem.
2
2
  module TriviaCrack
3
- VERSION = "0.3.0"
3
+ VERSION = "0.3.2"
4
4
  end
data/triviacrack.gemspec CHANGED
@@ -18,6 +18,8 @@ Gem::Specification.new do |spec|
18
18
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
19
  spec.require_paths = ["lib"]
20
20
 
21
+ spec.required_ruby_version = ">= 2.0"
22
+
21
23
  spec.add_development_dependency "bundler", "~> 2.1.4"
22
24
  spec.add_development_dependency "simplecov", "~> 0.17.1"
23
25
  spec.add_development_dependency "rake", "~> 13.0.1"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: triviacrack
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Kus
@@ -130,9 +130,11 @@ extensions: []
130
130
  extra_rdoc_files: []
131
131
  files:
132
132
  - ".github/workflows/ci.yml"
133
+ - ".github/workflows/publish.yml"
133
134
  - ".gitignore"
134
135
  - ".rspec"
135
136
  - Gemfile
137
+ - Gemfile.lock
136
138
  - LICENSE.txt
137
139
  - README.md
138
140
  - Rakefile
@@ -202,14 +204,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
202
204
  requirements:
203
205
  - - ">="
204
206
  - !ruby/object:Gem::Version
205
- version: '0'
207
+ version: '2.0'
206
208
  required_rubygems_version: !ruby/object:Gem::Requirement
207
209
  requirements:
208
210
  - - ">="
209
211
  - !ruby/object:Gem::Version
210
212
  version: '0'
211
213
  requirements: []
212
- rubygems_version: 3.0.6
214
+ rubygems_version: 3.0.3
213
215
  signing_key:
214
216
  specification_version: 4
215
217
  summary: A Ruby interface to the Trivia Crack API.