knapsack_pro 0.38.0 → 0.39.0

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: 58513c4532159921b31333f16c66a2558d5d1d37
4
- data.tar.gz: efe8d50df9c61c480cf2a98429569d86f84d85c8
3
+ metadata.gz: edaac63877b452e0ced9674b15c70e2b6cdd7a23
4
+ data.tar.gz: 4f3758d26a0de86ce21db7b410a98a59c5d3fe33
5
5
  SHA512:
6
- metadata.gz: 0f8f2c220f41c9becf921e5d144192d7d52d175f3f2a8ea1d4492049a3f2dd47de5479dbd02d8f4ea8b5a15caf6810e6e1cecf748cf5d378ab01f7013824b7a2
7
- data.tar.gz: c647fe42e829f4c04ff61d445e8244ad6919891681769730a193a7237d2b8236e1aae4eff851379927e85c96f6b95d027021dd0e74fbdc71076f336808267855
6
+ metadata.gz: 0fd7cc1022087c4d508c3ef2d8ec2589626cf724f9689cdc3d9f0bf366b9583145fb901dde61ca9defb67929e00bdbf93931e9b8b516bedd0e74ce9e05e3e62c
7
+ data.tar.gz: a04c3a24dfebb12475dd2d6aeedb06532df428b831c84eff157bb1187089fd2ef9d8f4d90ea72edf3a008066bde89db3411cd7498e4bfb4a498b6fea26fa36bb
data/CHANGELOG.md CHANGED
@@ -2,6 +2,14 @@
2
2
 
3
3
  * TODO
4
4
 
5
+ ### 0.39.0
6
+
7
+ * Remove timecop gem from required dependencies list.
8
+
9
+ https://github.com/KnapsackPro/knapsack_pro-ruby/pull/38
10
+
11
+ https://github.com/KnapsackPro/knapsack_pro-ruby/compare/v0.38.0...v0.39.0
12
+
5
13
  ### 0.38.0
6
14
 
7
15
  * Add support for Gitlab CI.
data/README.md CHANGED
@@ -1008,6 +1008,8 @@ A lot of small test files will give you better test suite split results.
1008
1008
 
1009
1009
  Another way is to use tags to mark subset of tests in particular test file and then split tests based on tags.
1010
1010
 
1011
+ This example is for knapack_pro Regular Mode. I don't recommend to user this approach with Queue Mode.
1012
+
1011
1013
  Here is example of test file with specified tags for describe groups:
1012
1014
 
