rspec-support 3.0.0.rc1 → 3.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,15 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 8056b6ffe2b19796122cb63098b5f5d31818b0bb
4
- data.tar.gz: faa2a0e043eaa9c0a6c97675e1560640f40582c5
5
- SHA512:
6
- metadata.gz: dd81e590c2160e0656ff7fc4f87d238d1c20b055ba0de0c6149aa74204e78275963b5737c0d9aa699eb35a6c678c717aebaf05a4a5eab9e441bd9b14e0e32edb
7
- data.tar.gz: 7ca41367d6087c33f9146bf34089ef9b651be5ed8bd263e8e1ef61289df193171f940dc2ca4f4324560ca4a287ffd7e5d67bd6946716725e0036fd040ec70a39
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ YmZkNzExNTk1MTdmOTdhMDQ4NzE4MzlkMTNjMzEzM2U0MzA3ZWIyNw==
5
+ data.tar.gz: !binary |-
6
+ N2E2ZGZiZTVmZmRiMTNmZDcxNzZjYzVjYzFlMDM4M2JkMDIwMzQ3Mg==
7
+ !binary "U0hBNTEy":
8
+ metadata.gz: !binary |-
9
+ ZmU4Y2JjZjIzZTczNDRkMTk0NjA0NTFkOTdhYjUyOWU4YmVhMWYwN2IxMWYz
10
+ Y2NhZDA4ODUyMmQ2NDdkZGJhMjVhMmExOGZhOGVjZGRhMzhjMzIzMGY1ZTMw
11
+ MGY1Y2EzY2NlM2JhYTA0NWI5YmRlY2Y5YjI4NjQ5ZDc3OGJhZWM=
12
+ data.tar.gz: !binary |-
13
+ Y2RmNjhmZTEzMmJmNWIwNDJiZDkzOTdiYjQzNTU5MWMzNzQ4NzdkNTEwZjU1
14
+ NzYzNDk4NmM0NDZiMDhiOWMzOTkwMDZjNTE3YzZiYjI5NzQ0YWU2Y2FiYmMy
15
+ YzU0MTI4MmZjNmM2ZWUxMTdlMDFmMmJlNTYxMGJhNzM2ODBmYzk=
Binary file
data.tar.gz.sig CHANGED
@@ -1,3 +1 @@
1
- ���e��6d+�{oe���r�x�l���?�aٞ��,#�aEh}��d��mP����T?,�����iP�\u��������*�7'�����+\b��RUg����z���֠S�
2
- ?.�Dj��G�v�qs�
3
- l���Փ
1
+ sv�x=`��萑�������#�~�����˭5�"6����n8������h xxF���wɸR1$�A\jyT��*F��y_�gj%�(�̾pћB9�&,$܌���.�"��aN�^�Ύ����@mӛ̒���b32���(i8O��:�r@2R.��!�T�bP�����'1���<�y!+��KŮ�@i-@�b�����bB�Z+l�y"�ư�M�2�r�=���`LU�Ֆ�&e�_ |�����j�%�|?�������
@@ -1,3 +1,6 @@
1
+ ### 3.0.0 / 2014-06-01
2
+ [Full Changelog](http://github.com/rspec/rspec-support/compare/v3.0.0.rc1...v3.0.0)
3
+
1
4
  ### 3.0.0.rc1 / 2014-05-18
2
5
  [Full Changelog](http://github.com/rspec/rspec-support/compare/v3.0.0.beta2...v3.0.0.rc1)
3
6
 
@@ -27,6 +27,7 @@ module RSpec
27
27
 
28
28
  define_optimized_require_for_rspec(:support) { |f| require_relative(f) }
29
29
  require_rspec_support "version"
30
+ require_rspec_support "ruby_features"
30
31
 
31
32
  # @api private
32
33
  KERNEL_METHOD_METHOD = ::Kernel.instance_method(:method)
@@ -40,7 +41,7 @@ module RSpec
40
41
  #
41
42
  # - Objects that redefine #method (e.g. an HTTPRequest struct)
42
43
  # - BasicObject subclasses that mixin a Kernel dup (e.g. SimpleDelegator)
43
- if RUBY_VERSION.to_i >= 2 && RUBY_ENGINE != 'rbx'
44
+ if RubyFeatures.supports_rebinding_module_methods?
44
45
  def self.method_handle_for(object, method_name)
45
46
  KERNEL_METHOD_METHOD.bind(object).call(method_name)
46
47
  end
@@ -19,7 +19,7 @@ module RSpec
19
19
  end
20
20
  end
21
21
 
22
- diff
22
+ diff.to_s
23
23
  end
24
24
 
25
25
  def diff_as_string(actual, expected)
@@ -11,19 +11,25 @@ module RSpec
11
11
  module_function :optional_and_splat_args_supported?
12
12
 
13
13
  def kw_args_supported?
14
- RUBY_VERSION >= '2.0.0' && RUBY_ENGINE != 'rbx'
14
+ RUBY_VERSION >= '2.0.0' && RUBY_ENGINE != 'rbx' && RUBY_ENGINE != 'jruby'
15
15
  end
16
16
  module_function :kw_args_supported?
17
17
 
18
18
  def required_kw_args_supported?
19
- RUBY_VERSION >= '2.1.0' && RUBY_ENGINE != 'rbx'
19
+ RUBY_VERSION >= '2.1.0' && RUBY_ENGINE != 'rbx' && RUBY_ENGINE != 'jruby'
20
20
  end
21
21
  module_function :required_kw_args_supported?
22
22
 
23
23
  def module_prepends_supported?
24
- RUBY_VERSION.to_f >= 2.0
24
+ Module.private_method_defined?(:prepend)
25
25
  end
26
26
  module_function :module_prepends_supported?
27
+
28
+ def supports_rebinding_module_methods?
29
+ # RBX and JRuby don't yet support this.
30
+ RUBY_VERSION.to_i >= 2 && RUBY_ENGINE != 'rbx' && RUBY_ENGINE != 'jruby'
31
+ end
32
+ module_function :supports_rebinding_module_methods?
27
33
  end
28
34
  end
29
35
  end
@@ -6,6 +6,7 @@ module RSpec
6
6
  original = $stderr
7
7
  $stderr = StringIO.new
8
8
  yield
9
+ ensure
9
10
  $stderr = original
10
11
  end
11
12
 
@@ -1,7 +1,7 @@
1
1
  module RSpec
2
2
  module Support
3
3
  module Version
4
- STRING = '3.0.0.rc1'
4
+ STRING = '3.0.0'
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspec-support
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0.rc1
4
+ version: 3.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Chelimsky
@@ -13,71 +13,78 @@ authors:
13
13
  autorequire:
14
14
  bindir: bin
15
15
  cert_chain:
16
- - |
17
- -----BEGIN CERTIFICATE-----
18
- MIIDjjCCAnagAwIBAgIBATANBgkqhkiG9w0BAQUFADBGMRIwEAYDVQQDDAlyc3Bl
19
- Yy1kZXYxGzAZBgoJkiaJk/IsZA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!ruby/object:Gem::Dependency
42
49
  name: bundler
43
50
  requirement: !ruby/object:Gem::Requirement
44
51
  requirements:
45
- - - "~>"
52
+ - - ~>
46
53
  - !ruby/object:Gem::Version
47
54
  version: '1.3'
48
55
  type: :development
49
56
  prerelease: false
50
57
  version_requirements: !ruby/object:Gem::Requirement
51
58
  requirements:
52
- - - "~>"
59
+ - - ~>
53
60
  - !ruby/object:Gem::Version
54
61
  version: '1.3'
55
62
  - !ruby/object:Gem::Dependency
56
63
  name: rake
57
64
  requirement: !ruby/object:Gem::Requirement
58
65
  requirements:
59
- - - "~>"
66
+ - - ~>
60
67
  - !ruby/object:Gem::Version
61
68
  version: 10.0.0
62
69
  type: :development
63
70
  prerelease: false
64
71
  version_requirements: !ruby/object:Gem::Requirement
65
72
  requirements:
66
- - - "~>"
73
+ - - ~>
67
74
  - !ruby/object:Gem::Version
68
75
  version: 10.0.0
69
76
  - !ruby/object:Gem::Dependency
70
77
  name: rspec
71
78
  requirement: !ruby/object:Gem::Requirement
72
79
  requirements:
73
- - - ">="
80
+ - - ! '>='
74
81
  - !ruby/object:Gem::Version
75
82
  version: 3.0.0.pre
76
83
  type: :development
77
84
  prerelease: false
78
85
  version_requirements: !ruby/object:Gem::Requirement
79
86
  requirements:
80
- - - ">="
87
+ - - ! '>='
81
88
  - !ruby/object:Gem::Version
82
89
  version: 3.0.0.pre
83
90
  description: Support utilities for RSpec gems
@@ -86,9 +93,6 @@ executables: []
86
93
  extensions: []
87
94
  extra_rdoc_files: []
88
95
  files:
89
- - Changelog.md
90
- - LICENSE.txt
91
- - README.md
92
96
  - lib/rspec/support.rb
93
97
  - lib/rspec/support/caller_filter.rb
94
98
  - lib/rspec/support/differ.rb
@@ -106,29 +110,32 @@ files:
106
110
  - lib/rspec/support/version.rb
107
111
  - lib/rspec/support/version_checker.rb
108
112
  - lib/rspec/support/warnings.rb
113
+ - README.md
114
+ - LICENSE.txt
115
+ - Changelog.md
109
116
  homepage: https://github.com/rspec/rspec-support
110
117
  licenses:
111
118
  - MIT
112
119
  metadata: {}
113
120
  post_install_message:
114
121
  rdoc_options:
115
- - "--charset=UTF-8"
122
+ - --charset=UTF-8
116
123
  require_paths:
117
124
  - lib
118
125
  required_ruby_version: !ruby/object:Gem::Requirement
119
126
  requirements:
120
- - - ">="
127
+ - - ! '>='
121
128
  - !ruby/object:Gem::Version
122
129
  version: 1.8.7
123
130
  required_rubygems_version: !ruby/object:Gem::Requirement
124
131
  requirements:
125
- - - ">"
132
+ - - ! '>='
126
133
  - !ruby/object:Gem::Version
127
- version: 1.3.1
134
+ version: '0'
128
135
  requirements: []
129
136
  rubyforge_project: rspec
130
- rubygems_version: 2.2.2
137
+ rubygems_version: 2.0.7
131
138
  signing_key:
132
139
  specification_version: 4
133
- summary: rspec-support-3.0.0.rc1
140
+ summary: rspec-support-3.0.0
134
141
  test_files: []
metadata.gz.sig CHANGED
@@ -1,3 +1,2 @@
1
- C�4 ����Q�~�Wh ��vG؟sƪ쵌o㞀��� w�{�U�?9P~���JG���4��"i1¼�� �M�C�U+����/x����m�L���(s�)ޖ��#:�ғe�߅*��DS<}�!�7��@ƌ��EkAA
2
- Jnk��[���dΠ Յ�,� k��s(�$͝����u1 ���u��`���DH�dqC�|����W�
3
- ��{�d��c��u*����ln+��&�4WGˆ��T��
1
+ VcA=-��@���si�^떺OT�΂Jꩇ㎑n�+��9,I�̌C�츭��߷dž1��8�f~�*3#�(��N]�=|�@�0���K߉n��=k;�h[`�`��{���ڳ藹�=����Z�ִ�l�χ�-��ړCh�>In��*���:�@TSh!n_����L�G:6m9'���kx���=�2tAN^��~C��?���%�Eu�:)�-�|ow{
2
+ n