teamsnap_rb 2.4.1 → 2.4.3

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: 6fbca6744cf4df365333701761163227baf9f0f107dc9e298d5f9f4425706c79
4
- data.tar.gz: f3aec6dd2267e6671663bff42d99374092a5c56cd6a4de080e0b2f35ccca12b3
3
+ metadata.gz: b5643de2cbb83d7b115672cc38e0f010c2899d01a244d9f6e5e05b58b8270da2
4
+ data.tar.gz: 206fa804624ef7bd470d269063bf13d7d4546f629c6873e2044ac70954a59cbf
5
5
  SHA512:
6
- metadata.gz: b0f5e383be08e15ac2647c8f01d0acda0ffa117e8e6c9e956dfbdeef8755d15e5f12052545b1065e7203e41245a4418c8d53428ad584b77dedd04e7935373bdb
7
- data.tar.gz: 192d4fd2b66a99a4927090199cc82a2634cbd42a28f72aee3dc91256957b1235f24472d7816e1bad489d97199525885791ebd7e281ffaaf1c3a24dbf50a5e66c
6
+ metadata.gz: 86e3e2edda89177e80bc4c078a26923f8b818c1b333e1a40216366f4dac3106f1e838ed1b62b6f3b47267b02d18384a7a54932bf1068f1971364354cc4bbc9d9
7
+ data.tar.gz: a08ac17ec69b19ed92eda8c10fd9f7207e9d2c616a6194afa0ac97daecd5d41adee26abf914ae0b975ab14f3be4e8d27380e1ea0d0671bb1c0b851d7b48e3b4f
@@ -0,0 +1,25 @@
1
+ name: CI
2
+
3
+ on:
4
+ push:
5
+ branches: [ master ]
6
+ pull_request:
7
+ branches: [ master ]
8
+
9
+ jobs:
10
+ test:
11
+ runs-on: ubuntu-latest
12
+ strategy:
13
+ fail-fast: false
14
+ matrix:
15
+ ruby: [ '2.3.8', '2.4.10', '2.5.8', '2.6.6' ]
16
+ max-parallel: 1
17
+
18
+ steps:
19
+ - uses: actions/checkout@v3
20
+ - name: Set up Ruby
21
+ uses: ruby/setup-ruby@v1
22
+ with:
23
+ ruby-version: ${{ matrix.ruby }}
24
+ bundler-cache: true
25
+ - run: bundle exec rspec
@@ -0,0 +1,18 @@
1
+ ---
2
+ classification: lib
3
+ production:
4
+ tier: 1
5
+ url:
6
+ hosting_platform:
7
+ performance_monitoring: []
8
+ error_monitoring: []
9
+ continuous_integration:
10
+ - name: github_actions
11
+ reference_id: ci.yml
12
+ bug_tracking: []
13
+ documentation: []
14
+ deployment: []
15
+ languages:
16
+ - name: Ruby
17
+ version: 2.5.8
18
+ frameworks: []
data/CHANGELOG.md CHANGED
@@ -112,3 +112,13 @@ v2.0.0
112
112
  - Fix bug with json gem not parsing empty resopnse body
113
113
  - Fix bug with OpenSSL on Ruby 2.5+
114
114
  - Fix deprecation on ::Fixnum constant
