File tree 2 files changed +13
-0
lines changed
2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -38,4 +38,7 @@ Gem::Specification.new do |spec|
38
38
spec . executables = [ "cpl" ]
39
39
40
40
spec . metadata [ "rubygems_mfa_required" ] = "true"
41
+
42
+ spec . post_install_message = "DEPRECATED: The `cpl` gem has been renamed to `cpf` and will no longer be supported. " \
43
+ "Please switch to 'cpf' as soon as possible."
41
44
end
Original file line number Diff line number Diff line change @@ -60,13 +60,23 @@ class Cli < Thor # rubocop:disable Metrics/ClassLength
60
60
def self . start ( *args )
61
61
ENV [ "CPLN_SKIP_UPDATE_CHECK" ] = "true"
62
62
63
+ warn_deprecated_gem
63
64
check_cpln_version
64
65
check_cpl_version
65
66
fix_help_option
66
67
67
68
super ( *args )
68
69
end
69
70
71
+ def self . warn_deprecated_gem
72
+ return if @warned_deprecated_gem
73
+
74
+ @warned_deprecated_gem = true
75
+
76
+ ::Shell . warn_deprecated ( "This gem has been renamed to 'cpf' and will no longer be supported. " \
77
+ "Please switch to 'cpf' as soon as possible." )
78
+ end
79
+
70
80
def self . check_cpln_version # rubocop:disable Metrics/MethodLength
71
81
return if @checked_cpln_version
72
82
You can’t perform that action at this time.
0 commit comments