plivo 4.38.1 → 4.39.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
  SHA1:
3
- metadata.gz: b9cc9b79affac615fa30dd25bbebfc105437f2a8
4
- data.tar.gz: 9bf7124784874f27665ecfbf36460bdb0ccbe5f0
3
+ metadata.gz: c451fadd27c08384818a03360ae048bd26f26c33
4
+ data.tar.gz: 880265957250ef7d36bba99cfc3b48e7e0bcf18f
5
5
  SHA512:
6
- metadata.gz: abd1a7738261e1ff43f9ba8b4c41af4c0d4305fdd70f5c56b06c4a2a65fa5200e07f43a4af2c40cf09911a842172864eefe334cd9fab40dea1251856587c7375
7
- data.tar.gz: d05b08bbcc5fcdcd019db742e150b5579e2072a16239ce27dd3ffed9678469c86f5dc7093bab1890bcb2c9c41208afc5095119f3b799f57eac7a8414d0f7bbf0
6
+ metadata.gz: 25330d252d999bd2ea4c457c6e8a4590767fee788202878c458bc8bf640c0ac2e0417045148a3534e5e01fcee19dad614702596b725c5753d6495d88aed2fbea
7
+ data.tar.gz: 8b27451d152c466f6cd713692d385aad0106dd1a2018ad97a54b2d28c9edf86b527a11d0c7fe8104b9dedb6b8ab88a8c6d88f991af986d9551250af39ca8fc86
data/CHANGELOG.md CHANGED
@@ -1,4 +1,8 @@
1
1
  # Change Log
2
+ ## [4.39.0](https://github.com/plivo/plivo-ruby/tree/v4.39.0) (2023-03-17)
3
+ **Adding new attribute - 'created_at' in List Profiles, Get Profile, List Brands, Get Brand, List Campaigns and Get Campaign APIs**
4
+ - dding new attribute - 'created_at' in List Profiles, Get Profile, List Brands, Get Brand, List Campaigns and Get Campaign APIs
5
+
2
6
  ## [4.38.1](https://github.com/plivo/plivo-ruby/tree/v4.38.1) (2023-03-06)
3
7
  **Bug fix on create message**
4
8
  - Bulk send message fix
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,7 +9,7 @@ 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'
12
+ gem 'plivo', '>= 4.39.0'
13
13
  ```
14
14
 
15
15
  And then execute:
@@ -191,5 +191,10 @@ export PLIVO_API_PROD_HOST=<plivoapi_public_endpoint>
191
191
  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
192
  > To use the local code in the test file, import the sdk in test file using:
193
193
  `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)
194
+ 6. To run test code, run `make run CONTAINER=<cont_id>` in host.
195
+ 7. To run unit tests, run `make test CONTAINER=<cont_id>` in host.
196
+ > `<cont_id>` is the docker container id created in 2.
197
+ (The docker container should be running)
198
+
199
+ > Test code and unit tests can also be run within the container using
200
+ `make run` and `make test` respectively. (`CONTAINER` argument should be omitted when running from the container)
data/lib/plivo/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Plivo
2
- VERSION = "4.38.1".freeze
2
+ VERSION = "4.39.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.39.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-03-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday