episopass 0.1.7 → 0.1.8

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: c3f927a52f6e4aa774f33c6b920c1d4061017f229b0714d347e35ee7a4e5b68f
4
- data.tar.gz: 00eab44234841ea8033387d7d6d78555bacabbadac322440ffeef5654086bee4
3
+ metadata.gz: 3c5108b92f5194129b84b26f6bd1b3e14d8833cfe9bef4eab613eec2e1bfd91b
4
+ data.tar.gz: 739dda69738dc4e2e12ce2388dca4130a38b2cc7b806958fb0983192f5890014
5
5
  SHA512:
6
- metadata.gz: ba6cda6eed643a94db45f9a76fb54e7bfc06d0746ab45899348f288362e9d9880ede7dc00e5fb03b0d2575abe04f79f90bed9c3eed0aebb9a3af8488bd814e71
7
- data.tar.gz: c7d4ec29bc1ea79e57f96b578f55857f3913a146dcd4eb65a19e4ea29beadfedb74958d4467a5da8c3863f7f77f6e7ced08d2a523cc78a17b84555e7c4a5c9ec
6
+ metadata.gz: 9a5bb33232b244ca76d36b5227c899506c50d1e955c2e45bf5cdd1efe2f7dc6cc13c07d3cf9820bc507b18757519159d1b361c963b0e3a8589361124047d64ec
7
+ data.tar.gz: 21eee76111ab6ec862ee82ef07d79a90cc2947afee87d7b7a7ec5502dda096c71c809af054784804cb1f6a0a0307ff959f12f7e43fed020128e645bca5b60cb0
data/exe/episopass CHANGED
@@ -17,8 +17,11 @@ if arg
17
17
  html = File.read(arg)
18
18
  end
19
19
  else
20
- # サンプルデータ利用
21
- html = File.read("#{__dir__}/../data/sample.html") # gemのファイル指定する方法は?
20
+ path = "#{__dir__}/../data/sample.html" # gemのファイル指定する方法は?
21
+ localpath = File.expand_path("~/.episopass.html")
22
+ path = localpath if File.exist?(localpath)
23
+
24
+ html = File.read(path)
22
25
  end
23
26
 
24
27
  opencmd = "open"
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module EpisoPass
4
- VERSION = "0.1.7"
4
+ VERSION = "0.1.8"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: episopass
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Toshiyuki Masui
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-02-08 00:00:00.000000000 Z
11
+ date: 2021-02-09 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Run EpisoPass from CLI
14
14
  email: