cucumber 2.0.0.rc.2 → 2.0.0.rc.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0985b78183dd2c31d3b7671da6d567042ea9eb6d
4
- data.tar.gz: 6237bcc06c38dba04dea5bbbf5b3bdc05c50420a
3
+ metadata.gz: c3363dbec0a2d978fa0a971074ef94dfb1ec7516
4
+ data.tar.gz: 5b3cb7daf670ad60c76e2fa72f880ed2beb5d7c1
5
5
  SHA512:
6
- metadata.gz: 6af997a1ae5f1f41dab2088c00a850ad103c54a256060d2a5db82edd192e51012c8725afe4208a56932f92df907f1eae4e42d6fdd9e79ec023c959838b046c52
7
- data.tar.gz: 2215dffd827dca1de84a88d14375e3540a0d6ff797a59951054dcf341e27bf3baddbebaee8359ae84c6a5b64d0649079105ffdf5770013c85b6d07ee3bbaffc7
6
+ metadata.gz: e237d67c0e80e105bcfab384d4fd1de2d0fe72dbeaf3444317529fd4dfc4122fc94e88997b59f7e22a12bf5386cae490d6caeaec2a201438fc285f7b43eec3d3
7
+ data.tar.gz: 068a225dac075315c61f5e9a43ad9ca830273ae41113e37d3220edd8854ef2ba012b2b625fdadf7f81020a0cf075ce6b8c5a38d154169aece93345ce20065ea6
data/History.md CHANGED
@@ -1,4 +1,11 @@
1
- ## [In Git](https://github.com/cucumber/cucumber/compare/v2.0.0.rc.1...master)
1
+ ## [In Git](https://github.com/cucumber/cucumber/compare/v2.0.0.rc.3...master)
2
+ ## [v2.0.0.rc.3](https://github.com/cucumber/cucumber/compare/v2.0.0.rc.2...v2.0.0.rc.3)
3
+
4
+ ### Bugfixes
5
+
6
+ * MultilineArgument::DataTable#diff will correctly compare to an Array (@tooky)
7
+
8
+ ## [v2.0.0.rc.2](https://github.com/cucumber/cucumber/compare/v2.0.0.rc.1...v2.0.0.rc.2)
2
9
 
3
10
  ### Bugfixes
4
11
 
@@ -597,7 +597,7 @@ module Cucumber
597
597
 
598
598
  def ensure_table(table_or_array) #:nodoc:
599
599
  return table_or_array if DataTable === table_or_array
600
- DataTable.new(table_or_array)
600
+ DataTable.from(table_or_array)
601
601
  end
602
602
 
603
603
  def ensure_array_of_array(array)
@@ -4,7 +4,7 @@ require 'rbconfig'
4
4
 
5
5
  module Cucumber
6
6
  unless defined?(Cucumber::VERSION)
7
- VERSION = '2.0.0.rc.2'
7
+ VERSION = '2.0.0.rc.3'
8
8
  BINARY = File.expand_path(File.dirname(__FILE__) + '/../../bin/cucumber')
9
9
  LIBDIR = File.expand_path(File.dirname(__FILE__) + '/../../lib')
10
10
  JRUBY = defined?(JRUBY_VERSION)
@@ -489,6 +489,15 @@ module Cucumber
489
489
  end
490
490
  end
491
491
 
492
+ it "can compare to an Array" do
493
+ t = DataTable.from(%{
494
+ | b | a |
495
+ | d | c |
496
+ })
497
+ other = [ %w{b a}, %w{d c} ]
498
+
499
+ expect { t.diff!(other) }.not_to raise_error
500
+ end
492
501
  end
493
502
 
494
503
  describe "#from" do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cucumber
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0.rc.2
4
+ version: 2.0.0.rc.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aslak Hellesøy
@@ -818,7 +818,7 @@ rubyforge_project:
818
818
  rubygems_version: 2.2.2
819
819
  signing_key:
820
820
  specification_version: 4
821
- summary: cucumber-2.0.0.rc.2
821
+ summary: cucumber-2.0.0.rc.3
822
822
  test_files:
823
823
  - features/docs/api/list_step_defs_as_json.feature
824
824
  - features/docs/api/run_cli_main_with_existing_runtime.feature