git-gems 1.0.0 → 1.0.1

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: 0195e23b22a7901b04865a12a56d0619889e961a
4
- data.tar.gz: 4794cd3551975b47229bdf1b54a23dc3a90b398b
3
+ metadata.gz: 6be212ca3b76e96ede7b33da6fd5dd3d80547f19
4
+ data.tar.gz: 1101ff9be499767f4aeaccbf6fae2986e83a5209
5
5
  SHA512:
6
- metadata.gz: e40b5940f0375a0e09c7d2c18d1ea3affb5b062d31a0528d0420895e8398c19284cf4f60249dc3d467f1ad69ac514c1cb4576a1f97de0556201041cc1ed68ec8
7
- data.tar.gz: 46b1e10a9dee2b358d320caeff5092a88239fa2f0b521d4ba13d121d29f1421151be2791d3590fde3e36b68bf860fa5826a919b4b77847d6c82cc74c657ba06e
6
+ metadata.gz: eb3458374cd924b07bf9dafa600b6c6eeb25b26e190aeb5a83fdf79babdf959e1fd54b538c95b26a5175f2a2e60ca80b7fb90efceb37b716c0775d259738f79d
7
+ data.tar.gz: a6fbf0819f17eeae9a11184702b8fa1dba32b87f597efce99cb9e4b1d46d222d4968a411848957fef56faf85912b50c152c0cca1d6346ac140d1bd4ec8bfd819
data/Rakefile CHANGED
@@ -4,5 +4,6 @@ require 'rake/testtask'
4
4
 
5
5
  Rake::TestTask.new do |t|
6
6
  t.pattern = "spec/**/*_spec.rb"
7
+ t.warning = false
7
8
  end
8
9
 
data/lib/git/gems/cli.rb CHANGED
@@ -8,13 +8,13 @@ module Git
8
8
  class CLI < Thor
9
9
 
10
10
  class << self
11
- def is_rackapp?
12
- return File.exist?(File.expand_path("./config.ru"))
11
+ def has_vendor_dir?
12
+ return File.exist?(File.expand_path("./config.ru")) && Dir.exist?(File.expand_path("./vendor"))
13
13
  end
14
14
 
15
15
  def default_install_path()
16
16
  install_path = options[:path]
17
- install_path = is_rackapp? ?
17
+ install_path = has_vendor_dir? ?
18
18
  "./vendor/bundle" : "./.bundle" if install_path.nil?
19
19
  return install_path
20
20
  end
@@ -1,5 +1,5 @@
1
1
  module Git
2
2
  module Gems
3
- VERSION = "1.0.0"
3
+ VERSION = "1.0.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: git-gems
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hiroshi IKEGAMI
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-08-18 00:00:00.000000000 Z
11
+ date: 2017-08-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
@@ -124,9 +124,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
124
124
  version: '0'
125
125
  requirements: []
126
126
  rubyforge_project:
127
- rubygems_version: 2.4.5
127
+ rubygems_version: 2.4.5.1
128
128
  signing_key:
129
129
  specification_version: 4
130
130
  summary: 'rubygem utililty: bundler and git wrapper'
131
131
  test_files: []
132
- has_rdoc: