tenios-api 0.4.0 → 1.0.4

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: 9b0911331d2acc593d17afe8263e9955e9b0e7ce82d632b09c5d9586a23eff13
4
- data.tar.gz: 7d2d7ca7ec66d8b21a0ffda096a293a1e1305b7e6824300515741ba5f032d1eb
3
+ metadata.gz: e8aa0574c923bd0066e63b64961da1f91975fc86ade232e5d4031b16e8ec6cf3
4
+ data.tar.gz: 2f142ff19d031cddbd1cae1e26ed43782434aa8b61992bf545cf6d43a30888fb
5
5
  SHA512:
6
- metadata.gz: 02334eb4c0304b31227505016987ac23a42f2ac66610c8799d26dfe6ec7abb4231310c700447b85294ab22afba07473802561ab9e06aeeb5357cea7ecebe818f
7
- data.tar.gz: 9dc6a38fd7dea49f3686ba45dc3ca09946bfdf1ec9f8353b9158b57dd8b1706604705ad0abfedc4468927f8397f041c096dbb7a991734783291c4765c9564b3a
6
+ metadata.gz: dbcb9285c1f2904744c15abae015103536ce0d3c51adbb9348771239ac3f53e4645d87b774011882c830e111d0cbfc549375ea11e7b799e8ef18b77ad2325965
7
+ data.tar.gz: 4af860c36f24b017f3c67b3f1f158e5604363d472211d07bcd8343e64e680c1bc59f4d0e697423a6ecc31e3b767c929c9c1d0448e8afba23163ebf64810e8dc0
data/.circleci/config.yml CHANGED
@@ -1,54 +1,36 @@
1
- ruby: &ruby
2
- image: carwow/ruby-ci:2.6
3
-
4
- version: 2
1
+ version: 2.1
5
2
 
6
3
  jobs:
7
- bundle:
8
- working_directory: ~/tenios-api
4
+ test:
5
+ parameters:
6
+ ruby_version:
7
+ type: string
9
8
  docker:
10
- - *ruby
9
+ - image: cimg/ruby:<< parameters.ruby_version >>
11
10
  steps:
12
11
  - checkout
13
12
  - restore_cache:
14
13
  keys:
15
- - bundle-{{ checksum "Gemfile.lock" }}
16
- - bundle-
17
- - run: |
18
- bundle config --local path vendor/bundle &&
19
- bundle check || bundle install --jobs=4 --retry=3
14
+ - bundle-ruby-<< parameters.ruby_version >>-{{ checksum "tenios-api.gemspec" }}
15
+ - bundle-ruby-<< parameters.ruby_version >>
16
+ - run:
17
+ name: bundle update
18
+ command: |
19
+ bundle config --local path vendor/bundle
20
+ bundle update --jobs=4 --retry=3
21
+ bundle clean --force
20
22
  - save_cache:
21
- key: bundle-{{ checksum "Gemfile.lock" }}
22
- paths: [~/tenios-api/vendor/bundle]
23
- - persist_to_workspace:
24
- root: '~'
25
- paths: [tenios-api]
26
-
27
- rubocop:
28
- working_directory: ~/tenios-api
29
- docker:
30
- - *ruby
31
- steps:
32
- - attach_workspace:
33
- at: '~'
34
- - run: bundle exec rubocop
35
-
36
- tests:
37
- working_directory: ~/tenios-api
38
- docker:
39
- - *ruby
40
- steps:
41
- - attach_workspace:
42
- at: '~'
43
- - run: |
44
- bundle exec rspec
23
+ key: bundle-ruby-<< parameters.ruby_version >>-{{ checksum "tenios-api.gemspec" }}
24
+ paths: [~/project/vendor/bundle]
25
+ - run: bundle exec rake
45
26
 
46
27
  workflows:
47
28
  version: 2
48
- build:
29
+ test:
49
30
  jobs:
