rspeckled 0.0.43 → 0.0.44

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: f6e5d300b5c651540f35e47cd75b444aa8045c3e
4
- data.tar.gz: c6f152d7d477bb87bae569e1e72004573c8d3430
3
+ metadata.gz: a1e101d792cdd53811828614076d774919549335
4
+ data.tar.gz: d19b7f64108def1e6e54c180475055df61883050
5
5
  SHA512:
6
- metadata.gz: 7d815ce7792064fa3f0f7f6e0e8ce3ab73cadc66873cb3f09232ad6c3ff41fedf9274d8421e2d9f7741ecc15d43a906772459ea07220196f2df0e53eb7240108
7
- data.tar.gz: 15812a30b93a864d6d2d7ff964e91e51154b031e19e717e757aa95a1df30e413dad40a2c63b50e96014f4e1ea77aaa41002fe8bce128ae89b8212ca5a15297f9
6
+ metadata.gz: b1cecfc60268dfa914878456f97a8176462142cf688148b08b46a1bca893be948a0eab1d1c7ac63e9ee333632c4792ab5ef35d312fe5ca0d7716e9db7c6ccc09
7
+ data.tar.gz: 034a7fde020480e25d9f941f55c3a210d2b5cc3a07b9c6c052768b5836d27178885dfa1d2d37c8e6a8e8747af8b0f66a8b9e45626ea087bd98e24055861eacc6
checksums.yaml.gz.sig CHANGED
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -1,6 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require 'csv'
4
+ require 'fileutils'
4
5
 
5
6
  module Rspeckled
6
7
  module Reporting
@@ -27,6 +28,8 @@ class Csv
27
28
  attr_accessor :output
28
29
 
29
30
  def initialize
31
+ FileUtils.mkdir_p('log')
32
+
30
33
  self.output = CSV.open('log/rspec_report.csv', 'a').tap { |csv| csv << FIELDS }
31
34
  end
32
35
 
@@ -1,5 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require 'fileutils'
4
+
3
5
  module Rspeckled
4
6
  module Reporting
5
7
  module Outputs
@@ -23,6 +25,8 @@ class Text
23
25
  attr_accessor :output
24
26
 
25
27
  def initialize
28
+ FileUtils.mkdir_p('log')
29
+
26
30
  self.output = File.open('log/rspec_report.txt', 'a')
27
31
  end
28
32
 
@@ -1,5 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require 'time'
4
+
3
5
  module Rspeckled
4
6
  module Reporting
5
7
  class Runner
@@ -31,6 +33,8 @@ class Runner
31
33
  end
32
34
 
33
35
  def start(_notification)
36
+ return unless defined?(::ActiveSupport::Notifications)
37
+
34
38
  ActiveSupport::Notifications.subscribe('sql.active_record') do |_name, start, finish, _id, query|
35
39
  example&.log_query(query, start, finish)
36
40
  end
@@ -50,7 +54,7 @@ class Runner
50
54
  outputter.insert(
51
55
  :branch => `git rev-parse --abbrev-ref HEAD`.chomp,
52
56
  :commit_hash => `git rev-parse HEAD`.chomp,
53
- :date => Time.parse(`git show -s --format=%ci HEAD`.chomp),
57
+ :date => ::Time.parse(`git show -s --format=%ci HEAD`.chomp),
54
58
  :file => example.file,
55
59
  :line_number => example.line_number,
56
60
  :description => example.description,
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Rspeckled
4
- VERSION = '0.0.43'
4
+ VERSION = '0.0.44'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspeckled
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.43
4
+ version: 0.0.44
5
5
  platform: ruby
6
6
  authors:
7
7
  - thegranddesign
@@ -31,7 +31,7 @@ cert_chain:
31
31
  Y2GAoHKstmfIVhc4XHOPpmTd2o/C29O9oaRgjrkfQEhF/KvJ/PhoV5hvokzsCyI5
32
32
  iUeXPfvrGD/itYIBCgk+fnzyQQ4QtE5hTQaWQ3o2
33
33
  -----END CERTIFICATE-----
34
- date: 2018-04-17 00:00:00.000000000 Z
34
+ date: 2018-04-23 00:00:00.000000000 Z
35
35
  dependencies:
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: rspec
metadata.gz.sig CHANGED
Binary file