Hello community,

here is the log from the commit of package rubygem-minitest for 
openSUSE:Factory checked in at 2015-05-02 21:34:54
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-minitest (Old)
 and      /work/SRC/openSUSE:Factory/.rubygem-minitest.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "rubygem-minitest"

Changes:
--------
--- /work/SRC/openSUSE:Factory/rubygem-minitest/rubygem-minitest.changes        
2015-04-21 10:52:24.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.rubygem-minitest.new/rubygem-minitest.changes   
2015-05-02 21:34:55.000000000 +0200
@@ -1,0 +2,13 @@
+Tue Apr 28 07:47:37 UTC 2015 - [email protected]
+
+- updated to version 5.6.1
+ see installed History.rdoc
+
+  === 5.6.1 / 2015-04-27
+  
+  * 2 bug fixes:
+  
+    * Added Minitest.clock_time and switched all Time.now to it. (tenderlove)
+    * Moved Minitest::Expectations#_ into Minitest::Spec::DSL.
+
+-------------------------------------------------------------------

Old:
----
  minitest-5.6.0.gem

New:
----
  minitest-5.6.1.gem

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ rubygem-minitest.spec ++++++
--- /var/tmp/diff_new_pack.Z7BIAM/_old  2015-05-02 21:34:56.000000000 +0200
+++ /var/tmp/diff_new_pack.Z7BIAM/_new  2015-05-02 21:34:56.000000000 +0200
@@ -24,7 +24,7 @@
 #
 
 Name:           rubygem-minitest
-Version:        5.6.0
+Version:        5.6.1
 Release:        0
 %define mod_name minitest
 %define mod_full_name %{mod_name}-%{version}

++++++ minitest-5.6.0.gem -> minitest-5.6.1.gem ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/History.rdoc new/History.rdoc
--- old/History.rdoc    2015-04-14 00:08:47.000000000 +0200
+++ new/History.rdoc    2015-04-27 23:30:17.000000000 +0200
@@ -1,3 +1,10 @@
+=== 5.6.1 / 2015-04-27
+
+* 2 bug fixes:
+
+  * Added Minitest.clock_time and switched all Time.now to it. (tenderlove)
+  * Moved Minitest::Expectations#_ into Minitest::Spec::DSL.
+
 === 5.6.0 / 2015-04-13
 
 * 4 major enhancements:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/README.rdoc new/README.rdoc
--- old/README.rdoc     2015-04-14 00:08:47.000000000 +0200
+++ new/README.rdoc     2015-04-27 23:30:17.000000000 +0200
@@ -449,6 +449,10 @@
 minitest-ansi               :: Colorize minitest output with ANSI colors.
 minitest-around             :: Around block for minitest. An alternative to
                                setup/teardown dance.
+minitest-autotest           :: autotest is a continous testing facility meant 
to
+                               be used during development.
+minitest-bacon              :: minitest-bacon extends minitest with bacon-like
+                               functionality.
 minitest-bang               :: Adds support for RSpec-style let! to immediately
                                invoke let statements before each test.
 minitest-bisect             :: Helps you isolate and debug random test 
failures.
@@ -475,9 +479,14 @@
                                expectations.
 minitest-excludes           :: Clean API for excluding certain tests you
                                don't want to run under certain conditions.
+minitest-filecontent        :: Support unit tests with expectation results in 
files.
+                               Differing results will be stored again in files.
 minitest-filesystem         :: Adds assertion and expectation to help testing
                                filesystem contents.
 minitest-firemock           :: Makes your Minitest mocks more resilient.
+minitest-focus              :: Focus on one test at a time.
+minitest-gcstats            :: A minitest plugin that adds a report of the top
+                               tests by number of objects allocated.
 minitest-great_expectations :: Generally useful additions to minitest's
                                assertions and expectations.
 minitest-growl              :: Test notifier for minitest via growl.
@@ -487,8 +496,11 @@
                                test method is executed.
 minitest-instrument-db      :: Store information about speed of test execution
                                provided by minitest-instrument in database.
+minitest-junit              :: JUnit-style XML reporter for minitest.
 minitest-libnotify          :: Test notifier for minitest via libnotify.
 minitest-line               :: Run test at line number.
+minitest-logger             :: Define assert_log and enable minitest to test 
log messages.
+                               Supports Logger and Log4r::Logger.
 minitest-macruby            :: Provides extensions to minitest for macruby UI
                                testing.
 minitest-matchers           :: Adds support for RSpec-style matchers to
@@ -509,6 +521,9 @@
 minitest-reporters          :: Create customizable Minitest output formats.
 minitest-rg                 :: Colored red/green output for Minitest.
 minitest-rspec_mocks        :: Use RSpec Mocks with Minitest.
