rspec-tracer 0.1.0 → 0.2.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
  SHA256:
3
- metadata.gz: fd68858a56e3f240a0710c3dc4d7af601268bc2f4029c3a67f5e93ccd301dc48
4
- data.tar.gz: b89cb78a0fef102e99dd60ccb53b45238d0785d912750c13b9546e0e2fcbe6f3
3
+ metadata.gz: 1c4494ed77ebba015c8f3a1bbc95fdfbd815314b5b455a471eb6f20df6dec0d7
4
+ data.tar.gz: '08e318aec77f76ebf8edbff8e4fc415f7410e5adf42876d2741c8533c7b5ec0d'
5
5
  SHA512:
6
- metadata.gz: 6e203ace8d29199999af09cd82418e0160160dae0077b5f4cb56c9c4de7bf40c25c5506e5fbc2d9081af4e7e69c47a80b62ce0a5de94aaee473f9506c62b4d83
7
- data.tar.gz: f955b25c90b5fad1a0f0d4dd1c46f6c3b8c7e1c7d9d5a330a2cb4a13ba543d5264cd0fcdf7fcd545f44fa8d5c636dc6194341cb1ea484a22fd37c925b254d05c
6
+ metadata.gz: e8ebb4c1534a5a64b8699c35aaa6c99d449e69e4c79fa80212d953ae659a0f2e16f483280b5685c42cfb9f535bfdbc7f7af439d8e2722a482dae38e2205847d8
7
+ data.tar.gz: 021ed3f090dddd3b0c8bc0768feca11eec52a45c7b280d7e48e085ee1f049660cfbba38c759128d7a46f78732d4534bd36d684feb390aaa014bf78a20e3cb36b
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  ## [Unreleased]
2
2
 
3
+ **[WIP]** Support for CI
4
+
5
+ ## [0.1.1] - 2021-08-28
6
+
7
+ ### Fixed
8
+
9
+ - Failures when RSpec required files are outside of project
10
+
3
11
  ## [0.1.0] - 2021-08-27
4
12
 
5
13
  **Initial Release**
data/README.md CHANGED
@@ -23,7 +23,7 @@ we can also analyze the coupling between different components and much more.
23
23
  ## Note
24
24
 
25
25
  **RSpec Tracer is currently available for use in the local development
26
- environment only.**
26
+ environment only.** Support for CI is work in progress.
27
27
 
28
28
  ## Installation
29
29
 
@@ -41,8 +41,9 @@ And, add the followings to your `.gitignore`:
41
41
 
42
42
  ### Compatibility
43
43
 
44
- RSpec Tracer requires **Ruby 2.5+** and **rspec-core >= 3.6.0**. If you are using
45
- SimpleCov, it is recommended to use **simplecov >= 0.12.0**.
44
+ RSpec Tracer requires **Ruby 2.5+** and **rspec-core >= 3.6.0**. To use with **Rails 5+**,
45
+ make sure to use **rspec-rails >= 4.0.0**. If you are using SimpleCov, it is
46
+ recommended to use **simplecov >= 0.12.0**.
46
47
 
47
48
  ## Getting Started
48
49
 
@@ -58,7 +59,7 @@ SimpleCov, it is recommended to use **simplecov >= 0.12.0**.
58
59
  SimpleCov.start
59
60
 
60
61
  # Load RSpec Tracer
61
- require 'rspec-tracer'
62
+ require 'rspec_tracer'
62
63
  RSpecTracer.start
63
64
  ```
64
65
 
@@ -74,7 +75,7 @@ SimpleCov, it is recommended to use **simplecov >= 0.12.0**.
74
75
 
75
76
  ```ruby
76
77
  # Load RSpec Tracer
77
- require 'rspec-tracer'
78
+ require 'rspec_tracer'
78
79
  RSpecTracer.start
79
80
  ```
80
81
 
@@ -208,10 +208,11 @@ module RSpecTracer
208
208
  rspec_root = RSpec::Core::RubyProject.root
209
209
  rspec_path = RSpec.configuration.default_path
210
210
 
211
- RSpec.configuration.requires.map do |file_name|
211
+ RSpec.configuration.requires.each_with_object([]) do |file_name, required_files|
212
212
  file_name = "#{file_name}.rb" if File.extname(file_name).empty?
213
+ file_path = File.join(rspec_root, rspec_path, file_name)
213
214
 
214
- File.join(rspec_root, rspec_path, file_name)
215
+ required_files << file_path if File.file?(file_path)
215
216
  end
216
217
  end
217
218
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RSpecTracer
4
- VERSION = '0.1.0'
4
+ VERSION = '0.2.0'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspec-tracer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Abhimanyu Singh
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-08-26 00:00:00.000000000 Z
11
+ date: 2021-08-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: docile
@@ -97,7 +97,7 @@ licenses:
97
97
  - MIT
98
98
  metadata:
99
99
  homepage_uri: https://github.com/avmnu-sng/rspec-tracer
100
- source_code_uri: https://github.com/avmnu-sng/rspec-tracer/tree/v0.1.0
100
+ source_code_uri: https://github.com/avmnu-sng/rspec-tracer/tree/v0.2.0
101
101
  changelog_uri: https://github.com/avmnu-sng/rspec-tracer/blob/main/CHANGELOG.md
102
102
  bug_tracker_uri: https://github.com/avmnu-sng/rspec-tracer/issues
103
103
  post_install_message: