bookingsync-api 0.1.14 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 959a0d4f8ed8fb3e53beb473e99f628db3bae0c9d1d8529761f616b4d233f228
4
- data.tar.gz: 5ff8c46a9f97630b779d9aaf3b59dcea832838f7f9129425ce038717ffcd2ab5
3
+ metadata.gz: dfb114b36b33d06e8bd12258011fc7f239943892d3c6dd9040b5d3445c59b23d
4
+ data.tar.gz: 3463041120914e150c6b79ba8090930a480ab2e696508e3dc461abd3de884641
5
5
  SHA512:
6
- metadata.gz: 9b478ad564dd1968ec00cbc0d838f4568bd22a5cff889c733f3f75d6c2ef068f78936dde7121acc5a1b793c1c1243b77d3a08391a7803410e563cc526404bb21
7
- data.tar.gz: 40488c557277ea6f155f34863b0b9267e2515534a22a3a68ebf761c495719e56b0ae14079373277d5395c85fb4282eecea33a98e3390ad080aa8d3e017feedef
6
+ metadata.gz: 0f2dd54fc9d10886e9b6f90ea9601eabf1f34f539e27d131b7c24fb58451d585c993b8562f4fe9a6dd995a83f3b2bb97c6da19d325f3fd54678bc4c41eb545f7
7
+ data.tar.gz: 9d62cf5e48105ea7f179082c2545ce647f07a10295ab13cb0638a2668dd3bf028381830aa96ec8619295aaef8c999e9f9bcefeab6fab86c456070d4fdfdf7266
@@ -0,0 +1,25 @@
1
+ name: CI
2
+ on:
3
+ push:
4
+ branches:
5
+ - master
6
+ pull_request:
7
+ jobs:
8
+ rspec:
9
+ strategy:
10
+ fail-fast: false
11
+ matrix:
12
+ include:
13
+ - { ruby: '2.7' }
14
+ - { ruby: '3.0' }
15
+ - { ruby: '3.1' }
16
+ runs-on: ubuntu-latest
17
+ env:
18
+ BUNDLE_GEMFILE: ${{ github.workspace }}/Gemfile
19
+ steps:
20
+ - uses: actions/checkout@v2
21
+ - uses: ruby/setup-ruby@v1
22
+ with:
23
+ ruby-version: ${{ matrix.ruby }}
24
+ bundler-cache: true
25
+ - run: bundle exec rspec
data/CHANGELOG.md CHANGED
@@ -2,6 +2,15 @@
2
2
 
3
3
  # master
4
4
 
5
+ ## 1.0.0
6
+
7
+ - Drop support for ruby prior to 2.7
8
+ - Add support for ruby 3.0 and 3.1
9
+ - Update and lock faraday at `~> 2`
10
+
11
+ ## 0.2.0 - 2022-01-10
12
+ - upgrade net-http-persistent to be ruby 3 ready
13
+
5
14
  ## 0.1.14 - 2019-10-15
6
15
  - Add supports for `rental_urls` endpoint.
