tenios-api 0.4.0 → 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: 9b0911331d2acc593d17afe8263e9955e9b0e7ce82d632b09c5d9586a23eff13
4
- data.tar.gz: 7d2d7ca7ec66d8b21a0ffda096a293a1e1305b7e6824300515741ba5f032d1eb
3
+ metadata.gz: c8f4b1e8779c3b969fddafc92b7291a802319c6f581097510f59749708eadf70
4
+ data.tar.gz: edcf7cc2aad2bac65b6e088e34f8c735a79309f6e36adf676433a78fa3c75967
5
5
  SHA512:
6
- metadata.gz: 02334eb4c0304b31227505016987ac23a42f2ac66610c8799d26dfe6ec7abb4231310c700447b85294ab22afba07473802561ab9e06aeeb5357cea7ecebe818f
7
- data.tar.gz: 9dc6a38fd7dea49f3686ba45dc3ca09946bfdf1ec9f8353b9158b57dd8b1706604705ad0abfedc4468927f8397f041c096dbb7a991734783291c4765c9564b3a
6
+ metadata.gz: 90e98323495cbc63cd7bf8f024ee0b245dd3ee4d2c9538beeacf01aae55a1527a25d4f5a7b02e15741fdb5a74bde3074f1740ebce92351764f45df0f07b9ce9b
7
+ data.tar.gz: f16d05a78e70aee4af849720d0a30b2c7caeac4a2d315ae696b7c10cc25075d4c4ab7a49ab18554b9552891f062556ba2f8c1c0364331350289dfcbfaae6da94
data/.circleci/config.yml CHANGED
@@ -1,54 +1,34 @@
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
- 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
13
+ keys:
14
+ - bundle
15
+ - run:
16
+ name: bundle update
17
+ command: |
18
+ bundle config --local path vendor/bundle
19
+ bundle update --jobs=4 --retry=3
20
+ bundle clean --force
20
21
  - 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
22
+ key: bundle
23
+ paths: [~/project/vendor/bundle]
24
+ - run: bundle exec rake
45
25
 
46
26
  workflows:
47
27
  version: 2
48
- build:
28
+ test:
49
29
  jobs:
50
- - bundle
51
- - rubocop:
52
- requires: [bundle]
53
- - tests:
54
- requires: [bundle]
30
+ - test:
31
+ matrix:
32
+ parameters:
33
+ ruby_version:
34
+ - "2.7"
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,12 @@
1
+ ## [1.0.0]
2
+
3
+ ### Changed
4
+
5
+ * Tenios API URL is now https://api.tenios.com
6
+ * Ruby ~> 2.7
7
+
8
+ ### Misc
9
+
10
+ * Internal refactoring (no breaking changes)
11
+
12
+ [1.0.0]: https://github.com/carwow/deals_service_client/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
@@ -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,9 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'tenios/api'
3
+ require "zeitwerk"
4
+
5
+ Zeitwerk::Loader.for_gem.tap do |loader|
6
+ loader.ignore "#{__dir__}/tenios-api.rb"
7
+ loader.inflector.inflect "api" => "API"
8
+ loader.setup
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,47 +1,52 @@
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
+ @http_client = build_http_client(url)
14
15
  end
15
16
 
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
17
+ def call_detail_records
18
+ CallDetailRecords.new(self)
19
+ end
22
20
 
23
- c.adapter Faraday.default_adapter
24
- end
21
+ def verification
22
+ Verification.new(self)
25
23
  end
26
24
 
27
- class <<self
28
- private
25
+ def number
26
+ Number.new(self)
27
+ end
29
28
 
30
- def endpoint(name, klass)
31
- API.autoload klass, "tenios/api/#{name}"
29
+ def record_call
30
+ RecordCall.new(self)
31
+ end
32
32
 
33
- class_eval <<~RUBY, __FILE__, __LINE__ + 1
34
- def #{name}
35
- @#{name} ||= #{klass}.new(self)
36
- end
37
- RUBY
38
- end
33
+ # @api private
34
+ def post(path, **payload)
35
+ @http_client.post(path, payload.merge(access_key: @access_key)).body
39
36
  end
40
37
 
41
- endpoint :call_detail_records, :CallDetailRecords
42
- endpoint :verification, :Verification
43
- endpoint :number, :Number
44
- endpoint :record_call, :RecordCall
38
+ private
39
+
40
+ def build_http_client(url)
41
+ Faraday.new(url: url) { |c|
42
+ c.request :json
43
+ c.response :json
44
+ c.response :raise_error
45
+ c.use :gzip
46
+
47
+ c.adapter Faraday.default_adapter
48
+ }
49
+ end
45
50
  end