50
- - bundle
51
- - rubocop:
52
- requires: [bundle]
53
- - tests:
54
- requires: [bundle]
31
+ - test:
32
+ matrix:
33
+ parameters:
34
+ ruby_version:
35
+ - "2.7"
36
+ - "3.0"
data/.gitignore CHANGED
@@ -6,6 +6,7 @@
6
6
  /pkg/
7
7
  /spec/reports/
8
8
  /tmp/
9
+ /Gemfile.lock
9
10
 
10
11
  # rspec failure tracking
11
12
  .rspec_status
data/CHANGELOG.md ADDED
@@ -0,0 +1,55 @@
1
+ ## [Unreleased]
2
+
3
+ ### Added
4
+ ### Changed
5
+ ### Deprecated
6
+ ### Removed
7
+ ### Fixed
8
+ ### Security
9
+ ### Misc
10
+
11
+ ## [1.0.4] - 2020-02-22
12
+
13
+ ### Fixed
14
+
15
+ * Relax faraday version constraint
16
+
17
+ [1.0.4]: https://github.com/carwow/tenios-api-ruby/compare/v1.0.3...v1.0.4
18
+
19
+ ## [1.0.3] - 2020-02-16
20
+
21
+ ### Misc
22
+
23
+ * Better gem description
24
+ * Drop zeitwerk (ran into some issues in a Rails app 😕)
25
+
26
+ [1.0.3]: https://github.com/carwow/tenios-api-ruby/compare/v1.0.2...v1.0.3
27
+
28
+ ## [1.0.2] - 2020-02-13
29
+
30
+ ### Misc
31
+
32
+ * Fix gemspec links
33
+
34
+ [1.0.2]: https://github.com/carwow/tenios-api-ruby/compare/v1.0.1...v1.0.2
35
+
36
+ ## [1.0.1] - 2020-02-13
37
+
38
+ ### Added
39
+
40
+ * Ruby 3.0 support
41
+
42
+ [1.0.1]: https://github.com/carwow/tenios-api-ruby/compare/v1.0.0...v1.0.1
43
+
44
+ ## [1.0.0] - 2020-02-12
45
+
46
+ ### Changed
47
+
48
+ * Tenios API URL is now https://api.tenios.com
49
+ * Ruby ~> 2.7 support
50
+
51
+ ### Misc
52
+
53
+ * Internal refactoring (no breaking changes)
54
+
55
+ [1.0.0]: https://github.com/carwow/tenios-api-ruby/compare/v0.4.0...v1.0.0
data/Gemfile CHANGED
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- source 'https://rubygems.org'
3
+ source "https://rubygems.org"
4
4
 
5
5
  # Specify your gem's dependencies in tenios-api.gemspec
6
6
  gemspec
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Tenios API Client ☎️
2
2
 
3
- HTTP client for [Tenios API].
3
+ Ruby client for [Tenios API].
4
4
 
5
5
  [Tenios API]: https://www.tenios.de/doc-topic/voice-api
6
6
 
@@ -24,8 +24,10 @@ client = Tenios::API::Client.new(access_key: ENV['TENIOS_ACCESS_KEY'])
24
24
 
