dpu 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/dpu/version.rb +1 -1
- data/lib/dpu.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e74102f4656827d87278839810c8567da7d5442b574c7d1bf37cf4efacfe678b
|
4
|
+
data.tar.gz: 87de6aa0a6534f2fae3426dcc71d8802387f71e46c8aae86e4edaac140b7d89f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8fcb41b6badad655bef585317d7a4f27ab344a72fe574169a14dfd70547ac6ef79df92692f1ef86afb27d46e1c4c9fb0e59a5751abfe47d62a65ff84ccc55941
|
7
|
+
data.tar.gz: 56553802f7c6cad522369be264632e45fec627389d5eb0232c8cc6f63e83c8a0171d78d5677f7f1df7470bbe43aca1480b1b276a388068d027b782b12b5ed582
|
data/README.md
CHANGED
@@ -67,7 +67,7 @@ Then type `C-x L` to copy permanent URI. `C-y` to paste it.
|
|
67
67
|
define_command(:copy_permanent_uri, doc: "Copy permanent URI") do
|
68
68
|
require "dpu"
|
69
69
|
b = Buffer.current
|
70
|
-
uri = Dpu.determine_permanent_uri(Pathname(b.file_name), b.current_line
|
70
|
+
uri = Dpu.determine_permanent_uri(Pathname(b.file_name), b.current_line)
|
71
71
|
KILL_RING.push(uri)
|
72
72
|
Clipboard.copy(uri) if CLIPBOARD_AVAILABLE
|
73
73
|
message("Copied: #{uri}")
|
data/lib/dpu/version.rb
CHANGED
data/lib/dpu.rb
CHANGED
@@ -17,7 +17,7 @@ module Dpu
|
|
17
17
|
Regexp.union(*patterns)
|
18
18
|
}
|
19
19
|
|
20
|
-
def determine_permanent_uri(path, start_line_number, end_line_number)
|
20
|
+
def determine_permanent_uri(path, start_line_number = nil, end_line_number = nil)
|
21
21
|
relative_path = determine_relative_path(path)
|
22
22
|
|
23
23
|
permanent_uri_parts = [
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dpu
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yuya.Nishida.
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-06-
|
11
|
+
date: 2023-06-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: debug
|