+minitest-server             :: minitest-server provides a client/server setup 
+                               with your minitest process, allowing your test 
+                               run to send its results directly to a handler.
 minitest-should_syntax      :: RSpec-style +x.should == y+ assertions for
                                Minitest.
 minitest-shouldify          :: Adding all manner of shoulds to Minitest (bad
@@ -521,11 +536,15 @@
 minitest-spec-magic         :: Minitest::Spec extensions for Rails and beyond.
 minitest-spec-rails         :: Drop in Minitest::Spec superclass for
                                ActiveSupport::TestCase.
+minitest-sprint             :: Runs (Get it? It's fast!) your tests and makes
+                               it easier to rerun individual failures.
 minitest-stately            :: Find leaking state between tests
 minitest-stub_any_instance  :: Stub any instance of a method on the given class
                                for the duration of a block.
 minitest-stub-const         :: Stub constants for the duration of a block.
 minitest-tags               :: Add tags for minitest.
+minitest-unordered          :: Adds a new assertion to minitest for checking 
the
+                               contents of a collection, ignoring element 
order.
 minitest-vcr                :: Automatic cassette managment with Minitest::Spec
                                and VCR.
 minitest-wscolor            :: Yet another test colorizer.
Files old/checksums.yaml.gz and new/checksums.yaml.gz differ
Files old/checksums.yaml.gz.sig and new/checksums.yaml.gz.sig differ
Files old/data.tar.gz.sig and new/data.tar.gz.sig differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/minitest/benchmark.rb 
new/lib/minitest/benchmark.rb
--- old/lib/minitest/benchmark.rb       2015-04-14 00:08:47.000000000 +0200
+++ new/lib/minitest/benchmark.rb       2015-04-27 23:30:17.000000000 +0200
@@ -90,9 +90,9 @@
 
       range.each do |x|
         GC.start
-        t0 = Time.now
+        t0 = Minitest.clock_time
         instance_exec(x, &work)
-        t = Time.now - t0
+        t = Minitest.clock_time - t0
 
         io.print "\t%9.6f" % t
         times << t
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/minitest/expectations.rb 
new/lib/minitest/expectations.rb
--- old/lib/minitest/expectations.rb    2015-04-14 00:08:47.000000000 +0200
+++ new/lib/minitest/expectations.rb    2015-04-27 23:30:17.000000000 +0200
@@ -19,30 +19,6 @@
 module Minitest::Expectations
 
   ##
-  # Returns a value monad that has all of Expectations methods
-  # available to it.
-  #
-  # Also aliased to #value and #expect for your aesthetic pleasure:
-  #
-  #         _(1 + 1).must_equal 2
-  #     value(1 + 1).must_equal 2
-  #    expect(1 + 1).must_equal 2
-  #
-  # This method of expectation-based testing is preferable to
-  # straight-expectation methods (on Object) because it stores its
-  # test context, bypassing our hacky use of thread-local variables.
-  #
-  # At some point, the methods on Object will be deprecated and then
-  # removed.
-
-  def _ value = nil, &block
-    Minitest::Expectation.new block || value, self
-  end
-
-  alias value _
-  alias expect _
-
-  ##
   # See Minitest::Assertions#assert_empty.
   #
   #    collection.must_be_empty
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/minitest/spec.rb new/lib/minitest/spec.rb
--- old/lib/minitest/spec.rb    2015-04-14 00:08:47.000000000 +0200
+++ new/lib/minitest/spec.rb    2015-04-27 23:30:17.000000000 +0200
@@ -277,7 +277,34 @@
     attr_reader :desc # :nodoc:
     alias :specify :it
 
-    module InstanceMethods # :nodoc:
+    ##
+    # Rdoc... why are you so dumb?
+
+    module InstanceMethods
+      ##
+      # Returns a value monad that has all of Expectations methods
+      # available to it.
+      #
+      # Also aliased to #value and #expect for your aesthetic pleasure:
+      #
+      #         _(1 + 1).must_equal 2
+      #     value(1 + 1).must_equal 2
+      #    expect(1 + 1).must_equal 2
+      #
+      # This method of expectation-based testing is preferable to
+      # straight-expectation methods (on Object) because it stores its
+      # test context, bypassing our hacky use of thread-local variables.
+      #
+      # At some point, the methods on Object will be deprecated and then
+      # removed.
+
+      def _ value = nil, &block
+        Minitest::Expectation.new block || value, self
+      end
+
+      alias value _
+      alias expect _
+
       def before_setup # :nodoc:
         super
         Thread.current[:current_spec] = self
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/minitest/test.rb new/lib/minitest/test.rb
--- old/lib/minitest/test.rb    2015-04-14 00:08:47.000000000 +0200
+++ new/lib/minitest/test.rb    2015-04-27 23:30:17.000000000 +0200
@@ -251,11 +251,11 @@
     end
 
     def time_it # :nodoc:
-      t0 = Time.now
+      t0 = Minitest.clock_time
 
       yield
     ensure
-      self.time = Time.now - t0
+      self.time = Minitest.clock_time - t0
     end
 
     def to_s # :nodoc:
@@ -267,10 +267,10 @@
     end
 
     def with_info_handler &block # :nodoc:
-      t0 = Time.now
+      t0 = Minitest.clock_time
 
       handler = lambda do
-        warn "\nCurrent: %s#%s %.2fs" % [self.class, self.name, Time.now - t0]
+        warn "\nCurrent: %s#%s %.2fs" % [self.class, self.name, 
Minitest.clock_time - t0]
       end
 
       self.class.on_signal "INFO", handler, &block
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/minitest.rb new/lib/minitest.rb
--- old/lib/minitest.rb 2015-04-14 00:08:47.000000000 +0200
+++ new/lib/minitest.rb 2015-04-27 23:30:17.000000000 +0200
@@ -7,7 +7,7 @@
 # :include: README.rdoc
 
 module Minitest
-  VERSION = "5.6.0" # :nodoc:
+  VERSION = "5.6.1" # :nodoc:
   ENCS = "".respond_to? :encoding # :nodoc:
 
   @@installed_at_exit ||= false
@@ -507,7 +507,7 @@
     end
 
     def start # :nodoc:
-      self.start_time = Time.now
+      self.start_time = Minitest.clock_time
     end
 
     def record result # :nodoc:
@@ -521,7 +521,7 @@
       aggregate = results.group_by { |r| r.failure.class }
       aggregate.default = [] # dumb. group_by should provide this
 
-      self.total_time = Time.now - start_time
+      self.total_time = Minitest.clock_time - start_time
       self.failures   = aggregate[Assertion].size
       self.errors     = aggregate[UnexpectedError].size
       self.skips      = aggregate[Skip].size
@@ -780,6 +780,16 @@
     raise "#{klass}#run _must_ return self" unless klass === result
     result
   end
+
+  if defined? Process::CLOCK_MONOTONIC
+    def self.clock_time
+      Process.clock_gettime Process::CLOCK_MONOTONIC
+    end
+  else
+    def self.clock_time
+      Time.now
+    end
+  end
 end
 
 require "minitest/test"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/metadata new/metadata
--- old/metadata        2015-04-14 00:08:47.000000000 +0200
+++ new/metadata        2015-04-27 23:30:17.000000000 +0200
@@ -1,7 +1,7 @@
 --- !ruby/object:Gem::Specification
 name: minitest
 version: !ruby/object:Gem::Version
-  version: 5.6.0
+  version: 5.6.1
 platform: ruby
 authors:
 - Ryan Davis
@@ -29,7 +29,7 @@
   xJcC6UN6NHMOVMyAXsr2HR0gRRx4ofN1LoP2KhXzSr8UMvQYlwPmE0N5GQv1b5AO
   VpzF30vNaJK6ZT7xlIsIlwmH
   -----END CERTIFICATE-----
-date: 2015-04-13 00:00:00.000000000 Z
+date: 2015-04-27 00:00:00.000000000 Z
 dependencies:
 - !ruby/object:Gem::Dependency
   name: rdoc
Files old/metadata.gz.sig and new/metadata.gz.sig differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/test/minitest/test_minitest_spec.rb 
new/test/minitest/test_minitest_spec.rb
--- old/test/minitest/test_minitest_spec.rb     2015-04-14 00:08:47.000000000 
+0200
+++ new/test/minitest/test_minitest_spec.rb     2015-04-27 23:30:17.000000000 
+0200
@@ -912,3 +912,26 @@
     end
   end
 end
+
+class ValueMonadTest < Minitest::Test
+  attr_accessor :struct
+
+  def setup
+    @struct = { :_ => 'a', :value => 'b', :expect => 'c' }
+    def @struct.method_missing k # think openstruct
+      self[k]
+    end
+  end
+
+  def test_value_monad_method
+    assert_equal 'a', struct._
+  end
+
+  def test_value_monad_value_alias
+    assert_equal 'b', struct.value
+  end
+
+  def test_value_monad_expect_alias
+    assert_equal 'c', struct.expect
+  end
+end


Reply via email to