ytrello 0.18.1 → 0.19.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
- SHA1:
3
- metadata.gz: 68066276cd589d187fb97b1554d762efaee9026c
4
- data.tar.gz: 4d258a47e7bbea25377f97c84cb322ff608d5733
2
+ SHA256:
3
+ metadata.gz: 95d736324bf284cce1fc672f038992b42b551db03be4406ad0fdb6dcf3c38c6e
4
+ data.tar.gz: a499d8bceb2e5180d9ff61753523152d782bc8946e515775baf98034281ba224
5
5
  SHA512:
6
- metadata.gz: 0667fe7ace18b4f8972867f252cb8029c2ecc39dba42c7d5288a39c99bb4627fe19e866eeb0e53f84f952ca94c07444564a34fca30f0529fd67097516ac2e14a
7
- data.tar.gz: e8918edd7df36efef78e216b8abee1be7595936e7bcdbb3b20345e2e96b1c939561e8874fc04fd63423d9742d9ee5fc0b47ca3a6cf4d6539eb768a97c4faf213
6
+ metadata.gz: 5e608ef1aa8250ce7f88b9eb0b6bddc1fc36a9e4610a92c46eee909ea0868a1fce4c362dd18aeb2af41145e0131707bf73d4b19b4bd063ae6af00ea780adf2f1
7
+ data.tar.gz: e8b1ead4463c8daa76e0d144244c549cd9bf273596984a13bbe70516a9fac303c73662596b5d2f77d15f18d62f84488f96ee2c31b694ec9e254ac4dbb7ff8b7f
@@ -29,7 +29,7 @@ Metrics/LineLength:
29
29
  - http
30
30
  - https
31
31
 
32
- Style/AlignHash:
32
+ Layout/AlignHash:
33
33
  StyleGuide: https://github.com/SUSE/style-guides/blob/master/Ruby.md#stylealignhash
34
34
  EnforcedHashRocketStyle: table
35
35
  EnforcedColonStyle: table
@@ -43,11 +43,11 @@ Style/CollectionMethods:
43
43
  StyleGuide: https://github.com/SUSE/style-guides/blob/master/Ruby.md#stylecollectionmethods
44
44
  Enabled: false
45
45
 
46
- Style/EmptyLinesAroundBlockBody:
46
+ Layout/EmptyLinesAroundBlockBody:
47
47
  StyleGuide: https://github.com/SUSE/style-guides/blob/master/Ruby.md#styleemptylinesaroundblockbody
48
48
  Enabled: false
49
49
 
50
- Style/MultilineOperationIndentation:
50
+ Layout/MultilineOperationIndentation:
51
51
  StyleGuide: https://github.com/SUSE/style-guides/blob/master/Ruby.md#stylemultilineoperationindentation
52
52
  EnforcedStyle: indented
53
53
 
@@ -79,12 +79,12 @@ Style/SignalException:
79
79
  ################################################################################
80
80
 
81
81
  # no extra indentation for multiline function calls
82
- Style/AlignParameters:
82
+ Layout/AlignParameters:
83
83
  EnforcedStyle: with_fixed_indentation
84
84
 
85
85
  # no extra indentation for case
86
- Style/CaseIndentation:
87
- IndentWhenRelativeTo: end
86
+ Layout/CaseIndentation:
87
+ EnforcedStyle: end
88
88
 
89
89
  # "unless" has a different connotation than "if not"
90
90
  Style/NegatedIf:
@@ -97,8 +97,16 @@ Metrics/MethodLength:
97
97
  Metrics/ClassLength:
98
98
  Max: 250
99
99
 
100
+ Metrics/BlockLength:
101
+ Exclude:
102
+ - '**/*.gemspec'
103
+
104
+ Layout/IndentHeredoc:
105
+ Enabled: false
106
+
100
107
  AllCops:
101
108
  # do not check the locally installed gems
102
109
  Exclude:
103
110
  - '.vendor/**/*'
104
111
  - 'vendor/**/*'
112
+ - 'package/*.spec'
data/README.md CHANGED
@@ -8,7 +8,7 @@ Tools to help with the YaST Trello boards.
8
8
 
9
9
  - [bicho.gem][b] >= 0.0.10
10
10
  - [ruby-trello.gem][t]
11
- - [python-bugzilla][p], with the SUSE flavor
11
+ - [python-bugzilla][p] >= 2.1.0
12
12
 
13
13
  [b]: https://github.com/dmacvicar/bicho
14
14
  [t]: https://github.com/jeremytregunna/ruby-trello
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.18.1
1
+ 0.19.0
@@ -3,9 +3,11 @@
3
3
  bug_num = ARGV[0]
4
4
  card_url = ARGV[1]
5
5
 
6
- has_url = `bugzilla query --outputformat='%{bug_file_loc}' -b #{bug_num}`.chomp
6
+ SUSE_BZ = "--bugzilla=https://bugzilla.suse.com/xmlrpc.cgi".freeze
7
+
8
+ has_url = `bugzilla #{SUSE_BZ} query --outputformat='%{bug_file_loc}' -b #{bug_num}`.chomp
7
9
 
8
10
  if has_url.empty?
9
- system "bugzilla", "modify", "--url", card_url, bug_num
11
+ system "bugzilla", SUSE_BZ, "modify", "--url", card_url, bug_num
10
12
  puts "Card URL added to Bugzilla"
11
13
  end
@@ -66,8 +66,10 @@ def trello_cards
66
66
  inc_board = Trello::Board.find(INC_BOARD_ID) || raise
67
67
  t1_board = Trello::Board.find(TEAM_1_BOARD_ID) || raise
68
68
  ta_board = Trello::Board.find(TEAM_A_BOARD_ID) || raise
69
+ ts_board = Trello::Board.find(TEAM_S_NO_SCRUM) || raise
69
70
 
70
- to_array(inc_board.cards) + to_array(t1_board.cards) + to_array(ta_board.cards)
71
+ to_array(inc_board.cards) + to_array(t1_board.cards) + to_array(ta_board.cards) +
72
+ to_array(ts_board.cards)
71
73
  end
72
74
 
73
75
  # @return [Hash<Fixnum,Trello::Card>] map bug ID => Trello card
@@ -65,13 +65,13 @@ end
65
65
  # @param bug_id bug number
66
66
  # @return [String] description text in the Markdown format
67
67
  def card_description(bug_id)
68
- descr = <<EOT
68
+ descr = <<TXT
69
69
  Bugzilla: #{bz_markdown_link(bug_id)}
70
70
 
71
71
  ---
72
72
  ## Review
73
73
  - Pull Request: *URL here*
74
- EOT
74
+ TXT
75
75
 
76
76
  # just to avoid the trailing blank errors in the heredoc
77
77
  descr + "- "
@@ -16,10 +16,12 @@ TXT
16
16
  exit 1
17
17
  end
18
18
 
19
- assignee = `bugzilla query --outputformat='%{assigned_to}' -b #{bug_num}`
19
+ SUSE_BZ = "--bugzilla=https://bugzilla.suse.com/xmlrpc.cgi".freeze
20
+
21
+ assignee = `bugzilla #{SUSE_BZ} query --outputformat='%{assigned_to}' -b #{bug_num}`.chomp
20
22
  if assignee == FROM
21
23
  puts "Changing assignee from #{assignee} to #{TO}"
22
- system "bugzilla", "modify", "--assignee", TO, bug_num
24
+ system "bugzilla", SUSE_BZ, "modify", "--assignee", TO, bug_num
23
25
  elsif assignee == TO
24
26
  puts "Assignee #{assignee} is already correct; unchanged"
25
27
  else
@@ -6,6 +6,7 @@ require "yaml"
6
6
  INC_BOARD_ID = "5507f013b863aa041618871d".freeze # Agile YaST Incoming Board
7
7
  TEAM_1_BOARD_ID = "5502d5dd8eb45fb4581c1a0f".freeze # Agile YaST: Team 1
8
8
  TEAM_A_BOARD_ID = "557833ad6be7b9634f089201".freeze # Agile YaST: Team A
9
+ TEAM_S_NO_SCRUM = "5a55d35ca6cb8d380b5a6f37".freeze # Agile YaST: Team S no Scrum
9
10
 
10
11
  # Trello list IDs, see also show_list_ids
11
12
  CHECKED_LISTS = [
@@ -43,7 +44,19 @@ CHECKED_LISTS = [
43
44
  # Sprint Backlog
44
45
  "5502d69d3e68ab3d1729337e",
45
46
  # Doing
46
- "557833dde4f1218b7d1cf831"
47
+ "557833dde4f1218b7d1cf831",
48
+
49
+ # Team S No SCRUM
50
+ # Incoming Backlog (storage-ng)
51
+ "5502d691d05c3b3817317566",
52
+ # Incoming backlog (other)
53
+ "5a86c1c40f43d52085c37808",
54
+ # Current Backlog
55
+ "56b1c34524d3a3599234affb",
56
+ # Doing
57
+ "557833dde4f1218b7d1cf831",
58
+ # Done
59
+ "5a26d54ecd9e0bb490360204"
47
60
  ].freeze
48
61
 
49
62
  BUGZILLA_URL = "https://bugzilla.suse.com".freeze
@@ -0,0 +1,18 @@
1
+ -------------------------------------------------------------------
2
+ Tue Aug 20 13:58:09 UTC 2019 - Martin Vidner <mvidner@suse.com>
3
+
4
+ - Adapt to the way python-bugzilla 2.1.0 needs pointing to
5
+ bugzilla.suse.com
6
+ - 0.19.0
7
+
8
+ -------------------------------------------------------------------
9
+ Wed Feb 28 10:04:48 UTC 2018 - mvidner@suse.com
10
+
11
+ - Accept also newer ruby-trello, 2.0
12
+ - 0.18.1
13
+
14
+ -------------------------------------------------------------------
15
+ Tue Feb 27 15:11:59 UTC 2018 - mvidner@suse.com
16
+
17
+ - Initial version
18
+ - 0.18.0
@@ -0,0 +1,52 @@
1
+ #
2
+ # spec file for package rubygem-ytrello
3
+ #
4
+ # Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
5
+ #
6
+ # All modifications and additions to the file contributed by third parties
7
+ # remain the property of their copyright owners, unless otherwise agreed
8
+ # upon. The license for this file, and modifications and additions to the
9
+ # file, is the same license as for the pristine package itself (unless the
10
+ # license for the pristine package is not an Open Source License, in which
11
+ # case the license is the MIT License). An "Open Source License" is a
12
+ # license that conforms to the Open Source Definition (Version 1.9)
13
+ # published by the Open Source Initiative.
14
+
15
+ # Please submit bugfixes or comments via http://bugs.opensuse.org/
16
+ #
17
+
18
+ Name: rubygem-ytrello
19
+ Version: 0.19.0
20
+ Release: 0
21
+ %define mod_name ytrello
22
+ %define mod_full_name %{mod_name}-%{version}
23
+ BuildRoot: %{_tmppath}/%{name}-%{version}-build
24
+ Requires: python-bugzilla >= 2.1.0
25
+ BuildRequires: ruby-macros >= 5
26
+ BuildRequires: %{ruby}
27
+ BuildRequires: %{rubygem gem2rpm}
28
+ BuildRequires: update-alternatives
29
+ Url: https://github.com/mvidner/ytrello
30
+ Source: https://rubygems.org/gems/%{mod_full_name}.gem
31
+ Summary: Tools to help with the YaST Trello boards and Bugzilla
32
+ License: MIT
33
+ Group: Development/Languages/Ruby
34
+ PreReq: update-alternatives
35
+
36
+ %description
37
+ Ytrello are tools to help my Scrum team manage Trello cards and Bugzilla bugs.
38
+ Much of the configuration is harcoded now, yuck!.
39
+
40
+ %prep
41
+
42
+ %build
43
+
44
+ %install
45
+ %gem_install \
46
+ --symlink-binaries \
47
+ --doc-files="README.md" \
48
+ -f
49
+
50
+ %gem_packages
51
+
52
+ %changelog
@@ -1,5 +1,3 @@
1
- # -*- encoding: utf-8 -*-
2
-
3
1
  require File.expand_path(File.dirname(__FILE__) + "/lib/ytrello/version")
4
2
 
5
3
  Gem::Specification.new do |s|
@@ -22,7 +20,6 @@ TXT
22
20
  ".rubocop.yml",
23
21
  ".travis.yml",
24
22
  "Gemfile",
25
- "Gemfile.lock",
26
23
  "README.md",
27
24
  "VERSION",
28
25
  "bin/ytrello",
@@ -34,16 +31,18 @@ TXT
34
31
  "devel/show_list_ids",
35
32
  "lib/ytrello.rb",
36
33
  "lib/ytrello/version.rb",
34
+ "package/rubygem-ytrello.changes",
35
+ "package/rubygem-ytrello.spec",
37
36
  "ytrello.gemspec"
38
37
  ]
