Graphiclious 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. data/README.txt +126 -0
  2. data/Rakefile +28 -0
  3. data/bin/graphiclious +3 -0
  4. data/doc/cloud.jpg +0 -0
  5. data/doc/index.html +32 -0
  6. data/doc/screenshots/default.css +44 -0
  7. data/doc/screenshots/original/blue-style-1.html +37 -0
  8. data/doc/screenshots/original/blue-style-1.jpg +0 -0
  9. data/doc/screenshots/original/cornflower.html +37 -0
  10. data/doc/screenshots/original/cornflower.jpg +0 -0
  11. data/doc/screenshots/original/custom-style.html +37 -0
  12. data/doc/screenshots/original/custom-style.jpg +0 -0
  13. data/doc/screenshots/original/sample-graph.html +37 -0
  14. data/doc/screenshots/original/sample-graph.jpg +0 -0
  15. data/doc/screenshots/original/user-interface.html +37 -0
  16. data/doc/screenshots/original/user-interface.jpg +0 -0
  17. data/doc/screenshots/thumb.html +46 -0
  18. data/doc/screenshots/thumb/t_blue-style-1.jpg +0 -0
  19. data/doc/screenshots/thumb/t_cornflower.jpg +0 -0
  20. data/doc/screenshots/thumb/t_custom-style.jpg +0 -0
  21. data/doc/screenshots/thumb/t_sample-graph.jpg +0 -0
  22. data/doc/screenshots/thumb/t_user-interface.jpg +0 -0
  23. data/doc/style.css +60 -0
  24. data/gemspec.rb +45 -0
  25. data/lib/graphiclious.rb +78 -0
  26. data/lib/graphiclious/delicious2yaml.rb +235 -0
  27. data/lib/graphiclious/dot_attributes.rb +35 -0
  28. data/lib/graphiclious/environment.rb +36 -0
  29. data/lib/graphiclious/gui.rb +260 -0
  30. data/lib/graphiclious/help.rb +22 -0
  31. data/lib/graphiclious/require_fox.rb +12 -0
  32. data/lib/graphiclious/url_graph.rb +135 -0
  33. data/lib/graphiclious/utf8.rb +19 -0
  34. data/lib/graphiclious/version.rb +8 -0
  35. data/lib/graphiclious/yaml-links2html.rb +476 -0
  36. data/options.yaml +7 -0
  37. data/styles/blue-style-1/dot-attributes.yaml +21 -0
  38. data/styles/blue-style-1/extern.gif +0 -0
  39. data/styles/blue-style-1/style.css +128 -0
  40. data/styles/cornflower/cornflower.png +0 -0
  41. data/styles/cornflower/dot-attributes.yaml +21 -0
  42. data/styles/cornflower/extern.gif +0 -0
  43. data/styles/cornflower/h3.gif +0 -0
  44. data/styles/cornflower/menuitem.png +0 -0
  45. data/styles/cornflower/menuselected.png +0 -0
  46. data/styles/cornflower/style.css +149 -0
  47. data/styles/cornflower/tr-edge.png +0 -0
  48. data/test/test_delicious2yaml.rb +97 -0
  49. data/wickie +249 -0
  50. metadata +119 -0
