apple_store_search 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore ADDED
@@ -0,0 +1,4 @@
1
+ *.gem
2
+ .bundle
3
+ Gemfile.lock
4
+ pkg/*
data/.yardoc/checksums ADDED
@@ -0,0 +1,2 @@
1
+ lib/apple_store_search.rb 5b60114c195391fb982e2513c37dcac20464b9f7
2
+ lib/apple_store_search/version.rb a1711767c1cb1ec11d2a7564558b932d4fc49149
Binary file
@@ -0,0 +1,2 @@
1
+ {I" Object:EF:
2
+ class
data/Gemfile ADDED
@@ -0,0 +1,6 @@
1
+ source "http://rubygems.org"
2
+
3
+ # Specify your gem's dependencies in apple_store_search.gemspec
4
+ gemspec
5
+ gem 'json'
6
+ gem 'curl'
data/README.md ADDED
@@ -0,0 +1,25 @@
1
+ # Apple Store Search #
2
+
3
+
4
+ Apple Store Search is the gem to search from apple store.
5
+
6
+ * Simple to use
7
+
8
+ ## How to use it ##
9
+
10
+ gem install apple_store_search
11
+
12
+ You can call the Gem by
13
+
14
+ AppleStoreSearch::Search.new.search(options,selected) #it will return a json
15
+
16
+ You can parse the JSON result. Pass the argument. options should be a hash that describe search criteria.
17
+ selected should be an array.This describe what are the parameter should be returned from API call.
18
+
19
+ eg:-
20
+ options={:term=>"a",:lang=>"en",:limit=>500}
21
+ selected=['artistId','artistName']
22
+
23
+
24
+ See the [Apple Search API Details](http://www.apple.com/itunes/affiliates/resources/documentation/itunes-store-web-service-search-api.html)
25
+ See the [Runygems](https://rubygems.org/gems/apple_store_search) to install.
data/Rakefile ADDED
@@ -0,0 +1 @@
1
+ require "bundler/gem_tasks"
@@ -0,0 +1,24 @@
1
+ # -*- encoding: utf-8 -*-
2
+ $:.push File.expand_path("../lib", __FILE__)
3
+ require "apple_store_search/version"
4
+
5
+ Gem::Specification.new do |s|
6
+ s.name = "apple_store_search"
7
+ s.version = AppleStoreSearch::VERSION
8
+ s.authors = "Shamith c"
9
+ s.email = "shamithc@gmail.com"
10
+ s.homepage = ""
11
+ s.summary = %q{This is for searching in app in apple store}
12
+ s.description = %q{Exited to watch its progress}
13
+
14
+ s.rubyforge_project = "apple_store_search"
15
+
16
+ s.files = `git ls-files`.split("\n")
17
+ s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
18
+ s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
19
+ s.require_paths = ["lib"]
20
+
21
+ # specify any dependencies here; for example:
22
+ # s.add_development_dependency "rspec"
23
+ # s.add_runtime_dependency "rest-client"
24
+ end
@@ -0,0 +1,277 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
+ <head>
5
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6
+ <title>
7
+ Class: AppleStoreSearch::Search
8
+
9
+ &mdash; Documentation by YARD 0.7.4
10
+
11
+ </title>
12
+
13
+ <link rel="stylesheet" href="../css/style.css" type="text/css" media="screen" charset="utf-8" />
14
+
15
+ <link rel="stylesheet" href="../css/common.css" type="text/css" media="screen" charset="utf-8" />
16
+
17
+ <script type="text/javascript" charset="utf-8">
18
+ relpath = '..';
19
+ if (relpath != '') relpath += '/';
20
+ </script>
21
+
22
+ <script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
23
+
24
+ <script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
25
+
26
+
27
+ </head>
28
+ <body>
29
+ <script type="text/javascript" charset="utf-8">
30
+ if (window.top.frames.main) document.body.className = 'frames';
31
+ </script>
32
+
33
+ <div id="header">
34
+ <div id="menu">
35
+
36
+ <a href="../_index.html">Index (S)</a> &raquo;
37
+ <span class='title'><span class='object_link'><a href="../AppleStoreSearch.html" title="AppleStoreSearch (module)">AppleStoreSearch</a></span></span>
38
+ &raquo;
39
+ <span class="title">Search</span>
40
+
41
+
42
+ <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
43
+ </div>
44
+
45
+ <div id="search">
46
+
47
+ <a id="class_list_link" href="#">Class List</a>
48
+
49
+ <a id="method_list_link" href="#">Method List</a>
50
+
51
+ <a id="file_list_link" href="#">File List</a>
52
+
53
+ </div>
54
+ <div class="clear"></div>
55
+ </div>
56
+
57
+ <iframe id="search_frame"></iframe>
58
+
59
+ <div id="content"><h1>Class: AppleStoreSearch::Search
60
+
61
+
62
+
63
+ </h1>
64
+
65
+ <dl class="box">
66
+
67
+ <dt class="r1">Inherits:</dt>
68
+ <dd class="r1">
69
+ <span class="inheritName">Object</span>
70
+
71
+ <ul class="fullTree">
72
+ <li>Object</li>
73
+
74
+ <li class="next">AppleStoreSearch::Search</li>
75
+
76
+ </ul>
77
+ <a href="#" class="inheritanceTree">show all</a>
78
+
79
+ </dd>
80
+
81
+
82
+
83
+
84
+
85
+
86
+
87
+
88
+
89
+ <dt class="r2 last">Defined in:</dt>
90
+ <dd class="r2 last">lib/apple_store_search.rb</dd>
91
+
92
+ </dl>
93
+ <div class="clear"></div>
94
+
95
+ <h2>Overview</h2><div class="docstring">
96
+ <div class="discussion">
97
+ <p>
98
+ Your code goes here&#8230;
99
+ </p>
100
+
101
+
102
+ </div>
103
+ </div>
104
+ <div class="tags">
105
+
106
+
107
+ </div>
108
+
109
+
110
+
111
+
112
+
113
+ <h2>
114
+ Instance Method Summary
115
+ <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
116
+ </h2>
117
+
118
+ <ul class="summary">
119
+
120
+ <li class="public ">
121
+ <span class="summary_signature">
122
+
123
+ <a href="#initialize-instance_method" title="#initialize (instance method)">- (Search) <strong>initialize</strong> </a>
124
+
125
+
126
+
127
+ </span>
128
+
129
+ <span class="note title constructor">constructor</span>
130
+
131
+
132
+
133
+
134
+
135
+
136
+
137
+
138
+ <span class="summary_desc"><div class='inline'><p>
139
+ initialization.
140
+ </p>
141
+ </div></span>
142
+
143
+ </li>
144
+
145
+
146
+ <li class="public ">
147
+ <span class="summary_signature">
148
+
149
+ <a href="#search-instance_method" title="#search (instance method)">- (Object) <strong>search</strong>(options, selected) </a>
150
+
151
+
152
+
153
+ </span>
154
+
155
+
156
+
157
+
158
+
159
+
160
+
161
+
162
+ <span class="summary_desc"><div class='inline'></div></span>
163
+
164
+ </li>
165
+
166
+
167
+ </ul>
168
+
169
+
170
+ <div id="constructor_details" class="method_details_list">
171
+ <h2>Constructor Details</h2>
172
+
173
+ <div class="method_details first">
174
+ <p class="signature first" id="initialize-instance_method">
175
+
176
+ - (<tt><span class='object_link'><a href="" title="AppleStoreSearch::Search (class)">Search</a></span></tt>) <strong>initialize</strong>
177
+
178
+
179
+
180
+ </p><div class="docstring">
181
+ <div class="discussion">
182
+ <p>
183
+ initialization
184
+ </p>
185
+
186
+
187
+ </div>
188
+ </div>
189
+ <div class="tags">
190
+
191
+
192
+ </div><table class="source_code">
193
+ <tr>
194
+ <td>
195
+ <pre class="lines">
196
+
197
+
198
+ 7
199
+ 8
200
+ 9
201
+ 10</pre>
202
+ </td>
203
+ <td>
204
+ <pre class="code"><span class="info file"># File 'lib/apple_store_search.rb', line 7</span>
205
+
206
+ <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span>
207
+ <span class='ivar'>@base_url</span><span class='op'>=</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>http://itunes.apple.com/search?</span><span class='tstring_end'>&quot;</span></span>
208
+ <span class='comment'>#@curl = CURL.new
209
+ </span><span class='kw'>end</span></pre>
210
+ </td>
211
+ </tr>
212
+ </table>
213
+ </div>
214
+
215
+ </div>
216
+
217
+
218
+ <div id="instance_method_details" class="method_details_list">
219
+ <h2>Instance Method Details</h2>
220
+
221
+
222
+ <div class="method_details first">
223
+ <p class="signature first" id="search-instance_method">
224
+
225
+ - (<tt>Object</tt>) <strong>search</strong>(options, selected)
226
+
227
+
228
+
229
+ </p><table class="source_code">
230
+ <tr>
231
+ <td>
232
+ <pre class="lines">
233
+
234
+
235
+ 12
236
+ 13
237
+ 14
238
+ 15
239
+ 16
240
+ 17
241
+ 18
242
+ 19
243
+ 20
244
+ 21
245
+ 22</pre>
246
+ </td>
247
+ <td>
248
+ <pre class="code"><span class="info file"># File 'lib/apple_store_search.rb', line 12</span>
249
+
250
+ <span class='kw'>def</span> <span class='id identifier rubyid_search'>search</span><span class='lparen'>(</span><span class='id identifier rubyid_options'>options</span><span class='comma'>,</span><span class='id identifier rubyid_selected'>selected</span><span class='rparen'>)</span>
251
+ <span class='ivar'>@base_url</span><span class='op'>=</span><span class='id identifier rubyid_load_options'>load_options</span><span class='lparen'>(</span><span class='id identifier rubyid_options'>options</span><span class='rparen'>)</span>
252
+ <span class='id identifier rubyid_search_parse'>search_parse</span>
253
+ <span class='kw'>if</span> <span class='ivar'>@data</span><span class='period'>.</span><span class='id identifier rubyid_has_key?'>has_key?</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>errorMessage</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span>
254
+ <span class='id identifier rubyid_puts'>puts</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Invalid key-value pair(s) in request</span><span class='tstring_end'>&quot;</span></span>
255
+ <span class='kw'>return</span>
256
+ <span class='kw'>end</span>
257
+ <span class='id identifier rubyid_get_selected'>get_selected</span><span class='lparen'>(</span><span class='id identifier rubyid_selected'>selected</span><span class='rparen'>)</span>
258
+ <span class='kw'>return</span> <span class='ivar'>@result</span>
259
+ <span class='comment'>#puts @data
260
+ </span><span class='kw'>end</span></pre>
261
+ </td>
262
+ </tr>
263
+ </table>
264
+ </div>
265
+
266
+ </div>
267
+
268
+ </div>
269
+
270
+ <div id="footer">
271
+ Generated on Tue Jan 3 10:46:37 2012 by
272
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
273
+ 0.7.4 (ruby-1.9.2).
274
+ </div>
275
+
276
+ </body>
277
+ </html>
@@ -0,0 +1,120 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
+ <head>
5
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6
+ <title>
7
+ Module: AppleStoreSearch
8
+
9
+ &mdash; Documentation by YARD 0.7.4
10
+
11
+ </title>
12
+
13
+ <link rel="stylesheet" href="css/style.css" type="text/css" media="screen" charset="utf-8" />
14
+
15
+ <link rel="stylesheet" href="css/common.css" type="text/css" media="screen" charset="utf-8" />
16
+
17
+ <script type="text/javascript" charset="utf-8">
18
+ relpath = '';
19
+ if (relpath != '') relpath += '/';
20
+ </script>
21
+
22
+ <script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
23
+
24
+ <script type="text/javascript" charset="utf-8" src="js/app.js"></script>
25
+
26
+
27
+ </head>
28
+ <body>
29
+ <script type="text/javascript" charset="utf-8">
30
+ if (window.top.frames.main) document.body.className = 'frames';
31
+ </script>
32
+
33
+ <div id="header">
34
+ <div id="menu">
35
+
36
+ <a href="_index.html">Index (A)</a> &raquo;
37
+
38
+
39
+ <span class="title">AppleStoreSearch</span>
40
+
41
+
42
+ <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
43
+ </div>
44
+
45
+ <div id="search">
46
+
47
+ <a id="class_list_link" href="#">Class List</a>
48
+
49
+ <a id="method_list_link" href="#">Method List</a>
50
+
51
+ <a id="file_list_link" href="#">File List</a>
52
+
53
+ </div>
54
+ <div class="clear"></div>
55
+ </div>
56
+
57
+ <iframe id="search_frame"></iframe>
58
+
59
+ <div id="content"><h1>Module: AppleStoreSearch
60
+
61
+
62
+
63
+ </h1>
64
+
65
+ <dl class="box">
66
+
67
+
68
+
69
+
70
+
71
+
72
+
73
+
74
+ <dt class="r1 last">Defined in:</dt>
75
+ <dd class="r1 last">lib/apple_store_search.rb<span class="defines">,<br />
76
+ lib/apple_store_search/version.rb</span>
77
+ </dd>
78
+
79
+ </dl>
80
+ <div class="clear"></div>
81
+
82
+ <h2>Defined Under Namespace</h2>
83
+ <p class="children">
84
+
85
+
86
+
87
+
88
+ <strong class="classes">Classes:</strong> <span class='object_link'><a href="AppleStoreSearch/Search.html" title="AppleStoreSearch::Search (class)">Search</a></span>
89
+
90
+
91
+ </p>
92
+
93
+ <h2>Constant Summary</h2>
94
+
95
+ <dl class="constants">
96
+
97
+ <dt id="VERSION-constant" class="">VERSION =
98
+
99
+ </dt>
100
+ <dd><pre class="code"><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>0.0.1</span><span class='tstring_end'>&quot;</span></span></pre></dd>
101
+
102
+ </dl>
103
+
104
+
105
+
106
+
107
+
108
+
109
+
110
+
111
+ </div>
112
+
113
+ <div id="footer">
114
+ Generated on Tue Jan 3 10:46:37 2012 by
115
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
116
+ 0.7.4 (ruby-1.9.2).
117
+ </div>
118
+
119
+ </body>
120
+ </html>
data/doc/_index.html ADDED
@@ -0,0 +1,112 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
+ <head>
5
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6
+ <title>
7
+ Documentation by YARD 0.7.4
8
+
9
+ </title>
10
+
11
+ <link rel="stylesheet" href="css/style.css" type="text/css" media="screen" charset="utf-8" />
12
+
13
+ <link rel="stylesheet" href="css/common.css" type="text/css" media="screen" charset="utf-8" />
14
+
15
+ <script type="text/javascript" charset="utf-8">
16
+ relpath = '';
17
+ if (relpath != '') relpath += '/';
18
+ </script>
19
+
20
+ <script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
21
+
22
+ <script type="text/javascript" charset="utf-8" src="js/app.js"></script>
23
+
24
+
25
+ </head>
26
+ <body>
27
+ <script type="text/javascript" charset="utf-8">
28
+ if (window.top.frames.main) document.body.className = 'frames';
29
+ </script>
30
+
31
+ <div id="header">
32
+ <div id="menu">
33
+
34
+
35
+ <span class="title"></span>
36
+
37
+
38
+ <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
39
+ </div>
40
+
41
+ <div id="search">
42
+
43
+ <a id="class_list_link" href="#">Class List</a>
44
+
45
+ <a id="method_list_link" href="#">Method List</a>
46
+
47
+ <a id="file_list_link" href="#">File List</a>
48
+
49
+ </div>
50
+ <div class="clear"></div>
51
+ </div>
52
+
53
+ <iframe id="search_frame"></iframe>
54
+
55
+ <div id="content"><h1 class="noborder title">Documentation by YARD 0.7.4</h1>
56
+ <div id="listing">
57
+ <h1 class="alphaindex">Alphabetic Index</h1>
58
+
59
+ <div class="clear"></div>
60
+ <h2>Namespace Listing A-Z</h2>
61
+
62
+
63
+
64
+
65
+ <table>
66
+ <tr>
67
+ <td valign='top' width="33%">
68
+
69
+
70
+ <ul id="alpha_A" class="alpha">
71
+ <li class="letter">A</li>
72
+ <ul>
73
+
74
+ <li>
75
+ <span class='object_link'><a href="AppleStoreSearch.html" title="AppleStoreSearch (module)">AppleStoreSearch</a></span>
76
+
77
+ </li>
78
+
79
+ </ul>
80
+ </ul>
81
+
82
+
83
+ <ul id="alpha_S" class="alpha">
84
+ <li class="letter">S</li>
85
+ <ul>
86
+
87
+ <li>
88
+ <span class='object_link'><a href="AppleStoreSearch/Search.html" title="AppleStoreSearch::Search (class)">Search</a></span>
89
+
90
+ <small>(AppleStoreSearch)</small>
91
+
92
+ </li>
93
+
94
+ </ul>
95
+ </ul>
96
+
97
+ </td>
98
+ </tr>
99
+ </table>
100
+
101
+ </div>
102
+
103
+ </div>
104
+
105
+ <div id="footer">
106
+ Generated on Tue Jan 3 10:46:37 2012 by
107
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
108
+ 0.7.4 (ruby-1.9.2).
109
+ </div>
110
+
111
+ </body>
112
+ </html>
@@ -0,0 +1,47 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
+ <html>
4
+ <head>
5
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6
+
7
+ <link rel="stylesheet" href="css/full_list.css" type="text/css" media="screen" charset="utf-8" />
8
+
9
+ <link rel="stylesheet" href="css/common.css" type="text/css" media="screen" charset="utf-8" />
10
+
11
+
12
+
13
+ <script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
14
+
15
+ <script type="text/javascript" charset="utf-8" src="js/full_list.js"></script>
16
+
17
+
18
+ <base id="base_target" target="_parent" />
19
+ </head>
20
+ <body>
21
+ <script type="text/javascript" charset="utf-8">
22
+ if (window.top.frames.main) {
23
+ document.getElementById('base_target').target = 'main';
24
+ document.body.className = 'frames';
25
+ }
26
+ </script>
27
+ <div id="content">
28
+ <h1 id="full_list_header">Class List</h1>
29
+ <div id="nav">
30
+
31
+ <a target="_self" href="class_list.html">Classes</a>
32
+
33
+ <a target="_self" href="method_list.html">Methods</a>
34
+
35
+ <a target="_self" href="file_list.html">Files</a>
36
+
37
+ </div>
38
+ <div id="search">Search: <input type="text" /></div>
39
+
40
+ <ul id="full_list" class="class">
41
+ <li><span class='object_link'><a href="top-level-namespace.html" title=" (root)">Top Level Namespace</a></span></li>
42
+ <li><a class='toggle'></a> <span class='object_link'><a href="AppleStoreSearch.html" title="AppleStoreSearch (module)">AppleStoreSearch</a></span><small class='search_info'>Top Level Namespace</small></li><ul><li><span class='object_link'><a href="AppleStoreSearch/Search.html" title="AppleStoreSearch::Search (class)">Search</a></span> &lt; Object<small class='search_info'>AppleStoreSearch</small></li></ul>
43
+
44
+ </ul>
45
+ </div>
46
+ </body>
47
+ </html>
@@ -0,0 +1 @@
1
+ /* Override this file with custom rules */