README.md in redmine_rest-0.1.1 vs README.md in redmine_rest-0.2.0
- old
+ new
@@ -1,6 +1,7 @@
# RedmineRest
+[![Gem Version](https://badge.fury.io/rb/redmine_rest.svg)](https://badge.fury.io/rb/redmine_rest)
This is gem with some ActiveResource models for Redmine.
## Installation
@@ -19,13 +20,22 @@
$ gem install redmine_rest
## Usage
- RedmineRest::Models.configure_models user: 'user', password: 'password', site: 'URL'
- # or by using apikey:
- RedmineRest::Models.configure_models apikey: 'apikey', site: 'URL'
- issue = RedmineRest::Models::Issue.find(1234)
+```ruby
+RedmineRest::Models.configure_models user: 'user', password: 'password', site: 'URL'
+# or by using apikey:
+RedmineRest::Models.configure_models apikey: 'apikey', site: 'URL'
+
+include RedmineRest::Models
+issues_by_project = Issue.all.group_by_project
+issues_by_project.each do |project, issues|
+ puts project.name
+ issues.each { |i| puts i.subject }
+ puts
+end
+```
## Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/Nondv/redmine_rest.