ricecream 0.1.0 → 0.1.1

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: e240fcc9c162e65feccf6a68d1c5c3821e95fddeae647d02b86b5eace9a1c6fc
4
- data.tar.gz: fdbe210b294b1a9c98c41783d0e89f6e4411f4572017c12fb1d5a65d1c63d882
3
+ metadata.gz: 2cff31eb924e068fa9e0778e5e23cbb17e80db8a91291467fa58e76e704204d9
4
+ data.tar.gz: 5570dd392b71a4a12d73d7aea6f66218149cf256124a68a5787c14561607c481
5
5
  SHA512:
6
- metadata.gz: 81e9f4aa536c4c5efc979f713a1beaea3f72055a7c9f06d4fc8053f5da2f75c44887c79e96348424a1a592ef9bf241fa303ac26e31dd1875920fb66754ff8fdd
7
- data.tar.gz: 29d22355a67bc956749cf91fcf3a9bdfd07ff493005eaeda2fd05a073e600f6944b15f06613b2a77edf2578a0360d006dc2a96173013c02a7abb52acc352de80
6
+ metadata.gz: 8e75503929c08cddf078ce86e7e1ce7127649465a3bec31e7523d3573a106ee3b52c9b8448b19748be120c57afdbff6b01ded2ccd78440935239d4501863e8f2
7
+ data.tar.gz: b200d30117c3b0bab06564e88ca9efc689596d89e35e6a8c435a1d17eda0ed36c5fba367074273712fc8fda63285218bcfaefd51eb229a16cce9c5ff4f372e04
@@ -10,8 +10,8 @@ module Ricecream
10
10
  def initialize(path)
11
11
  @ic_methods = []
12
12
  @last_loc = [1, 0]
13
- @path = File.absolute_path(path)
14
- return unless File.exist?(@path)
13
+ @path = File.absolute_path(path.to_s)
14
+ return unless File.file?(@path)
15
15
  @script = File.binread(@path) + " "
16
16
  super(@script, @path)
17
17
  parse
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Ricecream
4
- VERSION = "0.1.0"
4
+ VERSION = "0.1.1"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ricecream
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - nodai2hITC
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-01-28 00:00:00.000000000 Z
11
+ date: 2021-01-29 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Never use puts/p to debug again! More useful debugging libraries than
14
14
  puts / p. (A Ruby port of Python's IceCream.)