hipcall 1.0.0 → 2.0.0

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: 0714276b651ff95a6fde2b7c36c85acc5e6170065e4a8d07e52712543a35ae1c
4
- data.tar.gz: 80f7fb286ead1667610808cdccb697422976dc54b90fd33481aed108d1c4c829
3
+ metadata.gz: 8c75709982176f9653a36bed8f54358c294f2414ddc83f49d55d5f2b27901ddf
4
+ data.tar.gz: e328dca967273e4941d21dafbdcf4d0229ef3de40e10015ab62a5cd4096856bb
5
5
  SHA512:
6
- metadata.gz: 343a8bfbf09322c45e6bd0b3f4149032b3039a01d95a3aef55fdd875be8e6b034ebcf51c511a42d7f4b2ad1413dfe63240bad0f93100c43592e3f662c6693e84
7
- data.tar.gz: b2d507c8517047aea14069905e5ad57aa11ed8bc5f95e93e0f7182a65b9f439388110c8a722133716c54dadc68c6f0d70bc85a03a07a1ebec075e42b4e8c9e6c
6
+ metadata.gz: 43b039fa0db950c450c86e2eecb047a7bd581cac6059fe59cdddd8a9e4e84a432e4b56f3622b0de0b66a780c0c6b513170900ce411b173614287dfca407b0e30
7
+ data.tar.gz: 7b58e7244efabc0a4846997a41ff29f28fa582fd1e4bd1ff3a7a8a1ebfd15e09f5f5f56676cb1f451f8aa301120821acf48079d75f30701bf1f012d720afc2ad
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## v2.0.0
4
+
5
+ ### Refactor
6
+
7
+ - Hipcall module name changed to HipcallSdk.
8
+
3
9
  ## v1.0.0
4
10
 
5
11
  ### Features
@@ -7,4 +13,4 @@
7
13
  - Add cdr resource
8
14
  - Add number resource
9
15
  - Add task resource
10
- - Add user resource
16
+ - Add user resource
data/Gemfile.lock CHANGED
@@ -65,6 +65,7 @@ GEM
65
65
  unicode-display_width (2.2.0)
66
66
 
67
67
  PLATFORMS
68
+ arm64-darwin-21
68
69
  x86_64-linux
69
70
 
70
71
  DEPENDENCIES
data/README.md CHANGED
@@ -21,7 +21,7 @@ Or install it yourself as:
21
21
  ## Usage
22
22
 
23
23
  ```ruby
24
- hipcall = Hipcall::Client.new(api_key: "YOUR_TOKEN_IS_HERE", version: "v20211124", base_url: "https://app.hipcall.com.tr/api/")
24
+ hipcall = HipcallSdk::Client.new(api_key: "YOUR_TOKEN_IS_HERE", version: "v20211124", base_url: "https://app.hipcall.com.tr/api/")
25
25
  ```
26
26
 
27
27
  ### Cdr resource
data/bin/console CHANGED
@@ -11,7 +11,7 @@ require "hipcall"
11
11
  # require "pry"
12
12
  # Pry.start
13
13
 
14
- client = Hipcall::Client.new(api_key: ENV["HIPCALL_API_KEY"])
14
+ client = HipcallSdk::Client.new(api_key: ENV["HIPCALL_API_KEY"])
15
15
 
16
16
  require "irb"
17
17
  IRB.start(__FILE__)
@@ -1,7 +1,7 @@
1
1
  require "faraday"
2
2
  require "faraday_middleware"
3
3
 
4
- module Hipcall
4
+ module HipcallSdk
5
5
  class Client
6
6
  attr_reader :api_key, :version, :base_url, :adapter
7
7
 
@@ -1,4 +1,4 @@
1
- module Hipcall
1
+ module HipcallSdk
2
2
  class Collection
3
3
  attr_reader :data, :links, :meta
4
4
 
data/lib/hipcall/error.rb CHANGED
@@ -1,4 +1,4 @@
1
- module Hipcall
1
+ module HipcallSdk
2
2
  class Error < StandardError
3
3
  end
4
4
  end
@@ -1,6 +1,6 @@
1
1
  require "ostruct"
2
2
 
3
- module Hipcall
3
+ module HipcallSdk
4
4
  class Object < OpenStruct
5
5
  def initialize(attributes)
6
6
  super to_ostruct(attributes)
@@ -1,4 +1,4 @@
1
- module Hipcall
1
+ module HipcallSdk
2
2
  class Cdr < Object
3
3
  end
4
4
  end
@@ -1,4 +1,4 @@
1
- module Hipcall
1
+ module HipcallSdk
2
2
  class Number < Object
3
3
  end
4
4
  end
@@ -1,4 +1,4 @@
1
- module Hipcall
1
+ module HipcallSdk
2
2
  class Task < Object
3
3
  end
4
4
  end
@@ -1,4 +1,4 @@
1
- module Hipcall
1
+ module HipcallSdk
2
2
  class User < Object
3
3
  end
4
4
  end
@@ -1,4 +1,4 @@
1
- module Hipcall
1
+ module HipcallSdk
2
2
  class Resource
3
3
  attr_reader :client
4
4
 
@@ -1,4 +1,4 @@
1
- module Hipcall
1
+ module HipcallSdk
2
2
  class CdrResource < Resource
3
3
  def list(**params)
4
4
  response = get_request("cdrs", params: params)
@@ -1,4 +1,4 @@
1
- module Hipcall
1
+ module HipcallSdk
2
2
  class NumberResource < Resource
3
3
  def list(**params)
