fetchapp 2.3.1 → 2.3.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/FetchItunes.rb +22 -0
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 40e37151f4a5399e3f52b31c9cd68672cd856f5f
4
- data.tar.gz: 8f07430bce0864830772e9adad69f4bb75af8082
3
+ metadata.gz: 2cef008d1e7af2ff96d83c405ee6beb9297159c0
4
+ data.tar.gz: b898ff74dfcebf25087fe51f1cc8861ce79a2f4b
5
5
  SHA512:
6
- metadata.gz: d9abbf9b59987120b7d8209998e0bdb450399ee0a16be40a68b0252bd2e668e228f2671d9b7654cb18e3d74e22b9401b69efe78ba266cbf1317a14a3216d5348
7
- data.tar.gz: 6058015f74c214e3d7d793ac07b76cc680d0832ffbbbe73e055def668d47525b8023996c498545054b03b5d279341b643ab5e127a236f8607943400e65f0a47e
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
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fetchapp
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.1
4
+ version: 2.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - chengkai