39
38
 
40
39
  s.executables = s.files.grep(/^bin\//) { |f| File.basename(f) }
41
40
 
42
- s.requirements << "python-bugzilla, with the SUSE flavor"
41
+ s.requirements << "python-bugzilla >= 2.1.0"
43
42
 
44
43
  s.add_dependency "bicho", ">= 0.0.10"
45
44
  s.add_dependency "ruby-trello", ">= 1.3.0"
46
45
  s.add_dependency "rainbow", ">= 2.0.0"
47
46
 
48
- s.add_development_dependency "rubocop", "0.41.2"
47
+ s.add_development_dependency "rubocop", "0.50.0"
49
48
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ytrello
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.18.1
4
+ version: 0.19.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Martin Vidner
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-02-28 00:00:00.000000000 Z
11
+ date: 2019-08-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bicho
@@ -58,14 +58,14 @@ dependencies:
58
58
  requirements:
59
59
  - - '='
60
60
  - !ruby/object:Gem::Version
61
- version: 0.41.2
61
+ version: 0.50.0
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - '='
67
67
  - !ruby/object:Gem::Version
68
- version: 0.41.2
68
+ version: 0.50.0
69
69
  description: |
70
70
  Ytrello are tools to help my Scrum team manage Trello cards and Bugzilla bugs.
71
71
  Much of the configuration is harcoded now, yuck!
@@ -83,7 +83,6 @@ files:
83
83
  - ".rubocop.yml"
84
84
  - ".travis.yml"
85
85
  - Gemfile
86
- - Gemfile.lock
87
86
  - README.md
88
87
  - VERSION
89
88
  - bin/ytrello
@@ -95,6 +94,8 @@ files:
95
94
  - devel/show_list_ids
96
95
  - lib/ytrello.rb
97
96
  - lib/ytrello/version.rb
97
+ - package/rubygem-ytrello.changes
98
+ - package/rubygem-ytrello.spec
98
99
  - ytrello.gemspec
99
100
  homepage: https://github.com/mvidner/ytrello
100
101
  licenses:
@@ -115,9 +116,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
115
116
  - !ruby/object:Gem::Version
116
117
  version: '0'
117
118
  requirements:
118
- - python-bugzilla, with the SUSE flavor
119
+ - python-bugzilla >= 2.1.0
119
120
  rubyforge_project:
120
- rubygems_version: 2.2.5
121
+ rubygems_version: 2.7.6.2
121
122
  signing_key:
122
123
  specification_version: 4
123
124
  summary: Tools to help with the YaST Trello boards and Bugzilla