Permalink
Browse files

Added more Travis build targets.

  • Loading branch information...
jdantonio committed Mar 15, 2016
1 parent 45e03d4 commit 6a0ba76324950d8896c9678d1037e9b3193c7a07
Showing with 21 additions and 12 deletions.
  1. +8 −0 .travis.yml
  2. +9 −1 lib/functional/delay.rb
  3. +3 −11 lib/functional/tuple.rb
  4. +1 −0 yardoc
View
@@ -1,11 +1,17 @@
language: ruby
rvm:
- 2.2.3
- 2.2.2
- 2.2.1
- 2.1.5
- 2.1.4
- 2.0.0
- ruby-head
- jruby-1.7.19
- jruby-9.0.1.0
- jruby-9.0.3.0
- jruby-9.0.4.0
- jruby-head
- rbx-2
@@ -22,5 +28,7 @@ matrix:
allow_failures:
- rvm: ruby-head
- rvm: jruby-head
- rvm: jruby-9.0.1.0
- rvm: rbx-2
script: "CODECLIMATE_REPO_TOKEN=65d4787423f734f5cf6d2b3f9be88e481802e50af0879e8ed66971f972d70894 bundle exec rake"
View
@@ -16,7 +16,15 @@ module Functional
# This means that any side effects created by the operation will only happen
# once as well.
#
# @!macro thread_safe_immutable_object
# @!macro [new] thread_safe_immutable_object
#
# @note This is a write-once, read-many, thread safe object that can be
# used in concurrent systems. Thread safety guarantees *cannot* be made
# about objects contained *within* this object, however. Ruby variables
# are mutable references to mutable objects. This cannot be changed. The
# best practice it to only encapsulate immutable, frozen, or thread safe
# objects. Ultimately, thread safety is the responsibility of the
# programmer.
#
# @see http://clojuredocs.org/clojure_core/clojure.core/delay Clojure delay
class Delay < Synchronization::Object
View
@@ -11,6 +11,8 @@ module Functional
# contains, the less efficient it will become. A future version will use a fast,
# immutable, persistent data structure such as a finger tree or a trie.
#
# @!macro thread_safe_immutable_object
#
# @see http://en.wikipedia.org/wiki/Tuple
# @see http://msdn.microsoft.com/en-us/library/system.tuple.aspx
# @see http://www.tutorialspoint.com/python/python_tuples.htm
@@ -19,16 +21,6 @@ module Functional
# @see http://www.erlang.org/doc/reference_manual/data_types.html
# @see http://www.erlang.org/doc/man/erlang.html#make_tuple-2
# @see http://en.wikibooks.org/wiki/Haskell/Lists_and_tuples#Tuples
#
# @!macro [new] thread_safe_immutable_object
#
# @note This is a write-once, read-many, thread safe object that can be
# used in concurrent systems. Thread safety guarantees *cannot* be made
# about objects contained *within* this object, however. Ruby variables
# are mutable references to mutable objects. This cannot be changed. The
# best practice it to only encapsulate immutable, frozen, or thread safe
# objects. Ultimately, thread safety is the responsibility of the
# programmer.
class Tuple < Synchronization::Object
# Create a new tuple with the given data items in the given order.
@@ -133,7 +125,7 @@ def repeat(multiple)
alias_method :*, :repeat
# Returns a new tuple by removing duplicate values in self.
#
#
# @return [Functional::Tuple] the new tuple with only unique items
def uniq
Tuple.new(@data.uniq)
1 yardoc
Submodule yardoc added at a57e60

0 comments on commit 6a0ba76

Please sign in to comment.