readme.md in cmis-ruby-0.5.2 vs readme.md in cmis-ruby-0.5.3
- old
+ new
@@ -9,10 +9,12 @@
**CMIS ruby** is a [CMIS](http://chemistry.apache.org/project/cmis.html) client library, using the the _CMIS Browser Binding_ ([CMIS 1.1](http://docs.oasis-open.org/cmis/CMIS/v1.1/CMIS-v1.1.html)).
## Example usage
```ruby
+require 'cmis'
+
# get the repository object
server = CMIS::Server.new(service_url: 'http://33.33.33.100:8080/browser',
username: 'foo', password: 'bar')
repository = server.repository('my_repository')
@@ -32,11 +34,11 @@
document = repository.new_document
document.name = 'new_document'
document.object_type_id = 'cmis:document'
document = document.create_in_folder(repository.root)
-# query for first 50 documents where the property foo is 'bar'
-query = repository.query("select * from cmis:document where foo='bar'")
+# query for first 50 documents where the property 'cmis:name' is 'bar'
+query = repository.query("select * from cmis:document where cmis:name='bar'")
query.each_result(limit: 50) { |document| puts document.cmis_object_id }
```
## Running specs