Skip to content

Commit 81c2345

Browse files
authored
Revert "Make a smart CI so that it would bump the version only if there is such a need" (#58)
1 parent ca08e18 commit 81c2345

File tree

7 files changed

+25
-79
lines changed

7 files changed

+25
-79
lines changed

.github/workflows/bump.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
run: bundle install
2121

2222
- name: bump
23-
run: bundle exec rake ci:bump_pathc_version
23+
run: bundle exec rake bump
2424

2525
- name: Commit changes
2626
uses: EndBug/add-and-commit@v9

Gemfile

-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ gem 'pry-byebug', '~> 3.10', '>= 3.10.1'
2121

2222
group :development do
2323
gem 'dotenv', '~> 3.1', '>= 3.1.2'
24-
gem 'git', '~> 2.1', '>= 2.1.1'
2524
gem 'rack-test', '~> 2.1'
2625
gem 'rspec', '~> 3.13'
2726
gem 'rubocop', '~> 1.65'

Gemfile.lock

-27
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,6 @@
11
GEM
22
remote: https://rubygems.org/
33
specs:
4-
activesupport (7.2.1)
5-
base64
6-
bigdecimal
7-
concurrent-ruby (~> 1.0, >= 1.3.1)
8-
connection_pool (>= 2.2.5)
9-
drb
10-
i18n (>= 1.6, < 2)
11-
logger (>= 1.4.2)
12-
minitest (>= 5.1)
13-
securerandom (>= 0.3)
14-
tzinfo (~> 2.0, >= 2.0.5)
154
addressable (2.8.7)
165
public_suffix (>= 2.0.2, < 7.0)
176
ast (2.4.2)
@@ -24,29 +13,20 @@ GEM
2413
concurrent-ruby (1.3.3)
2514
config (5.5.1)
2615
deep_merge (~> 1.2, >= 1.2.1)
27-
connection_pool (2.4.1)
2816
crack (1.0.0)
2917
bigdecimal
3018
rexml
3119
deep_merge (1.2.2)
3220
diff-lcs (1.5.1)
3321
dotenv (3.1.2)
34-
drb (2.2.1)
3522
faraday (2.10.1)
3623
faraday-net_http (>= 2.0, < 3.2)
3724
logger
3825
faraday-net_http (3.1.1)
3926
net-http
4027
ffi (1.17.0)
4128
ffi (1.17.0-x86_64-linux-gnu)
42-
git (2.1.1)
43-
activesupport (>= 5.0)
44-
addressable (~> 2.8)
45-
process_executer (~> 1.1)
46-
rchardet (~> 1.8)
4729
hashdiff (1.1.1)
48-
i18n (1.14.5)
49-
concurrent-ruby (~> 1.0)
5030
ipaddr (1.2.6)
5131
json (2.7.2)
5232
json-schema (4.3.1)
@@ -57,7 +37,6 @@ GEM
5737
rb-inotify (~> 0.9, >= 0.9.10)
5838
logger (1.6.0)
5939
method_source (1.1.0)
60-
minitest (5.25.1)
6140
multi_json (1.15.0)
6241
mustermann (3.0.0)
6342
ruby2_keywords (~> 0.0.1)
@@ -71,7 +50,6 @@ GEM
7150
racc
7251
patience_diff (1.2.0)
7352
optimist (~> 3.0)
74-
process_executer (1.1.0)
7553
pry (0.14.2)
7654
coderay (~> 1.1)
7755
method_source (~> 1.0)
@@ -95,7 +73,6 @@ GEM
9573
rb-fsevent (0.11.2)
9674
rb-inotify (0.11.1)
9775
ffi (~> 1.0)
98-
rchardet (1.8.0)
9976
regexp_parser (2.9.2)
10077
rerun (0.14.0)
10178
listen (~> 3.0)
@@ -138,7 +115,6 @@ GEM
138115
ruby-progressbar (1.13.0)
139116
ruby-units (4.0.3)
140117
ruby2_keywords (0.0.5)
141-
securerandom (0.3.1)
142118
sentry-ruby (5.18.2)
143119
bigdecimal
144120
concurrent-ruby (~> 1.0, >= 1.0.2)
@@ -162,8 +138,6 @@ GEM
162138
diff-lcs
163139
patience_diff
164140
tilt (2.3.0)
165-
tzinfo (2.0.6)
166-
concurrent-ruby (~> 1.0)
167141
unicode-display_width (2.5.0)
168142
uri (0.13.0)
169143
webmock (3.23.1)
@@ -181,7 +155,6 @@ DEPENDENCIES
181155
config (~> 5.5)
182156
dotenv (~> 3.1, >= 3.1.2)
183157
faraday (~> 2.10, >= 2.10.1)
184-
git (~> 2.1, >= 2.1.1)
185158
ipaddr (~> 1.2, >= 1.2.6)
186159
json-schema (~> 4.3)
187160
pry-byebug (~> 3.10, >= 3.10.1)

Rakefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Config.load_and_set_settings("config/settings/#{env}.yaml")
1919

2020
require_relative 'config/application'
2121

22-
Dir.glob('tasks/**/*.rake').each do |file|
22+
Dir.glob('tasks/*.rake').each do |file|
2323
load file
2424
end
2525

tasks/bump.rake

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# frozen_string_literal: true
2+
3+
desc 'bump pathc version'
4+
task :bump do
5+
version = File.read('VERSION').gsub('v', '')
6+
semver = version.split('.')
7+
new_pathc = semver.last.to_i + 1
8+
semver[2] = new_pathc.to_s
9+
new_version = "v#{semver.join('.')}"
10+
File.write('VERSION', new_version)
11+
end

tasks/bump_minor.rake

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# frozen_string_literal: true
2+
3+
desc 'bump minor vesrion'
4+
task :bump_minor do
5+
version = File.read('VERSION').gsub('v', '')
6+
semver = version.split('.')
7+
new_pathc = semver[1].to_i + 1
8+
semver[1] = new_pathc.to_s
9+
semver[2] = '0'
10+
new_version = "v#{semver.join('.')}"
11+
File.write('VERSION', new_version)
12+
end

tasks/ci/bump_new_version.rake

-49
This file was deleted.

0 commit comments

Comments
 (0)