giturl 1.1.6 → 1.2.0

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: fc8fdfa621eb908ed53215b27f9b2b6843d732d1632823a324e67fe34c9fa25a
4
- data.tar.gz: 188bb25265cc309f3bff690773954bb3fbfd5d95f41afdee18a640dee750ab1d
3
+ metadata.gz: ea6cf715e6a142c8524ea55c4b5040faafaba06994516a788bb7d47f36279387
4
+ data.tar.gz: e794d44767df2de4a8045266ad788d8ef8f034d89daf2e8c0d1c9608cdcb2b38
5
5
  SHA512:
6
- metadata.gz: f442fa4c3ba58d96f8295ea4998cb50a7ce8ef312bbe0dcf5dd22833a4720e02faa9bf8a0b85a1605c552e6100b941d7a828ceddbb88638841233cf45438ba5c
7
- data.tar.gz: c83343d8871c2147b11ef83ab3a5561b4eed94e006b8385a46b78f66fdb3c46a64594683310c9472c93192b18b46842c104a2ef313c89e95f64b75dd58b149b0
6
+ metadata.gz: a911b2b7b40eefddae3296f8d9a96262af445f56ab0ab72b907e7ca0f69ad365c60b8b25566ad288ef078a2e9adf30a82853d74c89915650c03596564da8e0a6
7
+ data.tar.gz: 6a4f2fa6db11e8466c737a52e093aa07f682b9e23fca3fcc74f267b13f04dd2ddca3862e08144ac7d9ac03159bc808b60a53333cc511948d29c0a9bf2d83100e
data/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # Changelog
2
2
 
3
+ ## [v1.2.0](https://github.com/shinyaohtani/giturl/tree/v1.2.0) (2020-03-24)
4
+
5
+ [Full Changelog](https://github.com/shinyaohtani/giturl/compare/v1.1.6...v1.2.0)
6
+
7
+ **Implemented enhancements:**
8
+
9
+ - Basic UI changed
10
+ - Current directory is processed, even if no directory is specified. [\#8](https://github.com/shinyaohtani/giturl/issues/8)
11
+ - i.e. `giturl -o .` and `giturl -o` behave exactly same.
12
+
13
+ **Merged pull requests:**
14
+
15
+ - Feature/\#8 if no directories are specified [\#11](https://github.com/shinyaohtani/giturl/pull/11) ([shinyaohtani](https://github.com/shinyaohtani))
16
+
17
+ # Changelog
18
+
3
19
  ## [v1.1.6](https://github.com/shinyaohtani/giturl/tree/v1.1.6) (2020-03-23)
4
20
 
5
21
  [Full Changelog](https://github.com/shinyaohtani/giturl/compare/v1.1.5...v1.1.6)
@@ -129,4 +145,7 @@
129
145
  - First release!
130
146
 
131
147
 
148
+ \* *This Changelog was automatically generated by [github_changelog_generator](https://github.com/github-changelog-generator/github-changelog-generator)*
149
+
150
+
132
151
  \* *This Changelog was automatically generated by [github_changelog_generator](https://github.com/github-changelog-generator/github-changelog-generator)*
data/README.md CHANGED
@@ -49,6 +49,16 @@ $ giturl --open --app="Safari.app" .
49
49
  $ giturl --open --app="/Applications/any_browser_you_have.app" .
50
50
  ```
51
51
 
52
+ If no directory is specified, the behavior is the same as when the current directory is specified.
53
+
54
+ ```sh
55
+ $ giturl -o
56
+ $ giturl
57
+ # These are completely same as:
58
+ $ giturl -o .
59
+ $ giturl .
60
+ ```
61
+
52
62
  ## Usecase
53
63
 
54
64
  The following is an example of opening a GitHub web page for the current directory:
data/giturl.gemspec CHANGED
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
10
10
  spec.authors = ['Shinya Ohtani (shinyaohtani@github)']
11
11
  spec.email = ['shinya_ohtani@yahoo.co.jp']
12
12
 
13
- spec.homepage = 'https://github.com/shinyaohtani/giturl'
13
+ spec.homepage = 'https://github.com/shinyaohtani/giturl/blob/master/README.md'
14
14
  spec.license = 'MIT'
15
15
  spec.summary = 'Show or open GitHub URL for your local directory'
16
16
  spec.description = <<~DESCRIPTION
@@ -40,6 +40,7 @@ module Giturl
40
40
  end
41
41
 
42
42
  def run
43
+ ARGV << '.' if ARGV.empty?
43
44
  ARGV.each do |arg|
44
45
  if Giturl.git_managed?(arg)
45
46
  url = Giturl.convert(arg)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Giturl
4
- VERSION = '1.1.6'
4
+ VERSION = '1.2.0'
5
5
  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.1.6
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shinya Ohtani (shinyaohtani@github)
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-03-23 00:00:00.000000000 Z
11
+ date: 2020-03-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -147,11 +147,11 @@ files:
147
147
  - lib/command_giturl.rb
148
148
  - lib/giturl.rb
149
149
  - lib/giturl/version.rb
150
- homepage: https://github.com/shinyaohtani/giturl
150
+ homepage: https://github.com/shinyaohtani/giturl/blob/master/README.md
151
151
  licenses:
152
152
  - MIT
153
153
  metadata:
154
- homepage_uri: https://github.com/shinyaohtani/giturl
154
+ homepage_uri: https://github.com/shinyaohtani/giturl/blob/master/README.md
155
155
  source_code_uri: https://github.com/shinyaohtani/giturl
156
156
  changelog_uri: https://github.com/shinyaohtani/giturl/blob/master/CHANGELOG.md
157
157
  post_install_message: