syclink 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (53) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +16 -5
  3. data/bin/syclink +17 -5
  4. data/doc/Gemfile.html +40 -0
  5. data/doc/Gemfile_lock.html +40 -0
  6. data/doc/LICENSE.html +40 -0
  7. data/doc/Object.html +3 -3
  8. data/doc/README_md.html +63 -11
  9. data/doc/README_rdoc.html +40 -0
  10. data/doc/Rakefile.html +40 -0
  11. data/doc/SycLink/Chrome.html +3 -0
  12. data/doc/SycLink/Designer.html +48 -8
  13. data/doc/SycLink/Exporter.html +2 -0
  14. data/doc/SycLink/FileImporter.html +2 -2
  15. data/doc/SycLink/Firefox.html +3 -0
  16. data/doc/SycLink/Formatter.html +2 -0
  17. data/doc/SycLink/Importer.html +57 -6
  18. data/doc/SycLink/Infrastructure.html +2 -0
  19. data/doc/SycLink/InternetExplorer.html +4 -2
  20. data/doc/SycLink/Link.html +2 -0
  21. data/doc/SycLink/LinkChecker.html +6 -4
  22. data/doc/SycLink/Website.html +5 -0
  23. data/doc/SycLink.html +28 -0
  24. data/doc/created.rid +58 -10
  25. data/doc/index.html +40 -0
  26. data/doc/js/navigation.js.gz +0 -0
  27. data/doc/js/search_index.js +1 -1
  28. data/doc/js/search_index.js.gz +0 -0
  29. data/doc/js/searcher.js.gz +0 -0
  30. data/doc/setup_md.html +40 -0
  31. data/doc/spec/syclink/fi/a_txt.html +40 -0
  32. data/doc/spec/syclink/fi/c/ie_url.html +40 -0
  33. data/doc/spec/syclink/gc/Bookmarks.html +40 -0
  34. data/doc/spec/syclink/ie/ie_url.html +40 -0
  35. data/doc/spec/syclink/ie/one/ie_url.html +40 -0
  36. data/doc/spec/syclink/ie/one/two/ie_url.html +40 -0
  37. data/doc/syclink_gemspec.html +40 -0
  38. data/doc/syclink_rdoc.html +40 -0
  39. data/doc/table_of_contents.html +118 -0
  40. data/doc/templates/example_html.html +40 -0
  41. data/doc/templates/links.html +40 -0
  42. data/doc/templates/stylesheets/style_css.html +40 -0
  43. data/doc/templates/stylesheets/style_css_map.html +40 -0
  44. data/doc/templates/stylesheets/style_css_scss.html +40 -0
  45. data/doc/templates/syc-link_html.html +40 -0
  46. data/lib/syclink/designer.rb +8 -0
  47. data/lib/syclink/file_importer.rb +2 -2
  48. data/lib/syclink/importer.rb +8 -1
  49. data/lib/syclink/internet_explorer.rb +2 -2
  50. data/lib/syclink/link_checker.rb +2 -0
  51. data/lib/syclink/version.rb +1 -1
  52. data/spec/syclink/designer_spec.rb +23 -0
  53. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ff78d4426b39953ab4aa3838ae7a50346884e19c
4
- data.tar.gz: 7241cfba57ffd8c8e3fa893e53aab3a7f4724774
3
+ metadata.gz: 9d6c3ff37e01aa4ae674eeb9c75da9686b18aee5
4
+ data.tar.gz: b50f860f5caec0e691af99e09785f55ef0726286
5
5
  SHA512:
6
- metadata.gz: 86ceee2c6cf547ca4252749b3a5d719b0f66ec37dc1336f2db04a34bef30037dfd3a54ae658a86a25770adeda75ae88e4387d8bd98093b01336f8aae45a7d2ef
7
- data.tar.gz: b37d7802d1f7f6b8e334d6dbfb4326237551be70b17bc9e2f3f61b86d3e95c26abdd39f9d70fa7e823d1b2f335a9d0c02583d02e30ebc450ebfc913754526c6f
6
+ metadata.gz: 9ed0d10660b41cbd02d1189d529904a33ddef27f60bcf1a188a61ed16787851795b228263c7d47531182bebdb7ef4ee0ecf667075aec8707cd28e042e2672043
7
+ data.tar.gz: 28d8eb6b78718f61cdf2a99f52c04c9e78adc19bcf456230ef369cb89e34a75607bd49d09d7174c77e7a8eb7dc3838b3f9f77f30518541ee6de8f9e7c2074dc3
data/README.md CHANGED
@@ -29,14 +29,15 @@ _Website commands_
29
29
  * website show - show all websites or search for websites
30
30
  * website remove - Remove website
31
31
  * website create - Create a HTML representation of the website
32
- * website check - Check from links that are not active anymore (pending)
32
+ * website check - Check links for availability
33
33
 
34
34
  _Link commands_
35
35
  * add link - Add a link
36
- * add file - Add links from a file
36
+ * add file - Add links read from a file
37
37
  * update link - Update a link
38
- * update file - Update links saved to a file
39
- * delete - Delete one or more links
38
+ * update file - Update links read from a file
39
+ * delete link - Delete one or more links
40
+ * delete file - Delete links based on URLs read from a file
40
41
  * list - List all links with an optional filter
