flickr.rb 1.1.0 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (75) hide show
  1. checksums.yaml +7 -0
  2. data/Changelog.txt +7 -2
  3. data/Gemfile +4 -0
  4. data/Gemfile.lock +24 -0
  5. data/LICENSE +16 -17
  6. data/Manifest.txt +2 -2
  7. data/README.txt +3 -1
  8. data/Rakefile +3 -24
  9. data/flickr.gemspec +22 -17
  10. data/lib/flickr.rb +104 -104
  11. data/rdoc/Flickr.html +1003 -0
  12. data/rdoc/Flickr/Config.html +267 -0
  13. data/rdoc/Flickr/Group.html +343 -0
  14. data/rdoc/Flickr/Photo.html +1396 -0
  15. data/rdoc/Flickr/PhotoCollection.html +229 -0
  16. data/rdoc/Flickr/Photoset.html +359 -0
  17. data/rdoc/Flickr/User.html +745 -0
  18. data/rdoc/README_txt.html +199 -0
  19. data/rdoc/created.rid +3 -1
  20. data/rdoc/fonts.css +167 -0
  21. data/rdoc/fonts/Lato-Light.ttf +0 -0
  22. data/rdoc/fonts/Lato-LightItalic.ttf +0 -0
  23. data/rdoc/fonts/Lato-Regular.ttf +0 -0
  24. data/rdoc/fonts/Lato-RegularItalic.ttf +0 -0
  25. data/rdoc/fonts/SourceCodePro-Bold.ttf +0 -0
  26. data/rdoc/fonts/SourceCodePro-Regular.ttf +0 -0
  27. data/rdoc/images/add.png +0 -0
  28. data/rdoc/images/arrow_up.png +0 -0
  29. data/rdoc/images/brick.png +0 -0
  30. data/rdoc/images/brick_link.png +0 -0
  31. data/rdoc/images/bug.png +0 -0
  32. data/rdoc/images/bullet_black.png +0 -0
  33. data/rdoc/images/bullet_toggle_minus.png +0 -0
  34. data/rdoc/images/bullet_toggle_plus.png +0 -0
  35. data/rdoc/images/date.png +0 -0
  36. data/rdoc/images/delete.png +0 -0
  37. data/rdoc/images/find.png +0 -0
  38. data/rdoc/images/loadingAnimation.gif +0 -0
  39. data/rdoc/images/macFFBgHack.png +0 -0
  40. data/rdoc/images/package.png +0 -0
  41. data/rdoc/images/page_green.png +0 -0
  42. data/rdoc/images/page_white_text.png +0 -0
  43. data/rdoc/images/page_white_width.png +0 -0
  44. data/rdoc/images/plugin.png +0 -0
  45. data/rdoc/images/ruby.png +0 -0
  46. data/rdoc/images/tag_blue.png +0 -0
  47. data/rdoc/images/tag_green.png +0 -0
  48. data/rdoc/images/transparent.png +0 -0
  49. data/rdoc/images/wrench.png +0 -0
  50. data/rdoc/images/wrench_orange.png +0 -0
  51. data/rdoc/images/zoom.png +0 -0
  52. data/rdoc/index.html +101 -21
  53. data/rdoc/js/darkfish.js +140 -0
  54. data/rdoc/js/jquery.js +18 -0
  55. data/rdoc/js/navigation.js +142 -0
  56. data/rdoc/js/search.js +109 -0
  57. data/rdoc/js/search_index.js +1 -0
  58. data/rdoc/js/searcher.js +228 -0
  59. data/rdoc/rdoc.css +580 -0
  60. data/rdoc/table_of_contents.html +473 -0
  61. data/test/flickr_test.rb +229 -227
  62. metadata +132 -68
  63. data/rdoc/classes/Flickr.html +0 -807
  64. data/rdoc/classes/Flickr/Config.html +0 -240
  65. data/rdoc/classes/Flickr/Group.html +0 -251
  66. data/rdoc/classes/Flickr/Photo.html +0 -1101
  67. data/rdoc/classes/Flickr/PhotoCollection.html +0 -194
  68. data/rdoc/classes/Flickr/Photoset.html +0 -266
  69. data/rdoc/classes/Flickr/User.html +0 -738
  70. data/rdoc/files/README_txt.html +0 -209
  71. data/rdoc/files/lib/flickr_rb.html +0 -162
  72. data/rdoc/fr_class_index.html +0 -33
  73. data/rdoc/fr_file_index.html +0 -28
  74. data/rdoc/fr_method_index.html +0 -112
  75. data/rdoc/rdoc-style.css +0 -208
