grub 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 365d41ee25f6da66f293e9020e663f0c2d97cea0
4
- data.tar.gz: fe939a6aa56eb8a0f387a04d7034cc5096183760
3
+ metadata.gz: fe48faae713a6ecd2906e70df215eab1d9922bc0
4
+ data.tar.gz: 732436f1d266fc95011ce8eab373c2a6646f305c
5
5
  SHA512:
6
- metadata.gz: 1ba83c65303a136313a57e89b6cf3e97ad9ecb8ea4047777ac89f779181a6d252284e8a36972b34267c515208079fdc3f237cd5d0d59719a4959f03367ee9d3a
7
- data.tar.gz: 6970f79bb4efb37bf974dfaa5b312ae9778cc7754c85b9f002468b6050c563ed71c57284c7b93f0d4b17fc3a34a1820d39c0f92e05f9d35d4889d2454b298856
6
+ metadata.gz: 915a377049972ea359ada3eea8622cdbb3cc646ae075e029c95148c7b398a8f9d22a623eba56c8dd53b2ec28625434a7c0d28206df433188bfd5ccf03e151c3b
7
+ data.tar.gz: 331556522d02d6e7ec4c12c6ea7f5a2fbb4d41ff30fa0b1a5d3bf657ee2249cccc73124b958ffe45e7b4da7e467606b2fd4d9539184f9bcda88386518ee1bdbe
data/lib/grub/gem_line.rb CHANGED
@@ -56,7 +56,7 @@ module Grub
56
56
 
57
57
  def description_and_website
58
58
  output = "#{description}"
59
- output << " (#{website})" unless website.empty?
59
+ output << " (#{website})" unless website.nil? || website.empty?
60
60
  output
61
61
  end
62
62
 
@@ -27,6 +27,7 @@ module Grub
27
27
  versions, _ = dependency_fetcher.dependency_specs(gem_lines.collect(&:name))
28
28
  gem_lines.each do |gem_line|
29
29
  gem_versions = versions.select { |v| v.first == gem_line.name }
30
+ next if gem_versions.empty? # couldn't find version on RubyGems so go to next one
30
31
  version = find_latest_version(gem_versions)
31
32
  gem_line.spec = fetcher.fetch_spec([gem_line.name, version])
32
33
  completed += 1
data/lib/grub/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  module Grub
2
- VERSION = "0.0.5".freeze
2
+ VERSION = "0.0.6".freeze
3
3
  DESCRIPTION = "Add comments to your Gemfile with each dependency's description.".freeze
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: grub
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ivan Tse
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-04-18 00:00:00.000000000 Z
11
+ date: 2016-04-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -116,7 +116,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
116
116
  version: '0'
117
117
  requirements: []
118
118
  rubyforge_project:
119
- rubygems_version: 2.2.2
119
+ rubygems_version: 2.6.3
120
120
  signing_key:
121
121
  specification_version: 4
122
122
  summary: Add comments to your Gemfile with each dependency's description.