plivo 4.38.1 → 4.40.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
  SHA1:
3
- metadata.gz: b9cc9b79affac615fa30dd25bbebfc105437f2a8
4
- data.tar.gz: 9bf7124784874f27665ecfbf36460bdb0ccbe5f0
3
+ metadata.gz: 53994706ec6a6d40e9ec003fad9ccf5f0852acc1
4
+ data.tar.gz: e1a3004ce5d2b4ee64b9d6280db389debf57c9bd
5
5
  SHA512:
6
- metadata.gz: abd1a7738261e1ff43f9ba8b4c41af4c0d4305fdd70f5c56b06c4a2a65fa5200e07f43a4af2c40cf09911a842172864eefe334cd9fab40dea1251856587c7375
7
- data.tar.gz: d05b08bbcc5fcdcd019db742e150b5579e2072a16239ce27dd3ffed9678469c86f5dc7093bab1890bcb2c9c41208afc5095119f3b799f57eac7a8414d0f7bbf0
6
+ metadata.gz: 0bf7f473f1b70a49f5c908becaeb3b1614cbc12ecf0f5675e0f7b6d8f8d481ae51371ccfb324f6dd1199794bfddffba043ea3847cf7b40928df93bc3590e4793
7
+ data.tar.gz: ae2e03e0bc55462723afdcc88641066f57f0b6d0927febc66dcec97b5e4ba77a33417096f90e4dcaacbe6a066a1be777c9034aa118f27d16cbb736efeebad1e1
data/CHANGELOG.md CHANGED
@@ -1,4 +1,14 @@
1
1
  # Change Log
