gitvers 0.0.11 → 0.0.12

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
  SHA1:
3
- metadata.gz: c885db490cf91f5691a9bc7913ce58d019817e10
4
- data.tar.gz: 917b707e590ee3680d5f91abc6d690cfeec0ef57
3
+ metadata.gz: d8271eb4a91920228c15093c0d8f7572ede218cc
4
+ data.tar.gz: c210475d25f0764a0e7fedc4582e4e2ce9a41ae3
5
5
  SHA512:
6
- metadata.gz: 9388640eb797ed237de43e099dee067e465540efdbe306d03021f8492726f48c55b5fcae1e4b2cec1e98e915a81b40721f73bafb0a42df3fed1082168bd06bc6
7
- data.tar.gz: 5dc1d24c6e874fe4b5bb30eb18693c4a273ce6936785b87f40efc61d4df04a9806d1477236975709737f2b98f9f36e55324c3a86ff03fa1a27d35ab1dc4b458e
6
+ metadata.gz: 8a75a5ff932a3fb0363f77d82990c182e5c4aa23e7c9e528dd0c7503031cce96252a1a9bd31a50031e5a6f2a65b28208a71eb029ae34e5b6038b8b7fae62d16a
7
+ data.tar.gz: 42ba1999800a66b9bc30aac4a970f633fae2cb293b0b4c4072a5ead8227ed4c989a3df4a29989be6f217b03ef6b8774c4f150d890209743180eb0323f22ab693
data/README.md CHANGED
@@ -46,3 +46,7 @@ The command line tool `gitvers` can only work on the master branch.
46
46
  3. Commit your changes (`git commit -am 'Add some feature'`)
47
47
  4. Push to the branch (`git push origin my-new-feature`)
48
48
  5. Create new Pull Request
49
+
50
+ ## License
51
+
52
+ MIT
@@ -12,8 +12,9 @@ module Gitvers
12
12
 
13
13
  while path != '/'
14
14
  git_dir = File.join(path, "/.git")
15
+ head_file = File.join(path, "/HEAD")
15
16
  path = File.expand_path(File.join(path, '..'))
16
- next unless File.exist?(git_dir)
17
+ next unless File.exist?(git_dir) || File.exists?(head_file)
17
18
  @git_dir = git_dir
18
19
  end
19
20
  @git_dir or raise "Invalid git repository #{@path}"
@@ -1,3 +1,3 @@
1
1
  module Gitvers
2
- VERSION = "0.0.11"
2
+ VERSION = "0.0.12"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gitvers
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.11
4
+ version: 0.0.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nicolas Goy
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-08-19 00:00:00.000000000 Z
11
+ date: 2015-02-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -91,7 +91,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
91
91
  version: '0'
92
92
  requirements: []
93
93
  rubyforge_project:
94
- rubygems_version: 2.2.2
94
+ rubygems_version: 2.4.5
95
95
  signing_key:
96
96
  specification_version: 4
97
97
  summary: Utility to manage version with git tags