giturl 1.3.1 → 1.3.2

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: 6858c9b00386248c61e648e91c70d5d2ee8dcf87148623b5adc8b5629709cc00
4
- data.tar.gz: c61fb13e943273aaac9443c0d51c69f350dc19efe0edc566b83e990cfcffa2f4
3
+ metadata.gz: 3a27789c78c7e8e406c013e70dab4327347993b0a63d8bc55fb318fa2a17e011
4
+ data.tar.gz: 17f074f48f48224c860ff5eefd29cfd27fe50b998b5121d99504e45a825f7f5e
5
5
  SHA512:
6
- metadata.gz: abc661bddd612b8aa06edce935b9b66497c9fdc38fde6314222b305f6c677a6bfb03343c655f5581ff9d68d2d3f0b38311f8753707e46d9173db29f30d54b76e
7
- data.tar.gz: 731cf5c4cc15b4049c348ec1e5840c4f1c89fd2740d76508f8f126bf6ce22c4d59765abc6b4a697ebbef2175fb4d8f70497524390e98181f9301b67c82b84b6f
6
+ metadata.gz: d3183cc7457280ab61080e4cc6577ecb4ce66e61bcb00aff304a4cf56304fa79a6e9075d381e06cdb97e9a935dcd383fcb45584f9a46ea1180d8a7e17342e1e5
7
+ data.tar.gz: 5406b80bc481bd73d88e82e43ae48107489fe16b99b36def6e89baa8f05a070eafd24a1929ffa37e51cc5c55deafd55ae9636f9fd7535632cfe0b3583df83a7e
@@ -19,6 +19,9 @@ Layout/EndAlignment:
19
19
  EnforcedStyleAlignWith: start_of_line
20
20
  AutoCorrect: true
21
21
 
22
+ Layout/SpaceAroundMethodCallOperator:
23
+ Enabled: true
24
+
22
25
  Layout/LineLength:
23
26
  Enabled: true
24
27
  AutoCorrect: false
@@ -39,6 +42,9 @@ Metrics/MethodLength:
39
42
  Enabled: true
40
43
  Max: 30
41
44
 
45
+ Style/ExponentialNotation:
46
+ Enabled: true
47
+
42
48
  Style/HashEachMethods:
43
49
  Enabled: true
44
50
  AutoCorrect: true
@@ -1,5 +1,20 @@
1
1
  # Changelog
2
2
 
3
+ ## [v1.3.2](https://github.com/shinyaohtani/giturl/tree/v1.3.2) (2020-05-10)
4
+
5
+ [Full Changelog](https://github.com/shinyaohtani/giturl/compare/v1.3.1...v1.3.2)
6
+
7
+ - No changes in behavior
8
+ - code refactoring only.
9
+
10
+ **Closed issues:**
11
+
12
+ - Refactoring that isn't needed [\#27](https://github.com/shinyaohtani/giturl/issues/27)
13
+
14
+ **Merged pull requests:**
15
+
16
+ - Non urgent refactoring \#27 [\#28](https://github.com/shinyaohtani/giturl/pull/28) ([shinyaohtani](https://github.com/shinyaohtani))
17
+
3
18
  ## [v1.3.1](https://github.com/shinyaohtani/giturl/tree/v1.3.1) (2020-04-14)
4
19
 
5
20
  [Full Changelog](https://github.com/shinyaohtani/giturl/compare/v1.3.0...v1.3.1)
@@ -16,8 +31,8 @@
16
31
 
17
32
  - Introduced Rubocop-performance [\#24](https://github.com/shinyaohtani/giturl/pull/24) ([shinyaohtani](https://github.com/shinyaohtani))
18
33
 
19
- **other topic
20
- - Create PR [\#794](https://github.com/github-changelog-generator/github-changelog-generator/pull/794) about github_changelog_generator on which giturl depends
34
+ **Other related topic:**
35
+ - Created PR [\#794](https://github.com/github-changelog-generator/github-changelog-generator/pull/794) about github_changelog_generator on which giturl depends
21
36
 
22
37
  ## [v1.3.0](https://github.com/shinyaohtani/giturl/tree/v1.3.0) (2020-04-08)
23
38
 
@@ -0,0 +1,74 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ In the interest of fostering an open and welcoming environment, we as
6
+ contributors and maintainers pledge to making participation in our project and
7
+ our community a harassment-free experience for everyone, regardless of age, body
8
+ size, disability, ethnicity, gender identity and expression, level of experience,
9
+ nationality, personal appearance, race, religion, or sexual identity and
10
+ orientation.
11
+
12
+ ## Our Standards
13
+
14
+ Examples of behavior that contributes to creating a positive environment
15
+ include:
16
+
17
+ * Using welcoming and inclusive language
18
+ * Being respectful of differing viewpoints and experiences
19
+ * Gracefully accepting constructive criticism
20
+ * Focusing on what is best for the community
21
+ * Showing empathy towards other community members
22
+
23
+ Examples of unacceptable behavior by participants include:
24
+
25
+ * The use of sexualized language or imagery and unwelcome sexual attention or
26
+ advances
27
+ * Trolling, insulting/derogatory comments, and personal or political attacks
28
+ * Public or private harassment
29
+ * Publishing others' private information, such as a physical or electronic
30
+ address, without explicit permission
31
+ * Other conduct which could reasonably be considered inappropriate in a
32
+ professional setting
33
+
34
+ ## Our Responsibilities
35
+
36
+ Project maintainers are responsible for clarifying the standards of acceptable
37
+ behavior and are expected to take appropriate and fair corrective action in
38
+ response to any instances of unacceptable behavior.
39
+
40
+ Project maintainers have the right and responsibility to remove, edit, or
41
+ reject comments, commits, code, wiki edits, issues, and other contributions
42
+ that are not aligned to this Code of Conduct, or to ban temporarily or
43
+ permanently any contributor for other behaviors that they deem inappropriate,
44
+ threatening, offensive, or harmful.
45
+
46
+ ## Scope
47
+
48
+ This Code of Conduct applies both within project spaces and in public spaces
49
+ when an individual is representing the project or its community. Examples of
50
+ representing a project or community include using an official project e-mail
51
+ address, posting via an official social media account, or acting as an appointed
52
+ representative at an online or offline event. Representation of a project may be
53
+ further defined and clarified by project maintainers.
54
+
55
+ ## Enforcement
56
+
57
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
+ reported by contacting the project team at @shinyaohtani. All
59
+ complaints will be reviewed and investigated and will result in a response that
60
+ is deemed necessary and appropriate to the circumstances. The project team is
61
+ obligated to maintain confidentiality with regard to the reporter of an incident.
62
+ Further details of specific enforcement policies may be posted separately.
63
+
64
+ Project maintainers who do not follow or enforce the Code of Conduct in good
65
+ faith may face temporary or permanent repercussions as determined by other
66
+ members of the project's leadership.
67
+
68
+ ## Attribution
69
+
70
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
+ available at [https://contributor-covenant.org/version/1/4][version]
72
+
73
+ [homepage]: https://contributor-covenant.org
74
+ [version]: https://contributor-covenant.org/version/1/4/
data/README.md CHANGED
@@ -3,7 +3,7 @@
3
3
 
4
4
  ## What is giturl?
5
5
 
6
- `giturl` is a helper for accessing GitHub web pages. Have you ever wanted to access a GitHub web page while working on a git-cloned local directory? You can use `giturl` to display the URL corresponding to the git-managed directory given as an argument. And furthermore, if you want to access the URL immediately with your browser, `girurl` opens your browser and automatically accesses the URL without your any operation on the browser. `giturl` is a simple command. you can easily use from now on.
6
+ `giturl` is a helper for accessing GitHub web pages. Have you ever wanted to access a GitHub web page while working on a git-cloned local directory? You can use `giturl` to display the URL corresponding to the git-managed directory given as an argument. And furthermore, if you want to access the URL immediately with your browser, `giturl` opens your browser and automatically accesses the URL without your any operation on the browser. `giturl` is a simple command. you can easily use from now on.
7
7
 
8
8
  You can use `giturl` like:
9
9
 
File without changes
@@ -1,8 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- lib = File.expand_path('lib', __dir__)
4
- $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
- require 'giturl/version'
3
+ require_relative 'lib/giturl/version'
6
4
 
7
5
  Gem::Specification.new do |spec|
8
6
  spec.name = 'giturl'
@@ -10,27 +8,25 @@ Gem::Specification.new do |spec|
10
8
  spec.authors = ['Shinya Ohtani (shinyaohtani@github)']
11
9
  spec.email = ['shinya_ohtani@yahoo.co.jp']
12
10
 
13
- spec.homepage = 'https://github.com/shinyaohtani/giturl/blob/master/README.md'
14
- spec.license = 'MIT'
15
11
  spec.summary = 'Show or open GitHub URL for your local directory'
16
- spec.description = <<~DESCRIPTION
17
- Show or open GitHub URL for your local directory.
18
- You can use giturl to display the URL corresponding to the git-managed directory given as an argument, and you can open the URL directly in your browser if needed.
19
- DESCRIPTION
12
+ spec.description = Giturl::DESCRIPTION
13
+ spec.homepage = Giturl::REPOSITORY_URL + '/blob/master/README.md'
14
+ spec.license = 'MIT'
15
+ spec.required_ruby_version = Gem::Requirement.new('>= 2.3.0')
20
16
 
21
- #:spec.metadata["allowed_push_host"] = "TODO: Set to 'http://mygemserver.com'"
17
+ spec.metadata['allowed_push_host'] = 'https://rubygems.org'
22
18
 
23
19
  spec.metadata['homepage_uri'] = spec.homepage
24
- spec.metadata['source_code_uri'] = 'https://github.com/shinyaohtani/giturl'
25
- spec.metadata['changelog_uri'] = 'https://github.com/shinyaohtani/giturl/blob/master/CHANGELOG.md'
20
+ spec.metadata['source_code_uri'] = Giturl::REPOSITORY_URL
21
+ spec.metadata['changelog_uri'] = Giturl::REPOSITORY_URL + '/blob/master/CHANGELOG.md'
26
22
 
27
23
  # Specify which files should be added to the gem when it is released.
28
24
  # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
29
25
  spec.files = Dir.chdir(File.expand_path(__dir__)) do
30
26
  `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
31
27
  end
32
- spec.bindir = 'bin'
33
- spec.executables = ['giturl']
28
+ spec.bindir = 'exe'
29
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
34
30
  spec.require_paths = ['lib']
35
31
 
36
32
  spec.add_runtime_dependency 'launchy', '>= 2.5.0'
@@ -51,9 +51,7 @@ module Giturl
51
51
  opts.banner = <<~BANNER
52
52
 
53
53
  #{opts.ver}
54
- A tiny utility that displays and opens GitHub URLs for your local directory.
55
- visit: https://github.com/shinyaohtani/giturl
56
-
54
+ #{DESCRIPTION}
57
55
  Usage: #{opts.program_name} [options] [dirs]
58
56
  [dirs]:
59
57
  Target directories. Omit this when you only specify "."
@@ -1,5 +1,17 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Giturl
4
- VERSION = '1.3.1'
4
+ VERSION = '1.3.2'
5
+ DESCRIPTION = <<~DESC
6
+ A tiny helper for accessing GitHub web pages corresponding to local
7
+ working directories.
8
+
9
+ Have you ever wanted to access a GitHub web page while working on
10
+ a git-cloned local directory?
11
+ You can use 'giturl' to display the URL corresponding to the git-managed
12
+ directory given as an argument. And furthermore, if you want to access
13
+ the URL immediately with your browser, 'giturl' opens your browser and
14
+ automatically accesses the URL without your any operation on the browser.
15
+ DESC
16
+ REPOSITORY_URL = 'https://github.com/shinyaohtani/giturl'
5
17
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: giturl
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.1
4
+ version: 1.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shinya Ohtani (shinyaohtani@github)
8
8
  autorequire:
9
- bindir: bin
9
+ bindir: exe
10
10
  cert_chain: []
11
- date: 2020-04-14 00:00:00.000000000 Z
11
+ date: 2020-05-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: launchy
@@ -151,8 +151,15 @@ dependencies:
151
151
  - !ruby/object:Gem::Version
152
152
  version: 1.38.1
153
153
  description: |
154
- Show or open GitHub URL for your local directory.
155
- You can use giturl to display the URL corresponding to the git-managed directory given as an argument, and you can open the URL directly in your browser if needed.
154
+ A tiny helper for accessing GitHub web pages corresponding to local
155
+ working directories.
156
+
157
+ Have you ever wanted to access a GitHub web page while working on
158
+ a git-cloned local directory?
159
+ You can use 'giturl' to display the URL corresponding to the git-managed
160
+ directory given as an argument. And furthermore, if you want to access
161
+ the URL immediately with your browser, 'giturl' opens your browser and
162
+ automatically accesses the URL without your any operation on the browser.
156
163
  email:
157
164
  - shinya_ohtani@yahoo.co.jp
158
165
  executables:
@@ -164,13 +171,14 @@ files:
164
171
  - ".rspec"
165
172
  - ".rubocop.yml"
166
173
  - CHANGELOG.md
174
+ - CODE_OF_CONDUCT.md
167
175
  - Gemfile
168
176
  - LICENSE
169
177
  - README.md
170
178
  - Rakefile
171
179
  - bin/console
172
- - bin/giturl
173
180
  - bin/setup
181
+ - exe/giturl
174
182
  - giturl.gemspec
175
183
  - lib/command_giturl.rb
176
184
  - lib/giturl.rb
@@ -179,6 +187,7 @@ homepage: https://github.com/shinyaohtani/giturl/blob/master/README.md
179
187
  licenses:
180
188
  - MIT
181
189
  metadata:
190
+ allowed_push_host: https://rubygems.org
182
191
  homepage_uri: https://github.com/shinyaohtani/giturl/blob/master/README.md
183
192
  source_code_uri: https://github.com/shinyaohtani/giturl
184
193
  changelog_uri: https://github.com/shinyaohtani/giturl/blob/master/CHANGELOG.md
@@ -190,7 +199,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
190
199
  requirements:
191
200
  - - ">="
192
201
  - !ruby/object:Gem::Version
193
- version: '0'
202
+ version: 2.3.0
194
203
  required_rubygems_version: !ruby/object:Gem::Requirement
195
204
  requirements:
196
205
  - - ">="