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 +4 -4
- data/Rakefile +5 -4
- data/features/control_http_request_rate_limit.feature +1 -1
- data/lib/jira/auto/tool/version.rb +1 -1
- metadata +2 -3
- data/lib/tasks/version.rake +0 -64
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: '06931de3ce2612a3b9d197d07ec86830e72fa073cad7fd7c300a1ad10e471875'
|
|
4
|
+
data.tar.gz: 1d9fa3926f4edb82b52e6dc6a411fb646297853a9874ce6e16956fb3c9663018
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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:
|
|
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 |
|
|
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 |
|
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.
|
|
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.
|
|
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.
|
data/lib/tasks/version.rake
DELETED
|
@@ -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
|