41
42
  * find - Find links based on a search string
42
43
  * merge - Merge multiple links with same URL
@@ -116,7 +117,17 @@ Delete a Link
116
117
  -------------
117
118
  To delete one or more links the URLs have to be provided.
118
119
 
119
- $ syclink delete http://example.com http://challenge.com
120
+ $ syclink delete link http://example.com http://challenge.com
121
+
122
+ It is also possible to delete links based on URLs saved in a file. Asume we
123
+ have a file _urls_ with following content
124
+
125
+ http://example.com
126
+ http://challenge.com
127
+
128
+ Then we can delete the links with the URLs stored in the _urls_ file with
129
+
130
+ $ syclink delete file urls
120
131
 
121
132
  List links
122
133
  ----------
data/bin/syclink CHANGED
@@ -178,13 +178,25 @@ command :find do |c|
178
178
  end
179
179
  end
180
180
 
181
- desc 'Remove one or more links'
182
- arg_name 'URL [URL URL]'
181
+ desc 'Remove links from command line or from a file'
183
182
  command :delete do |c|
184
- c.action do |global_options,options,args|
185
- p args
186
- @designer.remove_links(args)
183
+
184
+ c.desc 'Remove one or more links'
185
+ c.arg_name 'URL [URL URL]'
186
+ c.command :link do |s|
187
+ s.action do |global_options,options,args|
188
+ @designer.remove_links(args)
189
+ end
190
+ end
191
+
192
+ c.desc 'Remove links read from a file'
193
+ c.arg_name 'FILE'
194
+ c.command :file do |s|
195
+ s.action do |global_options,options,args|
196
+ @designer.remove_links_from_file(args[0])
197
+ end
187
198
  end
199
+
188
200
  end
189
201
 
190
202
  desc 'List and optionally filter links'
data/doc/Gemfile.html CHANGED
@@ -70,6 +70,46 @@
70
70
 
71
71
  <li><a href="./Rakefile.html">Rakefile</a>
72
72
 
73
+ <li><a href="./pkg/syclink-0_1_2/Gemfile.html">Gemfile</a>
74
+
75
+ <li><a href="./pkg/syclink-0_1_2/Gemfile_lock.html">Gemfile.lock</a>
76
+
77
+ <li><a href="./pkg/syclink-0_1_2/LICENSE.html">LICENSE</a>
78
+
79
+ <li><a href="./pkg/syclink-0_1_2/README_md.html">README</a>
80
+
81
+ <li><a href="./pkg/syclink-0_1_2/README_rdoc.html">README</a>
82
+
83
+ <li><a href="./pkg/syclink-0_1_2/Rakefile.html">Rakefile</a>
84
+
85
+ <li><a href="./pkg/syclink-0_1_2/setup_md.html">setup</a>
86
+
87
+ <li><a href="./pkg/syclink-0_1_2/spec/syclink/fi/a_txt.html">a</a>
88
+
89
+ <li><a href="./pkg/syclink-0_1_2/spec/syclink/fi/c/ie_url.html">ie.url</a>
90
+
91
+ <li><a href="./pkg/syclink-0_1_2/spec/syclink/gc/Bookmarks.html">Bookmarks</a>
92
+
93
+ <li><a href="./pkg/syclink-0_1_2/spec/syclink/ie/ie_url.html">ie.url</a>
94
+
95
+ <li><a href="./pkg/syclink-0_1_2/spec/syclink/ie/one/ie_url.html">ie.url</a>
96
+
97
+ <li><a href="./pkg/syclink-0_1_2/spec/syclink/ie/one/two/ie_url.html">ie.url</a>
98
+
99
+ <li><a href="./pkg/syclink-0_1_2/syclink_gemspec.html">syclink.gemspec</a>
100
+
101
+ <li><a href="./pkg/syclink-0_1_2/syclink_rdoc.html">syclink</a>
102
+
103
+ <li><a href="./pkg/syclink-0_1_2/templates/links.html">links</a>
104
+
105
+ <li><a href="./pkg/syclink-0_1_2/templates/stylesheets/style_css.html">style.css</a>
106
+
107
+ <li><a href="./pkg/syclink-0_1_2/templates/stylesheets/style_css_map.html">style.css.map</a>
108
+
109
+ <li><a href="./pkg/syclink-0_1_2/templates/stylesheets/style_css_scss.html">style.css.scss</a>
110
+
111
+ <li><a href="./pkg/syclink-0_1_2/templates/syc-link_html.html">syc-link.html</a>
112
+
73
113
  <li><a href="./setup_md.html">setup</a>
74
114
 
75
115
  <li><a href="./spec/syclink/fi/a_txt.html">a</a>
@@ -70,6 +70,46 @@
70
70
 
71
71
  <li><a href="./Rakefile.html">Rakefile</a>
72
72
 
