You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**Adding new attribute - 'requester_ip' in Get Message and List Mssage APIs**
5
+
- 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)
2. Run `make build`. This will create a docker container in which the sdk will be setup and dependencies will be installed.
187
+
> The entrypoint of the docker container will be the `setup_sdk.sh` script. The script will handle all the necessary changes required for local development.
188
+
3. The above command will print the docker container id (and instructions to connect to it) to stdout.
189
+
4. The testing code can be added to `<sdk_dir_path>/ruby-sdk-test/test.rb` in host
190
+
(or `/usr/src/app/ruby-sdk-test/test.rb` in container)
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
+
> To use the local code in the test file, import the sdk in test file using:
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.
0 commit comments