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 +4 -4
- data/lib/ana/command.rb +2 -2
- data/lib/ana/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 00ec9d8017a4961c9799f139661abce44f6cc637
|
4
|
+
data.tar.gz: 89350e89675d8f61a8d464acf9027679f0b8ea11
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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)',
|
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