73
+ <li><a href="./pkg/syclink-0_1_2/Gemfile.html">Gemfile</a>
74
+
75
+ <li><a href="./pkg/syclink-0_1_2/Gemfile_lock.html">Gemfile.lock</a>
76
+
77
+ <li><a href="./pkg/syclink-0_1_2/LICENSE.html">LICENSE</a>
78
+
79
+ <li><a href="./pkg/syclink-0_1_2/README_md.html">README</a>
80
+
81
+ <li><a href="./pkg/syclink-0_1_2/README_rdoc.html">README</a>
82
+
83
+ <li><a href="./pkg/syclink-0_1_2/Rakefile.html">Rakefile</a>
84
+
85
+ <li><a href="./pkg/syclink-0_1_2/setup_md.html">setup</a>
86
+
87
+ <li><a href="./pkg/syclink-0_1_2/spec/syclink/fi/a_txt.html">a</a>
88
+
89
+ <li><a href="./pkg/syclink-0_1_2/spec/syclink/fi/c/ie_url.html">ie.url</a>
90
+
91
+ <li><a href="./pkg/syclink-0_1_2/spec/syclink/gc/Bookmarks.html">Bookmarks</a>
92
+
93
+ <li><a href="./pkg/syclink-0_1_2/spec/syclink/ie/ie_url.html">ie.url</a>
94
+
95
+ <li><a href="./pkg/syclink-0_1_2/spec/syclink/ie/one/ie_url.html">ie.url</a>
96
+
97
+ <li><a href="./pkg/syclink-0_1_2/spec/syclink/ie/one/two/ie_url.html">ie.url</a>
98
+
99
+ <li><a href="./pkg/syclink-0_1_2/syclink_gemspec.html">syclink.gemspec</a>
100
+
101
+ <li><a href="./pkg/syclink-0_1_2/syclink_rdoc.html">syclink</a>
102
+
103
+ <li><a href="./pkg/syclink-0_1_2/templates/links.html">links</a>
104
+
105
+ <li><a href="./pkg/syclink-0_1_2/templates/stylesheets/style_css.html">style.css</a>
106
+
107
+ <li><a href="./pkg/syclink-0_1_2/templates/stylesheets/style_css_map.html">style.css.map</a>
108
+
109
+ <li><a href="./pkg/syclink-0_1_2/templates/stylesheets/style_css_scss.html">style.css.scss</a>
110
+
111
+ <li><a href="./pkg/syclink-0_1_2/templates/syc-link_html.html">syc-link.html</a>
112
+
73
113
  <li><a href="./setup_md.html">setup</a>
74
114
 
75
115
  <li><a href="./spec/syclink/fi/a_txt.html">a</a>
data/doc/LICENSE.html CHANGED
@@ -70,6 +70,46 @@
70
70
 
71
71
  <li><a href="./Rakefile.html">Rakefile</a>
72
72
 
73
+ <li><a href="./pkg/syclink-0_1_2/Gemfile.html">Gemfile</a>
74
+
75
+ <li><a href="./pkg/syclink-0_1_2/Gemfile_lock.html">Gemfile.lock</a>
76
+
77
+ <li><a href="./pkg/syclink-0_1_2/LICENSE.html">LICENSE</a>
78
+
79
+ <li><a href="./pkg/syclink-0_1_2/README_md.html">README</a>
80
+
81
+ <li><a href="./pkg/syclink-0_1_2/README_rdoc.html">README</a>
82
+
83
+ <li><a href="./pkg/syclink-0_1_2/Rakefile.html">Rakefile</a>
84
+
85
+ <li><a href="./pkg/syclink-0_1_2/setup_md.html">setup</a>
86
+
87
+ <li><a href="./pkg/syclink-0_1_2/spec/syclink/fi/a_txt.html">a</a>
88
+
89
+ <li><a href="./pkg/syclink-0_1_2/spec/syclink/fi/c/ie_url.html">ie.url</a>
90
+
91
+ <li><a href="./pkg/syclink-0_1_2/spec/syclink/gc/Bookmarks.html">Bookmarks</a>
92
+
93
+ <li><a href="./pkg/syclink-0_1_2/spec/syclink/ie/ie_url.html">ie.url</a>
94
+
95
+ <li><a href="./pkg/syclink-0_1_2/spec/syclink/ie/one/ie_url.html">ie.url</a>
96
+
97
+ <li><a href="./pkg/syclink-0_1_2/spec/syclink/ie/one/two/ie_url.html">ie.url</a>
98
+
99
+ <li><a href="./pkg/syclink-0_1_2/syclink_gemspec.html">syclink.gemspec</a>
100
+
101
+ <li><a href="./pkg/syclink-0_1_2/syclink_rdoc.html">syclink</a>
102
+
103
+ <li><a href="./pkg/syclink-0_1_2/templates/links.html">links</a>
104
+
105
+ <li><a href="./pkg/syclink-0_1_2/templates/stylesheets/style_css.html">style.css</a>
106
+
107
+ <li><a href="./pkg/syclink-0_1_2/templates/stylesheets/style_css_map.html">style.css.map</a>
108
+
109
+ <li><a href="./pkg/syclink-0_1_2/templates/stylesheets/style_css_scss.html">style.css.scss</a>
110
+
111
+ <li><a href="./pkg/syclink-0_1_2/templates/syc-link_html.html">syc-link.html</a>
112
+
73
113
  <li><a href="./setup_md.html">setup</a>
74
114
 
75
115
  <li><a href="./spec/syclink/fi/a_txt.html">a</a>
data/doc/Object.html CHANGED
@@ -163,7 +163,7 @@ format</p>
163
163
 
164
164
 
