jira-auto-tool 1.3.1 → 1.3.4

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
  SHA256:
3
- metadata.gz: 10216d00bff952b0f764be5150489605b0835257b5cf2a7bc3e6bc0527ae5df2
4
- data.tar.gz: 0bff2827284487e193514144646217815d5d179edf992b36267d3527585678e1
3
+ metadata.gz: '06931de3ce2612a3b9d197d07ec86830e72fa073cad7fd7c300a1ad10e471875'
4
+ data.tar.gz: 1d9fa3926f4edb82b52e6dc6a411fb646297853a9874ce6e16956fb3c9663018
5
5
  SHA512:
6
- metadata.gz: 318110a62382739e49b26fbab45218dec7c7df8df9dfdb2504799edbaf1b4f4c9e5aecc43aec21c1f5df3a72454614f7f863895b80978336e2768be398342d20
7
- data.tar.gz: 72dad5846292a289e58a5ae9990d876a7739024d0bcc70c6b5695dad4d842aee8ae8936f8b3cbf30db25bb3741c14ecc24e16f8f2aea2e0d13711e8101f0cd56
6
+ metadata.gz: f6ec0eacb94445e7fd81eb53f742c5217ff602201f1c4d8c5c33b490a375aa659e1db88c1e7cda0ffd7d7c082b53598b31a450d807d1f9ffa2b25cbe09b9fc53
7
+ data.tar.gz: 4e6638efb7a3df6233067e42fac89bbfa80432f63429c97e63f9add8e404e383729888b39cbf43c44acd9c8d49a31f7dec9e262da9ede8ad83c1008c41b5773a
data/Rakefile CHANGED
@@ -5,9 +5,7 @@ require "rspec/core/rake_task"
5
5
  require "cucumber"
6
6
  require "cucumber/rake/task"
7
7
  require "rake"
8
-
9
- # Load custom tasks
10
- Dir.glob("lib/tasks/**/*.rake").each { |r| load r }
8
+ require "rake/gem_maintenance/install_tasks"
11
9
 
12
10
  RSpec::Core::RakeTask.new(:spec)
13
11
 
@@ -21,4 +19,7 @@ Cucumber::Rake::Task.new do |t|
21
19
  t.profile = "rake"
22
20
  end
23
21
 
24
- task default: %i[rubocop spec cucumber]
22
+ task default: :verify
23
+
24
+ desc "Run all checks"
25
+ task verify: %i[rubocop spec cucumber]
@@ -19,7 +19,7 @@ Feature: Control the HTTP request rate limit
19
19
 
20
20
  Examples:
21
21
  | jat_rate_limit_implementation | rate_limit_per_interval | rate_interval_in_seconds | minimal_time | maximal_time |
22
- | | 0 | 0 | 0 | 7 |
22
+ | | 0 | 0 | 0 | 5 |
23
23
  | in_process | 1 | 1 | 1 | 20 |
24
24
  | redis | 1 | 2 | 1 | 20 |
25
25
  | redis | 1 | 10 | 18 | 120 |
@@ -3,7 +3,7 @@
3
3
  module Jira
4
4
  module Auto
5
5
  class Tool
6
- VERSION = "1.3.1"
6
+ VERSION = "1.3.4"
7
7
  end
8
8
  end
9
9
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jira-auto-tool
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.1
4
+ version: 1.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christophe Broult
@@ -325,7 +325,6 @@ files:
325
325
  - lib/jira/auto/tool/ticket.rb
326
326
  - lib/jira/auto/tool/until_date.rb
327
327
  - lib/jira/auto/tool/version.rb
328
- - lib/tasks/version.rake
329
328
  - sig/jira/sprint/tool.rbs
330
329
  - spec/jira/auto/tool/board/cache_spec.rb
331
330
  - spec/jira/auto/tool/board/unavailable_board_spec.rb
@@ -400,7 +399,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
400
399
  - !ruby/object:Gem::Version
401
400
  version: '0'
402
401
  requirements: []
403
- rubygems_version: 4.0.3
402
+ rubygems_version: 4.0.6
404
403
  specification_version: 4
405
404
  summary: Automate making adjustments to Jira sprints for multiple teams following
406
405
  some naming conventions.
@@ -1,64 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- def validate_version_type(type)
4
- valid_types = %w[patch minor major]
5
- return if valid_types.include?(type)
6
-
7
- puts "Error: Version type must be one of: #{valid_types.join(", ")}"
8
- exit 1
9
- end
10
-
11
- def execute_version_bump(type)
12
- puts "Bumping #{type} version..."
13
- bump_result = system("bundle exec gem bump --version #{type}")
14
- return if bump_result
15
-
16
- puts "Error: Failed to bump version"
17
- exit 1
18
- end
19
-
20
- def update_gemfile_lock
21
- puts "Updating Gemfile.lock..."
22
- bundle_result = system("bundle install")
23
- return if bundle_result
24
-
25
- puts "Error: Failed to update Gemfile.lock"
26
- exit 1
27
- end
28
-
29
- def amend_commit_to_include_gemfile_lock_changes
30
- puts "Amending commit to include Gemfile.lock update..."
31
- system("git add .")
32
- system("git commit --amend --no-edit")
33
- end
34
-
35
- namespace :version do
36
- desc "Bump version (patch, minor, major) and update Gemfile.lock in a single step. Default: patch"
37
- task :bump, [:type] do |_t, args|
38
- args.with_defaults(type: "patch")
39
-
40
- validate_version_type(args.type)
41
-
42
- execute_version_bump(args.type)
43
- update_gemfile_lock
44
- amend_commit_to_include_gemfile_lock_changes
45
-
46
- puts <<~EOEM
47
- Version successfully bumped and committed!
48
-
49
- Run 'git push' to push the changes to your remote repository.
50
- EOEM
51
- end
52
- end
53
-
54
- desc "Alias for version:bump"
55
- task :bump, [:type] => ["version:bump"]
56
-
57
- desc "Upgrade gems, including bundler and gem"
58
- task :upgrade do
59
- sh "gem update --system"
60
- sh "gem update"
61
- sh "bundle update --bundler"
62
- sh "bundle update --all"
63
- sh "bundle audit"
64
- end