1013
1015
  ```ruby
data/knapsack_pro.gemspec CHANGED
@@ -19,7 +19,6 @@ Gem::Specification.new do |spec|
19
19
  spec.require_paths = ["lib"]
20
20
 
21
21
  spec.add_dependency 'rake', '>= 0'
22
- spec.add_dependency 'timecop', '>= 0.1.0'
23
22
  spec.add_dependency 'tty-prompt', '~> 0.7'
24
23
 
25
24
  spec.add_development_dependency 'bundler', '~> 1.6'
@@ -32,4 +31,5 @@ Gem::Specification.new do |spec|
32
31
  spec.add_development_dependency 'pry', '~> 0'
33
32
  spec.add_development_dependency 'vcr', '~> 2.9'
34
33
  spec.add_development_dependency 'webmock', '~> 1.21'
34
+ spec.add_development_dependency 'timecop', '>= 0.1.0'
35
35
  end
data/lib/knapsack_pro.rb CHANGED
@@ -4,10 +4,10 @@ require 'net/http'
4
4
  require 'json'
5
5
  require 'uri'
6
6
  require 'rake/testtask'
7
- require 'timecop'
8
7
  require 'digest'
9
8
  require 'securerandom'
10
9
  require_relative 'knapsack_pro/version'
10
+ require_relative 'knapsack_pro/extensions/time'
11
11
  require_relative 'knapsack_pro/utils'
12
12
  require_relative 'knapsack_pro/logger_wrapper'
13
13
  require_relative 'knapsack_pro/config/ci/base'
@@ -0,0 +1,7 @@
1
+ require 'time'
2
+
3
+ class Time
4
+ class << self
5
+ alias_method :raw_now, :now
6
+ end
7
+ end
@@ -58,7 +58,11 @@ module KnapsackPro
58
58
  end
59
59
 
60
60
  def now_without_mock_time
61
- Time.now_without_mock_time
61
+ if defined?(Timecop)
62
+ Time.now_without_mock_time
63
+ else
64
+ Time.raw_now
65
+ end
62
66
  end
63
67
  end
64
68
  end
@@ -1,3 +1,3 @@
1
1
  module KnapsackPro
2
- VERSION = '0.38.0'
2
+ VERSION = '0.39.0'
3
3
  end
@@ -0,0 +1,5 @@
1
+ describe Time do
2
+ it do
3
+ expect(Time.respond_to?(:raw_now)).to be true
4
+ end
5
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: knapsack_pro
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.38.0
4
+ version: 0.39.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-05-07 00:00:00.000000000 Z
11
+ date: 2017-05-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -24,20 +24,6 @@ dependencies:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
- - !ruby/object:Gem::Dependency
28
- name: timecop
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - ">="
32
- - !ruby/object:Gem::Version
33
- version: 0.1.0
34
- type: :runtime
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - ">="
39
- - !ruby/object:Gem::Version
40
- version: 0.1.0
41
27
  - !ruby/object:Gem::Dependency
42
28
  name: tty-prompt
43
29
  requirement: !ruby/object:Gem::Requirement
@@ -198,6 +184,20 @@ dependencies:
198
184
  - - "~>"
199
185
  - !ruby/object:Gem::Version
200
186
  version: '1.21'
187
+ - !ruby/object:Gem::Dependency
188
+ name: timecop
189
+ requirement: !ruby/object:Gem::Requirement
190
+ requirements:
191
+ - - ">="
192
+ - !ruby/object:Gem::Version
193
+ version: 0.1.0
194
+ type: :development
195
+ prerelease: false
196
+ version_requirements: !ruby/object:Gem::Requirement
197
+ requirements:
198
+ - - ">="
199
+ - !ruby/object:Gem::Version
200
+ version: 0.1.0
201
201
  description: Parallel tests across CI server nodes based on each test file's time
202
202
  execution. It uses KnapsackPro.com API.
203
203
  email:
@@ -245,6 +245,7 @@ files:
245
245
  - lib/knapsack_pro/crypto/decryptor.rb
246
246
  - lib/knapsack_pro/crypto/digestor.rb
247
247
  - lib/knapsack_pro/crypto/encryptor.rb
248
+ - lib/knapsack_pro/extensions/time.rb
248
249
  - lib/knapsack_pro/formatters/rspec_queue_profile_formatter_extension.rb
249
250
  - lib/knapsack_pro/formatters/rspec_queue_summary_formatter.rb
250
251
  - lib/knapsack_pro/logger_wrapper.rb
@@ -314,6 +315,7 @@ files:
314
315
  - spec/knapsack_pro/crypto/decryptor_spec.rb
315
316
  - spec/knapsack_pro/crypto/digestor_spec.rb
316
317
  - spec/knapsack_pro/crypto/encryptor_spec.rb
318
+ - spec/knapsack_pro/extensions/time_spec.rb
317
319
  - spec/knapsack_pro/logger_wrapper_spec.rb
318
320
  - spec/knapsack_pro/presenter_spec.rb
319
321
  - spec/knapsack_pro/queue_allocator_builder_spec.rb
@@ -409,6 +411,7 @@ test_files:
409
411
  - spec/knapsack_pro/crypto/decryptor_spec.rb
410
412
  - spec/knapsack_pro/crypto/digestor_spec.rb
411
413
  - spec/knapsack_pro/crypto/encryptor_spec.rb
414
+ - spec/knapsack_pro/extensions/time_spec.rb
412
415
  - spec/knapsack_pro/logger_wrapper_spec.rb
413
416
  - spec/knapsack_pro/presenter_spec.rb
414
417
  - spec/knapsack_pro/queue_allocator_builder_spec.rb