ontopia-tldr 0.0.4-java → 0.1.0-java

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f25716bfe89707993d1498989312a968e04b38cd
4
- data.tar.gz: c74e1bc02d3e370aa88394258e9ccf43c420a4a8
3
+ metadata.gz: 67b761ffceb044f08ac02b2183e169b32b3f1722
4
+ data.tar.gz: b5e4fb9456b4c90d995a43c0de4f2d7086e50832
5
5
  SHA512:
6
- metadata.gz: 16d540e6f6a34e3fc57085507ad11ff3cf664502b35f3b1e85032427dd0b5cc91abad9099142c26826441d8f344ff51abbdf07300d89414105cf5ccf5a10eed5
7
- data.tar.gz: 5cf994d53a391e326c034805b620af60a474c0b048c11254859650f95977b97b23138873931d5f1b69b6cf8401afaf8d6b33cc02179cdcc736992817743c4b91
6
+ metadata.gz: 2ee09340b8d60d0dcba85da7cc5601db487c18cab47df2795972f0d657763dd4df7f0d71587234c2f2a73f3efaf2d68fb5aba737b52dd9b4c432043f951990b9
7
+ data.tar.gz: f56a26befe0b84b6866424360f82ce359ec76ac6b92660ed5705d4883a964c1e96707b73e062a326394328e0bf232c2cc2aed205c011d0cfc1acb7f8c483de11
data/ChangeLog CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  = Revision history for ontopia-tldr
4
4
 
5
+ == 0.1.0 [2015-10-02]
6
+
7
+ * Minor refactoring.
8
+
5
9
  == 0.0.4 [2014-04-15]
6
10
 
7
11
  * Internal refactoring.
data/README CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  == VERSION
4
4
 
5
- This documentation refers to ontopia-tldr version 0.0.4
5
+ This documentation refers to ontopia-tldr version 0.1.0
6
6
 
7
7
 
8
8
  == DESCRIPTION
@@ -23,7 +23,7 @@ own <tt>config.ru</tt> file; e.g. (see Ontopia::TLDR for available options):
23
23
 
24
24
  require 'ontopia/tldr'
25
25
 