115
+
116
+ [v2.4.2](https://github.com/teamsnap/teamsnap_rb/pull/118)
117
+ ------
118
+
119
+ - fix: strip /v3 prefix for compatibility for k8s internal ingress
120
+
121
+ [v2.4.2](https://github.com/teamsnap/teamsnap_rb/pull/118)
122
+ ------
123
+
124
+ - fix: strip /v3 prefix for compatibility for k8s internal ingress on #client_send
data/CODEOWNERS ADDED
@@ -0,0 +1 @@
1
+ * @teamsnap/ruby
data/Gemfile CHANGED
@@ -4,6 +4,5 @@ gem "pry", :require => false
4
4
  gem "rack-test", "0.7.0", :require => false
5
5
  gem "rack", ">= 1.6.11", :require => false
6
6
  gem "awesome_print"
7
- gem "json", "1.8.6"
8
7
 
9
8
  gemspec
data/README.md CHANGED
@@ -1,14 +1,13 @@
1
1
  # teamsnap_rb
2
2
 
3
- [![Quality](http://img.shields.io/codeclimate/github/teamsnap/teamsnap_rb.svg)](https://codeclimate.com/github/teamsnap/teamsnap_rb)
4
- [![Build](http://img.shields.io/travis-ci/teamsnap/teamsnap_rb.svg)](https://travis-ci.org/teamsnap/teamsnap_rb)
5
- [![Version](http://img.shields.io/gem/v/teamsnap_rb.svg)](https://rubygems.org/gems/teamsnap_rb)
6
- [![License](http://img.shields.io/badge/license-MIT-blue.svg)](http://opensource.org/licenses/MIT)
3
+ ![CI](https://github.com/teamsnap/teamsnap_rb/workflows/CI/badge.svg)
4
+ [![Gem Version](https://badge.fury.io/rb/teamsnap_rb.svg)](https://badge.fury.io/rb/teamsnap_rb)
5
+ [![License](https://img.shields.io/badge/license-MIT-blue.svg)](https://opensource.org/licenses/MIT)
7
6
 
8
7
  ## Usage
9
8
 
10
9
  _Note: You'll need an OAuth2 Token from TeamSnap. Checkout our API docs
11
- [here](http://developer.teamsnap.com/documentation/apiv3/)_
10
+ [here](http://developer.teamsnap.com/apiv3/)_
12
11
 
13
12
  λ gem install teamsnap_rb
14
13
  λ irb
@@ -1,3 +1,5 @@
1
+ require 'json'
2
+
1
3
  module TeamSnap
2
4
  class Response
3
5
 
@@ -10,7 +10,7 @@ module TeamSnap
10
10
  .find { |link| link[:rel] == "schemas" } || {}
11
11
 
12
12
  if schema[:href]
13
- resp = client.get(schema[:href])
13
+ resp = client.get(schema[:href].gsub("/v3",""))
14
14
  classes = setup_model_classes(collection, resp)
15
15
  else
16
16
  client.in_parallel do
@@ -1,3 +1,3 @@
1
1
  module TeamSnap
2
- VERSION = "2.4.1"
2
+ VERSION = "2.4.3"
3
3
  end
data/lib/teamsnap.rb CHANGED
@@ -77,9 +77,9 @@ module TeamSnap
77
77
  def client_send(client, via, href, args)
78
78
  case via
79
79
  when :get, :delete
80
- client.send(via, href, args)
80
+ client.send(via, href.gsub("/v3", ""), args)
81
81
  when :patch, :post
82
- client.send(via, href) do |req|
82
+ client.send(via, href.gsub("/v3", "")) do |req|
83
83
  if use_multipart?(args)
84
84
  req.body = args
85
85
  else
data/teamsnap_rb.gemspec CHANGED
@@ -20,7 +20,7 @@ Gem::Specification.new do |spec|
20
20
  spec.require_paths = ["lib"]
21
21
 
22
22
  spec.add_development_dependency "rake"
23
- spec.add_development_dependency "bundler", "~> 1.17"
23
+ spec.add_development_dependency "bundler", ">= 1.17.3"
24
24
  spec.add_development_dependency "rspec", "~> 3.9"
25
25
  spec.add_development_dependency "vcr", "~> 5.0"
26
26
 
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: teamsnap_rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.4.1
4
+ version: 2.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shane Emmons
8
8
  - Kyle Ries
9
- autorequire:
9
+ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2020-05-22 00:00:00.000000000 Z
12
+ date: 2022-09-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake
@@ -29,16 +29,16 @@ dependencies:
29
29
  name: bundler
30
30
  requirement: !ruby/object:Gem::Requirement
31
31
  requirements:
32
- - - "~>"
32
+ - - ">="
33
33
  - !ruby/object:Gem::Version
34
- version: '1.17'
34
+ version: 1.17.3
35
35
  type: :development
36
36
  prerelease: false
37
37
  version_requirements: !ruby/object:Gem::Requirement
38
38
  requirements:
39
- - - "~>"
39
+ - - ">="
40
40
  - !ruby/object:Gem::Version
41
- version: '1.17'
41
+ version: 1.17.3
42
42
  - !ruby/object:Gem::Dependency
43
43
  name: rspec
44
44
  requirement: !ruby/object:Gem::Requirement
@@ -143,9 +143,11 @@ extensions: []
143
143
  extra_rdoc_files: []
144
144
  files:
145
145
  - ".github/stale.yml"
146
+ - ".github/workflows/ci.yml"
146
147
  - ".gitignore"
147
- - ".travis.yml"
148
+ - ".teamsnap/service.yml"
148
149
  - CHANGELOG.md
150
+ - CODEOWNERS
149
151
  - Gemfile
150
152
  - LICENSE
151
153
  - README.md
@@ -212,7 +214,7 @@ homepage: https://developer.teamsnap.com/
212
214
  licenses:
213
215
  - MIT
214
216
  metadata: {}
215
- post_install_message:
217
+ post_install_message:
216
218
  rdoc_options: []
217
219
  require_paths:
218
220
  - lib
@@ -227,8 +229,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
227
229
  - !ruby/object:Gem::Version
228
230
  version: '0'
229
231
  requirements: []
230
- rubygems_version: 3.1.3
231
- signing_key:
232
+ rubygems_version: 3.2.22
233
+ signing_key:
232
234
  specification_version: 4
233
235
  summary: A gem to interact with TeamSnap's API
234
236
  test_files:
data/.travis.yml DELETED
@@ -1,9 +0,0 @@
1
- language: ruby
2
- before_install:
3
- - gem install bundler -v 1.17.3
4
- script: bundle exec rspec spec
5
- rvm:
6
- - 2.3.8
7
- - 2.4.10
8
- - 2.5.8
9
- - 2.6.6