46
51
  end
47
52
  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.0"
6
6
  end
7
7
  end
data/tenios-api.gemspec CHANGED
@@ -1,37 +1,33 @@
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 = "Get Call Detail Records (CDRs) from 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")
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}/README.md"
20
+ spec.metadata["changelog_uri"] = "#{spec.homepage}/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.3"
26
+ spec.add_dependency "faraday_middleware", "~> 1.0"
27
+ spec.add_dependency "zeitwerk", "~> 2.4"
28
+
29
+ spec.add_development_dependency "pry", "~> 0.14"
30
+ spec.add_development_dependency "rake", "~> 13.0"
31
+ spec.add_development_dependency "rspec", "~> 3.10"
32
+ spec.add_development_dependency "standard", "~> 0.12"
37
33
  end
metadata CHANGED
@@ -1,113 +1,113 @@
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.0
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-12 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.3'
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.3'
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
42
+ name: zeitwerk
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ">="
45
+ - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '0'
48
- type: :development
47
+ version: '2.4'
48
+ type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ">="
52
+ - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '0'
54
+ version: '2.4'
55
55
  - !ruby/object:Gem::Dependency
56
- name: carwow_rubocop
56
+ name: pry
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ">="
59
+ - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '0'
61
+ version: '0.14'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - ">="
66
+ - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: '0'
68
+ version: '0.14'
69
69
  - !ruby/object:Gem::Dependency
70
- name: pry
70
+ name: rake
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - ">="
73
+ - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: '0'
75
+ version: '13.0'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - ">="
80
+ - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: '0'
82
+ version: '13.0'
83
83
  - !ruby/object:Gem::Dependency
84
- name: rake
84
+ name: rspec
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - ">="
87
+ - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: '0'
89
+ version: '3.10'
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - ">="
94
+ - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: '0'
96
+ version: '3.10'
97
97
  - !ruby/object:Gem::Dependency
98
- name: rspec
98
+ name: standard
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - ">="
101
+ - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: '0'
103
+ version: '0.12'
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
- - - ">="
108
+ - - "~>"
109
109
  - !ruby/object:Gem::Version
110
- version: '0'
110
+ version: '0.12'
111
111
  description: Get Call Detail Records (CDRs) from Tenios API.
112
112
  email:
113
113
  - developers@carwow.co.uk
@@ -119,14 +119,13 @@ files:
119
119
  - ".gitignore"
120
120
  - ".rspec"
121
121
  - ".rubocop.yml"
122
+ - CHANGELOG.md
122
123
  - Gemfile
123
- - Gemfile.lock
124
124
  - LICENSE.txt
125
125
  - README.md
126
126
  - Rakefile
127
127
  - bin/console
128
128
  - lib/tenios-api.rb
129
- - lib/tenios/api.rb
130
129
  - lib/tenios/api/call_detail_records.rb
131
130
  - lib/tenios/api/client.rb
132
131
  - lib/tenios/api/number.rb
@@ -139,23 +138,26 @@ licenses:
139
138
  - MIT
140
139
  metadata:
141
140
  allowed_push_host: https://rubygems.org
142
- post_install_message:
141
+ source_code_uri: https://github.com/carwow/tenios-api-ruby
142
+ homepage_uri: https://github.com/carwow/tenios-api-ruby/README.md
143
+ changelog_uri: https://github.com/carwow/tenios-api-ruby/CHANGELOG.md
144
+ post_install_message:
143
145
  rdoc_options: []
144
146
  require_paths:
145
147
  - lib
146
148
  required_ruby_version: !ruby/object:Gem::Requirement
147
149
  requirements:
148
- - - ">="
150
+ - - "~>"
149
151
  - !ruby/object:Gem::Version
150
- version: '0'
152
+ version: '2.7'
151
153
  required_rubygems_version: !ruby/object:Gem::Requirement
152
154
  requirements:
153
155
  - - ">="
154
156
  - !ruby/object:Gem::Version
155
157
  version: '0'
156
158
  requirements: []
157
- rubygems_version: 3.0.3
158
- signing_key:
159
+ rubygems_version: 3.1.4
160
+ signing_key:
159
161
  specification_version: 4
160
162
  summary: Tenios API Client ☎️
161
163
  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
data/lib/tenios/api.rb DELETED
@@ -1,9 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'tenios/api/client'
4
-
5
- module Tenios
6
- module API
7
- autoload :Version, 'tenios/api/version'
8
- end
9
- end