minitest-focus 1.1.1 → 1.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 91e484220abdaac05a44cc94aae1f1ecaf490a43
4
- data.tar.gz: d318bbb58af9200ee0c239e812b5072d7c46c9bb
3
+ metadata.gz: 2a49f4f3e64531605a36438322132a1ebd9b4bf4
4
+ data.tar.gz: 4a7662b7618ad876e1db67afb5e98fe19593186e
5
5
  SHA512:
6
- metadata.gz: 24af3861763a6dbf76e03754b139863122b22948abb37e1d8002a6675c1c4289f3924b5a228712a8858b14c878e88db3a27a2f06840c550241d5533acdbfde3b
7
- data.tar.gz: 3787d6ad7040348be68e9067adaede54c6499a7a62d37217799e51bc0663e4f3683372cf945db39cf6f0812e5bd24378f16df0a74ebb6acf675c8ac3321bbad5
6
+ metadata.gz: 161f76e20d220d5b612b45cef3818bf5f290c6c2e563eecf6d26a7893cc34748f55f58f20bd3f4370320ee6610c69c7f5d43854c9d2e6b7d70b0a2b0d4fdec49
7
+ data.tar.gz: 4dadc914a4353d301e983b3f2afc6b34c8882ca641bfafb63af29bd73cef8183312122daf4a2092d18e06f45fe2570e2887bdf6ff6c4fca590bea627003a02f0
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -1,3 +1,9 @@
1
+ === 1.1.2 / 2015-07-25
2
+
3
+ * 1 bug fix:
4
+
5
+ * Fixed focus handling when run under Rake's rake_test_loader.rb.
6
+
1
7
  === 1.1.1 / 2015-03-12
2
8
 
3
9
  * 1 minor enhancement:
@@ -1,6 +1,6 @@
1
1
  class Minitest::Test # :nodoc:
2
2
  class Focus # :nodoc:
3
- VERSION = "1.1.1" # :nodoc:
3
+ VERSION = "1.1.2" # :nodoc:
4
4
  end
5
5
 
6
6
  @@filtered_names = [] # :nodoc:
@@ -24,12 +24,15 @@ class Minitest::Test # :nodoc:
24
24
  filter = "/^(#{Regexp.union(@@filtered_names).source})$/"
25
25
 
26
26
  index = ARGV.index("-n")
27
- unless index then
28
- index = ARGV.size
29
- ARGV << "-n"
27
+
28
+ if index then
29
+ warn "NOTE: Found `-n <regexp>` arg. This breaks under Rake::TestTask"
30
30
  end
31
31
 
32
- ARGV[index + 1] = filter
32
+ index = ARGV.index { |arg| arg =~ /^-n/ }
33
+ ARGV.delete_at index if index
34
+
35
+ ARGV << "-n=#{filter}"
33
36
 
34
37
  meta.send :remove_method, :method_added
35
38
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: minitest-focus
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Davis
@@ -29,7 +29,7 @@ cert_chain:
29
29
  xJcC6UN6NHMOVMyAXsr2HR0gRRx4ofN1LoP2KhXzSr8UMvQYlwPmE0N5GQv1b5AO
30
30
  VpzF30vNaJK6ZT7xlIsIlwmH
31
31
  -----END CERTIFICATE-----
32
- date: 2015-03-12 00:00:00.000000000 Z
32
+ date: 2015-07-25 00:00:00.000000000 Z
33
33
  dependencies:
34
34
  - !ruby/object:Gem::Dependency
35
35
  name: minitest
metadata.gz.sig CHANGED
@@ -1 +1,2 @@
1
- DxW6M�..�Iw�F�6����L�%ef��e��qJO��������ފX͛� NW���F��Y�Eh�c�My�G����%�2ݫ�������O�F'�yI)bX��ׂ4#S��l
1
+ .iX��8���b.�i.k?�! ���
2
+ ��( �؃-�\�6���X��4Dq����