Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/twine.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Ludwig <sebastian@lurado.de>2016-11-23 00:33:41 +0300
committerSebastian Ludwig <sebastian@lurado.de>2016-12-08 12:20:01 +0300
commitecefba05119633320cd95a2e9bc7ab54fd6d9bb6 (patch)
tree11865f7f08044cc47345e39ac2d64b6ef7a13172
parentf9720a67d7a6cbfd3b1ff05be3e1035923a6b661 (diff)
Fixed #153 by removing command deprecation warning.
-rw-r--r--lib/twine/cli.rb13
-rw-r--r--twine.gemspec2
2 files changed, 0 insertions, 15 deletions
diff --git a/lib/twine/cli.rb b/lib/twine/cli.rb
index 783fbfd..1132078 100644
--- a/lib/twine/cli.rb
+++ b/lib/twine/cli.rb
@@ -139,19 +139,6 @@ module Twine
exit false
end
- # TODO: Remove this mapping of deprecated commands some time in the future - added on 31.03.
- deprecated_command_mappings = {
- 'generate-string-file' => 'generate-localization-file',
- 'generate-all-string-file' => 'generate-all-localization-files',
- 'consume-string-file' => 'consume-localization-file',
- 'consume-all-string-files' => 'consume-all-localization-files'
- }
- mapped_command = deprecated_command_mappings[args[0]]
- if mapped_command
- Twine::stderr.puts "WARNING: Twine commands names have changed. `#{args[0]}` is now `#{mapped_command}`. The old command is deprecated will soon stop working. For more information please check the documentation at https://github.com/mobiata/twine"
- args[0] = mapped_command
- end
-
number_of_needed_arguments = NEEDED_COMMAND_ARGUMENTS[args[0]]
unless number_of_needed_arguments
raise Twine::Error.new "Invalid command: #{args[0]}"
diff --git a/twine.gemspec b/twine.gemspec
index 98bc26a..d16d04b 100644
--- a/twine.gemspec
+++ b/twine.gemspec
@@ -31,6 +31,4 @@ Gem::Specification.new do |s|
It is geared toward Mac OS X, iOS, and Android developers.
desc
-
- s.post_install_message = "Twine command names have changed! Please check the documentation for their new names."
end