knapsack 1.15.0 → 1.16.0

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: 88a3472c6e1c45824bd4d8774fedf2fe49346094
4
- data.tar.gz: 396262940e1fc174523938abb47274e8aad33e59
3
+ metadata.gz: c557fd3c229441ac05ddf07a1a472b107f9fe046
4
+ data.tar.gz: d15c08b64e9f499115c1c815202b65968b6d2a66
5
5
  SHA512:
6
- metadata.gz: eb192cc001f8201e14fb2a46811fd06ebb53be23f14b49ec81308bc0f35dccf726b0ad63cc3cbf3f191fc29ff44a56edd96e7694a42569bdcc67d8af479a11ad
7
- data.tar.gz: dab3225d6b4833d4edb57880768c5fba4f9f64b59cb4b454b1b9d635759ff66937a42afcd2b8f235427a14a3952bfaee23eeb6aa06a179451e3e0f16e39d9676
6
+ metadata.gz: b7d9769651e83739d0074e223deaa07a6b950db3c475a5ce014dbcc6726f7797140d91fa0da837a7c89d3cb92e53e45ac13cb10d940cdecf3758414caea6ccad
7
+ data.tar.gz: b5411919736cf598ba6c8ebbfc75673ef8153c8a411b1ceb606ff7f036ae346830d6beb561b43fe5491bc959f629cbd009489b5e34d42cf4622383d2e3835b23
@@ -2,12 +2,13 @@
2
2
  sudo: false
3
3
  language: ruby
4
4
  rvm:
5
+ - 1.9.3
5
6
  - 2.0.0
6
- - 2.2.2
7
- - 2.2.3
8
- - 2.3.0
9
- - 2.3.1
10
- - 2.4.2
7
+ - 2.1
8
+ - 2.2
9
+ - 2.3
10
+ - 2.4
11
+ - 2.5
11
12
  addons:
12
13
  code_climate:
13
14
  repo_token: 38686058eed480dd0fcf8bce9015733e0bae88e44e30f4a1ac63df8aec2f86d8
@@ -70,7 +71,8 @@ script:
70
71
 
71
72
  - bin/print_header.sh "Check passing arguments to minitest. Run verbose tests"
72
73
  - KNAPSACK_TEST_FILE_PATTERN="test_examples/**{,/*/**}/*_test.rb" bundle exec rake "knapsack:minitest[--verbose]"
73
- - KNAPSACK_TEST_FILE_PATTERN="test_examples/**{,/*/**}/*_test.rb" bin/knapsack minitest "--verbose --pride"
74
+ - if [ "$TRAVIS_RUBY_VERSION" == "1.9.3" ]; then KNAPSACK_TEST_FILE_PATTERN="test_examples/**{,/*/**}/*_test.rb" bin/knapsack minitest "--verbose"; fi
75
+ - if [ "$TRAVIS_RUBY_VERSION" != "1.9.3" ]; then KNAPSACK_TEST_FILE_PATTERN="test_examples/**{,/*/**}/*_test.rb" bin/knapsack minitest "--verbose --pride"; fi
74
76
 
75
77
  - bin/print_header.sh "Run tests with custom knapsack logger"
76
78
  - CUSTOM_LOGGER=true KNAPSACK_TEST_FILE_PATTERN="test_examples/**{,/*/**}/*_test.rb" bundle exec rake knapsack:minitest
@@ -2,6 +2,14 @@
2
2
 
3
3
  * TODO
4
4
 
5
+ ### 1.16.0
6
+
7
+ * Add support for Ruby >= 1.9.3.
8
+
9
+ https://github.com/ArturT/knapsack/pull/77
10
+
11
+ https://github.com/ArturT/knapsack/compare/v1.15.0...v1.16.0
12
+
5
13
  ### 1.15.0
6
14
 
7
15
  * Add support for Cucumber 3.
