ticket_abstractor_client 1.5.0 → 1.6.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ebf4a28b1c899618e7bf90134ac830b65464f2ed
4
- data.tar.gz: 35db0162cd4ec0ce8904ceaef6ea7ffac993e547
3
+ metadata.gz: 505909a186f7ebd48629c855bf03380be9a19d2b
4
+ data.tar.gz: 5d5abd2061e6e1bc1ea2fa4f88edcd38b7c08f7e
5
5
  SHA512:
6
- metadata.gz: 7d7d994f7b5aa4bfc12ed339a1aee922d3dda51eb5fc19c552c4ffe9cba037fa1ca102dcd028f61524e36964b5dd60f5f59cea8643d78b2974fd68476b981892
7
- data.tar.gz: 2c9d34ae79372447a6a1370c217fecb6371c68b38e40cbf958cd783fc073b3a6e1d982c397f04b5f9de5e6d008d94e0e18baa829b1fcf47c712c63e15ac50cfe
6
+ metadata.gz: bb036f20c3d313d6f6ba2a99428ec731c469cd64b0086a68e0e5468bc64735c0c7f15d30337103702b8d9aaf4c0b18a1a9a2956da3646bb8b8ceb46d4c1aebc3
7
+ data.tar.gz: 7693bba0275ce85f820fca067134202c6d3f801ffa4956ec0b332bbcb458fc01f7dcdc340467cf17d69af5322270d6507190227582fe15c5486a8273d68b8821
data/README.md CHANGED
@@ -20,6 +20,11 @@ Or install it yourself as:
20
20
 
21
21
  [API Documentation](http://rubydoc.info/gems/ticket_abstractor_client/frames)
22
22
 
23
+ ## Upgrading
24
+
25
+ Since version 1.5.0, `TicketAbstractorClient.initialize_client` returns an instance of `TicketAbstractorClient::Base`
26
+ instead of `TicketAbstractorClient` class.
27
+
23
28
  ## Usage
24
29
 
25
30
  Initialize:
@@ -90,8 +90,10 @@ class TicketAbstractorClient::JiraClient < TicketAbstractorClient::Client
90
90
  # # get the list of first 50 issues by filter 24320
91
91
  # >> client.jira.get_issues_by_filter 24320, 1, 50
92
92
  # => [{ 'id' => 'ID-1', ... }, { 'id' => 'ID-2', ... }]
93
- def get_issues_by_filter(filter_id, page = 0, per_page = 50)
94
- get_with_endpoint 'jira/get_issues_by_filter', filter_id: filter_id, page: page, per_page: per_page
93
+ # >> client.jira.get_issues_by_filter 24320, 1, 50, show_total: true
94
+ # => total: 2, issues: [{ 'id' => 'ID-1', ... }, { 'id' => 'ID-2', ... }]
95
+ def get_issues_by_filter(filter_id, page = 0, per_page = 50, opts = {})
96
+ get_with_endpoint 'jira/get_issues_by_filter', filter_id: filter_id, page: page, per_page: per_page, show_total: opts.delete(:show_total)
95
97
  end
96
98
 
97
99
  def get_fields_by_project(project_key)
@@ -1,3 +1,3 @@
1
1
  module TicketAbstractorClient
2
- VERSION = '1.5.0'
2
+ VERSION = '1.6.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ticket_abstractor_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.0
4
+ version: 1.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - rsamoilov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-08-28 00:00:00.000000000 Z
11
+ date: 2014-09-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler