debug_html 0.0.0 → 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/debug_html.rb +7 -3
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 96a707597b686b9bf955dc3504dd27f3f850d7e9
4
- data.tar.gz: 63790d69f4a1866b482e354eac1978d6f3f132b9
3
+ metadata.gz: 4237864ef0384089e06bb77b5404a1b4c93ac753
4
+ data.tar.gz: 5b48ea3c72798dec6454243bef49cb9cd68614a9
5
5
  SHA512:
6
- metadata.gz: c7ae3b09d5bcc14e687867e7ad3f6c492424a318032d02d5241b7b11b929a8a6da3636e6107284de8b7033feba0f6c1dadb4b517b611e7d8cb6e8c68d40fb2a9
7
- data.tar.gz: 0de6f5583d70eaa28907130817f46b9514aec07e03baa9c73f0d0133f5c211b6067191379062a099db85b74cd20933ba2bff96440f3e9eb4bf463f4ae4725338
6
+ metadata.gz: 78305200d73800b9094c12748c8a1fe6dfbd6734b4dc9c43411c0ae99d01b06c6fcf6effb40fe7ced35676ffd38258815bacb31503895a0262f57a329808a82a
7
+ data.tar.gz: 30a3a1aa0420bab597b3e261ea469e7ddbd541b6fd93a4903f3a658d511b627ef546efee857f2ff7ab7c145657db76d222a7517878d0231f7a7ac4cfb3b05ce4
@@ -11,7 +11,7 @@ module DebugHTML
11
11
  Launchy.open(path)
12
12
  end
13
13
 
14
- private_class_method def self.save_html(html)
14
+ def self.save_html(html)
15
15
  file = File.new(full_path, 'w')
16
16
  file.write(html)
17
17
  file.close
@@ -19,13 +19,17 @@ module DebugHTML
19
19
  file.path
20
20
  end
21
21
 
22
- private_class_method def self.full_path
22
+ def self.full_path
23
23
  tmpdir = Dir.tmpdir
24
24
  "#{tmpdir}/#{filename}"
25
25
  end
26
26
 
27
- private_class_method def self.filename
27
+ def self.filename
28
28
  timestamp = Time.new.strftime('%Y%m%d%H%M%S')
29
29
  "debug_html-#{timestamp}#{rand(10**10)}.html"
30
30
  end
31
+
32
+ private_class_method :save_html
33
+ private_class_method :full_path
34
+ private_class_method :filename
31
35
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: debug_html
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.0
4
+ version: 0.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Melvin Lammerts
@@ -44,7 +44,7 @@ dependencies:
44
44
  - - "~>"
45
45
  - !ruby/object:Gem::Version
46
46
  version: '3.5'
47
- description: Drop-in HTML page save and open like Capybara's save_and_open_page
47
+ description: Drop-in HTML page save and open like capybara's save_and_open_page.
48
48
  email: hi@melvin.sh
49
49
  executables: []
50
50
  extensions: []