@@ -1,240 +0,0 @@
1
- <?xml version="1.0" encoding="iso-8859-1"?>
2
- <!DOCTYPE html
3
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
-
6
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7
- <head>
8
- <title>Class: Flickr::Config</title>
9
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
- <meta http-equiv="Content-Script-Type" content="text/javascript" />
11
- <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
12
- <script type="text/javascript">
13
- // <![CDATA[
14
-
15
- function popupCode( url ) {
16
- window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
17
- }
18
-
19
- function toggleCode( id ) {
20
- if ( document.getElementById )
21
- elem = document.getElementById( id );
22
- else if ( document.all )
23
- elem = eval( "document.all." + id );
24
- else
25
- return false;
26
-
27
- elemStyle = elem.style;
28
-
29
- if ( elemStyle.display != "block" ) {
30
- elemStyle.display = "block"
31
- } else {
32
- elemStyle.display = "none"
33
- }
34
-
35
- return true;
36
- }
37
-
38
- // Make codeblocks hidden by default
39
- document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
40
-
41
- // ]]>
42
- </script>
43
-
44
- </head>
45
- <body>
46
-
47
-
48
-
49
- <div id="classHeader">
50
- <table class="header-table">
51
- <tr class="top-aligned-row">
52
- <td><strong>Class</strong></td>
53
- <td class="class-name-in-header">Flickr::Config</td>
54
- </tr>
55
- <tr class="top-aligned-row">
56
- <td><strong>In:</strong></td>
57
- <td>
58
- <a href="../../files/lib/flickr_rb.html">
59
- lib/flickr.rb
60
- </a>
61
- <br />
62
- </td>
63
- </tr>
64
-
65
- <tr class="top-aligned-row">
66
- <td><strong>Parent:</strong></td>
67
- <td>
68
- Object
69
- </td>
70
- </tr>
71
- </table>
72
- </div>
73
- <!-- banner header -->
74
-
75
- <div id="bodyContent">
76
-
77
-
78
-
79
- <div id="contextContent">
80
-
81
- <div id="description">
82
- <p>
83
- This class supports external configuration
84
- </p>
85
-
86
- </div>
87
-
88
-
89
- </div>
90
-
91
- <div id="method-list">
92
- <h3 class="section-bar">Methods</h3>
93
-
94
- <div class="name-list">
95
- <a href="#M000046">get</a>&nbsp;&nbsp;
96
- <a href="#M000044">load_from_file</a>&nbsp;&nbsp;
97
- <a href="#M000045">parse_in_rails_env!</a>&nbsp;&nbsp;
98
- <a href="#M000047">parsed?</a>&nbsp;&nbsp;
99
- </div>
100
- </div>
101
-
102
- </div>
103
-
104
-
105
- <!-- if includes -->
106
-
107
- <div id="section">
108
-
109
-
110
-
111
-
112
-
113
-
114
-
115
-
116
- <!-- if method_list -->
117
- <div id="methods">
118
- <h3 class="section-bar">Public Class methods</h3>
119
-
120
- <div id="method-M000046" class="method-detail">
121
- <a name="M000046"></a>
122
-
123
- <div class="method-heading">
124
- <a href="#M000046" class="method-signature">
125
- <span class="method-name">get</span><span class="method-args">()</span>
126
- </a>
127
- </div>
128
-
129
- <div class="method-description">
130
- <p>
131
- Returns configuration Hash
132
- </p>
133
- <p><a class="source-toggle" href="#"
134
- onclick="toggleCode('M000046-source');return false;">[Source]</a></p>
135
- <div class="method-source-code" id="M000046-source">
136
- <pre>
137
- <span class="ruby-comment cmt"># File lib/flickr.rb, line 257</span>
138
- 257: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">get</span>
139
- 258: <span class="ruby-ivar">@@configuration</span>
140
- 259: <span class="ruby-keyword kw">end</span>
141
- </pre>
142
- </div>
143
- </div>
144
- </div>
145
-
146
- <div id="method-M000044" class="method-detail">
147
- <a name="M000044"></a>
148
-
149
- <div class="method-heading">
150
- <a href="#M000044" class="method-signature">
151
- <span class="method-name">load_from_file</span><span class="method-args">(file)</span>
152
- </a>
153
- </div>
154
-
155
- <div class="method-description">
156
- <p>
157
- parses file and prepare @@configuration for access from outside to fetch
158
- configuration hash
159
- </p>
160
- <p><a class="source-toggle" href="#"
161
- onclick="toggleCode('M000044-source');return false;">[Source]</a></p>
162
- <div class="method-source-code" id="M000044-source">
163
- <pre>
164
- <span class="ruby-comment cmt"># File lib/flickr.rb, line 244</span>
165
- 244: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">load_from_file</span> <span class="ruby-identifier">file</span>
166
- 245: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">false</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">exist?</span>(<span class="ruby-identifier">file</span>)
167
- 246: <span class="ruby-ivar">@@configuration</span> = <span class="ruby-constant">YAML</span>.<span class="ruby-identifier">load</span>(<span class="ruby-constant">ERB</span>.<span class="ruby-identifier">new</span>(<span class="ruby-constant">File</span>.<span class="ruby-identifier">read</span>(<span class="ruby-identifier">file</span>)).<span class="ruby-identifier">result</span>)
168
- 247: <span class="ruby-ivar">@@parsed</span> = <span class="ruby-keyword kw">true</span>
169
- 248: <span class="ruby-identifier">parse_in_rails_env!</span>
170
- 249: <span class="ruby-keyword kw">end</span>
171
- </pre>
172
- </div>
173
- </div>
174
- </div>
175
-
176
- <div id="method-M000045" class="method-detail">
177
- <a name="M000045"></a>
178
-
179
- <div class="method-heading">
180
- <a href="#M000045" class="method-signature">
181
- <span class="method-name">parse_in_rails_env!</span><span class="method-args">()</span>
182
- </a>
183
- </div>
184
-
185
- <div class="method-description">
186
- <p>
187
- Excludes specific configuration for choosed environment in Rails
188
- </p>
189
- <p><a class="source-toggle" href="#"
190
- onclick="toggleCode('M000045-source');return false;">[Source]</a></p>
191
- <div class="method-source-code" id="M000045-source">
192
- <pre>
193
- <span class="ruby-comment cmt"># File lib/flickr.rb, line 252</span>
194
- 252: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">parse_in_rails_env!</span>
195
- 253: <span class="ruby-ivar">@@configuration</span> = <span class="ruby-ivar">@@configuration</span>[<span class="ruby-constant">RAILS_ENV</span>].<span class="ruby-identifier">symbolize_keys</span> <span class="ruby-keyword kw">if</span> <span class="ruby-keyword kw">defined?</span> <span class="ruby-constant">RAILS_ENV</span>
196
- 254: <span class="ruby-keyword kw">end</span>
197
- </pre>
198
- </div>
199
- </div>
200
- </div>
201
-
202
- <div id="method-M000047" class="method-detail">
203
- <a name="M000047"></a>
204
-
205
- <div class="method-heading">
206
- <a href="#M000047" class="method-signature">
207
- <span class="method-name">parsed?</span><span class="method-args">()</span>
208
- </a>
209
- </div>
210
-
211
- <div class="method-description">
212
- <p>
213
- Returns true if configuration has been parsed
214
- </p>
215
- <p><a class="source-toggle" href="#"
216
- onclick="toggleCode('M000047-source');return false;">[Source]</a></p>
217
- <div class="method-source-code" id="M000047-source">
218
- <pre>
219
- <span class="ruby-comment cmt"># File lib/flickr.rb, line 262</span>
220
- 262: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">parsed?</span>
221
- 263: <span class="ruby-ivar">@@parsed</span>
222
- 264: <span class="ruby-keyword kw">end</span>
223
- </pre>
224
- </div>
225
- </div>
226
- </div>
227
-
228
-
229
- </div>
230
-
231
-
232
- </div>
233
-
234
-
235
- <div id="validator-badges">
236
- <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
237
- </div>
238
-
239
- </body>
240
- </html>
@@ -1,251 +0,0 @@
1
- <?xml version="1.0" encoding="iso-8859-1"?>
2
- <!DOCTYPE html
3
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
-
6
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7
- <head>
8
- <title>Class: Flickr::Group</title>
9
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
- <meta http-equiv="Content-Script-Type" content="text/javascript" />
11
- <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
12
- <script type="text/javascript">
13
- // <![CDATA[
14
-
15
- function popupCode( url ) {
16
- window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
17
- }
18
-
19
- function toggleCode( id ) {
20
- if ( document.getElementById )
21
- elem = document.getElementById( id );
22
- else if ( document.all )
23
- elem = eval( "document.all." + id );
24
- else
25
- return false;
26
-
27
- elemStyle = elem.style;
28
-
29
- if ( elemStyle.display != "block" ) {
30
- elemStyle.display = "block"
31
- } else {
32
- elemStyle.display = "none"
33
- }
34
-
35
- return true;
36
- }
37
-
38
- // Make codeblocks hidden by default
39
- document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
40
-
41
- // ]]>
42
- </script>
43
-
44
- </head>
45
- <body>
46
-
47
-
48
-
49
- <div id="classHeader">
50
- <table class="header-table">
51
- <tr class="top-aligned-row">
52
- <td><strong>Class</strong></td>
53
- <td class="class-name-in-header">Flickr::Group</td>
54
- </tr>
55
- <tr class="top-aligned-row">
56
- <td><strong>In:</strong></td>
57
- <td>
58
- <a href="../../files/lib/flickr_rb.html">
59
- lib/flickr.rb
60
- </a>
61
- <br />
62
- </td>
63
- </tr>
64
-
65
- <tr class="top-aligned-row">
66
- <td><strong>Parent:</strong></td>
67
- <td>
68
- Object
69
- </td>
70
- </tr>
71
- </table>
72
- </div>
73
- <!-- banner header -->
74
-
75
- <div id="bodyContent">
76
-
77
-
78
-
79
- <div id="contextContent">
80
-
81
- <div id="description">
82
- <p>
83
- Todo: flickr.groups.pools.add flickr.groups.pools.getContext
84
- flickr.groups.pools.getGroups flickr.groups.pools.getPhotos
85
- flickr.groups.pools.remove
86
- </p>
87
-
88
- </div>
89
-
90
-
91
- </div>
92
-
93
- <div id="method-list">
94
- <h3 class="section-bar">Methods</h3>
95
-
96
- <div class="name-list">
97
- <a href="#M000023">getInfo</a>&nbsp;&nbsp;
98
- <a href="#M000022">new</a>&nbsp;&nbsp;
99
- </div>
100
- </div>
101
-
102
- </div>
103
-
104
-
105
- <!-- if includes -->
106
-
107
- <div id="section">
108
-
109
-
110
-
111
-
112
-
113
- <div id="attribute-list">
114
- <h3 class="section-bar">Attributes</h3>
115
-
116
- <div class="name-list">
117
- <table>
118
- <tr class="top-aligned-row context-row">
119
- <td class="context-item-name">client</td>
120
- <td class="context-item-value">&nbsp;[R]&nbsp;</td>
121
- <td class="context-item-desc"></td>
122
- </tr>
123
- <tr class="top-aligned-row context-row">
124
- <td class="context-item-name">description</td>
125
- <td class="context-item-value">&nbsp;[R]&nbsp;</td>
126
- <td class="context-item-desc"></td>
127
- </tr>
128
- <tr class="top-aligned-row context-row">
129
- <td class="context-item-name">eighteenplus</td>
130
- <td class="context-item-value">&nbsp;[R]&nbsp;</td>
131
- <td class="context-item-desc"></td>
132
- </tr>
133
- <tr class="top-aligned-row context-row">
134
- <td class="context-item-name">id</td>
135
- <td class="context-item-value">&nbsp;[R]&nbsp;</td>
136
- <td class="context-item-desc"></td>
137
- </tr>
138
- <tr class="top-aligned-row context-row">
139
- <td class="context-item-name">members</td>
140
- <td class="context-item-value">&nbsp;[R]&nbsp;</td>
141
- <td class="context-item-desc"></td>
142
- </tr>
143
- <tr class="top-aligned-row context-row">
144
- <td class="context-item-name">name</td>
145
- <td class="context-item-value">&nbsp;[R]&nbsp;</td>
146
- <td class="context-item-desc"></td>
147
- </tr>
148
- <tr class="top-aligned-row context-row">
149
- <td class="context-item-name">online</td>
150
- <td class="context-item-value">&nbsp;[R]&nbsp;</td>
151
- <td class="context-item-desc"></td>
152
- </tr>
153
- <tr class="top-aligned-row context-row">
154
- <td class="context-item-name">privacy</td>
155
- <td class="context-item-value">&nbsp;[R]&nbsp;</td>
156
- <td class="context-item-desc"></td>
157
- </tr>
158
- <tr class="top-aligned-row context-row">
159
- <td class="context-item-name">url</td>
160
- <td class="context-item-value">&nbsp;[R]&nbsp;</td>
161
- <td class="context-item-desc"></td>
162
- </tr>
163
- </table>
164
- </div>
165
- </div>
166
-
167
-
168
-
169
- <!-- if method_list -->
170
- <div id="methods">
171
- <h3 class="section-bar">Public Class methods</h3>
172
-
173
- <div id="method-M000022" class="method-detail">
174
- <a name="M000022"></a>
175
-
176
- <div class="method-heading">
177
- <a href="#M000022" class="method-signature">
178
- <span class="method-name">new</span><span class="method-args">(id_or_params_hash=nil, api_key={})</span>
179
- </a>
180
- </div>
181
-
182
- <div class="method-description">
183
- <p><a class="source-toggle" href="#"
184
- onclick="toggleCode('M000022-source');return false;">[Source]</a></p>
185
- <div class="method-source-code" id="M000022-source">
186
- <pre>
187
- <span class="ruby-comment cmt"># File lib/flickr.rb, line 672</span>
188
- 672: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">id_or_params_hash</span>=<span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">api_key</span>={})
189
- 673: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">id_or_params_hash</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">Hash</span>)
190
- 674: <span class="ruby-identifier">id_or_params_hash</span>.<span class="ruby-identifier">each</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">k</span>,<span class="ruby-identifier">v</span><span class="ruby-operator">|</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">instance_variable_set</span>(<span class="ruby-node">&quot;@#{k}&quot;</span>, <span class="ruby-identifier">v</span>) } <span class="ruby-comment cmt"># convert extra_params into instance variables</span>
191
- 675: <span class="ruby-keyword kw">else</span>
192
- 676: <span class="ruby-ivar">@id</span> = <span class="ruby-identifier">id_or_params_hash</span>
193
- 677: <span class="ruby-ivar">@api_key</span> = <span class="ruby-identifier">api_key</span>
194
- 678: <span class="ruby-ivar">@client</span> = <span class="ruby-constant">Flickr</span>.<span class="ruby-identifier">new</span> <span class="ruby-ivar">@api_key</span>
195
- 679: <span class="ruby-keyword kw">end</span>
196
- 680: <span class="ruby-keyword kw">end</span>
197
- </pre>
198
- </div>
199
- </div>
200
- </div>
201
-
202
- <h3 class="section-bar">Public Instance methods</h3>
203
-
204
- <div id="method-M000023" class="method-detail">
205
- <a name="M000023"></a>
206
-
207
- <div class="method-heading">
208
- <a href="#M000023" class="method-signature">
209
- <span class="method-name">getInfo</span><span class="method-args">()</span>
210
- </a>
211
- </div>
212
-
213
- <div class="method-description">
214
- <p>
215
- Implements flickr.groups.<a href="Group.html#M000023">getInfo</a> and
216
- flickr.urls.getGroup private, once we can call it as needed
217
- </p>
218
- <p><a class="source-toggle" href="#"
219
- onclick="toggleCode('M000023-source');return false;">[Source]</a></p>
220
- <div class="method-source-code" id="M000023-source">
221
- <pre>
222
- <span class="ruby-comment cmt"># File lib/flickr.rb, line 684</span>
223
- 684: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">getInfo</span>
224
- 685: <span class="ruby-identifier">info</span> = <span class="ruby-ivar">@client</span>.<span class="ruby-identifier">groups_getInfo</span>(<span class="ruby-value str">'group_id'</span>=<span class="ruby-operator">&gt;</span><span class="ruby-ivar">@id</span>)[<span class="ruby-value str">'group'</span>]
225
- 686: <span class="ruby-ivar">@name</span> = <span class="ruby-identifier">info</span>[<span class="ruby-value str">'name'</span>]
226
- 687: <span class="ruby-ivar">@members</span> = <span class="ruby-identifier">info</span>[<span class="ruby-value str">'members'</span>]
227
- 688: <span class="ruby-ivar">@online</span> = <span class="ruby-identifier">info</span>[<span class="ruby-value str">'online'</span>]
228
- 689: <span class="ruby-ivar">@privacy</span> = <span class="ruby-identifier">info</span>[<span class="ruby-value str">'privacy'</span>]
229
- 690: <span class="ruby-comment cmt"># @chatid = info['chatid']</span>
230
- 691: <span class="ruby-comment cmt"># @chatcount = info['chatcount']</span>
231
- 692: <span class="ruby-ivar">@url</span> = <span class="ruby-ivar">@client</span>.<span class="ruby-identifier">urls_getGroup</span>(<span class="ruby-value str">'group_id'</span>=<span class="ruby-operator">&gt;</span><span class="ruby-ivar">@id</span>)[<span class="ruby-value str">'group'</span>][<span class="ruby-value str">'url'</span>]
232
- 693: <span class="ruby-keyword kw">self</span>
233
- 694: <span class="ruby-keyword kw">end</span>
234
- </pre>
235
- </div>
236
- </div>
237
- </div>
238
-
239
-
240
- </div>
241
-
242
-
243
- </div>
244
-
245
-
246
- <div id="validator-badges">
247
- <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
248
- </div>
249
-
250
- </body>
251
- </html>