26
- Ontopia::TLDR.set(
26
+ run Ontopia::TLDR.set(
27
27
  dbm_file: File.expand_path('../tldr.dbm', __FILE__),
28
28
  xtm_file: File.expand_path('../tldr.xtm', __FILE__),
29
29
 
@@ -33,8 +33,6 @@ own <tt>config.ru</tt> file; e.g. (see Ontopia::TLDR for available options):
33
33
  title: 'YOUR TITLE'
34
34
  )
35
35
 
36
- run Ontopia::TLDR
37
-
38
36
  Assuming the following directory layout:
39
37
 
40
38
  /srv/tldr
@@ -77,16 +75,18 @@ Then put the following snippet in Apache's VirtualHost configuration:
77
75
  == SUPPORTED PLATFORMS
78
76
 
79
77
  Ontopia::TLDR requires JRuby[http://jruby.org]. It has been tested with jruby
80
- 1.7.4 (1.9.3p392) on OpenJDK 64-Bit Server VM 1.6.0_27-b27 [linux-amd64].
78
+ 1.7.4 (1.9.3p392) on OpenJDK 64-Bit Server VM 1.6.0_27-b27 [linux-amd64] and
79
+ jruby 9.0.0.0 (2.2.2) on OpenJDK 64-Bit Server VM 24.79-b02 1.7.0_79-b14
80
+ [linux-amd64].
81
81
 
82
82
 
83
83
  == LINKS
84
84
 
85
- Documentation:: https://blackwinter.github.io/ontopia-tldr/
86
- Source code:: https://github.com/blackwinter/ontopia-tldr
87
- RubyGem:: https://rubygems.org/gems/ontopia-tldr
88
85
  Ontopia:: http://ontopia.net/
89
86
  Demo:: http://ixtrieve.fh-koeln.de/ghn
87
+ Documentation:: https://blackwinter.github.com/ontopia-tldr
88
+ Source code:: https://github.com/blackwinter/ontopia-tldr
89
+ RubyGem:: https://rubygems.org/gems/ontopia-tldr
90
90
 
91
91
 
92
92
  == AUTHORS
@@ -96,7 +96,7 @@ Demo:: http://ixtrieve.fh-koeln.de/ghn
96
96
 
97
97
  == LICENSE AND COPYRIGHT
98
98
 
99
- Copyright (C) 2013-2014 Jens Wille
99
+ Copyright (C) 2013-2015 Jens Wille
100
100
 
101
101
  ontopia-tldr is free software: you can redistribute it and/or modify it
102
102
  under the terms of the GNU Affero General Public License as published by
data/Rakefile CHANGED
@@ -4,17 +4,21 @@ begin
4
4
  require 'hen'
5
5
 
6
6
  Hen.lay! {{
7
- :gem => {
8
- :name => %q{ontopia-tldr},
9
- :version => Ontopia::TLDR::VERSION,
10
- :summary => %q{Tolog Document Retrieval with Ontopia.},
11
- :author => %q{Jens Wille},
12
- :email => %q{jens.wille@gmail.com},
13
- :license => %q{AGPL-3.0},
14
- :homepage => :blackwinter,
15
- :platform => 'java',
16
- :dependencies => %w[midos ontopia-topicmaps sinatra-bells],
17
- :extra_files => FileList['*.sample', 'lib/ontopia/tldr/{public,views}/*'].to_a
7
+ gem: {
8
+ name: %q{ontopia-tldr},
9
+ version: Ontopia::TLDR::VERSION,
10
+ summary: %q{Tolog Document Retrieval with Ontopia.},
11
+ author: %q{Jens Wille},
12
+ email: %q{jens.wille@gmail.com},
13
+ license: %q{AGPL-3.0},
14
+ homepage: :blackwinter,
15
+ platform: 'java',
16
+ extra_files: FileList['*.sample', 'lib/ontopia/tldr/{public,views}/*'].to_a,
17
+ dependencies: {
18
+ 'midos' => '~> 0.2',
19
+ 'ontopia-topicmaps' => ['~> 0.0', '>= 0.0.4'],
20
+ 'sinatra-bells' => '~> 0.1'
21
+ }
18
22
  }
19
23
  }}
20
24
  rescue LoadError => err
data/config.ru.sample CHANGED
@@ -1,6 +1,6 @@
1
1
  require 'ontopia/tldr'
2
2
 
3
- Ontopia::TLDR.set(
3
+ run Ontopia::TLDR.set(
4
4
  #xtm_file: '...',
5
5
  #dbm_file: '...',
6
6
 
@@ -9,5 +9,3 @@ Ontopia::TLDR.set(
9
9
 
10
10
  #title: '...'
11
11
  )
12
-
13
- run Ontopia::TLDR
@@ -3,7 +3,7 @@
3
3
  # #
4
4
  # ontopia-tldr -- Tolog Document Retrieval with Ontopia. #
5
5
  # #
6
- # Copyright (C) 2013-2014 Jens Wille #
6
+ # Copyright (C) 2013-2015 Jens Wille #
7
7
  # #
8
8
  # ontopia-tldr is free software: you can redistribute it and/or modify it #
9
9
  # under the terms of the GNU Affero General Public License as published by #
@@ -27,8 +27,8 @@ module Ontopia
27
27
  module Version
28
28
 
29
29
  MAJOR = 0
30
- MINOR = 0
31
- TINY = 4
30
+ MINOR = 1
31
+ TINY = 0
32
32
 
33
33
  class << self
34
34
 
@@ -12,9 +12,9 @@
12
12
  <h1><%=h title %></h1>
13
13
 
14
14
  <div id="header">
15
- <%= _a 'Topics', href: url('/topics') %> (<%= _a 'XTM', href: url('/xtm') %>) |
16
- <%= _a 'Documents', href: url('/documents') %> (<%= _a 'DBM', href: url('/dbm') %>) |
17
- <%= _a 'New query', href: url('/') %>
15
+ <%= a_ 'Topics', href: url('/topics') %> (<%= a_ 'XTM', href: url('/xtm') %>) |
16
+ <%= a_ 'Documents', href: url('/documents') %> (<%= a_ 'DBM', href: url('/dbm') %>) |
17
+ <%= a_ 'New query', href: url('/') %>
18
18
  <% if @filter && !instance_variable_get("@#{@filter}").empty? %>
19
19
  | <form><input onkeyup="filter(this.value, '<%=h @filter %>');" placeholder="Filter <%=h @filter %>..." /></form>
20
20
  <% end %>
@@ -31,7 +31,7 @@
31
31
  <div id="footer">
32
32
  <em>powered by</em> <a href="http://ontopia.net">Ontopia</a>
33
33
  <em>and</em> <a href="http://sinatrarb.com">Sinatra</a>
34
- -- <a href="http://blackwinter.github.com/ontopia-tldr">ontopia-tldr</a>
34
+ <a href="http://blackwinter.github.com/ontopia-tldr">ontopia-tldr</a>
35
35
  <strong>v<%= Ontopia::TLDR::VERSION %></strong>
36
36
  </div>
37
37
  </body>
data/lib/ontopia/tldr.rb CHANGED
@@ -5,7 +5,7 @@
5
5
  # #
6
6
  # ontopia-tldr -- Tolog Document Retrieval with Ontopia. #
7
7
  # #
8
- # Copyright (C) 2013-2014 Jens Wille #
8
+ # Copyright (C) 2013-2015 Jens Wille #
9
9
  # #
10
10
  # ontopia-tldr is free software: you can redistribute it and/or modify it #
11
11
  # under the terms of the GNU Affero General Public License as published by #
@@ -272,25 +272,25 @@ select $TYPE, $TOPIC from
272
272
  end
273
273
 
274
274
  def render_topics(topics = @topics)
275
- _ul(topics.sort, id: :topics) { |topic|
276
- _li(link_to_topic(topic),
275
+ ul_(topics.sort, id: :topics) { |topic|
276
+ li_(link_to_topic(topic),
277
277
  ' (', settings.topic_index[topic].size, ')',
278
278
  'data-index' => topic_to_s(topic).downcase)
279
279
  }
280
280
  end
281
281
 
282
282
  def render_documents(documents = @documents)
283
- _ul(documents.sort_by { |k,| k }, id: :documents) { |id, doc|
284
- _li(link_to_document(id, doc),
283
+ ul_(documents.sort_by { |k,| k }, id: :documents) { |id, doc|
284
+ li_(link_to_document(id, doc),
285
285
  'data-index' => doc_to_s(id, doc).downcase)
286
286
  }
287
287
  end
288
288
 
289
289
  def render_topics_hash(hash)
290
- _ul(hash.map { |k, v| [topic_to_s(k), k, v] }.sort) { |name, key, value|
291
- _li(link_to_topic(key, name),
290
+ ul_(hash.map { |k, v| [topic_to_s(k), k, v] }.sort) { |name, key, value|
291
+ li_(link_to_topic(key, name),
292
292
  value.is_a?(Hash) ? render_topics_hash(value) :
293
- _ul(value.sort.uniq) { |topic| _li(link_to_topic(topic)) })
293
+ ul_(value.sort.uniq) { |topic| li_(link_to_topic(topic)) })
294
294
  }
295
295
  end
296
296
 
metadata CHANGED
@@ -1,71 +1,83 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ontopia-tldr
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.1.0
5
5
  platform: java
6
6
  authors:
7
7
  - Jens Wille
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-04-15 00:00:00.000000000 Z
11
+ date: 2015-10-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: midos
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '0'
19
+ version: '0.2'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ">="
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '0'
26
+ version: '0.2'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: ontopia-topicmaps
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '0.0'
31
34
  - - ">="
32
35
  - !ruby/object:Gem::Version
33
- version: '0'
36
+ version: 0.0.4
34
37
  type: :runtime
35
38
  prerelease: false
36
39
  version_requirements: !ruby/object:Gem::Requirement
37
40
  requirements:
41
+ - - "~>"
42
+ - !ruby/object:Gem::Version
43
+ version: '0.0'
38
44
  - - ">="
39
45
  - !ruby/object:Gem::Version
40
- version: '0'
46
+ version: 0.0.4
41
47
  - !ruby/object:Gem::Dependency
42
48
  name: sinatra-bells
43
49
  requirement: !ruby/object:Gem::Requirement
44
50
  requirements:
45
- - - ">="
51
+ - - "~>"
46
52
  - !ruby/object:Gem::Version
47
- version: '0'
53
+ version: '0.1'
48
54
  type: :runtime
49
55
  prerelease: false
50
56
  version_requirements: !ruby/object:Gem::Requirement
51
57
  requirements:
52
- - - ">="
58
+ - - "~>"
53
59
  - !ruby/object:Gem::Version
54
- version: '0'
60
+ version: '0.1'
55
61
  - !ruby/object:Gem::Dependency
56
62
  name: hen
57
63
  requirement: !ruby/object:Gem::Requirement
58
64
  requirements:
65
+ - - "~>"
66
+ - !ruby/object:Gem::Version
67
+ version: '0.8'
59
68
  - - ">="
60
69
  - !ruby/object:Gem::Version
61
- version: '0'
70
+ version: 0.8.3
62
71
  type: :development
63
72
  prerelease: false
64
73
  version_requirements: !ruby/object:Gem::Requirement
65
74
  requirements:
75
+ - - "~>"
76
+ - !ruby/object:Gem::Version
77
+ version: '0.8'
66
78
  - - ">="
67
79
  - !ruby/object:Gem::Version
68
- version: '0'
80
+ version: 0.8.3
69
81
  - !ruby/object:Gem::Dependency
70
82
  name: rake
71
83
  requirement: !ruby/object:Gem::Requirement
@@ -111,13 +123,13 @@ licenses:
111
123
  metadata: {}
112
124
  post_install_message: |2+
113
125
 
114
- ontopia-tldr-0.0.4 [2014-04-15]:
126
+ ontopia-tldr-0.1.0 [2015-10-02]:
115
127
 
116
- * Internal refactoring.
128
+ * Minor refactoring.
117
129
 
118
130
  rdoc_options:
119
131
  - "--title"
120
- - ontopia-tldr Application documentation (v0.0.4)
132
+ - ontopia-tldr Application documentation (v0.1.0)
121
133
  - "--charset"
122
134
  - UTF-8
123
135
  - "--line-numbers"
@@ -138,7 +150,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
138
150
  version: '0'
139
151
  requirements: []
140
152
  rubyforge_project:
141
- rubygems_version: 2.2.2
153
+ rubygems_version: 2.4.8
142
154
  signing_key:
143
155
  specification_version: 4
144
156
  summary: Tolog Document Retrieval with Ontopia.