githubissues-port 1.4.5 → 1.4.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -38,7 +38,11 @@ module Githubissues
38
38
  params=params.merge({:creator=>@params[:params]['creator']}) unless @params[:params]['creator'].blank?
39
39
  params=params.merge({:mentioned=>@params[:params]['mentioned']}) unless @params[:params]['mentioned'].blank?
40
40
  params=params.merge({:since=>@params[:params]['datepicker'].to_time.utc.iso8601.split('+')[0]}) unless @params[:params]['datepicker'].blank?
41
- params=params.merge({:labels=>labels}) unless labels.blank?
41
+ if @params[:params]['options']=='and'
42
+ params=params.merge({:labels=>@params[:params]['labels'].join(',')}) unless @params[:params][:labels].blank?
43
+ else
44
+ params=params.merge({:labels=>labels}) unless labels.blank?
45
+ end
42
46
  params
43
47
 
44
48
  end
@@ -48,10 +52,14 @@ module Githubissues
48
52
  heading = sheet.styles.add_style sz: 12,b:true, fg_color: "0C65D1"
49
53
  sheet.add_row @fields ,style:heading
50
54
  issues=[]
51
- @params[:params]['labels'].each do |labels|
55
+ if @params[:params]['options']=='or'
56
+ @params[:params]['labels'].each do |labels|
52
57
  issues=issues + (connection.issues.list self.generate_params(state,labels))
58
+ end
59
+ else
60
+ labels=[]
61
+ issues=connection.issues.list self.generate_params(state,labels)
53
62
  end
54
-
55
63
  issues.each{|issue| sheet.add_row generate_row(issue)}
56
64
  end
57
65
  end
@@ -1,5 +1,5 @@
1
1
  module Githubissues
2
2
  module Port
3
- VERSION = "1.4.5"
3
+ VERSION = "1.4.6"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: githubissues-port
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.5
4
+ version: 1.4.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -15,7 +15,7 @@ date: 2014-03-18 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: github_api
18
- requirement: &69545270 !ruby/object:Gem::Requirement
18
+ requirement: &76692150 !ruby/object:Gem::Requirement
19
19
  none: false
20
20
  requirements:
21
21
  - - ! '>='
@@ -23,10 +23,10 @@ dependencies:
23
23
  version: '0'
24
24
  type: :runtime
25
25
  prerelease: false
26
- version_requirements: *69545270
26
+ version_requirements: *76692150
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: creek
29
- requirement: &69545030 !ruby/object:Gem::Requirement
29
+ requirement: &76691620 !ruby/object:Gem::Requirement
30
30
  none: false
31
31
  requirements:
32
32
  - - ! '>='
@@ -34,10 +34,10 @@ dependencies:
34
34
  version: '0'
35
35
  type: :runtime
36
36
  prerelease: false
37
- version_requirements: *69545030
37
+ version_requirements: *76691620
38
38
  - !ruby/object:Gem::Dependency
39
39
  name: axlsx
40
- requirement: &69544480 !ruby/object:Gem::Requirement
40
+ requirement: &76691150 !ruby/object:Gem::Requirement
41
41
  none: false
42
42
  requirements:
43
43
  - - ~>
@@ -45,10 +45,10 @@ dependencies:
45
45
  version: 2.0.1
46
46
  type: :runtime
47
47
  prerelease: false
48
- version_requirements: *69544480
48
+ version_requirements: *76691150
49
49
  - !ruby/object:Gem::Dependency
50
50
  name: rake
51
- requirement: &69544180 !ruby/object:Gem::Requirement
51
+ requirement: &76688720 !ruby/object:Gem::Requirement
52
52
  none: false
53
53
  requirements:
54
54
  - - ~>
@@ -56,10 +56,10 @@ dependencies:
56
56
  version: 10.1.1
57
57
  type: :development
58
58
  prerelease: false
59
- version_requirements: *69544180
59
+ version_requirements: *76688720
60
60
  - !ruby/object:Gem::Dependency
61
61
  name: rspec
62
- requirement: &69543930 !ruby/object:Gem::Requirement
62
+ requirement: &76688410 !ruby/object:Gem::Requirement
63
63
  none: false
64
64
  requirements:
65
65
  - - ! '>='
@@ -67,7 +67,7 @@ dependencies:
67
67
  version: '0'
68
68
  type: :development
69
69
  prerelease: false
70
- version_requirements: *69543930
70
+ version_requirements: *76688410
71
71
  description: An Excel import/export extension for github issues in Ruby.
72
72
  email:
73
73
  executables: []