dpu 0.4.0 → 0.4.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +4 -0
  3. data/lib/dpu/version.rb +1 -1
  4. data/lib/dpu.rb +8 -5
  5. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7e767334841a8cf8e60953a8edde125a40e62a488bd6837ae8f798ff0f9c468a
4
- data.tar.gz: 79c11100a4390dbb54bb6186facd6226b3c981fbb14d98512a5bc772c654fe45
3
+ metadata.gz: 1d4e5362a3f5be5dd2a03b88cf4d9223a492dbc0612721ae90e0235cc7440bfd
4
+ data.tar.gz: 36f99c5337c5810d9c0daf40ea10cc2588e54e129ca7839faad50170772b093d
5
5
  SHA512:
6
- metadata.gz: 3cd1dd74f4222f3962abee264da6d4ac90ef9f5bfb674ccfeb78c03de5c8b575b52897c47a44a3f3ec93ff5abb38b97cfca251069d06ebd2c4adb5be0eebc6da
7
- data.tar.gz: d19919ff4b281af1b7604cdd586bece18e9f1a94fc519d947647c3196743c464d9c7b3a03edb92f0749f81857aa97a2dbbdbda8eacb1c39a1c45bfca9a79b1fa
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Dpu
4
- VERSION = "0.4.0"
4
+ VERSION = "0.4.2"
5
5
  end
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>.+)(?=\.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)},
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.capture2(*%W[git show #{version}:#{relative_path_from_repository_root}], chdir: path.dirname, err: "/dev/null")
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.0
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-12 00:00:00.000000000 Z
11
+ date: 2023-07-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: debug