fetchapp 2.3.1 → 2.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/FetchItunes.rb +22 -0
- 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: 2cef008d1e7af2ff96d83c405ee6beb9297159c0
|
4
|
+
data.tar.gz: b898ff74dfcebf25087fe51f1cc8861ce79a2f4b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 41489fd024c70c626bd703a2ed46df1bd6b90220cea254c6b08f235a81c56c2784ffcd04845504eb2572a025ebd4501b46829784d49797d661cc8738b19f919b
|
7
|
+
data.tar.gz: 69c5c2485325edd503c8f71cdb0135161bc2cc6f5763f65120d22783a9a51280c13c5bc59b8034b746c365886d028fd51a7734c3185822da2b9233bab931ba46
|
data/lib/FetchItunes.rb
CHANGED
@@ -28,6 +28,8 @@ module FetchItunes
|
|
28
28
|
limit_key="-count"
|
29
29
|
limit_value = "200"
|
30
30
|
|
31
|
+
help_key ="-h"
|
32
|
+
|
31
33
|
arg_flags.each do |flag|
|
32
34
|
if flag == type_key
|
33
35
|
flag_content_index=arg_flags.index(flag) +1
|
@@ -49,6 +51,26 @@ module FetchItunes
|
|
49
51
|
flag_content_index=arg_flags.index(flag) +1
|
50
52
|
raise "args id not match !" if arg_flags.count <= flag_content_index
|
51
53
|
limit_value=arg_flags[flag_content_index];
|
54
|
+
elsif flag == help_key
|
55
|
+
puts %/
|
56
|
+
fetchapp -[options] value
|
57
|
+
find apple app info!
|
58
|
+
options:
|
59
|
+
name : app name
|
60
|
+
type : app type [mac iphone ipad]
|
61
|
+
id : app item id
|
62
|
+
count : show the count of items,default is 200
|
63
|
+
apple : show apple's app
|
64
|
+
all : show detail info
|
65
|
+
h : help
|
66
|
+
|
67
|
+
note: if you can't use both of name and id at same time.
|
68
|
+
|
69
|
+
/
|
70
|
+
return
|
71
|
+
elsif flag.include? "-"
|
72
|
+
puts "invalidate options. run fetchapp -h for help"
|
73
|
+
return
|
52
74
|
end
|
53
75
|
end
|
54
76
|
|