165
165
  <div class="method-source-code" id="print_availability_result-source">
166
- <pre><span class="ruby-comment"># File bin/syclink, line 524</span>
166
+ <pre><span class="ruby-comment"># File bin/syclink, line 536</span>
167
167
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">print_availability_result</span>(<span class="ruby-identifier">result</span>, <span class="ruby-identifier">opts</span>)
168
168
  <span class="ruby-keyword">if</span> <span class="ruby-identifier">opts</span>[<span class="ruby-value">:table</span>]
169
169
  <span class="ruby-identifier">allowed_cols</span> = <span class="ruby-node">%w{ url response }</span>
@@ -203,7 +203,7 @@ format</p>
203
203
 
204
204
 
205
205
  <div class="method-source-code" id="print_links-source">
206
- <pre><span class="ruby-comment"># File bin/syclink, line 515</span>
206
+ <pre><span class="ruby-comment"># File bin/syclink, line 527</span>
207
207
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">print_links</span>(<span class="ruby-identifier">links</span>, <span class="ruby-identifier">columns</span>, <span class="ruby-identifier">opts</span> = {})
208
208
  <span class="ruby-identifier">allowed_cols</span> = <span class="ruby-node">%w{ url name description tag }</span>
209
209
  <span class="ruby-identifier">cols</span> = <span class="ruby-identifier">columns</span>.<span class="ruby-identifier">delete</span>(<span class="ruby-string">&#39; &#39;</span>).<span class="ruby-identifier">downcase</span>.<span class="ruby-identifier">split</span>(<span class="ruby-string">&#39;,&#39;</span>) <span class="ruby-operator">&amp;</span> <span class="ruby-identifier">allowed_cols</span>
@@ -240,7 +240,7 @@ website should be set as default website</p>
240
240
 
241
241
 
242
242
  <div class="method-source-code" id="set_default_website-source">
243
- <pre><span class="ruby-comment"># File bin/syclink, line 502</span>
243
+ <pre><span class="ruby-comment"># File bin/syclink, line 514</span>
244
244
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">set_default_website</span>(<span class="ruby-identifier">current</span>, <span class="ruby-identifier">default</span>)
245
245
  <span class="ruby-keyword">if</span> (<span class="ruby-identifier">current</span> <span class="ruby-operator">!=</span> <span class="ruby-identifier">default</span>)
246
246
  <span class="ruby-identifier">print</span> <span class="ruby-node">&quot;Want to make &#39;#{current}&#39; the default (y/n)? &quot;</span>
data/doc/README_md.html CHANGED
@@ -103,6 +103,46 @@
103
103
 
104
104
  <li><a href="./Rakefile.html">Rakefile</a>
105
105
 
106
+ <li><a href="./pkg/syclink-0_1_2/Gemfile.html">Gemfile</a>
107
+
108
+ <li><a href="./pkg/syclink-0_1_2/Gemfile_lock.html">Gemfile.lock</a>
109
+
110
+ <li><a href="./pkg/syclink-0_1_2/LICENSE.html">LICENSE</a>
111
+
112
+ <li><a href="./pkg/syclink-0_1_2/README_md.html">README</a>
113
+
114
+ <li><a href="./pkg/syclink-0_1_2/README_rdoc.html">README</a>
115
+
116
+ <li><a href="./pkg/syclink-0_1_2/Rakefile.html">Rakefile</a>
117
+
118
+ <li><a href="./pkg/syclink-0_1_2/setup_md.html">setup</a>
119
+
120
+ <li><a href="./pkg/syclink-0_1_2/spec/syclink/fi/a_txt.html">a</a>
121
+
122
+ <li><a href="./pkg/syclink-0_1_2/spec/syclink/fi/c/ie_url.html">ie.url</a>
123
+
124
+ <li><a href="./pkg/syclink-0_1_2/spec/syclink/gc/Bookmarks.html">Bookmarks</a>
125
+
126
+ <li><a href="./pkg/syclink-0_1_2/spec/syclink/ie/ie_url.html">ie.url</a>
127
+
128
+ <li><a href="./pkg/syclink-0_1_2/spec/syclink/ie/one/ie_url.html">ie.url</a>
129
+
130
+ <li><a href="./pkg/syclink-0_1_2/spec/syclink/ie/one/two/ie_url.html">ie.url</a>
131
+
132
+ <li><a href="./pkg/syclink-0_1_2/syclink_gemspec.html">syclink.gemspec</a>
133
+
134
+ <li><a href="./pkg/syclink-0_1_2/syclink_rdoc.html">syclink</a>
135
+
136
+ <li><a href="./pkg/syclink-0_1_2/templates/links.html">links</a>
137
+
138
+ <li><a href="./pkg/syclink-0_1_2/templates/stylesheets/style_css.html">style.css</a>
139
+
140
+ <li><a href="./pkg/syclink-0_1_2/templates/stylesheets/style_css_map.html">style.css.map</a>
141
+
142
+ <li><a href="./pkg/syclink-0_1_2/templates/stylesheets/style_css_scss.html">style.css.scss</a>
143
+
144
+ <li><a href="./pkg/syclink-0_1_2/templates/syc-link_html.html">syc-link.html</a>
145
+
106
146
  <li><a href="./setup_md.html">setup</a>
107
147
 
108
148
  <li><a href="./spec/syclink/fi/a_txt.html">a</a>
@@ -171,12 +211,12 @@ or completely replaced.</p>
171
211
 
172
212
  <p><em>Website commands</em> website show - show all websites or search for
173
213
  websites website remove - Remove website website create - Create a HTML
174
- representation of the website website check - Check from links that are
175
- not active anymore (pending)</p>
214
+ representation of the website website check - Check links for availability</p>
176
215
 
177
- <p><em>Link commands</em> add link - Add a link add file - Add links from a
178
- file update link - Update a link update file - Update links saved to a
179
- file delete - Delete one or more links list - List all links with an
216
+ <p><em>Link commands</em> add link - Add a link add file - Add links read
217
+ from a file update link - Update a link update file - Update links read
218
+ from a file delete link - Delete one or more links delete file - Delete
219
+ links based on URLs read from a file list - List all links with an
180
220
  optional filter find - Find links based on a search string merge - Merge
181
221
  multiple links with same URL</p>
182
222
 
@@ -253,7 +293,19 @@ $ syclink update file exported-links</pre>
253
293
 
254
294
  <p>To delete one or more links the URLs have to be provided.</p>
255
295
 
256
- <pre>$ syclink delete http://example.com http://challenge.com</pre>
296
+ <pre>$ syclink delete link http://example.com http://challenge.com</pre>
297
+
298
+ <p>It is also possible to delete links based on URLs saved in a file. Asume we
299
+ have a file <em>urls</em> with following content</p>
300
+
301
+ <pre class="ruby"><span class="ruby-identifier">http</span>:<span class="ruby-operator">/</span><span class="ruby-regexp">/example.com
302
+ http:/</span><span class="ruby-operator">/</span><span class="ruby-identifier">challenge</span>.<span class="ruby-identifier">com</span>
303
+ </pre>
304
+
305
+ <p>Then we can delete the links with the URLs stored in the <em>urls</em> file
306
+ with</p>
307
+
308
+ <pre>$ syclink delete file urls</pre>
257
309
 
258
310
  <h2 id="label-List+links">List links<span><a href="#label-List+links">&para;</a> <a href="#top">&uarr;</a></span></h2>
259
311
 
@@ -313,9 +365,9 @@ http://example.com | Day,Night | Busy time,Fun time | Work,Fun</pre>
313
365
 
314
366
  <h1 id="label-Import+Commands">Import Commands<span><a href="#label-Import+Commands">&para;</a> <a href="#top">&uarr;</a></span></h1>
315
367
 
316
- <p><a href="spec/syclink/gc/Bookmarks.html">Bookmarks</a> can be imported from
317
- <em>Mozilla Firefox</em>, <em>Google Chrome</em>, <em>Internet
318
- Explorer</em> and from directories.</p>
368
+ <p><a href="pkg/syclink-0_1_2/spec/syclink/gc/Bookmarks.html">Bookmarks</a>
369
+ can be imported from <em>Mozilla Firefox</em>, <em>Google Chrome</em>,
370
+ <em>Internet Explorer</em> and from directories.</p>
319
371
 
320
372
  <p>The command is <code>syclink import</code> followed by a sub-command
321
373
  indicating from which web browser to import, or from which directory.</p>
@@ -359,8 +411,8 @@ With Ubuntu this database is usually located in</p>
359
411
  <h2 id="label-Chrome">Chrome<span><a href="#label-Chrome">&para;</a> <a href="#top">&uarr;</a></span></h2>
360
412
 
361
413
  <p>Google Chrome stores its bookmarks in a JSON file called <a
362
- href="spec/syclink/gc/Bookmarks.html">Bookmarks</a>. With Ubuntu this file
363
- is usually located in</p>
414
+ href="pkg/syclink-0_1_2/spec/syclink/gc/Bookmarks.html">Bookmarks</a>. With
415
+ Ubuntu this file is usually located in</p>
364
416
 
365
417
  <pre>&#39;~/.config/chromium/Default/Bookmarks&#39;.</pre>
366
418
 
data/doc/README_rdoc.html CHANGED
@@ -79,6 +79,46 @@
79
79
 
80
80
  <li><a href="./Rakefile.html">Rakefile</a>
81
81
 
82
+ <li><a href="./pkg/syclink-0_1_2/Gemfile.html">Gemfile</a>
83
+
84
+ <li><a href="./pkg/syclink-0_1_2/Gemfile_lock.html">Gemfile.lock</a>
85
+
86
+ <li><a href="./pkg/syclink-0_1_2/LICENSE.html">LICENSE</a>
87
+
88
+ <li><a href="./pkg/syclink-0_1_2/README_md.html">README</a>
89
+
90
+ <li><a href="./pkg/syclink-0_1_2/README_rdoc.html">README</a>
91
+
92
+ <li><a href="./pkg/syclink-0_1_2/Rakefile.html">Rakefile</a>
93
+
94
+ <li><a href="./pkg/syclink-0_1_2/setup_md.html">setup</a>
95
+
96
+ <li><a href="./pkg/syclink-0_1_2/spec/syclink/fi/a_txt.html">a</a>
97
+
98
+ <li><a href="./pkg/syclink-0_1_2/spec/syclink/fi/c/ie_url.html">ie.url</a>
99
+
100
+ <li><a href="./pkg/syclink-0_1_2/spec/syclink/gc/Bookmarks.html">Bookmarks</a>
101
+
102
+ <li><a href="./pkg/syclink-0_1_2/spec/syclink/ie/ie_url.html">ie.url</a>
103
+
104
+ <li><a href="./pkg/syclink-0_1_2/spec/syclink/ie/one/ie_url.html">ie.url</a>
105
+
106
+ <li><a href="./pkg/syclink-0_1_2/spec/syclink/ie/one/two/ie_url.html">ie.url</a>
107
+
108
+ <li><a href="./pkg/syclink-0_1_2/syclink_gemspec.html">syclink.gemspec</a>
109
+
110
+ <li><a href="./pkg/syclink-0_1_2/syclink_rdoc.html">syclink</a>
111
+
112
+ <li><a href="./pkg/syclink-0_1_2/templates/links.html">links</a>
113
+
114
+ <li><a href="./pkg/syclink-0_1_2/templates/stylesheets/style_css.html">style.css</a>
115
+
116
+ <li><a href="./pkg/syclink-0_1_2/templates/stylesheets/style_css_map.html">style.css.map</a>
117
+
118
+ <li><a href="./pkg/syclink-0_1_2/templates/stylesheets/style_css_scss.html">style.css.scss</a>
119
+
120
+ <li><a href="./pkg/syclink-0_1_2/templates/syc-link_html.html">syc-link.html</a>
121
+
82
122
  <li><a href="./setup_md.html">setup</a>
83
123
 
84
124
  <li><a href="./spec/syclink/fi/a_txt.html">a</a>
data/doc/Rakefile.html CHANGED
@@ -70,6 +70,46 @@
70
70
 
71
71
  <li><a href="./Rakefile.html">Rakefile</a>
72
72
 
73
+ <li><a href="./pkg/syclink-0_1_2/Gemfile.html">Gemfile</a>
74
+
75
+ <li><a href="./pkg/syclink-0_1_2/Gemfile_lock.html">Gemfile.lock</a>
76
+
77
+ <li><a href="./pkg/syclink-0_1_2/LICENSE.html">LICENSE</a>
78
+
79
+ <li><a href="./pkg/syclink-0_1_2/README_md.html">README</a>
80
+
81
+ <li><a href="./pkg/syclink-0_1_2/README_rdoc.html">README</a>
82
+
83
+ <li><a href="./pkg/syclink-0_1_2/Rakefile.html">Rakefile</a>
84
+
85
+ <li><a href="./pkg/syclink-0_1_2/setup_md.html">setup</a>
86
+
87
+ <li><a href="./pkg/syclink-0_1_2/spec/syclink/fi/a_txt.html">a</a>
88
+
89
+ <li><a href="./pkg/syclink-0_1_2/spec/syclink/fi/c/ie_url.html">ie.url</a>
90
+
91
+ <li><a href="./pkg/syclink-0_1_2/spec/syclink/gc/Bookmarks.html">Bookmarks</a>
92
+
93
+ <li><a href="./pkg/syclink-0_1_2/spec/syclink/ie/ie_url.html">ie.url</a>
94
+
95
+ <li><a href="./pkg/syclink-0_1_2/spec/syclink/ie/one/ie_url.html">ie.url</a>
96
+
97
+ <li><a href="./pkg/syclink-0_1_2/spec/syclink/ie/one/two/ie_url.html">ie.url</a>
98
+
99
+ <li><a href="./pkg/syclink-0_1_2/syclink_gemspec.html">syclink.gemspec</a>
100
+
101
+ <li><a href="./pkg/syclink-0_1_2/syclink_rdoc.html">syclink</a>
102
+
103
+ <li><a href="./pkg/syclink-0_1_2/templates/links.html">links</a>
104
+
105
+ <li><a href="./pkg/syclink-0_1_2/templates/stylesheets/style_css.html">style.css</a>
106
+
107
+ <li><a href="./pkg/syclink-0_1_2/templates/stylesheets/style_css_map.html">style.css.map</a>
108
+
109
+ <li><a href="./pkg/syclink-0_1_2/templates/stylesheets/style_css_scss.html">style.css.scss</a>
110
+
111
+ <li><a href="./pkg/syclink-0_1_2/templates/syc-link_html.html">syc-link.html</a>
112
+
73
113
  <li><a href="./setup_md.html">setup</a>
74
114
 
75
115
  <li><a href="./spec/syclink/fi/a_txt.html">a</a>
@@ -85,6 +85,9 @@
85
85
 
86
86
  <section class="description">
87
87
 
88
+ <p><a href="Importer.html">Importer</a> for Google <a
89
+ href="Chrome.html">Chrome</a> links</p>
90
+
88
91
  <p><a href="Importer.html">Importer</a> for Google <a
89
92
  href="Chrome.html">Chrome</a> links</p>
90
93
 
@@ -105,6 +105,8 @@
105
105
 
106
106
  <li ><a href="#method-i-remove_links">#remove_links</a>
107
107
 
108
+ <li ><a href="#method-i-remove_links_from_file">#remove_links_from_file</a>
109
+
108
110
  <li ><a href="#method-i-report_links_availability">#report_links_availability</a>
109
111
 
110
112
  <li ><a href="#method-i-save_website">#save_website</a>
@@ -126,6 +128,9 @@
126
128
 
127
129
  <section class="description">
128
130
 
131
+ <p>Creates a designer that acts as a proxy between the user and the website.
132
+ The designer will create a website with the provided title.</p>
133
+
129
134
  <p>Creates a designer that acts as a proxy between the user and the website.
130
135
  The designer will create a website with the provided title.</p>
131
136
 
@@ -266,7 +271,7 @@ templates/syclink.html.erb</p>
266
271
 
267
272
 
268
273
  <div class="method-source-code" id="create_website-source">
269
- <pre><span class="ruby-comment"># File lib/syclink/designer.rb, line 144</span>
274
+ <pre><span class="ruby-comment"># File lib/syclink/designer.rb, line 152</span>
270
275
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">create_website</span>(<span class="ruby-identifier">directory</span>, <span class="ruby-identifier">template_filename</span>)
271
276
  <span class="ruby-identifier">template</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">read</span>(<span class="ruby-identifier">template_filename</span>)
272
277
  <span class="ruby-constant">File</span>.<span class="ruby-identifier">open</span>(<span class="ruby-identifier">html_file</span>(<span class="ruby-identifier">directory</span>, <span class="ruby-identifier">website</span>.<span class="ruby-identifier">title</span>), <span class="ruby-string">&#39;w&#39;</span>) <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">f</span><span class="ruby-operator">|</span>
@@ -302,7 +307,7 @@ templates/syclink.html.erb</p>
302
307
 
303
308
 
304
309
  <div class="method-source-code" id="delete_website-source">
305
- <pre><span class="ruby-comment"># File lib/syclink/designer.rb, line 134</span>
310
+ <pre><span class="ruby-comment"># File lib/syclink/designer.rb, line 142</span>
306
311
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">delete_website</span>(<span class="ruby-identifier">directory</span>)
307
312
  <span class="ruby-keyword">if</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">exists?</span> <span class="ruby-identifier">yaml_file</span>(<span class="ruby-identifier">directory</span>, <span class="ruby-identifier">website</span>.<span class="ruby-identifier">title</span>)
308
313
  <span class="ruby-constant">FileUtils</span>.<span class="ruby-identifier">rm</span>(<span class="ruby-identifier">yaml_file</span>(<span class="ruby-identifier">directory</span>, <span class="ruby-identifier">website</span>.<span class="ruby-identifier">title</span>))
@@ -478,7 +483,7 @@ designer to operate on</p>
478
483
 
479
484
 
480
485
  <div class="method-source-code" id="load_website-source">
481
- <pre><span class="ruby-comment"># File lib/syclink/designer.rb, line 129</span>
486
+ <pre><span class="ruby-comment"># File lib/syclink/designer.rb, line 137</span>
482
487
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">load_website</span>(<span class="ruby-identifier">website</span>)
483
488
  <span class="ruby-ivar">@website</span> = <span class="ruby-constant">YAML</span>.<span class="ruby-identifier">load_file</span>(<span class="ruby-identifier">website</span>)
484
489
  <span class="ruby-keyword">end</span></pre>
@@ -511,7 +516,7 @@ designer to operate on</p>
511
516
 
512
517
 
513
518
  <div class="method-source-code" id="merge_links-source">
514
- <pre><span class="ruby-comment"># File lib/syclink/designer.rb, line 107</span>
519
+ <pre><span class="ruby-comment"># File lib/syclink/designer.rb, line 108</span>
515
520
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">merge_links</span>
516
521
  <span class="ruby-identifier">website</span>.<span class="ruby-identifier">merge_links_on</span>(<span class="ruby-value">:url</span>)
517
522
  <span class="ruby-keyword">end</span></pre>
@@ -578,7 +583,7 @@ Expects the links provided in an array</p>
578
583
 
579
584
 
580
585
  <div class="method-source-code" id="remove_links-source">
581
- <pre><span class="ruby-comment"># File lib/syclink/designer.rb, line 113</span>
586
+ <pre><span class="ruby-comment"># File lib/syclink/designer.rb, line 114</span>
582
587
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">remove_links</span>(<span class="ruby-identifier">urls</span>)
583
588
  <span class="ruby-identifier">urls</span>.<span class="ruby-identifier">map</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">url</span><span class="ruby-operator">|</span> <span class="ruby-identifier">list_links</span>({ <span class="ruby-identifier">url</span><span class="ruby-operator">:</span> <span class="ruby-identifier">url</span> }) }.<span class="ruby-identifier">flatten</span>.<span class="ruby-identifier">compact</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">link</span><span class="ruby-operator">|</span>
584
589
  <span class="ruby-identifier">website</span>.<span class="ruby-identifier">remove_link</span>(<span class="ruby-identifier">link</span>)
@@ -591,6 +596,41 @@ Expects the links provided in an array</p>
591
596
 
592
597
 
593
598
 
599
+ </div>
600
+
601
+
602
+ <div id="method-i-remove_links_from_file" class="method-detail ">
603
+
604
+ <div class="method-heading">
605
+ <span class="method-name">remove_links_from_file</span><span
606
+ class="method-args">(file)</span>
607
+
608
+ <span class="method-click-advice">click to toggle source</span>
609
+
610
+ </div>
611
+
612
+
613
+ <div class="method-description">
614
+
615
+ <p>Deletes links based on URLs that are provided in a file. Each URL has to be
616
+ in one line</p>
617
+
618
+
619
+
620
+
621
+ <div class="method-source-code" id="remove_links_from_file-source">
622
+ <pre><span class="ruby-comment"># File lib/syclink/designer.rb, line 122</span>
623
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">remove_links_from_file</span>(<span class="ruby-identifier">file</span>)
624
+ <span class="ruby-identifier">urls</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">foreach</span>(<span class="ruby-identifier">file</span>).<span class="ruby-identifier">map</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">url</span><span class="ruby-operator">|</span> <span class="ruby-identifier">url</span>.<span class="ruby-identifier">chomp</span> <span class="ruby-keyword">unless</span> <span class="ruby-identifier">url</span>.<span class="ruby-identifier">empty?</span> }
625
+ <span class="ruby-identifier">remove_links</span>(<span class="ruby-identifier">urls</span>)
626
+ <span class="ruby-keyword">end</span></pre>
627
+ </div>
628
+
629
+ </div>
630
+
631
+
632
+
633
+
594
634
  </div>
595
635
 
596
636
 
@@ -664,7 +704,7 @@ website and the extension &#39;website&#39;. The website is save as YAML</p>
664
704
 
665
705
 
666
706
  <div class="method-source-code" id="save_website-source">
667
- <pre><span class="ruby-comment"># File lib/syclink/designer.rb, line 121</span>
707
+ <pre><span class="ruby-comment"># File lib/syclink/designer.rb, line 129</span>
668
708
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">save_website</span>(<span class="ruby-identifier">directory</span>)
669
709
  <span class="ruby-constant">File</span>.<span class="ruby-identifier">open</span>(<span class="ruby-identifier">yaml_file</span>(<span class="ruby-identifier">directory</span>, <span class="ruby-identifier">website</span>.<span class="ruby-identifier">title</span>), <span class="ruby-string">&#39;w&#39;</span>) <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">f</span><span class="ruby-operator">|</span>
670
710
  <span class="ruby-constant">YAML</span>.<span class="ruby-identifier">dump</span>(<span class="ruby-identifier">website</span>, <span class="ruby-identifier">f</span>)
@@ -727,13 +767,13 @@ one link with the same URL, only the first link is updated</p>
727
767
 
728
768
  <div class="method-description">
729
769
 
730
-
770
+ <p>Updates links read from a file</p>
731
771
 
732
772
 
733
773
 
734
774
 
735
775
  <div class="method-source-code" id="update_links_from_file-source">
736
- <pre><span class="ruby-comment"># File lib/syclink/designer.rb, line 96</span>
776
+ <pre><span class="ruby-comment"># File lib/syclink/designer.rb, line 97</span>
737
777
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">update_links_from_file</span>(<span class="ruby-identifier">file</span>)
738
778
  <span class="ruby-constant">File</span>.<span class="ruby-identifier">foreach</span>(<span class="ruby-identifier">file</span>) <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">line</span><span class="ruby-operator">|</span>
739
779
  <span class="ruby-keyword">next</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">line</span>.<span class="ruby-identifier">chomp</span>.<span class="ruby-identifier">empty?</span>
@@ -80,6 +80,8 @@
80
80
 
81
81
  <section class="description">
82
82
 
83
+ <p>Methods to export data into specific formats</p>
84
+
83
85
  <p>Methods to export data into specific formats</p>
84
86
 
85
87
  </section>
@@ -135,9 +135,9 @@
135
135
  <span class="ruby-keyword">begin</span>
136
136
  [<span class="ruby-constant">File</span>.<span class="ruby-identifier">read</span>(<span class="ruby-identifier">file</span>).<span class="ruby-identifier">scan</span>(<span class="ruby-regexp">/(?&lt;=\nURL=)(.*)$/</span>)
137
137
  .<span class="ruby-identifier">flatten</span>.<span class="ruby-identifier">first</span>.<span class="ruby-identifier">chomp</span>,
138
- <span class="ruby-identifier">name</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">basename</span>(<span class="ruby-identifier">file</span>, <span class="ruby-string">&quot;.*&quot;</span>)]
138
+ <span class="ruby-identifier">url_name</span>(<span class="ruby-constant">File</span>.<span class="ruby-identifier">basename</span>(<span class="ruby-identifier">file</span>, <span class="ruby-string">&quot;.*&quot;</span>))]
139
139
  <span class="ruby-keyword">rescue</span>
140
- [<span class="ruby-identifier">file</span>, <span class="ruby-identifier">file</span>.<span class="ruby-identifier">basename</span>(<span class="ruby-identifier">file</span>)]
140
+ [<span class="ruby-identifier">file</span>, <span class="ruby-constant">File</span>.<span class="ruby-identifier">basename</span>(<span class="ruby-identifier">file</span>)]
141
141
  <span class="ruby-keyword">end</span>
142
142
  <span class="ruby-keyword">else</span>
143
143
  [<span class="ruby-identifier">file</span>, <span class="ruby-constant">File</span>.<span class="ruby-identifier">basename</span>(<span class="ruby-identifier">file</span>)]