data/README.md CHANGED
@@ -64,6 +64,10 @@ How knapsack_pro makes my life easier as opposed to regular knapsack gem?
64
64
  * [X 2014 Kraków Ruby User Group](http://slides.com/arturt/parallel-tests-in-comparable-time)
65
65
  * [VII 2014 Lunar Logic Dev Meeting](http://slides.com/arturt/knapsack)
66
66
 
67
+ ### Requirements
68
+
69
+ `>= Ruby 1.9.3`
70
+
67
71
  <!-- START doctoc generated TOC please keep comment here to allow auto update -->
68
72
  <!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
69
73
  **Table of Contents** *generated with [DocToc](https://github.com/thlorenz/doctoc)*
@@ -233,9 +237,13 @@ Generate time execution report for your test files. Run below command on one of
233
237
 
234
238
  # Step for Minitest
235
239
  $ KNAPSACK_GENERATE_REPORT=true bundle exec rake test
240
+
236
241
  # If you use rails 5 then run this instead:
237
242
  $ KNAPSACK_GENERATE_REPORT=true bundle exec rake knapsack:minitest
238
243
 
244
+ # If you use rails 5.1's SystemTest, run both regular and system tests
245
+ $ KNAPSACK_GENERATE_REPORT=true bundle exec rake test test:system
246
+
239
247
  # Step for Spinach
240
248
  $ KNAPSACK_GENERATE_REPORT=true bundle exec spinach
241
249
 
@@ -372,6 +380,7 @@ test:
372
380
 
373
381
  # Step for Minitest
374
382
  - KNAPSACK_GENERATE_REPORT=true bundle exec rake test
383
+ - KNAPSACK_GENERATE_REPORT=true bundle exec rake test # For rails 5.1 with system tests
375
384
 
376
385
  # Step for Spinach
377
386
  - KNAPSACK_GENERATE_REPORT=true bundle exec spinach
@@ -472,6 +481,7 @@ script:
472
481
 
473
482
  # Step for Minitest
474
483
  - "KNAPSACK_GENERATE_REPORT=true bundle exec rake test"
484
+ - "KNAPSACK_GENERATE_REPORT=true bundle exec rake test:system" # For rails 5.1 with system tests
475
485
 
476
486
  # Step for Spinach
477
487
  - "KNAPSACK_GENERATE_REPORT=true bundle exec spinach"
@@ -595,6 +605,7 @@ For the first time run all tests at once with enabled report generator. Run the
595
605
 
596
606
  # Step for Minitest
597
607
  KNAPSACK_GENERATE_REPORT=true bundle exec rake test
608
+ KNAPSACK_GENERATE_REPORT=true bundle exec rake test test:system # rails 5.1 with system tests
598
609
 
599
610
  # Step for Spinach
600
611
  KNAPSACK_GENERATE_REPORT=true bundle exec spinach
@@ -631,6 +642,7 @@ For the first time run all tests at once with enabled report generator. Run the
631
642
 
632
643
  # Step for Minitest
633
644
  KNAPSACK_GENERATE_REPORT=true bundle exec rake test
645
+ KNAPSACK_GENERATE_REPORT=true bundle exec rake test test:system # rails 5.1 with system tests
634
646
 
635
647
  # Step for Spinach
636
648
  KNAPSACK_GENERATE_REPORT=true bundle exec spinach
@@ -18,6 +18,8 @@ Gem::Specification.new do |spec|
18
18
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
19
  spec.require_paths = ["lib"]
20
20
 
21
+ spec.required_ruby_version = '>= 1.9.3'
22
+
21
23
  spec.add_dependency 'rake', '>= 0'
22
24
 
23
25
  spec.add_development_dependency 'bundler', '~> 1.6'
@@ -64,7 +64,7 @@ Happy testing!}
64
64
  str << "\nhttps://github.com/ArturT/knapsack#faq"
65
65
  str << "\n=================================================\n"
66
66
  str << %{Sign up for Knapsack Pro here:
67
- http://knapsackpro.com}
67
+ https://knapsackpro.com}
68
68
  str << "\n=================================================\n"
69
69
  str
70
70
  end
@@ -1,3 +1,3 @@
1
1
  module Knapsack
2
- VERSION = '1.15.0'
2
+ VERSION = '1.16.0'
3
3
  end
@@ -1,7 +1,7 @@
1
1
  require 'test_helper'
2
2
 
3
3
  class Minitest::SharedExamples < Module
4
- include Minitest::Spec::DSL
4
+ include Minitest::Spec::DSL if RUBY_VERSION != "1.9.3"
5
5
  end
6
6
 
7
7
  SharedExampleSpec = Minitest::SharedExamples.new do
@@ -2,6 +2,15 @@ require 'minitest/autorun'
2
2
 
3
3
  require 'knapsack'
4
4
 
5
+ if RUBY_VERSION == "1.9.3"
6
+ unless defined? Minitest
7
+ Minitest = MiniTest
8
+ end
9
+ unless defined? Minitest::Test
10
+ Minitest::Test = MiniTest::Unit::TestCase
11
+ end
12
+ end
13
+
5
14
  Knapsack.tracker.config({
6
15
  enable_time_offset_warning: true,
7
16
  time_offset_in_seconds: 3
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: knapsack
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.15.0
4
+ version: 1.16.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - ArturT
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-10-22 00:00:00.000000000 Z
11
+ date: 2018-02-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -278,7 +278,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
278
278
  requirements:
279
279
  - - ">="
280
280
  - !ruby/object:Gem::Version
281
- version: '0'
281
+ version: 1.9.3
282
282
  required_rubygems_version: !ruby/object:Gem::Requirement
283
283
  requirements:
284
284
  - - ">="