data/README.txt ADDED
@@ -0,0 +1,126 @@
1
+ This is still under development, but nevertheless usable!
2
+
3
+
4
+ *** CREDITS/REQUIREMENTS ***
5
+
6
+ First of all you'll need an account at:
7
+ - del.icio.us, which is a social bookmark service
8
+
9
+ These tools are the minimum requirements to get Graphiclious work for you:
10
+ - The Ruby interpreter (Graphiclious is implemented in the Ruby programming language)
11
+ - Rubygems, the Ruby package manager
12
+ - Rubilicious, which makes the del.icio.us-API availiable within Ruby applications
13
+ - RGL: The Ruby Graph Library
14
+
15
+ Note that the Rubygems package manager will automatically ask for
16
+ installation of Rubilicious and RGL when installing the Graphiclious gem.
17
+
18
+ To get the most ut of Graphiclious you'll further need:
19
+ - FXRuby, which makes the FOX gui toolkit availiable for Ruby applications
20
+ - RMagick, a wrapper ImageMagick, which is a tool for image processing
21
+ - Graphviz, a tool for generating nicely layouted graphs
22
+
23
+ Developers will need Rake, the Ruby make tool, too.
24
+
25
+ FXRuby and RMagick are availiable as Rubygems. You'll need a FXRuby version >= 1.2
26
+ and RMagick might need further installation steps as described on the RMagick
27
+ homepage http://rmagick.rubyforge.org/. Graphviz is easy to install, just follow the instructions
28
+ at http://www.graphviz.org/.
29
+
30
+ Note that some of these requirements, e. g. Rubygems and FXRuby, might be contained in your Ruby
31
+ installation.
32
+
33
+ *** GEM INSTALLTION ***
34
+
35
+ gem install Graphiclious
36
+
37
+
38
+ *** RUNNING GRAPHICLIOUS WITH GEM INSTALLATION ***
39
+
40
+ Depending on your Ruby installation, it might be enough to run:
41
+
42
+ graphiclious --gui
43
+
44
+ On Windows, create a shortcut and set
45
+ - the working directory to a directory of your choice (output will be generated into this directory)
46
+ - the command:
47
+
48
+ C:\ruby\bin\graphiclious.cmd --gui --user <your-delicious-name>
49
+
50
+
51
+ *** COMMAND LINE OPTIONS ***
52
+
53
+ Graphiclious has some useful options, the most mentionable options are:
54
+
55
+ --help/-h will display a help text containing all options
56
+ --gui/-g will start a graphical user interface
57
+ --user/-u specify a del.icio.us user (its name will be used as output directory, too)
58
+ --password/-p specify password for given user
59
+ --version/-v prints actual version
60
+
61
+ Without gui option you'll need to specify user and password.
62
+
63
+
64
+ *** RUNNING GRAPHICLIOUS WITHOUT GEM INSTALLATION (TYPICAL CASE FOR DEVELOPERS) ***
65
+
66
+ In general it shoud work to
67
+ 1. Open a console window
68
+ 2. Go to the graphiclious library directory (e.g. "cd ~/graphiclious/lib" or "cd C:\graphiclious\lib")
69
+ 3. Run graphiclious.rb with options of your choice (we recommend option --gui)
70
+
71
+ Note that there are better ways to run it, but this one is easy to describe and quite platform independent.
72
+
73
+ On WINDOWS create a shortcut which runs in the directory you want to generate output in
74
+ (e. g. C:\homepage\graphiclious) and executes the following command:
75
+
76
+ C:\ruby\bin\ruby.exe -rubygems -I "C:\graphiclious\lib" -Ilib "C:\graphiclious\bin\graphiclious" --gui
77
+
78
+ To analyse errors, it might be useful to keep a console open. Try something like this:
79
+
80
+ C:\WINNT\system32\CMD.EXE /k <command as described above> || pause
81
+
82
+ On Debian unstable the following works if you have installed the package
83
+ libfox-ruby:
84
+
85
+ 1. Go to the graphiclious root directory (e. g. cd ~/graphiclious)
86
+ 2. Run the following command:
87
+
88
+ ruby -rubygems -Ilib bin/graphiclious --gui
89
+
90
+
91
+ *** RUNNING THE TESTS ***
92
+
93
+ Go to the graphiclious installation directory and run rake.
94
+
95
+
96
+ *** USAGE HINTS/KNOWN ISSUES ***
97
+
98
+ - Downloading all links may take some time if you have lots of tags.
99
+ Be patient or better: use the quicker update mode "update recent"!
100
+ We try to avoid unnecessary updates by writing a timestamp. If you really
101
+ need a second run, delete the file delicious.time before running the program.
102
+ Note that the update mode won't use this timestamp.
103
+ It is not possible to delete links with the update mode.
104
+
105
+ - We locally fixed a bug in Rubilicious 1.5 by overriding Rubilicious#all.
106
+
107
+ - The number of generated files can be very large, it can become something like
108
+ 3*(b + 2) + n + n*n where n is the number of tags and b is the number of bundles;
109
+ there will be no further warning about that.
110
+
111
+ - Avoid spaces in the working directory you run Graphiclious in.
112
+
113
+ - Avoid tags that could not be used as a filename
114
+ (depends on file system and operation systems, therefore our substitutions might not
115
+ cover every possible situation, also substitutions might cause overwrites if tags
116
+ only differ in special characters)
117
+
118
+ - In general, if you use a new feature of del.icio.us: Make sure it is
119
+ correctly supported by Graphiclious before making the generated pages public
120
+ availiable.
121
+
122
+ - Html output will be overwritten. Old output will not be deleted so you
123
+ need to take care of obsolete files yourself. Note that old files might
124
+ contain private links if you once included them and later decided to
125
+ ignore them. Delete the whole output and regenerate in this case.
126
+
data/Rakefile ADDED
@@ -0,0 +1,28 @@
1
+ # Rakefile for Graphiclious -*- ruby -*-
2
+
3
+ begin
4
+ require 'rubygems'
5
+ rescue Exception
6
+ nil
7
+ end
8
+
9
+ require 'rake/testtask'
10
+
11
+ # The default task is run if rake is given no explicit arguments.
12
+
13
+ desc "Default Task"
14
+ task :default => :test
15
+
16
+ # Define a test task.
17
+
18
+ Rake::TestTask.new { |t|
19
+ t.libs << "lib,test"
20
+ t.pattern = File.join('test', 'test_*.rb')
21
+ t.verbose = true
22
+ }
23
+
24
+ task :test
25
+
26
+ # Define a test that will run all the test targets.
27
+ desc "Run all test targets"
28
+ task :testall => [:test ]
data/bin/graphiclious ADDED
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'graphiclious'
data/doc/cloud.jpg ADDED
Binary file
data/doc/index.html ADDED
@@ -0,0 +1,32 @@
1
+ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2
+ <html>
3
+ <head>
4
+ <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
5
+ <meta name="author" content="Sascha D�rdelmann">
6
+ <meta name="generator" content="Ulli Meybohms HTML EDITOR">
7
+ <meta name="keywords" lang="en" content="Graphiclious,del.icio.us,static webpage generator">
8
+ <link rel="stylesheet" type="text/css" href="style.css">
9
+ <title>Graphiclious Homepage</title>
10
+ </head>
11
+ <body>
12
+ <h1>Graphiclious Homepage</h1>
13
+ <div class="main">
14
+ <p>
15
+ Graphiclious takes your del.icio.us links and generates a bunch of static webpages.
16
+ </p>
17
+ <ul>
18
+ <li><a href="screenshots/thumb.html">Screenshots</a></li>
19
+ <li>Rubyforge project pages:
20
+ <ul>
21
+ <li><a href="http://rubyforge.org/projects/graphiclious/">Summary</a></li>
22
+ <li><a href="http://rubyforge.org/tracker/?group_id=1436">Tracker</a></li>
23
+ <li><a href="http://rubyforge.org/docman/?group_id=1436">Documentation</a></li>
24
+ <li><a href="http://rubyforge.org/news/?group_id=1436">News</a></li>
25
+ <li><a href="http://rubyforge.org/scm/?group_id=1436">Sources</a></li>
26
+ <li><a href="http://rubyforge.org/frs/?group_id=1436">Releases</a></li>
27
+ </ul>
28
+ </li>
29
+ </ul>
30
+ </div>
31
+ </body>
32
+ </html>
@@ -0,0 +1,44 @@
1
+ body, p, td, a { font-family: Arial, Helvetica, sans-serif;
2
+ font-style: normal;
3
+ font-weight: normal;
4
+ line-height: normal;
5
+ }
6
+ body { background-color: #fafaed;
7
+ color: #000000;
8
+ font-size: 10pt;
9
+ text-align: center;
10
+ }
11
+ p { font-size: 10pt;
12
+ text-align: center;
13
+ margin-top: 2em;
14
+ }
15
+ h1 { color: #c5c589;
16
+ font-family: tahoma, arial, Helvetica, sans-serif;
17
+ font-size: 24pt;
18
+ font-style: normal;
19
+ font-weight: bold;
20
+ line-height: normal;
21
+ text-align: center;
22
+ margin-bottom: 1em;
23
+ }
24
+ table { margin-left: auto;
25
+ margin-right: auto;
26
+ background-color: #f5f5dc;
27
+ border-collapse: collapse;
28
+ border: 1px solid #c5c589;
29
+ empty-cells: hide;
30
+ }
31
+ td { color: #000000;
32
+ font-size: 10pt;
33
+ text-align: center;
34
+ vertical-align: baseline;
35
+ border: 1px solid #c5c589;
36
+ }
37
+ img { border: none;
38
+ }
39
+ a { color: blue;
40
+ font-size: 10pt;
41
+ text-decoration: none;
42
+ }
43
+ a:hover { text-decoration: underline;
44
+ }
@@ -0,0 +1,37 @@
1
+ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
2
+ "http://www.w3.org/TR/html4/strict.dtd">
3
+ <html>
4
+ <head>
5
+ <meta name="GENERATOR" content="XnView">
6
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
7
+ <meta http-equiv="Content-Language" content="en-us">
8
+ <title>Graphiclious screenshots</title>
9
+ <link rel="stylesheet" type="text/css" href="../default.css">
10
+ <style type="text/css">
11
+ table, td {
12
+ border: none;
13
+ background-color: #ffffff;
14
+ }
15
+ </style>
16
+ </head>
17
+ <body>
18
+ <H1>Graphiclious - blue-style-1.jpg</H1>
19
+ <p>
20
+ <a href="user-interface.html">Previous</a> |
21
+ <a href="cornflower.html">Next</a> |
22
+ <a href="../thumb.html">Thumbnails</a>
23
+ </p>
24
+ <table cellpadding="2" cellspacing="5">
25
+ <tr>
26
+ <td><img src="blue-style-1.jpg" alt="blue-style-1.jpg" width="695" height="568"></td>
27
+ </tr>
28
+ <tr>
29
+ <td>blue-style-1</td>
30
+ </tr>
31
+ <tr>
32
+ <td><p><i>This page was generated by <a href="http://www.xnview.com">XnView</a></i></p></td>
33
+ </tr>
34
+ </table>
35
+ </body>
36
+ </html>
37
+
@@ -0,0 +1,37 @@
1
+ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
2
+ "http://www.w3.org/TR/html4/strict.dtd">
3
+ <html>
4
+ <head>
5
+ <meta name="GENERATOR" content="XnView">
6
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
7
+ <meta http-equiv="Content-Language" content="en-us">
8
+ <title>Graphiclious screenshots</title>
9
+ <link rel="stylesheet" type="text/css" href="../default.css">
10
+ <style type="text/css">
11
+ table, td {
12
+ border: none;
13
+ background-color: #ffffff;
14
+ }
15
+ </style>
16
+ </head>
17
+ <body>
18
+ <H1>Graphiclious - cornflower.jpg</H1>
19
+ <p>
20
+ <a href="blue-style-1.html">Previous</a> |
21
+ <a href="custom-style.html">Next</a> |
22
+ <a href="../thumb.html">Thumbnails</a>
23
+ </p>
24
+ <table cellpadding="2" cellspacing="5">
25
+ <tr>
26
+ <td><img src="cornflower.jpg" alt="cornflower.jpg" width="919" height="582"></td>
27
+ </tr>
28
+ <tr>
29
+ <td>cornflower</td>
30
+ </tr>
31
+ <tr>
32
+ <td><p><i>This page was generated by <a href="http://www.xnview.com">XnView</a></i></p></td>
33
+ </tr>
34
+ </table>
35
+ </body>
36
+ </html>
37
+
@@ -0,0 +1,37 @@
1
+ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
2
+ "http://www.w3.org/TR/html4/strict.dtd">
3
+ <html>
4
+ <head>
5
+ <meta name="GENERATOR" content="XnView">
6
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
7
+ <meta http-equiv="Content-Language" content="en-us">
8
+ <title>Graphiclious screenshots</title>
9
+ <link rel="stylesheet" type="text/css" href="../default.css">
10
+ <style type="text/css">
11
+ table, td {
12
+ border: none;
13
+ background-color: #ffffff;
14
+ }
15
+ </style>
16
+ </head>
17
+ <body>
18
+ <H1>Graphiclious - custom-style.jpg</H1>
19
+ <p>
20
+ <a href="cornflower.html">Previous</a> |
21
+ <a href="sample-graph.html">Next</a> |
22
+ <a href="../thumb.html">Thumbnails</a>
23
+ </p>
24
+ <table cellpadding="2" cellspacing="5">
25
+ <tr>
26
+ <td><img src="custom-style.jpg" alt="custom-style.jpg" width="711" height="549"></td>
27
+ </tr>
28
+ <tr>
29
+ <td>custom-style</td>
30
+ </tr>
31
+ <tr>
32
+ <td><p><i>This page was generated by <a href="http://www.xnview.com">XnView</a></i></p></td>
33
+ </tr>
34
+ </table>
35
+ </body>
36
+ </html>
37
+
@@ -0,0 +1,37 @@
1
+ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
2
+ "http://www.w3.org/TR/html4/strict.dtd">
3
+ <html>
4
+ <head>
5
+ <meta name="GENERATOR" content="XnView">
6
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
7
+ <meta http-equiv="Content-Language" content="en-us">
8
+ <title>Graphiclious screenshots</title>
9
+ <link rel="stylesheet" type="text/css" href="../default.css">
10
+ <style type="text/css">
11
+ table, td {
12
+ border: none;
13
+ background-color: #ffffff;
14
+ }
15
+ </style>
16
+ </head>
17
+ <body>
18
+ <H1>Graphiclious - sample-graph.jpg</H1>
19
+ <p>
20
+ <a href="custom-style.html">Previous</a> |
21
+ <a href="user-interface.html">Next</a> |
22
+ <a href="../thumb.html">Thumbnails</a>
23
+ </p>
24
+ <table cellpadding="2" cellspacing="5">
25
+ <tr>
26
+ <td><img src="sample-graph.jpg" alt="sample-graph.jpg" width="1007" height="620"></td>
27
+ </tr>
28
+ <tr>
29
+ <td>sample-graph</td>
30
+ </tr>
31
+ <tr>
32
+ <td><p><i>This page was generated by <a href="http://www.xnview.com">XnView</a></i></p></td>
33
+ </tr>
34
+ </table>
35
+ </body>
36
+ </html>
37
+
@@ -0,0 +1,37 @@
1
+ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
2
+ "http://www.w3.org/TR/html4/strict.dtd">
3
+ <html>
4
+ <head>
5
+ <meta name="GENERATOR" content="XnView">
6
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
7
+ <meta http-equiv="Content-Language" content="en-us">
8
+ <title>Graphiclious screenshots</title>
9
+ <link rel="stylesheet" type="text/css" href="../default.css">
10
+ <style type="text/css">
11
+ table, td {
12
+ border: none;
13
+ background-color: #ffffff;
14
+ }
15
+ </style>
16
+ </head>
17
+ <body>
18
+ <H1>Graphiclious - user-interface.jpg</H1>
19
+ <p>
20
+ <a href="sample-graph.html">Previous</a> |
21
+ <a href="blue-style-1.html">Next</a> |
22
+ <a href="../thumb.html">Thumbnails</a>
23
+ </p>
24
+ <table cellpadding="2" cellspacing="5">
25
+ <tr>
26
+ <td><img src="user-interface.jpg" alt="user-interface.jpg" width="348" height="427"></td>
27
+ </tr>
28
+ <tr>
29
+ <td>user-interface</td>
30
+ </tr>
31
+ <tr>
32
+ <td><p><i>This page was generated by <a href="http://www.xnview.com">XnView</a></i></p></td>
33
+ </tr>
34
+ </table>
35
+ </body>
36
+ </html>
37
+