2
+
3
+
4
+ ## [4.40.0](https://github.com/plivo/plivo-ruby/tree/v4.37.0) (2023-04-11)
5
+ **Feature - Added New Param 'source_ip' in GetCall and ListCalls**
6
+ - Add `source_ip` to the response for the [retrieve a call details API](https://www.plivo.com/docs/voice/api/call#retrieve-a-call) and the [retreive all call details API](https://www.plivo.com/docs/voice/api/call#retrieve-all-calls)
7
+
8
+ ## [4.39.0](https://github.com/plivo/plivo-ruby/tree/v4.39.0) (2023-03-17)
9
+ **Adding new attribute - 'created_at' in List Profiles, Get Profile, List Brands, Get Brand, List Campaigns and Get Campaign APIs**
10
+ - dding new attribute - 'created_at' in List Profiles, Get Profile, List Brands, Get Brand, List Campaigns and Get Campaign APIs
11
+
2
12
  ## [4.38.1](https://github.com/plivo/plivo-ruby/tree/v4.38.1) (2023-03-06)
3
13
  **Bug fix on create message**
4
14
  - Bulk send message fix
@@ -15,6 +25,12 @@
15
25
  - Added new fields on MDR object response
16
26
 
17
27
 
28
+
29
+ ## [4.37.0](https://github.com/plivo/plivo-ruby/tree/v4.37.0) (2023-02-06)
30
+ **Feature - Added New Param 'source_ip' in GetCall and ListCalls**
31
+ - Add `source_ip` to the response for the [retrieve a call details API](https://www.plivo.com/docs/voice/api/call#retrieve-a-call) and the [retreive all call details API](https://www.plivo.com/docs/voice/api/call#retrieve-all-calls)
32
+
33
+
18
34
  ## [4.36.0](https://github.com/plivo/plivo-ruby/tree/v4.36.0) (2022-01-25)
19
35
  **Adding new attribute - 'requester_ip' in Get Message and List Mssage APIs**
20
36
  - Add `requester_ip` to the response for the [list all messages API](https://www.plivo.com/docs/sms/api/message/list-all-messages/) and the [get message details API](https://www.plivo.com/docs/sms/api/message#retrieve-a-message)
data/Makefile CHANGED
@@ -4,4 +4,11 @@ build:
4
4
  docker-compose up --build --remove-orphans
5
5
 
6
6
  test:
7
- docker exec -it $$CONTAINER /bin/bash -c "bundle exec rake"
7
+ @[ "${CONTAINER}" ] && \
8
+ docker exec -it $$CONTAINER /bin/bash -c "bundle exec rake" || \
9
+ bundle exec rake
10
+
11
+ run:
12
+ @[ "${CONTAINER}" ] && \
13
+ (docker exec -it $$CONTAINER /bin/bash -c 'cd /usr/src/app/ruby-sdk-test/ && ruby test.rb') || \
14
+ (cd /usr/src/app/ruby-sdk-test/ && ruby test.rb)
data/README.md CHANGED
@@ -9,8 +9,9 @@ The Plivo Ruby SDK makes it simpler to integrate communications into your Ruby a
9
9
  Add this line to your application's Gemfile:
10
10
 
11
11
  ```ruby
12
- gem 'plivo', '>= 4.38.1'
13
- ```
12
+
13
+ gem 'plivo', '>= 4.39.0'
14
+
14
15
 
15
16
  And then execute:
16
17
 
@@ -191,5 +192,10 @@ export PLIVO_API_PROD_HOST=<plivoapi_public_endpoint>
191
192
  5. The sdk directory will be mounted as a volume in the container. So any changes in the sdk code will also be reflected inside the container.
192
193
  > To use the local code in the test file, import the sdk in test file using:
193
194
  `require "/usr/src/app/lib/plivo.rb"`
194
- 6. To run unit tests, run `make test CONTAINER=<cont_id>` in host, where `<cont_id>` is the docker container id created in 2.
195
- (The docker container should be running)
195
+ 6. To run test code, run `make run CONTAINER=<cont_id>` in host.
196
+ 7. To run unit tests, run `make test CONTAINER=<cont_id>` in host.
197
+ > `<cont_id>` is the docker container id created in 2.
198
+ (The docker container should be running)
199
+
200
+ > Test code and unit tests can also be run within the container using
201
+ `make run` and `make test` respectively. (`CONTAINER` argument should be omitted when running from the container)
@@ -232,7 +232,8 @@ module Plivo
232
232
  direction: @direction,
233
233
  caller_name: @caller_name,
234
234
  stir_verification: @stir_verification,
235
- stir_attestation: @stir_attestation
235
+ stir_attestation: @stir_attestation,
236
+ source_ip: @source_ip
236
237
  }
237
238
  call_details = call_details.select {|k, v| !v.nil? }
238
239
  call_details.to_s
data/lib/plivo/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Plivo
2
- VERSION = "4.38.1".freeze
2
+ VERSION = "4.40.0".freeze
3
3
  end
data/setup_sdk.sh CHANGED
@@ -32,14 +32,16 @@ if [ ! -f $testDir/test.rb ]; then
32
32
  cd -
33
33
  fi
34
34
 
35
- echo -e "\n\nSDK setup complete!"
36
- echo "To test your changes:"
37
- echo -e "\t1. Add your test code in <path_to_cloned_sdk>/$testDir/test.rb on host (or /usr/src/app/$testDir/test.rb in the container)"
38
- echo -e "\t\tNote: To use sdk in test file, import using $GREEN require \"/usr/src/app/lib/plivo.rb\"$NC"
39
- echo -e "\t2. Run a terminal in the container using: $GREEN docker exec -it $HOSTNAME /bin/bash$NC"
40
- echo -e "\t3. Navigate to the test directory: $GREEN cd /usr/src/app/$testDir$NC"
41
- echo -e "\t4. Run your test file: $GREEN ruby test.rb$NC"
42
- echo -e "\t5. For running unit tests, run on host: $GREEN make test CONTAINER=$HOSTNAME$NC"
43
-
35
+ echo -e "\n\nSDK setup complete! You can test changes either on host or inside the docker container:"
36
+ echo -e "\ta. To test your changes ON HOST:"
37
+ echo -e "\t\t1. Add your test code in <path_to_cloned_sdk>/$testDir/test.rb"
38
+ echo -e "\t\t2. Run your test file using: $GREEN make run CONTAINER=$HOSTNAME$NC"
39
+ echo -e "\t\t3. Run unit tests using: $GREEN make test CONTAINER=$HOSTNAME$NC"
40
+ echo
41
+ echo -e "\tb. To test your changes INSIDE CONTAINER:"
42
+ echo -e "\t\t1. Run a terminal in the container using: $GREEN docker exec -it $HOSTNAME /bin/bash$NC"
43
+ echo -e "\t\t2. Add your test code in /usr/src/app/$testDir/test.rb"
44
+ echo -e "\t\t3. Run your test file using: $GREEN make run$NC"
45
+ echo -e "\t\t4. Run unit tests using: $GREEN make test$NC"
44
46
  # To keep the container running post setup
45
47
  /bin/bash
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: plivo
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.38.1
4
+ version: 4.40.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - The Plivo SDKs Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-03-06 00:00:00.000000000 Z
11
+ date: 2023-04-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday