Skip to content

Commit 21f02f3

Browse files
committed
Remove some comments about Ruby 1.9 behaviors
1 parent 2bf8b5b commit 21f02f3

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed

actionpack/lib/action_dispatch/journey/gtg/transition_table.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ def visualizer(paths, title = 'FSM')
109109
svg = to_svg
110110
javascripts = [states, fsm_js]
111111

112-
# Annoying hack for 1.9 warnings
112+
# Annoying hack warnings
113113
fun_routes = fun_routes
114114
stylesheets = stylesheets
115115
svg = svg

activesupport/lib/active_support/core_ext/object/duplicable.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
class Object
2020
# Can you safely dup this object?
2121
#
22-
# False for +nil+, +false+, +true+, symbol, number and BigDecimal(in 1.9.x) objects;
22+
# False for +nil+, +false+, +true+, symbol, number objects;
2323
# true otherwise.
2424
def duplicable?
2525
true

activesupport/lib/active_support/core_ext/time/calculations.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ def middle_of_day
162162
alias :at_noon :middle_of_day
163163
alias :at_middle_of_day :middle_of_day
164164

165-
# Returns a new Time representing the end of the day, 23:59:59.999999 (.999999999 in ruby1.9)
165+
# Returns a new Time representing the end of the day, 23:59:59.999999
166166
def end_of_day
167167
change(
168168
:hour => 23,
@@ -179,7 +179,7 @@ def beginning_of_hour
179179
end
180180
alias :at_beginning_of_hour :beginning_of_hour
181181

182-
# Returns a new Time representing the end of the hour, x:59:59.999999 (.999999999 in ruby1.9)
182+
# Returns a new Time representing the end of the hour, x:59:59.999999
183183
def end_of_hour
184184
change(
185185
:min => 59,
@@ -195,7 +195,7 @@ def beginning_of_minute
195195
end
196196
alias :at_beginning_of_minute :beginning_of_minute
197197

198-
# Returns a new Time representing the end of the minute, x:xx:59.999999 (.999999999 in ruby1.9)
198+
# Returns a new Time representing the end of the minute, x:xx:59.999999
199199
def end_of_minute
200200
change(
201201
:sec => 59,

activesupport/lib/active_support/dependencies.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,7 @@ def autoloadable_module?(path_suffix)
421421
end
422422

423423
def load_once_path?(path)
424-
# to_s works around a ruby1.9 issue where String#starts_with?(Pathname)
424+
# to_s works around a ruby issue where String#starts_with?(Pathname)
425425
# will raise a TypeError: no implicit conversion of Pathname into String
426426
autoload_once_paths.any? { |base| path.starts_with? base.to_s }
427427
end

activesupport/lib/active_support/time_with_zone.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ def rfc2822
196196

197197
# Returns a string of the object's date and time.
198198
# Accepts an optional <tt>format</tt>:
199-
# * <tt>:default</tt> - default value, mimics Ruby 1.9 Time#to_s format.
199+
# * <tt>:default</tt> - default value, mimics Ruby Time#to_s format.
200200
# * <tt>:db</tt> - format outputs time in UTC :db time. See Time#to_formatted_s(:db).
201201
# * Any key in <tt>Time::DATE_FORMATS</tt> can be used. See active_support/core_ext/time/conversions.rb.
202202
def to_s(format = :default)
@@ -205,7 +205,7 @@ def to_s(format = :default)
205205
elsif formatter = ::Time::DATE_FORMATS[format]
206206
formatter.respond_to?(:call) ? formatter.call(self).to_s : strftime(formatter)
207207
else
208-
"#{time.strftime("%Y-%m-%d %H:%M:%S")} #{formatted_offset(false, 'UTC')}" # mimicking Ruby 1.9 Time#to_s format
208+
"#{time.strftime("%Y-%m-%d %H:%M:%S")} #{formatted_offset(false, 'UTC')}" # mimicking Ruby Time#to_s format
209209
end
210210
end
211211
alias_method :to_formatted_s, :to_s

railties/lib/rails.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
require 'active_support/railtie'
1515
require 'action_dispatch/railtie'
1616

17-
# For Ruby 1.9, UTF-8 is the default internal and external encoding.
17+
# UTF-8 is the default internal and external encoding.
1818
silence_warnings do
1919
Encoding.default_external = Encoding::UTF_8
2020
Encoding.default_internal = Encoding::UTF_8

0 commit comments

Comments
 (0)