dpu 0.4.0 → 0.4.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -0
- data/lib/dpu/version.rb +1 -1
- data/lib/dpu.rb +8 -5
- 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: 1d4e5362a3f5be5dd2a03b88cf4d9223a492dbc0612721ae90e0235cc7440bfd
|
4
|
+
data.tar.gz: 36f99c5337c5810d9c0daf40ea10cc2588e54e129ca7839faad50170772b093d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e278b4267be87dd61903c6b18b3283c47bb35c2cd2a08a1cb6f9c18ef2a5f1e6ce0e135845b59ceba18b0cc269bd6f976a220968111f7116992e9710cd7cb24f
|
7
|
+
data.tar.gz: 9c4bda05c75bb0a19f01352a45309c17276a5f15ea6f5c5446922b4f8042f0ceb747355216163c1bc18023c5c65190829b56f6e19937f619736447ae83792176
|
data/README.md
CHANGED
@@ -76,6 +76,10 @@ end
|
|
76
76
|
GLOBAL_MAP.define_key("\C-xL", :copy_permanent_uri)
|
77
77
|
```
|
78
78
|
|
79
|
+
### Other editor integration
|
80
|
+
|
81
|
+
Write pull-request or issue, please!
|
82
|
+
|
79
83
|
## Contributing
|
80
84
|
|
81
85
|
Bug reports and pull requests are welcome on GitHub at https://github.com/nishidayuya/dpu .
|
data/lib/dpu/version.rb
CHANGED
data/lib/dpu.rb
CHANGED
@@ -15,10 +15,10 @@ module Dpu
|
|
15
15
|
}
|
16
16
|
|
17
17
|
GITHUB_REMOTE_URL_PATTERN = [
|
18
|
-
%r{\Agit://github\.com/(?<account_name>[^/]+)/(?<repository_name
|
19
|
-
%r{\Ahttps?://github\.com/(?<account_name>[^/]+)/(?<repository_name
|
20
|
-
%r{\Agit@github\.com:(?<account_name>[^/]+)/(?<repository_name
|
21
|
-
%r{\Assh://git@github\.com/(?<account_name>[^/]+)/(?<repository_name
|
18
|
+
%r{\Agit://github\.com/(?<account_name>[^/]+)/(?<repository_name>[^/]+(?=\.git)|[^/]+)},
|
19
|
+
%r{\Ahttps?://github\.com/(?<account_name>[^/]+)/(?<repository_name>[^/]+(?=\.git)|[^/]+)},
|
20
|
+
%r{\Agit@github\.com:(?<account_name>[^/]+)/(?<repository_name>[^/]+(?=\.git)|[^/]+)},
|
21
|
+
%r{\Assh://git@github\.com/(?<account_name>[^/]+)/(?<repository_name>[^/]+(?=\.git)|[^/]+)},
|
22
22
|
].then { |patterns|
|
23
23
|
Regexp.union(*patterns)
|
24
24
|
}
|
@@ -118,7 +118,10 @@ module Dpu
|
|
118
118
|
|
119
119
|
content_in_head = path.read
|
120
120
|
same_content_version = versions.reverse_each.find { |version|
|
121
|
-
content_in_version, _status = *Open3.
|
121
|
+
content_in_version, _stderr, _status = *Open3.capture3(
|
122
|
+
*%W[git show #{version}:#{relative_path_from_repository_root}],
|
123
|
+
chdir: path.dirname,
|
124
|
+
)
|
122
125
|
content_in_head == content_in_version
|
123
126
|
}
|
124
127
|
return same_content_version
|
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.
|
4
|
+
version: 0.4.2
|
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-07-
|
11
|
+
date: 2023-07-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: debug
|