4
4
  response = get_request("numbers", params: params)
@@ -1,4 +1,4 @@
1
- module Hipcall
1
+ module HipcallSdk
2
2
  class TaskResource < Resource
3
3
  def list(**params)
4
4
  response = get_request("tasks", params: params)
@@ -1,4 +1,4 @@
1
- module Hipcall
1
+ module HipcallSdk
2
2
  class UserResource < Resource
3
3
  def list(**params)
4
4
  response = get_request("users", params: params)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- module Hipcall
4
- VERSION = "1.0.0"
3
+ module HipcallSdk
4
+ VERSION = "2.0.0"
5
5
  end
@@ -2,7 +2,7 @@
2
2
 
3
3
  require_relative "hipcall/version"
4
4
 
5
- module Hipcall
5
+ module HipcallSdk
6
6
  autoload :Client, "hipcall/client"
7
7
  autoload :Collection, "hipcall/collection"
8
8
  autoload :Error, "hipcall/error"
@@ -1,4 +1,4 @@
1
- module Hipcall
1
+ module HipcallSdk
2
2
  VERSION: String
3
3
  # See the writing guide of rbs: https://github.com/ruby/rbs#guides
4
4
  end
metadata CHANGED
@@ -1,15 +1,16 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hipcall
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 2.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hipcall Development Team
8
8
  - Onur Ozgur OZKAN
9
- autorequire:
9
+ - Kendal BOZKURT
10
+ autorequire:
10
11
  bindir: exe
11
12
  cert_chain: []
12
- date: 2022-07-08 00:00:00.000000000 Z
13
+ date: 2022-11-10 00:00:00.000000000 Z
13
14
  dependencies:
14
15
  - !ruby/object:Gem::Dependency
15
16
  name: faraday
@@ -39,7 +40,7 @@ dependencies:
39
40
  - - "~>"
40
41
  - !ruby/object:Gem::Version
41
42
  version: '1.2'
42
- description:
43
+ description:
43
44
  email:
44
45
  - hello@hipcall.com
45
46
  executables: []
@@ -54,8 +55,6 @@ files:
54
55
  - Rakefile
55
56
  - bin/console
56
57
  - bin/setup
57
- - hipcall.gemspec
58
- - lib/hipcall.rb
59
58
  - lib/hipcall/client.rb
60
59
  - lib/hipcall/collection.rb
61
60
  - lib/hipcall/error.rb
@@ -70,6 +69,7 @@ files:
70
69
  - lib/hipcall/resources/tasks.rb
71
70
  - lib/hipcall/resources/users.rb
72
71
  - lib/hipcall/version.rb
72
+ - lib/hipcall_sdk.rb
73
73
  - sig/hipcall/hipcall.rbs
74
74
  homepage: https://www.hipcall.com
75
75
  licenses:
@@ -78,7 +78,7 @@ metadata:
78
78
  homepage_uri: https://www.hipcall.com
79
79
  source_code_uri: https://github.com/hipcall/ruby-sdk
80
80
  changelog_uri: https://github.com/hipcall/ruby-sdk/blob/master/CHANGELOG.md
81
- post_install_message:
81
+ post_install_message:
82
82
  rdoc_options: []
83
83
  require_paths:
84
84
  - lib
@@ -93,8 +93,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
93
93
  - !ruby/object:Gem::Version
94
94
  version: '0'
95
95
  requirements: []
96
- rubygems_version: 3.2.33
97
- signing_key:
96
+ rubygems_version: 3.2.3
97
+ signing_key:
98
98
  specification_version: 4
99
99
  summary: Hipcall's Ruby SDK
100
100
  test_files: []
data/hipcall.gemspec DELETED
@@ -1,39 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require_relative "lib/hipcall/version"
4
-
5
- Gem::Specification.new do |spec|
6
- spec.name = "hipcall"
7
- spec.version = Hipcall::VERSION
8
- spec.authors = ["Hipcall Development Team", "Onur Ozgur OZKAN"]
9
- spec.email = ["hello@hipcall.com"]
10
-
11
- spec.summary = "Hipcall's Ruby SDK"
12
- spec.homepage = "https://www.hipcall.com"
13
- spec.required_ruby_version = ">= 2.6.0"
14
-
15
- # spec.metadata["allowed_push_host"] = "TODO: Set to your gem server 'https://example.com'"
16
-
17
- spec.metadata["homepage_uri"] = spec.homepage
18
- spec.metadata["source_code_uri"] = "https://github.com/hipcall/ruby-sdk"
19
- spec.metadata["changelog_uri"] = "https://github.com/hipcall/ruby-sdk/blob/master/CHANGELOG.md"
20
- spec.licenses = "MIT"
21
-
22
- # Specify which files should be added to the gem when it is released.
23
- # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
24
- spec.files = Dir.chdir(File.expand_path(__dir__)) do
25
- `git ls-files -z`.split("\x0").reject do |f|
26
- (f == __FILE__) || f.match(%r{\A(?:(?:test|spec|features)/|\.(?:git|travis|circleci)|appveyor)})
27
- end
28
- end
29
- spec.bindir = "exe"
30
- spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
31
- spec.require_paths = ["lib"]
32
-
33
- # Uncomment to register a new dependency of your gem
34
- spec.add_dependency "faraday", "~> 1.10"
35
- spec.add_dependency "faraday_middleware", "~> 1.2"
36
-
37
- # For more information and examples about making a new gem, checkout our
38
- # guide at: https://bundler.io/guides/creating_gem.html
39
- end