ro 1.3.6 → 1.3.7

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 +8 -8
  2. data/lib/ro.rb +1 -1
  3. data/lib/ro/git.rb +3 -5
  4. data/ro.gemspec +1 -1
  5. metadata +1 -1
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZTFhYzhiYmVmMzRlMTA3OTc0MTMyN2UyMzUwYTlmM2ZkZDQ1OTQzZg==
4
+ Nzg5ZmIyMDdiZDk4YTBiMTMxODlkNzkzY2IxZjkzNDVmNGNjNGJmMA==
5
5
  data.tar.gz: !binary |-
6
- ZWU2MWYyY2JhOTEzODM2ZmM1NDYxYTYyNWFiZjI1YzY1NTRkMTAzZQ==
6
+ NjRhMTA2ZDBmZDVkNWM5MjVkYmE3NGRiODY3OGEzNjBlZGQ2Mzg3ZQ==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- NjdkYTU5MTBiZDdhZjRkM2IyNWMwYWE1NGUwMjM4MjkyZTdhNmFkNTUyY2Qz
10
- NzU3ZjQyZGE2MjAzMDg0MTZmMzI1MTQ2MjY2MzRiM2QyM2FlNjM1M2Q4ZmZi
11
- Y2Q3MjRiNTE3Nzk0YjhhZGU2N2VkN2EzZDhmY2UzODliOWIyOWQ=
9
+ MGZjNmVhYTI2YzE5NzNmNDE5NjJiNzVhMDI2OWZhZmU0YTE4ZTJhNmFkY2Rh
10
+ MGUzZGU1YTQ5NDQxNmQzMGQ3NmViZGJiMjM2NzJkZDgyN2RlODg2NjkyMzk1
11
+ Mzc0NTgxMTg5N2MyMjgwODc4NjViNzYzZmJiZTg0MDMxOGMxOWM=
12
12
  data.tar.gz: !binary |-
13
- N2ZlZTYzMWEwZmNkOGQzYTI3NzZjZjA1Zjc0YjM0ZDE1MDc4MTllMTY4ZGVj
14
- OTU5NGJjOTAwZjUwMzMzYTk4MjFmYzllM2ViYjNjMDI0ZmExMmU0ZjNkNzM5
15
- NDIzNTc1MDI0NmI2ZmZkZTAwNTY3NDUxOWQzNmY2NDIyZmVhZDU=
13
+ YmUzNzYxYTRiM2M3YTVmZmZmYjA3NmY3MjBmNzllZDJkODNlNzlkMWVjNWQ1
14
+ Njk1Yzc5ZWRlMjY3ZTc1N2I0ZTEzMWI1NzgwYmUxMmQ5NDA1MjkxYTg5ZDA1
15
+ ZGVhZGM4ZDQxNDIwNDVlYmE5Y2E4MGE0ZTY1MmRhYzQxMmEzZWQ=
data/lib/ro.rb CHANGED
@@ -10,7 +10,7 @@
10
10
 
11
11
  #
12
12
  module Ro
13
- Version = '1.3.6' unless defined?(Version)
13
+ Version = '1.3.7' unless defined?(Version)
14
14
 
15
15
  def version
16
16
  Ro::Version
@@ -224,13 +224,11 @@ module Ro
224
224
  Dir.chdir(dir) do
225
225
  # .git
226
226
  #
227
- git_root = `git rev-parse --git-dir`.strip
227
+ status, stdout, stderr = spawn("git rev-parse --git-dir", :raise => true, :capture => true)
228
228
 
229
- if git_root.empty?
230
- git_root = '.'
231
- end
229
+ git_root = stdout.to_s.strip
232
230
 
233
- dot_git = File.expand_path(File.join(git_root, '.git'))
231
+ dot_git = File.expand_path(git_root)
234
232
 
235
233
  unless test(?d, dot_git)
236
234
  raise Error.new("missing .git directory #{ dot_git }")
data/ro.gemspec CHANGED
@@ -3,7 +3,7 @@
3
3
 
4
4
  Gem::Specification::new do |spec|
5
5
  spec.name = "ro"
6
- spec.version = "1.3.6"
6
+ spec.version = "1.3.7"
7
7
  spec.platform = Gem::Platform::RUBY
8
8
  spec.summary = "ro"
9
9
  spec.description = "description: ro kicks the ass"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ro
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.6
4
+ version: 1.3.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ara T. Howard