Skip to content

Commit 0629ffe

Browse files
authored
Improve warn or deprecated message in v1 code (#429)
Resolve #353 TODOs - [x] add `warn ...` for all functions & check if destination is correct - I used https://gist.github.com/Yang-33/833011e6adcced62bf893e44cdeb9993 to check this. destination is checked by my eye.. - [x] add `@deprecated ....` with message for all functions - I used https://gist.github.com/Yang-33/341547bbd031ce22152163077636edc6 to insert comment, though script itself is a little bit wrong. I fixed comment in client.rb after running the script. - [x] add `@deprecated ....` for all classes
1 parent f6cfa10 commit 0629ffe

20 files changed

+322
-16
lines changed

lib/line/bot/v1/api.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616

1717
module Line
1818
module Bot
19+
# @deprecated
20+
# This is obsolete.
1921
module API
2022
DEFAULT_OAUTH_ENDPOINT = "https://api.line.me"
2123
DEFAULT_ENDPOINT = "https://api.line.me/v2"

lib/line/bot/v1/api/errors.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
module Line
1616
module Bot
1717
module API
18+
# @deprecated
19+
# This is obsolete. (and there is no caller...)
1820
class Error < StandardError; end
1921
end
2022
end

lib/line/bot/v1/api/version.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
module Line
1616
module Bot
1717
module API
18+
# @deprecated
19+
# Use {Line::Bot::V2::VERSION} instead.
1820
VERSION = "1.29.0"
1921
end
2022
end

0 commit comments

Comments
 (0)