7
16
 
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- [![Build Status](https://travis-ci.org/BookingSync/bookingsync-api.png?branch=master)](https://travis-ci.org/BookingSync/bookingsync-api)
1
+ [![Build Status](https://github.com/BookingSync/bookingsync-api/actions/workflows/ci.yml/badge.svg?branch=master)](https://github.com/BookingSync/bookingsync-api/actions/workflows/ci.yml)
2
2
  [![Code Climate](https://codeclimate.com/github/BookingSync/bookingsync-api.png)](https://codeclimate.com/github/BookingSync/bookingsync-api)
3
3
 
4
4
  # BookingSync::API
@@ -18,8 +18,9 @@ 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.add_dependency "faraday", ">= 0.15.2"
22
- spec.add_dependency "net-http-persistent", "~> 3"
21
+ spec.add_dependency "faraday", "~> 2"
22
+ spec.add_dependency "faraday-net_http_persistent", ">= 2.0.2"
23
+ spec.add_dependency "net-http-persistent", [">= 4.0.1", "< 5.0"]
23
24
  spec.add_dependency "hashie"
24
25
  spec.add_dependency "addressable"
25
26
  spec.add_development_dependency "bundler"
@@ -129,7 +129,7 @@ module BookingSync::API
129
129
  @instrumenter = options[:instrumenter] || NoopInstrumenter
130
130
  @base_url = options[:base_url]
131
131
  @serializer = Serializer.new
132
- @conn = Faraday.new(faraday_options)
132
+ @conn = build_connection
133
133
  @conn.headers[:accept] = MEDIA_TYPE
134
134
  @conn.headers[:content_type] = MEDIA_TYPE
135
135
  @conn.headers[:user_agent] = user_agent
@@ -306,15 +306,15 @@ module BookingSync::API
306
306
 
307
307
  private
308
308
 
309
- def middleware
310
- Faraday::RackBuilder.new do |builder|
311
- builder.use :logger, logger
312
- builder.adapter :net_http_persistent
309
+ def build_connection
310
+ Faraday.new(**faraday_options) do |f|
311
+ f.use :logger, logger
312
+ f.adapter :net_http_persistent
313
313
  end
314
314
  end
315
315
 
316
316
  def faraday_options
317
- { builder: middleware, ssl: { verify: verify_ssl? } }
317
+ { ssl: { verify: verify_ssl? } }
318
318
  end
319
319
 
320
320
  # Return BookingSync base URL. Default is https://www.bookingsync.com
@@ -1,5 +1,5 @@
1
1
  module BookingSync
2
2
  module API
3
- VERSION = "0.1.14"
3
+ VERSION = "1.0.0"
4
4
  end
5
5
  end
@@ -1,4 +1,5 @@
1
1
  require "faraday"
2
+ require "faraday/net_http_persistent"
2
3
  require "bookingsync/api/version"
3
4
  require "bookingsync/api/client"
4
5
 
metadata CHANGED
@@ -1,43 +1,63 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bookingsync-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.14
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sébastien Grosjean
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-10-21 00:00:00.000000000 Z
11
+ date: 2022-12-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '2'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '2'
27
+ - !ruby/object:Gem::Dependency
28
+ name: faraday-net_http_persistent
15
29
  requirement: !ruby/object:Gem::Requirement
16
30
  requirements:
17
31
  - - ">="
18
32
  - !ruby/object:Gem::Version
19
- version: 0.15.2
33
+ version: 2.0.2
20
34
  type: :runtime
21
35
  prerelease: false
22
36
  version_requirements: !ruby/object:Gem::Requirement
23
37
  requirements:
24
38
  - - ">="
25
39
  - !ruby/object:Gem::Version
26
- version: 0.15.2
40
+ version: 2.0.2
27
41
  - !ruby/object:Gem::Dependency
28
42
  name: net-http-persistent
29
43
  requirement: !ruby/object:Gem::Requirement
30
44
  requirements:
31
- - - "~>"
45
+ - - ">="
32
46
  - !ruby/object:Gem::Version
33
- version: '3'
47
+ version: 4.0.1
48
+ - - "<"
49
+ - !ruby/object:Gem::Version
50
+ version: '5.0'
34
51
  type: :runtime
35
52
  prerelease: false
36
53
  version_requirements: !ruby/object:Gem::Requirement
37
54
  requirements:
38
- - - "~>"
55
+ - - ">="
56
+ - !ruby/object:Gem::Version
57
+ version: 4.0.1
58
+ - - "<"
39
59
  - !ruby/object:Gem::Version
40
- version: '3'
60
+ version: '5.0'
41
61
  - !ruby/object:Gem::Dependency
42
62
  name: hashie
43
63
  requirement: !ruby/object:Gem::Requirement
@@ -115,9 +135,9 @@ executables: []
115
135
  extensions: []
116
136
  extra_rdoc_files: []
117
137
  files:
138
+ - ".github/workflows/ci.yml"
118
139
  - ".gitignore"
119
140
  - ".rspec"
120
- - ".travis.yml"
121
141
  - CHANGELOG.md
122
142
  - Gemfile
123
143
  - Guardfile
@@ -454,7 +474,7 @@ homepage: https://github.com/BookingSync/bookingsync-api
454
474
  licenses:
455
475
  - MIT
456
476
  metadata: {}
457
- post_install_message:
477
+ post_install_message:
458
478
  rdoc_options: []
459
479
  require_paths:
460
480
  - lib
@@ -469,8 +489,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
469
489
  - !ruby/object:Gem::Version
470
490
  version: '0'
471
491
  requirements: []
472
- rubygems_version: 3.0.6
473
- signing_key:
492
+ rubygems_version: 3.3.7
493
+ signing_key:
474
494
  specification_version: 4
475
495
  summary: Ruby interface for accessing https://www.bookingsync.com
476
496
  test_files:
data/.travis.yml DELETED
@@ -1,11 +0,0 @@
1
- language: ruby
2
- rvm:
3
- - "2.1"
4
- - "2.2"
5
- - "2.4.4"
6
- - "2.5.1"
7
- before_install:
8
- - gem install bundler -v 1.12.5
9
- script:
10
- - bundle exec rake style:rubocop:without_auto_correct
11
- - bundle exec rake spec