25
25
  [Tenios documentation](https://www.tenios.de/en/doc/api-cdr-request)
26
26
 
27
+ #### Retrive
28
+
27
29
  ```ruby
28
- client.cdrs.retrieve(Time.utc(2019, 2, 1)..Time.utc(2019, 2, 2))
30
+ client.call_detail_records.retrieve(Time.utc(2019, 2, 1)..Time.utc(2019, 2, 2))
29
31
  # returns lazy Enumerator with the records
30
32
  ```
31
33
 
@@ -33,12 +35,46 @@ client.cdrs.retrieve(Time.utc(2019, 2, 1)..Time.utc(2019, 2, 2))
33
35
 
34
36
  [Tenios documentation](https://www.tenios.de/en/doc/api-number-order)
35
37
 
38
+ #### Verification
39
+
36
40
  ```ruby
37
41
  # check Tenios documentation for verification options
38
42
  verification_id = client.verification.create(options)['verification_id']
43
+ ```
44
+
45
+ #### Order
46
+
47
+ ```ruby
39
48
  order_id = client.number.order(verification_id: verification_id)['order_id']
40
49
  ```
41
50
 
51
+ #### Cancel
52
+
53
+ ```ruby
54
+ client.number.cancel(phone_number: '+49888888')
55
+ ```
56
+
57
+ ### Record Call
58
+
59
+ [Tenios documentation](https://www.tenios.de/en/doc/api-call-recording)
60
+
61
+ #### Start
62
+
63
+ ```ruby
64
+ recording_uuid = client.record_call.start(
65
+ call_uuid: '9315b018-86bd-424f-a086-7095ce427130'
66
+ )['recording_uuid']
67
+ ```
68
+
69
+ #### Stop
70
+
71
+ ```ruby
72
+ client.record_call.stop(
73
+ call_uuid: '9315b018-86bd-424f-a086-7095ce427130',
74
+ recording_uuid: recording_uuid
75
+ )
76
+ ```
77
+
42
78
  ## Contributing
43
79
 
44
80
  Bug reports and pull requests are welcome on GitHub at https://github.com/carwow/tenios-api-ruby.
data/Rakefile CHANGED
@@ -1,6 +1,9 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require "bundler/gem_tasks"
2
4
  require "rspec/core/rake_task"
5
+ require "standard/rake"
3
6
 
4
7
  RSpec::Core::RakeTask.new(:spec)
5
8
 
6
- task :default => :spec
9
+ task default: [:spec, :standard]
data/bin/console CHANGED
@@ -1,10 +1,7 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- lib = File.expand_path("../lib", __dir__)
4
- $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
-
6
3
  require "bundler/setup"
7
- require "tenios/api"
4
+ require "tenios-api"
8
5
  require "pry"
9
6
 
10
7
  Pry.start
data/lib/tenios-api.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'tenios/api'
3
+ require "tenios/api"
data/lib/tenios/api.rb CHANGED
@@ -1,9 +1,9 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'tenios/api/client'
3
+ require "tenios/api/client"
4
4
 
5
5
  module Tenios
6
6
  module API
7
- autoload :Version, 'tenios/api/version'
7
+ autoload :VERSION, "tenios/api/version"
8
8
  end
9
9
  end
@@ -12,7 +12,7 @@ module Tenios
12
12
  def retrieve(date_range, page_size: 100)
13
13
  stream do |page|
14
14
  payload = build_payload(date_range, page: page, page_size: page_size)
15
- client.http_client.post('/cdrs/retrieve', payload).body
15
+ client.post("/cdrs/retrieve", payload)
16
16
  end
17
17
  end
18
18
 
@@ -22,7 +22,6 @@ module Tenios
22
22
  expect_date_range! date_range
23
23
 
24
24
  {
25
- access_key: client.access_key,
26
25
  start_date_from: format_datetime(date_range.begin),
27
26
  start_date_to: format_datetime(date_range.end),
28
27
  page: page,
@@ -39,17 +38,17 @@ module Tenios
39
38
  end
40
39
 
41
40
  def format_datetime(time)
42
- time.utc.strftime('%FT%H:%M:%S.0Z')
41
+ time.utc.strftime("%FT%H:%M:%S.0Z")
43
42
  end
44
43
 
45
44
  def stream
46
- Enumerator.new do |records|
45
+ Enumerator.new { |records|
47
46
  (1..Float::INFINITY).each do |page|
48
47
  res = yield page
49
- res['items'].each { |item| records << item }
50
- break if res['total_items'] <= page * res['page_size']
48
+ res["items"].each { |item| records << item }
49
+ break if res["total_items"] <= page * res["page_size"]
51
50
  end
52
- end.lazy
51
+ }.lazy
53
52
  end
54
53
  end
55
54
  end
@@ -1,27 +1,17 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'json'
4
- require 'faraday'
5
- require 'faraday_middleware'
3
+ require "json"
4
+ require "faraday"
5
+ require "faraday_middleware"
6
6
 
7
7
  module Tenios
8
8
  module API
9
9
  class Client
10
- attr_reader :access_key
10
+ URL = "https://api.tenios.com"
11
11
 
12
- def initialize(access_key:)
12
+ def initialize(access_key:, url: URL)
13
13
  @access_key = access_key
14
- end
15
-
16
- def http_client
17
- @http_client ||= Faraday.new(url: 'https://api.tevox.com') do |c|
18
- c.request :json
19
- c.response :json
20
- c.response :raise_error
21
- c.use :gzip
22
-
23
- c.adapter Faraday.default_adapter
24
- end
14
+ @http_client = build_http_client(url)
25
15
  end
26
16
 
27
17
  class <<self
@@ -42,6 +32,24 @@ module Tenios
42
32
  endpoint :verification, :Verification
43
33
  endpoint :number, :Number
44
34
  endpoint :record_call, :RecordCall
35
+
36
+ # @api private
37
+ def post(path, **payload)
38
+ @http_client.post(path, payload.merge(access_key: @access_key)).body
39
+ end
40
+
41
+ private
42
+
43
+ def build_http_client(url)
44
+ Faraday.new(url: url) { |c|
45
+ c.request :json
46
+ c.response :json
47
+ c.response :raise_error
48
+ c.use :gzip
49
+
50
+ c.adapter Faraday.default_adapter
51
+ }
52
+ end
45
53
  end
46
54
  end
47
55
  end
@@ -10,17 +10,16 @@ module Tenios
10
10
  end
11
11
 
12
12
  NUMBER_TYPES = [
13
- GEOGRAPHICAL = 'GEOGRAPHICAL'
13
+ GEOGRAPHICAL = "GEOGRAPHICAL"
14
14
  ].freeze
15
15
 
16
16
  def order(verification_id:, number_type: GEOGRAPHICAL, **options)
17
17
  payload = order_payload(verification_id: verification_id, number_type: number_type, **options)
18
- client.http_client.post('/number/order', payload).body
18
+ client.post("/number/order", **payload)
19
19
  end
20
20
 
21
21
  def cancel(phone_number:)
22
- payload = { access_key: client.access_key, phone_number: phone_number }
23
- client.http_client.post('/number/cancel', payload).body
22
+ client.post("/number/cancel", phone_number: phone_number)
24
23
  end
25
24
 
26
25
  private
@@ -35,9 +34,7 @@ module Tenios
35
34
  private_constant :ORDER_OPTIONS
36
35
 
37
36
  def order_payload(**options)
38
- options
39
- .slice(*ORDER_OPTIONS)
40
- .merge(access_key: client.access_key)
37
+ options.slice(*ORDER_OPTIONS)
41
38
  end
42
39
  end
43
40
  end
@@ -10,20 +10,11 @@ module Tenios
10
10
  end
11
11
 
12
12
  def start(call_uuid:)
13
- client.http_client.post(
14
- '/record-call/start',
15
- access_key: client.access_key,
16
- call_uuid: call_uuid
17
- ).body
13
+ client.post("/record-call/start", call_uuid: call_uuid)
18
14
  end
19
15
 
20
16
  def stop(recording_uuid:, call_uuid:)
21
- client.http_client.post(
22
- '/record-call/stop',
23
- access_key: client.access_key,
24
- call_uuid: call_uuid,
25
- recording_uuid: recording_uuid
26
- ).body
17
+ client.post("/record-call/stop", call_uuid: call_uuid, recording_uuid: recording_uuid)
27
18
  end
28
19
  end
29
20
  end
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'base64'
3
+ require "base64"
4
4
 
5
5
  module Tenios
6
6
  module API
@@ -22,7 +22,7 @@ module Tenios
22
22
 
23
23
  def create(options)
24
24
  payload = build_payload(options)
25
- client.http_client.post('/verification/create', payload).body
25
+ client.post("/verification/create", **payload)
26
26
  end
27
27
 
28
28
  private
@@ -41,9 +41,7 @@ module Tenios
41
41
 
42
42
  def build_payload(options)
43
43
  to_option = build_option(options)
44
-
45
44
  OPTIONS.map(&to_option).to_h
46
- .merge(access_key: client.access_key)
47
45
  end
48
46
 
49
47
  def build_option(options)
@@ -61,13 +59,13 @@ module Tenios
61
59
  raise ArgumentError, "invalid document_type: #{type}"
62
60
  end
63
61
 
64
- PDF_FILE_SIGNATURE = Base64.encode64('%PDF-')[0..6].freeze
62
+ PDF_FILE_SIGNATURE = Base64.encode64("%PDF-")[0..6].freeze
65
63
  private_constant :PDF_FILE_SIGNATURE
66
64
 
67
65
  def validate_document_data!(data)
68
66
  return if data.start_with? PDF_FILE_SIGNATURE
69
67
 
70
- raise ArgumentError, 'invalid document_data: should be a base64 encoded pdf file'
68
+ raise ArgumentError, "invalid document_data: should be a base64 encoded pdf file"
71
69
  end
72
70
  end
73
71
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Tenios
4
4
  module API
5
- VERSION = '0.4.0'
5
+ VERSION = "1.0.4"
6
6
  end
7
7
  end
data/tenios-api.gemspec CHANGED
@@ -1,37 +1,32 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- lib = File.expand_path('lib', __dir__)
4
- $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
- require 'tenios/api/version'
3
+ require_relative "lib/tenios/api/version"
6
4
 
7
5
  Gem::Specification.new do |spec|
8
- spec.name = 'tenios-api'
9
- spec.version = Tenios::API::VERSION
10
- spec.authors = ['carwow Developers']
11
- spec.email = ['developers@carwow.co.uk']
12
- spec.summary = 'Tenios API Client ☎️'
13
- spec.description = 'Get Call Detail Records (CDRs) from Tenios API.'
14
- spec.homepage = 'https://github.com/carwow/tenios-api-ruby'
15
- spec.license = 'MIT'
6
+ spec.name = "tenios-api"
7
+ spec.version = Tenios::API::VERSION
8
+ spec.authors = ["carwow Developers"]
9
+ spec.email = ["developers@carwow.co.uk"]
10
+ spec.summary = "Tenios API Client ☎️"
11
+ spec.description = "Ruby client for Tenios API."
12
+ spec.homepage = "https://github.com/carwow/tenios-api-ruby"
13
+ spec.license = "MIT"
16
14
 
17
- if spec.respond_to?(:metadata)
18
- spec.metadata['allowed_push_host'] = 'https://rubygems.org'
19
- else
20
- raise 'RubyGems 2.0 or newer is required to protect against ' \
21
- 'public gem pushes.'
22
- end
15
+ spec.required_ruby_version = Gem::Requirement.new(">= 2.7", "< 3.1")
23
16
 
24
- spec.files = Dir.chdir(File.expand_path(__dir__)) do
25
- `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
26
- end
27
- spec.require_paths = ['lib']
17
+ spec.metadata["allowed_push_host"] = "https://rubygems.org"
18
+ spec.metadata["source_code_uri"] = spec.homepage
19
+ spec.metadata["homepage_uri"] = "#{spec.homepage}/blob/main/README.md"
20
+ spec.metadata["changelog_uri"] = "#{spec.homepage}/blob/main/CHANGELOG.md"
28
21
 
29
- spec.add_dependency 'faraday'
30
- spec.add_dependency 'faraday_middleware'
22
+ spec.files = `git ls-files -z`.split("\x0").reject { |f| f.start_with? "spec" }
23
+ spec.require_paths = ["lib"]
31
24
 
32
- spec.add_development_dependency 'bundler'
33
- spec.add_development_dependency 'carwow_rubocop'
34
- spec.add_development_dependency 'pry'
35
- spec.add_development_dependency 'rake'
36
- spec.add_development_dependency 'rspec'
25
+ spec.add_dependency "faraday", "~> 1.1"
26
+ spec.add_dependency "faraday_middleware", "~> 1.0"
27
+
28
+ spec.add_development_dependency "pry", "~> 0.14"
29
+ spec.add_development_dependency "rake", "~> 13.0"
30
+ spec.add_development_dependency "rspec", "~> 3.10"
31
+ spec.add_development_dependency "standard", "~> 0.12"
37
32
  end
metadata CHANGED
@@ -1,114 +1,100 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tenios-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - carwow Developers
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-04-29 00:00:00.000000000 Z
11
+ date: 2021-02-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '0'
19
+ version: '1.1'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ">="
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '0'
26
+ version: '1.1'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: faraday_middleware
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ">="
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '0'
33
+ version: '1.0'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ">="
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '0'
40
+ version: '1.0'
41
41
  - !ruby/object:Gem::Dependency
42
- name: bundler
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - ">="
46
- - !ruby/object:Gem::Version
47
- version: '0'
48
- type: :development
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - ">="
53
- - !ruby/object:Gem::Version
54
- version: '0'
55
- - !ruby/object:Gem::Dependency
56
- name: carwow_rubocop
42
+ name: pry
57
43
  requirement: !ruby/object:Gem::Requirement
58
44
  requirements:
59
- - - ">="
45
+ - - "~>"
60
46
  - !ruby/object:Gem::Version
61
- version: '0'
47
+ version: '0.14'
62
48
  type: :development
63
49
  prerelease: false
64
50
  version_requirements: !ruby/object:Gem::Requirement
65
51
  requirements:
66
- - - ">="
52
+ - - "~>"
67
53
  - !ruby/object:Gem::Version
68
- version: '0'
54
+ version: '0.14'
69
55
  - !ruby/object:Gem::Dependency
70
- name: pry
56
+ name: rake
71
57
  requirement: !ruby/object:Gem::Requirement
72
58
  requirements:
73
- - - ">="
59
+ - - "~>"
74
60
  - !ruby/object:Gem::Version
75
- version: '0'
61
+ version: '13.0'
76
62
  type: :development
77
63
  prerelease: false
78
64
  version_requirements: !ruby/object:Gem::Requirement
79
65
  requirements:
80
- - - ">="
66
+ - - "~>"
81
67
  - !ruby/object:Gem::Version
82
- version: '0'
68
+ version: '13.0'
83
69
  - !ruby/object:Gem::Dependency
84
- name: rake
70
+ name: rspec
85
71
  requirement: !ruby/object:Gem::Requirement
86
72
  requirements:
87
- - - ">="
73
+ - - "~>"
88
74
  - !ruby/object:Gem::Version
89
- version: '0'
75
+ version: '3.10'
90
76
  type: :development
91
77
  prerelease: false
92
78
  version_requirements: !ruby/object:Gem::Requirement
93
79
  requirements:
94
- - - ">="
80
+ - - "~>"
95
81
  - !ruby/object:Gem::Version
96
- version: '0'
82
+ version: '3.10'
97
83
  - !ruby/object:Gem::Dependency
98
- name: rspec
84
+ name: standard
99
85
  requirement: !ruby/object:Gem::Requirement
100
86
  requirements:
101
- - - ">="
87
+ - - "~>"
102
88
  - !ruby/object:Gem::Version
103
- version: '0'
89
+ version: '0.12'
104
90
  type: :development
105
91
  prerelease: false
106
92
  version_requirements: !ruby/object:Gem::Requirement
107
93
  requirements:
108
- - - ">="
94
+ - - "~>"
109
95
  - !ruby/object:Gem::Version
110
- version: '0'
111
- description: Get Call Detail Records (CDRs) from Tenios API.
96
+ version: '0.12'
97
+ description: Ruby client for Tenios API.
112
98
  email:
113
99
  - developers@carwow.co.uk
114
100
  executables: []
@@ -119,8 +105,8 @@ files:
119
105
  - ".gitignore"
120
106
  - ".rspec"
121
107
  - ".rubocop.yml"
108
+ - CHANGELOG.md
122
109
  - Gemfile
123
- - Gemfile.lock
124
110
  - LICENSE.txt
125
111
  - README.md
126
112
  - Rakefile
@@ -139,7 +125,10 @@ licenses:
139
125
  - MIT
140
126
  metadata:
141
127
  allowed_push_host: https://rubygems.org
142
- post_install_message:
128
+ source_code_uri: https://github.com/carwow/tenios-api-ruby
129
+ homepage_uri: https://github.com/carwow/tenios-api-ruby/blob/main/README.md
130
+ changelog_uri: https://github.com/carwow/tenios-api-ruby/blob/main/CHANGELOG.md
131
+ post_install_message:
143
132
  rdoc_options: []
144
133
  require_paths:
145
134
  - lib
@@ -147,15 +136,18 @@ required_ruby_version: !ruby/object:Gem::Requirement
147
136
  requirements:
148
137
  - - ">="
149
138
  - !ruby/object:Gem::Version
150
- version: '0'
139
+ version: '2.7'
140
+ - - "<"
141
+ - !ruby/object:Gem::Version
142
+ version: '3.1'
151
143
  required_rubygems_version: !ruby/object:Gem::Requirement
152
144
  requirements:
153
145
  - - ">="
154
146
  - !ruby/object:Gem::Version
155
147
  version: '0'
156
148
  requirements: []
157
- rubygems_version: 3.0.3
158
- signing_key:
149
+ rubygems_version: 3.1.4
150
+ signing_key:
159
151
  specification_version: 4
160
152
  summary: Tenios API Client ☎️
161
153
  test_files: []
data/Gemfile.lock DELETED
@@ -1,73 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- tenios-api (0.4.0)
5
- faraday
6
- faraday_middleware
7
-
8
- GEM
9
- remote: https://rubygems.org/
10
- specs:
11
- ast (2.4.0)
12
- carwow_rubocop (2.1.1)
13
- rubocop (~> 0.58)
14
- rubocop-rspec (~> 1.28)
15
- coderay (1.1.2)
16
- diff-lcs (1.3)
17
- faraday (1.0.1)
18
- multipart-post (>= 1.2, < 3)
19
- faraday_middleware (1.0.0)
20
- faraday (~> 1.0)
21
- jaro_winkler (1.5.2)
22
- method_source (0.9.2)
23
- multipart-post (2.1.1)
24
- parallel (1.13.0)
25
- parser (2.6.0.0)
26
- ast (~> 2.4.0)
27
- powerpack (0.1.2)
28
- pry (0.12.2)
29
- coderay (~> 1.1.0)
30
- method_source (~> 0.9.0)
31
- psych (3.1.0)
32
- rainbow (3.0.0)
33
- rake (13.0.1)
34
- rspec (3.8.0)
35
- rspec-core (~> 3.8.0)
36
- rspec-expectations (~> 3.8.0)
37
- rspec-mocks (~> 3.8.0)
38
- rspec-core (3.8.0)
39
- rspec-support (~> 3.8.0)
40
- rspec-expectations (3.8.2)
41
- diff-lcs (>= 1.2.0, < 2.0)
42
- rspec-support (~> 3.8.0)
43
- rspec-mocks (3.8.0)
44
- diff-lcs (>= 1.2.0, < 2.0)
45
- rspec-support (~> 3.8.0)
46
- rspec-support (3.8.0)
47
- rubocop (0.65.0)
48
- jaro_winkler (~> 1.5.1)
49
- parallel (~> 1.10)
50
- parser (>= 2.5, != 2.5.1.1)
51
- powerpack (~> 0.1)
52
- psych (>= 3.1.0)
53
- rainbow (>= 2.2.2, < 4.0)
54
- ruby-progressbar (~> 1.7)
55
- unicode-display_width (~> 1.4.0)
56
- rubocop-rspec (1.32.0)
57
- rubocop (>= 0.60.0)
58
- ruby-progressbar (1.10.0)
59
- unicode-display_width (1.4.1)
60
-
61
- PLATFORMS
62
- ruby
63
-
64
- DEPENDENCIES
65
- bundler
66
- carwow_rubocop
67
- pry
68
- rake
69
- rspec
70
- tenios-api!
71
-
72
- BUNDLED WITH
73
- 2.1.4