deep-cover 0.8.1 → 1.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,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 621b28ff48f341de43e6968478e56ad4a19f3fd5857938589a70a811aaa5fbc0
4
- data.tar.gz: 96188d3620f46b1b84013ea31fb74238baa5096b91d6674312addff99d36a665
3
+ metadata.gz: 5f0f483efa4fbc22b80dad48ab7bee0a82e0c48c2f79508723e5d0a89fa19d39
4
+ data.tar.gz: 37f8cace88d169de91b2ca286f7f4cb7b52daea3054f3f600ef7b166fa221cdf
5
5
  SHA512:
6
- metadata.gz: 3cd1be3fb4a64e36728781248c10cc3f199a00151ae08b0aec33a9f35914981deaa9fbc22f53f5084cdb19d67f8ab35530f469fe8ca858983fdb8d67379d1f2b
7
- data.tar.gz: c26c90179da7bad93c2fe605b4c231221c8cb2d1b136aa17253c90cb1319b9dcd5b91aa53744e98f5fa9cc12dd8e5263fa7f657885aef830ee66c982cc092996
6
+ metadata.gz: 8d6734d45c4fd9a4f13a2bd4ad8b156efa857696f76da3675d8513001192929219c3c3b7ded6404792fc6a45fafd7a9c395510be27e1cf07e8e030621c5c78d9
7
+ data.tar.gz: 7df04c6ac58b29b7e47d43b0a97587d74113981a06a987565a251830885bd8265539b913078e98fa24f7d932a36bae3ac5bf0660782991e57e973261a0c4bc50
@@ -301,3 +301,6 @@ Layout/SpaceInsideReferenceBrackets:
301
301
  # Ruby 2.1 support:
302
302
  Style/SafeNavigation:
303
303
  Enabled: false
304
+
305
+ Performance/RegexpMatch:
306
+ Enabled: false
@@ -2,6 +2,12 @@
2
2
 
3
3
  * We now officially support JRuby. Our test-suite passes with it.
4
4
 
5
+ ## 1.0.0
6
+
7
+ * `deep-cover run-expression` accepts STDIN
8
+
9
+ * API should be stable enough :-)
10
+
5
11
  ## 0.8.0
6
12
 
7
13
  * Support for `exclude_paths` config [#56]
data/README.md CHANGED
@@ -205,10 +205,6 @@ To run one of the specs in `spec`:
205
205
 
206
206
  More details in the [contributing guide](https://github.com/deep-cover/deep-cover/blob/master/CONTRIBUTING.md).
207
207
 
208
- ### Status
209
-
210
- Currently in development. *Alpha stage, API still subject to change*. Best time to get involved though ;-)
211
-
212
208
  ## Contributing
213
209
 
214
210
  Please ask questions on StackOverflow.com. Maintainers monitor the tag `deep-cover.rb`.
@@ -2,11 +2,12 @@
2
2
 
3
3
  module DeepCover
4
4
  class CLI
5
- desc "run-expression [OPTIONS] 'ruby code'", 'Show coverage results for the given ruby expression'
5
+ desc "run-expression [OPTIONS] ['ruby code']", 'Show coverage results for the given ruby expression (or STDIN)'
6
6
  option '--profile', desc: 'use profiler', type: :boolean if RUBY_PLATFORM != 'java'
7
7
  option '--debug', aliases: '-d', desc: 'opens an interactive console for debugging', type: :boolean
8
- def run_expression(expression)
8
+ def run_expression(expression = nil)
9
9
  require_relative '../../expression_debugger'
10
+ expression ||= STDIN.read.tap { STDIN.reopen('/dev/tty') }
10
11
  ExpressionDebugger.new(expression, **options.transform_keys(&:to_sym)).show
11
12
  end
12
13
  end
@@ -35,7 +35,7 @@ module DeepCover
35
35
 
36
36
  def copy
37
37
  return true if @copied
38
- puts 'Cloning...'
38
+ puts "Cloning... #{File.expand_path(@root_path)}"
39
39
  FileUtils.cp_r(Dir.glob("#{@root_path}/#{GLOB_ALL_CONTENT}"), @dest_root)
40
40
  @copied = true
41
41
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: deep-cover
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.1
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marc-André Lafortune
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2020-05-08 00:00:00.000000000 Z
12
+ date: 2020-06-01 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: deep-cover-core
@@ -17,14 +17,14 @@ dependencies:
17
17
  requirements:
18
18
  - - '='
19
19
  - !ruby/object:Gem::Version
20
- version: 0.8.1
20
+ version: 1.0.0
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
25
  - - '='
26
26
  - !ruby/object:Gem::Version
27
- version: 0.8.1
27
+ version: 1.0.0
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: highline
30
30
  requirement: !ruby/object:Gem::Requirement
@@ -214,7 +214,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
214
214
  - !ruby/object:Gem::Version
215
215
  version: '0'
216
216
  requirements: []
217
- rubygems_version: 3.2.0.pre1
217
+ rubygems_version: 3.1.2
218
218
  signing_key:
219
219
  specification_version: 4
220
220
  summary: In depth coverage of your Ruby code.