Skip to content

Commit 0d3f872

Browse files
author
Brandon Weaver
committed
Removes references to static Ruby versions in docs
This change removes references to Ruby 2.2.0 in favor of referencing the latest version of Ruby. By referencing just `core` rather than `core-x.y.z` the Ruby docs site will forward to the latest applicable version.
1 parent 7dc6eb0 commit 0d3f872

File tree

7 files changed

+11
-11
lines changed

7 files changed

+11
-11
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,9 @@ We also have a [IRC (gitter)](https://gitter.im/ruby-concurrency/concurrent-ruby
105105
Collection classes that were originally part of the (deprecated) `thread_safe` gem:
106106

107107
* [Array](http://ruby-concurrency.github.io/concurrent-ruby/master/Concurrent/Array.html) A thread-safe
108-
subclass of Ruby's standard [Array](http://ruby-doc.org/core-2.2.0/Array.html).
108+
subclass of Ruby's standard [Array](http://ruby-doc.org/core/Array.html).
109109
* [Hash](http://ruby-concurrency.github.io/concurrent-ruby/master/Concurrent/Hash.html) A thread-safe
110-
subclass of Ruby's standard [Hash](http://ruby-doc.org/core-2.2.0/Hash.html).
110+
subclass of Ruby's standard [Hash](http://ruby-doc.org/core/Hash.html).
111111
* [Set](http://ruby-concurrency.github.io/concurrent-ruby/master/Concurrent/Set.html) A thread-safe
112112
subclass of Ruby's standard [Set](http://ruby-doc.org/stdlib-2.4.0/libdoc/set/rdoc/Set.html).
113113
* [Map](http://ruby-concurrency.github.io/concurrent-ruby/master/Concurrent/Map.html) A hash-like object
@@ -122,7 +122,7 @@ Value objects inspired by other languages:
122122
immutable object representing an optional value, based on
123123
[Haskell Data.Maybe](https://hackage.haskell.org/package/base-4.2.0.1/docs/Data-Maybe.html).
124124

125-
Structure classes derived from Ruby's [Struct](http://ruby-doc.org/core-2.2.0/Struct.html):
125+
Structure classes derived from Ruby's [Struct](http://ruby-doc.org/core/Struct.html):
126126

127127
* [ImmutableStruct](http://ruby-concurrency.github.io/concurrent-ruby/master/Concurrent/ImmutableStruct.html)
128128
Immutable struct where values are set at construction and cannot be changed later.

lib/concurrent-ruby/concurrent/array.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ module Concurrent
1616
# operation therefore when two `+=` operations are executed concurrently updates
1717
# may be lost. Use `#concat` instead.
1818
#
19-
# @see http://ruby-doc.org/core-2.2.0/Array.html Ruby standard library `Array`
19+
# @see http://ruby-doc.org/core/Array.html Ruby standard library `Array`
2020

2121
# @!macro internal_implementation_note
2222
ArrayImplementation = case

lib/concurrent-ruby/concurrent/hash.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ module Concurrent
1010
# or writing at a time. This includes iteration methods like `#each`,
1111
# which takes the lock repeatedly when reading an item.
1212
#
13-
# @see http://ruby-doc.org/core-2.2.0/Hash.html Ruby standard library `Hash`
13+
# @see http://ruby-doc.org/core/Hash.html Ruby standard library `Hash`
1414

1515
# @!macro internal_implementation_note
1616
HashImplementation = case

lib/concurrent-ruby/concurrent/immutable_struct.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ module Concurrent
55

66
# A thread-safe, immutable variation of Ruby's standard `Struct`.
77
#
8-
# @see http://ruby-doc.org/core-2.2.0/Struct.html Ruby standard library `Struct`
8+
# @see http://ruby-doc.org/core/Struct.html Ruby standard library `Struct`
99
module ImmutableStruct
1010
include Synchronization::AbstractStruct
1111

lib/concurrent-ruby/concurrent/mutable_struct.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ module Concurrent
66
# An thread-safe variation of Ruby's standard `Struct`. Values can be set at
77
# construction or safely changed at any time during the object's lifecycle.
88
#
9-
# @see http://ruby-doc.org/core-2.2.0/Struct.html Ruby standard library `Struct`
9+
# @see http://ruby-doc.org/core/Struct.html Ruby standard library `Struct`
1010
module MutableStruct
1111
include Synchronization::AbstractStruct
1212

@@ -40,7 +40,7 @@ module MutableStruct
4040
# struct. Unset parameters default to nil. Passing more parameters than number of attributes
4141
# will raise an `ArgumentError`.
4242
#
43-
# @see http://ruby-doc.org/core-2.2.0/Struct.html#method-c-new Ruby standard library `Struct#new`
43+
# @see http://ruby-doc.org/core/Struct.html#method-c-new Ruby standard library `Struct#new`
4444

4545
# @!macro struct_values
4646
#

lib/concurrent-ruby/concurrent/settable_struct.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ module Concurrent
99
# or any time thereafter. Attempting to assign a value to a member
1010
# that has already been set will result in a `Concurrent::ImmutabilityError`.
1111
#
12-
# @see http://ruby-doc.org/core-2.2.0/Struct.html Ruby standard library `Struct`
12+
# @see http://ruby-doc.org/core/Struct.html Ruby standard library `Struct`
1313
# @see http://en.wikipedia.org/wiki/Final_(Java) Java `final` keyword
1414
module SettableStruct
1515
include Synchronization::AbstractStruct

lib/concurrent-ruby/concurrent/synchronization/lockable_object.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ module Synchronization
2626
# the classes using it. Use {Synchronization::Object} not this abstract class.
2727
#
2828
# @note this object does not support usage together with
29-
# [`Thread#wakeup`](http://ruby-doc.org/core-2.2.0/Thread.html#method-i-wakeup)
30-
# and [`Thread#raise`](http://ruby-doc.org/core-2.2.0/Thread.html#method-i-raise).
29+
# [`Thread#wakeup`](http://ruby-doc.org/core/Thread.html#method-i-wakeup)
30+
# and [`Thread#raise`](http://ruby-doc.org/core/Thread.html#method-i-raise).
3131
# `Thread#sleep` and `Thread#wakeup` will work as expected but mixing `Synchronization::Object#wait` and
3232
# `Thread#wakeup` will not work on all platforms.
3333
#

0 commit comments

Comments
 (0)