ana 0.9.5 → 0.9.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: c64cc8ef588e15faa6f6767849a6d581f737819b
4
- data.tar.gz: edbea1ec7cd4fa7bdfc1e37edbaed7dc3ae1d0fe
3
+ metadata.gz: 00ec9d8017a4961c9799f139661abce44f6cc637
4
+ data.tar.gz: 89350e89675d8f61a8d464acf9027679f0b8ea11
5
5
  SHA512:
6
- metadata.gz: 93ed9589d3e91d627b2f86f26e1ac71b285257d717b9bdf7a03b868cc7f13812aaa1a90836d69f033b92579fb9e5f445761a3388ac1b98b310c20cd5fd3e1fc1
7
- data.tar.gz: e8ff9b905804e334816d9062e9837884c0ad58c82668faca705ff04f7e5163d52526c2077632432b5b13d0c5348d18a39455dab47bb786a65a39d7a8653a5223
6
+ metadata.gz: c4a9c9288f0fd8fc35471120d2a77959a82be2d11ea122d02b0512ef73aa2fb6a20490af76d7f03a6c7e068bbf97157965107b310be2afa7adfd68b25d44e030
7
+ data.tar.gz: 7b51ba6344d592bc561844682d73e2993e36ca6a6ed02d90ad16f6a2e37bb033781b442af7b591d776ead322ba006e1bd23e7a3e6e72e8829ab6b79eafcc2268
data/lib/ana/command.rb CHANGED
@@ -129,7 +129,7 @@ module Ana
129
129
  # FIXME: Only print the uri type if it is not null
130
130
  # Open the URIs of a given Gem. Default open the home page.
131
131
  # Available URI types could be found in Ana::Scalars::URI_TYPE.
132
- desc 'open (o)', 'Open gem's uris directly via open command.'
132
+ desc 'open (o)', "Open gem's uris directly via open command."
133
133
  def open(gem, open_type='home')
134
134
  return if gem_does_not_exist?(gem)
135
135
  gem_hash = get_gem_json!(gem, type: 'gems')
@@ -140,9 +140,9 @@ module Ana
140
140
  say "#{open_type} is not a valid type :( \n"
141
141
  print_valid_uri_open_types!
142
142
  skip = true
143
- gem_hash[URI_TYPE[type]]
144
143
  end
145
144
  Launchy.open(url) if url.present? && skip == false
145
+ say "Nothing to open, this gem probably does not have #{open_type} page" if url.blank? || skip
146
146
  end
147
147
 
148
148
  # Download a given Gem.
data/lib/ana/version.rb CHANGED
@@ -2,7 +2,7 @@ module Ana
2
2
  module VERSION
3
3
  MAJOR = 0
4
4
  MINOR = 9
5
- TINY = 5
5
+ TINY = 6
6
6
  PRE = nil
7
7
 
8
8
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ana
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.5
4
+ version: 0.9.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Juanito Fatas