githubissues-port 1.4.6 → 1.4.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -41,8 +41,10 @@ module Githubissues
41
41
  if @params[:params]['options']=='and'
42
42
  params=params.merge({:labels=>@params[:params]['labels'].join(',')}) unless @params[:params][:labels].blank?
43
43
  else
44
- params=params.merge({:labels=>labels}) unless labels.blank?
44
+ params=params.merge({:labels=>labels}) unless labels.blank? && @params[:params][:labels].blank?
45
45
  end
46
+ p "paramssssssssssssssssssssssss"
47
+ p params
46
48
  params
47
49
 
48
50
  end
@@ -52,14 +54,18 @@ module Githubissues
52
54
  heading = sheet.styles.add_style sz: 12,b:true, fg_color: "0C65D1"
53
55
  sheet.add_row @fields ,style:heading
54
56
  issues=[]
55
- if @params[:params]['options']=='or'
56
- @params[:params]['labels'].each do |labels|
57
- issues=issues + (connection.issues.list self.generate_params(state,labels))
58
- end
57
+ if @params[:params][:labels].blank?
58
+ labels=[]
59
+ issues=connection.issues.list self.generate_params(state,labels)
60
+ elsif @params[:params]['options']=='or'
61
+ @params[:params]['labels'].each do |labels|
62
+ issues=issues + (connection.issues.list self.generate_params(state,labels))
63
+ end
59
64
  else
60
65
  labels=[]
61
66
  issues=connection.issues.list self.generate_params(state,labels)
62
67
  end
68
+
63
69
  issues.each{|issue| sheet.add_row generate_row(issue)}
64
70
  end
65
71
  end
@@ -19,6 +19,8 @@ module Githubissues
19
19
  def parse_excel
20
20
  creek = Creek::Book.new path, :check_file_extension => false
21
21
  sheet= creek.sheets[0]
22
+ p "***********************************88"
23
+ p sheet.rows.size
22
24
  sheet.rows.each_with_index do |row, row_index|
23
25
  break if row.first.nil? and row[1].nil?
24
26
  row_number = row_index + 1
@@ -1,5 +1,5 @@
1
1
  module Githubissues
2
2
  module Port
3
- VERSION = "1.4.6"
3
+ VERSION = "1.4.7"
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.6
4
+ version: 1.4.7
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: &76692150 !ruby/object:Gem::Requirement
18
+ requirement: &82052410 !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: *76692150
26
+ version_requirements: *82052410
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: creek
29
- requirement: &76691620 !ruby/object:Gem::Requirement
29
+ requirement: &82052080 !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: *76691620
37
+ version_requirements: *82052080
38
38
  - !ruby/object:Gem::Dependency
39
39
  name: axlsx
40
- requirement: &76691150 !ruby/object:Gem::Requirement
40
+ requirement: &82051600 !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: *76691150
48
+ version_requirements: *82051600
49
49
  - !ruby/object:Gem::Dependency
50
50
  name: rake
51
- requirement: &76688720 !ruby/object:Gem::Requirement
51
+ requirement: &82051170 !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: *76688720
59
+ version_requirements: *82051170
60
60
  - !ruby/object:Gem::Dependency
61
61
  name: rspec
62
- requirement: &76688410 !ruby/object:Gem::Requirement
62
+ requirement: &82050750 !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: *76688410
70
+ version_requirements: *82050750
71
71
  description: An Excel import/export extension for github issues in Ruby.
72
72
  email:
73
73
  executables: []