plivo 4.38.1 → 4.39.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 +4 -4
- data/CHANGELOG.md +4 -0
- data/Makefile +8 -1
- data/README.md +8 -3
- data/lib/plivo/version.rb +1 -1
- data/setup_sdk.sh +11 -9
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c451fadd27c08384818a03360ae048bd26f26c33
|
|
4
|
+
data.tar.gz: 880265957250ef7d36bba99cfc3b48e7e0bcf18f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
-
|
|
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.
|
|
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
|
|
195
|
-
|
|
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
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
|
|
38
|
-
echo -e "\t\
|
|
39
|
-
echo -e "\
|
|
40
|
-
echo
|
|
41
|
-
echo -e "\
|
|
42
|
-
echo -e "\
|
|
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.
|
|
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-
|
|
11
|
+
date: 2023-03-17 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: faraday
|