README.md in intercom-3.9.0 vs README.md in intercom-3.9.2

- old
+ new

@@ -21,11 +21,11 @@ gem install intercom Using bundler: - gem 'intercom', '~> 3.8.1' + gem 'intercom', '~> 3.9.0' ## Basic Usage ### Configure your client @@ -468,13 +468,17 @@ # Please see users scroll for more details of how to use scroll ``` #### Customers +Our Customer API is a central place for all the information on your customers, whether they're users or leads. More detail in our API documentation on [Customers](https://developers.intercom.com/intercom-api-reference/v0/reference#customers). + +```ruby # Search for customers customers = intercom.customers.search(query: { "field": "name", "operator": "=", "value": "Alice"}, per_page: 50, sort_field: "name", sort_order: "ascending") customers.each { |customer| p customer.name } +``` #### Counts ```ruby # App-wide counts @@ -554,5 +558,26 @@ multiple pull requests. - **Send coherent history**. Make sure each individual commit in your pull request is meaningful. If you had to make multiple intermediate commits while developing, please squash them before sending them to us. + +### Development + +#### Running tests + +```bash +# all tests +bundle exec spec + +# unit tests +bundle exec spec:unit + +# integration tests +bundle exec spec:integration + +# single test file +bundle exec m spec/unit/intercom/job_spec.rb + +# single test +bundle exec m spec/unit/intercom/job_spec.rb:49 +```