inqlude 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
data/TODO CHANGED
@@ -1,3 +1,4 @@
1
+ * Correctly read manifests, if there are multiple versions
1
2
  * Smarter match for source RPMs, which contain more than one library
2
3
  * Show documentation of an library
3
4
  * Add "How to use" data
@@ -13,4 +14,5 @@
13
14
  * Update manifest data to have complete package data
14
15
  * Properly identify repository (use vendor?)
15
16
  * One-click install for SUSE systems
16
- * Don't duplicate partials in views
17
+ * Contribute back package description changes
18
+ * Document manifest format
data/bin/inqlude CHANGED
@@ -16,7 +16,6 @@
16
16
  # with this program; if not, write to the Free Software Foundation, Inc.,
17
17
  # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18
18
 
19
-
20
19
  require File.expand_path('../../lib/inqlude',__FILE__)
21
20
 
22
21
  distro = Distro.detect
@@ -0,0 +1,17 @@
1
+ diff --git a/klfbackend-qt3/klfbackend-qt3.1970-01-01.manifest b/klfbackend-qt3/klfbackend-qt3.1970-01-01.manifest
2
+ index 90561d7..489d6f5 100644
3
+ --- a/klfbackend-qt3/klfbackend-qt3.1970-01-01.manifest
4
+ +++ b/klfbackend-qt3/klfbackend-qt3.1970-01-01.manifest
5
+ @@ -3,10 +3,10 @@
6
+ "name": "klfbackend-qt3",
7
+ "release_date": "1970-01-01",
8
+ "version": "3.2.2",
9
+ - "summary": "KLatexFormula backend library (Qt4)",
10
+ + "summary": "KLatexFormula backend library (Qt3)",
11
+ "homepage": "http://klatexformula.sourceforge.net/",
12
+ "licenses": ["GPLv2+"],
13
+ - "description": "A C++/Qt library to generate images (PNG, EPS, PDF, plus all Qt-supported image\nformats) from LaTeX equations.\n\nThis library implements the base functionality of KLatexFormula. This library\nis compiled for Qt 4.\n\nSee also packages klatexformula and libklfbackend-qt3.\n",
14
+ + "description": "A C++/Qt library to generate images (PNG, EPS, PDF, plus all Qt-supported image\nformats) from LaTeX equations.\n\nThis library implements the base functionality of KLatexFormula. This library\nis compiled for Qt 3.\n\nSee also packages klatexformula.\n",
15
+ "authors": [],
16
+ "maturity": "stable",
17
+ "packages": {
@@ -0,0 +1,44 @@
1
+ {
2
+ "schema_version": 1,
3
+ "name": "qjson",
4
+ "version": "0.7.1",
5
+ "release_date": "20110618",
6
+ "summary": "Development files for QJson",
7
+ "urls": {
8
+ "homepage": "http://qjson.sourceforge.net/",
9
+ "api_docs": "http://qjson.sf.net/api",
10
+ "readme": "http://qjson.sf.net/README",
11
+ "logo": "http://qjson.sf.net/logo.png",
12
+ "screenshots": {
13
+ "Fancy Widgets": "http://example.com/one.jpg",
14
+ "Boring widgets": "http://example.com/two.jpg"
15
+ }
16
+ },
17
+ "licenses": [ "LGPL" ],
18
+ "description": "JSON (JavaScript Object Notation) is a lightweight data-interchange format.\nIt can represent integer, real number, string, an ordered sequence of value,\nand a collection of name/value pairs. QJson is a qt-based library that maps\nJSON data to QVariant objects. JSON arrays will be mapped to QVariantList\ninstances, while JSON's objects will be mapped to QVariantMap.\n\nThis package contains files for developing applications using QJson.\n\n",
19
+ "authors": [ "Flavio Castelli <flavio@castelli.name>" ],
20
+ "maturity": "stable",
21
+ "platforms": [ "Linux", "Windows" ],
22
+ "packages": {
23
+ "source": {
24
+ "git": {
25
+ "url": "http://github.com/flavio/qjson",
26
+ "tag": "0_7_1"
27
+ },
28
+ "url": "http://download.qjson.com/qjson-0.7.1.tgz",
29
+ "build_system": [ "cmake", "qmake" ]
30
+ },
31
+ "openSUSE": {
32
+ "11.4": {
33
+ "package_name": "libqjson-devel",
34
+ "repository": {
35
+ "url": "http://download.opensuse.org/distribution/11.4/repo/oss/",
36
+ "name": "openSUSE-11.4-Oss"
37
+ },
38
+ "source_rpm": "libqjson-0.7.1-9.3.src.rpm"
39
+ }
40
+ }
41
+ }
42
+ "keywords": [ "JSON", "magic" ],
43
+ "dependencies": [ "QtCore", "QtUi >= 4.6.1", "QtUi < 4.9", "libfoo" ]
44
+ }
data/lib/cli.rb CHANGED
@@ -19,6 +19,7 @@ class Cli < Thor
19
19
  default_task :global
20
20
 
21
21
  class_option :version, :type => :boolean, :desc => "Show version"
22
+ class_option :offline, :type => :boolean, :desc => "Work offline"
22
23
 
23
24
  def self.settings= s
24
25
  @@settings = s
@@ -72,6 +73,8 @@ class Cli < Thor
72
73
  method_option :enable_disqus, :type => :boolean,
73
74
  :desc => "Enable Disqus based comments on generate web pages. Works only on actual domain."
74
75
  def view
76
+ process_global_options options
77
+
75
78
  view = View.new ManifestHandler.new @@settings
76
79
  view.enable_disqus = options[:enable_disqus]
77
80
  view.create options[:output_dir]
@@ -136,4 +139,10 @@ class Cli < Thor
136
139
  end
137
140
  end
138
141
 
142
+ private
143
+
144
+ def process_global_options options
145
+ @@settings.offline = options[:offline]
146
+ end
147
+
139
148
  end
data/lib/inqlude.rb CHANGED
@@ -3,6 +3,7 @@ require "rubygems"
3
3
  require "thor"
4
4
  require "json"
5
5
  require "haml"
6
+ require "date"
6
7
 
7
8
  require File.expand_path('../version', __FILE__)
8
9
  require File.expand_path('../cli', __FILE__)
@@ -35,9 +35,11 @@ class ManifestHandler
35
35
  end
36
36
 
37
37
  def read_remote
38
- fetch_remote
38
+ if !@settings.offline
39
+ fetch_remote
40
+ end
39
41
 
40
- Dir.glob( "#{@settings.manifest_path}/*.manifest" ).sort.each do |filename|
42
+ Dir.glob( "#{@settings.manifest_path}/*/*.manifest" ).sort.each do |filename|
41
43
  File.open filename do |file|
42
44
  manifests.push JSON file.read
43
45
  end
@@ -49,7 +51,7 @@ class ManifestHandler
49
51
  if File.exists? @settings.manifest_path
50
52
  system "rm -r #{@settings.manifest_path}"
51
53
  end
52
- system "git clone https://github.com/cornelius/inqlude_data.git " +
54
+ system "git clone https://github.com/cornelius/inqlude-data.git " +
53
55
  "#{@settings.manifest_path}"
54
56
  else
55
57
  system "cd #{@settings.manifest_path}; git pull"
@@ -26,42 +26,68 @@ class RpmManifestizer
26
26
  end
27
27
 
28
28
  def create_manifest name, rpm_name
29
- filename = "#{@settings.manifest_dir}/#{name}.manifest"
30
- File.open( filename, "w") do |f2|
31
- source_rpm = `rpm -q --queryformat '%{SOURCERPM}' #{rpm_name}`
32
- @source_rpms[source_rpm] = Array.new
33
-
34
- raw = `rpm -q --queryformat '%{DESCRIPTION}' #{rpm_name}`
35
- parse_authors = false
36
- description = ""
37
- authors = Array.new
38
- raw.each_line do |line3|
39
- if line3 =~ /^Authors:/
40
- parse_authors = true
29
+ qf = 'version:%{VERSION}\n'
30
+ qf += 'summary:%{SUMMARY}\n'
31
+ qf += 'homepage:%{URL}\n'
32
+ qf += 'license:%{LICENSE}\n'
33
+ qf += 'sourcerpm:%{SOURCERPM}\n'
34
+ header = `rpm -q --queryformat '#{qf}' #{rpm_name}`
35
+
36
+ header_strings = header.split "\n"
37
+
38
+ headers = Hash.new
39
+ header_strings.each do |header_string|
40
+ header_string =~ /^(.*?):(.*)$/
41
+ headers[$1] = $2
42
+ end
43
+
44
+ source_rpm = headers["sourcerpm"]
45
+ @source_rpms[source_rpm] = Array.new
46
+
47
+ raw = `rpm -q --queryformat '%{DESCRIPTION}' #{rpm_name}`
48
+ parse_authors = false
49
+ description = ""
50
+ authors = Array.new
51
+ raw.each_line do |line3|
52
+ if line3 =~ /^Authors:/
53
+ parse_authors = true
54
+ next
55
+ end
56
+ if parse_authors
57
+ if line3 =~ /^---/
41
58
  next
42
59
  end
43
- if parse_authors
44
- if line3 =~ /^---/
45
- next
46
- end
47
- authors.push "\"#{line3.strip}\""
48
- else
49
- description += line3.chomp + "\\n"
50
- end
60
+ authors.push "\"#{line3.strip}\""
61
+ else
62
+ description += line3.chomp + "\\n"
51
63
  end
52
- description.gsub! /"/, "\\\""
53
- description.strip!
64
+ end
65
+ description.gsub! /"/, "\\\""
66
+ description.strip!
67
+
68
+ release_date = Date.parse "1970-01-01"
69
+
70
+ licenses = Array.new
71
+ headers["license"].split(";").each do |l|
72
+ licenses.push "\"#{l.strip}\""
73
+ end
74
+ licenses_string = licenses.join ","
54
75
 
55
- qf = ' "version": "%{VERSION}",\n'
56
- qf += ' "summary": "%{SUMMARY}",\n'
57
- qf += ' "homepage": "%{URL}",\n'
58
- qf += ' "license": "%{LICENSE}",\n'
59
- header = `rpm -q --queryformat '#{qf}' #{rpm_name}`
76
+ manifest_path = "#{@settings.manifest_path}/#{name}"
77
+ if !File.exists? manifest_path
78
+ Dir.mkdir manifest_path
79
+ end
80
+ filename = "#{manifest_path}/#{name}.#{release_date}.manifest"
60
81
 
82
+ File.open( filename, "w") do |f2|
61
83
  f2.puts '{';
62
84
  f2.puts ' "schema_version": 1,'
63
85
  f2.puts " \"name\": \"#{name}\","
64
- f2.puts header
86
+ f2.puts " \"release_date\": \"#{release_date}\","
87
+ [ "version", "summary", "homepage" ].each do |key|
88
+ f2.puts " \"#{key}\": \"#{headers[key]}\","
89
+ end
90
+ f2.puts " \"licenses\": [#{licenses_string}],"
65
91
  f2.puts " \"description\": \"#{description}\","
66
92
  f2.puts ' "authors": [' + authors.join(",") + '],'
67
93
  f2.puts ' "maturity": "stable",'
@@ -156,6 +182,13 @@ class RpmManifestizer
156
182
  end
157
183
  end
158
184
  end
185
+
186
+ if !dry_run
187
+ patch = @settings.data_path + "/manifest.patch"
188
+ cmd = "cd #{@settings.manifest_path}; patch -p1 <#{patch}";
189
+ puts "Patching manifests with #{patch}"
190
+ system cmd
191
+ end
159
192
  end
160
193
 
161
194
  def read_source_cache
data/lib/settings.rb CHANGED
@@ -16,10 +16,20 @@
16
16
 
17
17
  class Settings
18
18
 
19
+ attr_accessor :offline
20
+
21
+ def initialize
22
+ @offline = false
23
+ end
24
+
19
25
  def manifest_path
20
26
  local_path "manifests"
21
27
  end
22
28
 
29
+ def data_path
30
+ File.expand_path('../../data',__FILE__)
31
+ end
32
+
23
33
  def cache_dir
24
34
  local_dir "cache"
25
35
  end
data/lib/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  module Inqlude
2
2
 
3
- VERSION = "0.0.4"
3
+ VERSION = "0.0.5"
4
4
 
5
5
  end
data/lib/view.rb CHANGED
@@ -28,6 +28,8 @@ class View
28
28
  assert_dir "#{output_dir}/public"
29
29
  system "cp #{view_dir}/public/* #{output_dir}/public/"
30
30
 
31
+ @root = ""
32
+
31
33
  render_template "index", output_dir
32
34
  render_template "about", output_dir
33
35
  render_template "get", output_dir
@@ -36,25 +38,42 @@ class View
36
38
  library_path = "#{output_dir}/libraries/"
37
39
  assert_dir library_path
38
40
 
39
- engine = Haml::Engine.new template "library"
41
+ @root = "../"
40
42
 
41
43
  manifests.each do |manifest|
42
- File.open library_path + manifest["name"] + ".html", "w" do |file|
43
- @manifest = manifest
44
- file.puts engine.render( binding )
45
- end
44
+ @manifest = manifest
45
+ file_name = "libraries/" + manifest["name"]
46
+ render_template "library", output_dir, file_name
46
47
  end
47
48
  end
48
49
 
49
- def render_template name, output_dir
50
+ def render_template name, output_dir, file_name = nil
51
+ layout = template "layout"
52
+ layout_engine = Haml::Engine.new layout
53
+
50
54
  page = template name
51
- engine = Haml::Engine.new page
55
+ @content = Haml::Engine.new( page ).render( binding )
56
+
57
+ output_path = ""
58
+ if file_name
59
+ output_path = "#{output_dir}/#{file_name}.html"
60
+ else
61
+ output_path = "#{output_dir}/#{name}.html"
62
+ end
52
63
 
53
- File.open "#{output_dir}/#{name}.html", "w" do |file|
54
- file.puts engine.render( binding )
64
+ File.open output_path, "w" do |file|
65
+ file.puts layout_engine.render( binding )
55
66
  end
56
67
  end
57
68
 
69
+ def yank
70
+ @content
71
+ end
72
+
73
+ def style_sheet
74
+ "<link href='#{@root}public/inqlude.css' rel='stylesheet' type='text/css' />"
75
+ end
76
+
58
77
  def m attr
59
78
  @manifest[ attr ]
60
79
  end
@@ -68,8 +87,8 @@ class View
68
87
  end
69
88
 
70
89
  def link_to title, url
71
- if url !~ /^mailto:/ && url !~ /^http:/
72
- url += ".html"
90
+ if url !~ /^mailto:/ && url !~ /^http:/ && url !~ /^https:/
91
+ url = "#{@root}#{url}.html"
73
92
  end
74
93
  "<a href=\"#{url}\">#{title}</a>"
75
94
  end
data/view/about.html.haml CHANGED
@@ -1,46 +1,21 @@
1
- %head
2
- %link{ :rel => "stylesheet", :type => "text/css",
3
- :href => "public/inqlude.css" }
4
- <link href='http://fonts.googleapis.com/css?family=Droid+Sans' rel='stylesheet' type='text/css'>
5
- %body
6
- .header.center
7
- %h1
8
- %span.logo><
9
- \#in
10
- %span.logo.green><
11
- q
12
- %span.logo><
13
- lude
14
- %span.subtitle
15
- The Qt library archive
16
-
17
- .menu.center
18
- %span.menu_items
19
- = link_to "How to get libraries", "get"
20
- |
21
- = link_to "How to contribute", "contribute"
22
- |
23
- = link_to "About", "about"
24
-
25
- .content.center
26
- %p
27
- Inqlude is the independent archive of Qt based libraries. Its mission is
28
- to make it as easy as possible for developers using Qt to find and use
29
- libraries, in particular 3rd party ones.
30
- %p
31
- Inqlude comes with a command line client for handling libraries. See the
32
- = link_to "instructions how to get libraries", "get"
33
- for more details.
34
- %p
35
- Inqlude tries to be a complete archive of all available Qt based
36
- libraries. If you notice that there is some information missing, outdated
37
- or inaccurate, please consider contributing the missing data. See the
38
- = link_to "instructions how to contribute", "contribute"
39
- for more details.
40
- %p
41
- %em
42
- Note that Inqlude is currently a proof-of-concept. It's not ready for
43
- production use yet. Feedback and input is appreciated.
44
- %p
45
- If you have questions of comments please feel free to contact
46
- = link_to( "Cornelius Schumacher", "mailto:schumacher@kde.org" ) + "."
1
+ %p
2
+ Inqlude is the independent archive of Qt based libraries. Its mission is
3
+ to make it as easy as possible for developers using Qt to find and use
4
+ libraries, in particular 3rd party ones.
5
+ %p
6
+ Inqlude comes with a command line client for handling libraries. See the
7
+ = link_to "instructions how to get libraries", "get"
8
+ for more details.
9
+ %p
10
+ Inqlude tries to be a complete archive of all available Qt based
11
+ libraries. If you notice that there is some information missing, outdated
12
+ or inaccurate, please consider contributing the missing data. See the
13
+ = link_to "instructions how to contribute", "contribute"
14
+ for more details.
15
+ %p
16
+ %em
17
+ Note that Inqlude is currently a proof-of-concept. It's not ready for
18
+ production use yet. Feedback and input is appreciated.
19
+ %p
20
+ If you have questions of comments please feel free to contact
21
+ = link_to( "Cornelius Schumacher", "mailto:schumacher@kde.org" ) + "."
@@ -1,57 +1,32 @@
1
- %head
2
- %link{ :rel => "stylesheet", :type => "text/css",
3
- :href => "public/inqlude.css" }
4
- <link href='http://fonts.googleapis.com/css?family=Droid+Sans' rel='stylesheet' type='text/css'>
5
- %body
6
- .header.center
7
- %h1
8
- %span.logo><
9
- \#in
10
- %span.logo.green><
11
- q
12
- %span.logo><
13
- lude
14
- %span.subtitle
15
- The Qt library archive
1
+ %h2 Contributing data about libraries
16
2
 
17
- .menu.center
18
- %span.menu_items
19
- = link_to "How to get libraries", "get"
20
- |
21
- = link_to "How to contribute", "contribute"
22
- |
23
- = link_to "About", "about"
3
+ %p
4
+ To get a complete overview about all available Qt based libraries, we need
5
+ to collect data about these libraries. This includes descriptions,
6
+ instructions how to use them, as well as links to sources or installable
7
+ packages.
8
+ %p
9
+ The meta data used by Inqlude is collected in a git repository at
10
+ = link( "http://github.com/cornelius/inqlude_data" ) + "."
11
+ It contains a manifest file in JSON format for each library, which has the
12
+ meta data in a structured machine-readable form. JSON is easy enough for
13
+ humans to read and edit as well.
14
+ %p
15
+ You can contribute meta data by providing patches to the inqlude_data
16
+ repository. Use the github mechanisms or just send patches by email.
17
+ Contributions are welcome.
18
+
19
+ %h2 Contributing to the Inqlude tools
20
+
21
+ %p
22
+ The command line tool is developed in another git repository at
23
+ = link( "http://github.com/cornelius/inqlude" ) + "."
24
+ It's still in a proof-of-concept state, so there is quite a bit work left.
25
+ Have a look at the
26
+ = link_to "list of open issues", "http://github.com/cornelius/inqlude/issues"
27
+ or read the source and come up with your own ideas what to improve.
28
+ %p
29
+ Especially welcome are contributions for adding support for native
30
+ package systems on the variety of Linux distributions and other systems
31
+ out there.
24
32
 
25
- .content.center
26
- %h2 Contributing data about libraries
27
-
28
- %p
29
- To get a complete overview about all available Qt based libraries, we need
30
- to collect data about these libraries. This includes descriptions,
31
- instructions how to use them, as well as links to sources or installable
32
- packages.
33
- %p
34
- The meta data used by Inqlude is collected in a git repository at
35
- = link( "http://github.com/cornelius/inqlude_data" ) + "."
36
- It contains a manifest file in JSON format for each library, which has the
37
- meta data in a structured machine-readable form. JSON is easy enough for
38
- humans to read and edit as well.
39
- %p
40
- You can contribute meta data by providing patches to the inqlude_data
41
- repository. Use the github mechanisms or just send patches by email.
42
- Contributions are welcome.
43
-
44
- %h2 Contributing to the Inqlude tools
45
-
46
- %p
47
- The command line tool is developed in another git repository at
48
- = link( "http://github.com/cornelius/inqlude" ) + "."
49
- It's still in a proof-of-concept state, so there is quite a bit work left.
50
- Have a look at the
51
- = link_to "list of open issues", "http://github.com/cornelius/inqlude/issues"
52
- or read the source and come up with your own ideas what to improve.
53
- %p
54
- Especially welcome are contributions for adding support for native
55
- package systems on the variety of Linux distributions and other systems
56
- out there.
57
-
data/view/get.html.haml CHANGED
@@ -1,67 +1,42 @@
1
- %head
2
- %link{ :rel => "stylesheet", :type => "text/css",
3
- :href => "public/inqlude.css" }
4
- <link href='http://fonts.googleapis.com/css?family=Droid+Sans' rel='stylesheet' type='text/css'>
5
- %body
6
- .header.center
7
- %h1
8
- %span.logo><
9
- \#in
10
- %span.logo.green><
11
- q
12
- %span.logo><
13
- lude
14
- %span.subtitle
15
- The Qt library archive
1
+ %p
2
+ This page is about how to use Inqlude as a user, a developer using Qt
3
+ based libraries in her projects.
4
+ %p
5
+ First you can just use the web site. Find the information about libraries
6
+ here, and get the libraries manually with the provided links. This works,
7
+ but there is a more convenient way.
8
+ %p
9
+ You can also use the command line client. This client makes it easy to get
10
+ the libraries you need with just a few commands, without having to know
11
+ URLs, or how libraries are packages.
12
+ %p
13
+ First you need to get the command line client. It's available as a Ruby
14
+ gem, so when you have rubygems installed you can simply do a
15
+ .code
16
+ sudo gem install inqlude
17
+ (For instructions how to get rubygems, see
18
+ = link_to( "rubygems.org", "http://rubygems.org" ) + ")."
19
+ %p
20
+ Once you have the client, you can get help about the available commands
21
+ with
22
+ .code
23
+ inqlude
24
+ get a list of available libraries with
25
+ .code
26
+ inqlude list -r
16
27
 
17
- .menu.center
18
- %span.menu_items
19
- = link_to "How to get libraries", "get"
20
- |
21
- = link_to "How to contribute", "contribute"
22
- |
23
- = link_to "About", "about"
28
+ install a library with
29
+ .code
30
+ inqlude install <library_name>
24
31
 
25
- .content.center
26
- %p
27
- This page is about how to use Inqlude as a user, a developer using Qt
28
- based libraries in her projects.
29
- %p
30
- First you can just use the web site. Find the information about libraries
31
- here, and get the libraries manually with the provided links. This works,
32
- but there is a more convenient way.
33
- %p
34
- You can also use the command line client. This client makes it easy to get
35
- the libraries you need with just a few commands, without having to know
36
- URLs, or how libraries are packages.
37
- %p
38
- First you need to get the command line client. It's available as a Ruby
39
- gem, so when you have rubygems installed you can simply do a
40
- .code
41
- sudo gem install inqlude
42
- (For instructions how to get rubygems, see
43
- = link_to( "rubygems.org", "http://rubygems.org" ) + ")."
44
- %p
45
- Once you have the client, you can get help about the available commands
46
- with
47
- .code
48
- inqlude
49
- get a list of available libraries with
50
- .code
51
- inqlude list -r
52
-
53
- install a library with
54
- .code
55
- inqlude install <library_name>
56
-
57
- and get a list of installed libraries with
58
- .code
59
- inqlude list
60
- %p
61
- The command line client uses your native package management system. In
62
- case there is no meta data available for your system, the client falls
63
- back to handling sources. Please consider helping to get your system
64
- supported by contributing meta data or implementing a backend for your
65
- system. See the
66
- = link_to "instructions how to contribute", "contribute"
67
- for more details.
32
+ and get a list of installed libraries with
33
+ .code
34
+ inqlude list
35
+ %p
36
+ The command line client uses your native package management system. In
37
+ case there is no meta data available for your system, the client falls
38
+ back to handling sources. Please consider helping to get your system
39
+ supported by contributing meta data or implementing a backend for your
40
+ system. See the
41
+ = link_to "instructions how to contribute", "contribute"
42
+ for more details.
data/view/index.html.haml CHANGED
@@ -1,32 +1,7 @@
1
- %head
2
- %link{ :rel => "stylesheet", :type => "text/css",
3
- :href => "public/inqlude.css" }
4
- <link href='http://fonts.googleapis.com/css?family=Droid+Sans' rel='stylesheet' type='text/css'>
5
- %body
6
- .header.center
7
- %h1
8
- %span.logo><
9
- \#in
10
- %span.logo.green><
11
- q
12
- %span.logo><
13
- lude
14
- %span.subtitle
15
- The Qt library archive
16
-
17
- .menu.center
18
- %span.menu_items
19
- = link_to "How to get libraries", "get"
20
- |
21
- = link_to "How to contribute", "contribute"
22
- |
23
- = link_to "About", "about"
24
-
25
- .content.center
26
- %table
27
- - manifests.each do |manifest|
28
- %tr
29
- %td.first
30
- = link_to_manifest manifest["name"]
31
- %td.last
32
- = manifest["summary"]
1
+ %table
2
+ - manifests.each do |manifest|
3
+ %tr
4
+ %td.first
5
+ = link_to_manifest manifest["name"]
6
+ %td.last
7
+ = manifest["summary"]
@@ -0,0 +1,35 @@
1
+ %head
2
+ = style_sheet
3
+ <link href='http://fonts.googleapis.com/css?family=Droid+Sans' rel='stylesheet' type='text/css'>
4
+ %body
5
+ .header.center
6
+ %h1
7
+ %span.logo><
8
+ \#in
9
+ %span.logo.green><
10
+ q
11
+ %span.logo><
12
+ lude
13
+ %span.subtitle
14
+ The Qt library archive
15
+
16
+ .menu.center
17
+ %span.menu_items
18
+ = link_to "Home", "index"
19
+ |
20
+ = link_to "How to get libraries", "get"
21
+ |
22
+ = link_to "How to contribute", "contribute"
23
+ |
24
+ = link_to "About", "about"
25
+
26
+ .content.center
27
+ = yank
28
+
29
+ %hr
30
+
31
+ %span.footer
32
+ %em
33
+ Last updated on #{Date.today}
34
+
35
+ %br{ :clear => "all" }
@@ -1,59 +1,34 @@
1
- %head
2
- %link{ :rel => "stylesheet", :type => "text/css",
3
- :href => "../public/inqlude.css" }
4
-
5
- %body
6
- .header.center
7
- %h1
8
- %span.logo><
9
- \#in
10
- %span.logo.green><
11
- q
12
- %span.logo><
13
- lude
14
- %span.subtitle
15
- The Qt library archive
16
-
17
- .menu.center
18
- %span.menu_items
19
- = link_to "How to get libraries", "get"
20
- |
21
- = link_to "How to contribute", "contribute"
22
- |
23
- = link_to "About", "about"
24
-
25
- .content.center
26
- %h2
27
- = m "name"
28
-
29
- %p
30
- %em
31
- Version
32
- = m "version"
33
-
34
- %p
35
- = m "summary"
36
-
37
- %p
38
- = m "description"
39
-
40
- %p
41
- = link m( "homepage" )
42
-
43
- - if disqus_enabled?
44
- %hr
45
-
46
- #disqus_thread
47
-
48
- :javascript
49
- var disqus_shortname = 'inqlude';
50
-
51
- var disqus_identifier = '#{m "name"}';
52
- var disqus_url = 'http://inqlude.org/libraries/#{m "name"}.html';
53
-
54
- /* * * DON'T EDIT BELOW THIS LINE * * */
55
- (function() {
56
- var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
57
- dsq.src = 'http://' + disqus_shortname + '.disqus.com/embed.js';
58
- (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
59
- })();
1
+ %h2
2
+ = m "name"
3
+
4
+ %p
5
+ %em
6
+ Version
7
+ = m "version"
8
+
9
+ %p
10
+ = m "summary"
11
+
12
+ %p
13
+ = m "description"
14
+
15
+ %p
16
+ = link m( "homepage" )
17
+
18
+ - if disqus_enabled?
19
+ %hr
20
+
21
+ #disqus_thread
22
+
23
+ :javascript
24
+ var disqus_shortname = 'inqlude';
25
+
26
+ var disqus_identifier = '#{m "name"}';
27
+ var disqus_url = 'http://inqlude.org/libraries/#{m "name"}.html';
28
+
29
+ /* * * DON'T EDIT BELOW THIS LINE * * */
30
+ (function() {
31
+ var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
32
+ dsq.src = 'http://' + disqus_shortname + '.disqus.com/embed.js';
33
+ (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
34
+ })();
@@ -77,3 +77,7 @@ td {
77
77
  vertical-align: top;
78
78
  padding-left: 16px;
79
79
  }
80
+
81
+ .footer {
82
+ float: right;
83
+ }
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: inqlude
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 21
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 4
10
- version: 0.0.4
9
+ - 5
10
+ version: 0.0.5
11
11
  platform: ruby
12
12
  authors:
13
13
  - Cornelius Schumacher
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-06-14 00:00:00 +02:00
18
+ date: 2011-09-27 00:00:00 +02:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -98,6 +98,8 @@ files:
98
98
  - Rakefile
99
99
  - TODO
100
100
  - bin/inqlude
101
+ - data/manifest.patch
102
+ - examples/qjson.manifest
101
103
  - inqlude.gemspec
102
104
  - lib/cli.rb
103
105
  - lib/distro.rb
@@ -115,6 +117,7 @@ files:
115
117
  - view/contribute.html.haml
116
118
  - view/get.html.haml
117
119
  - view/index.html.haml
120
+ - view/layout.html.haml
118
121
  - view/library.html.haml
119
122
  - view/public/inqlude.css
120
123
  has_rdoc: true