radiant-library-extension 2.0.1 → 2.0.3
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.
- data/VERSION +1 -1
- data/lib/library/library_tags.rb +6 -16
- data/library_extension.rb +2 -1
- data/pkg/radiant-library-extension-2.0.1.gem +0 -0
- data/pkg/radiant-library-extension-2.0.2.gem +0 -0
- data/public/images/library/bigframe.png +0 -0
- data/public/images/library/close.png +0 -0
- data/public/images/library/detag.png +0 -0
- data/public/images/library/frame1.png +0 -0
- data/public/images/library/frame2.png +0 -0
- data/public/images/library/shadowblock.png +0 -0
- data/public/images/library/smallframe.png +0 -0
- data/public/images/library/smallframe2.png +0 -0
- data/public/images/library/smallframe3.png +0 -0
- data/public/images/library/thumbframe.png +0 -0
- data/radiant-library-extension.gemspec +14 -2
- metadata +16 -4
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.0.
|
1
|
+
2.0.3
|
data/lib/library/library_tags.rb
CHANGED
@@ -53,43 +53,33 @@ module Library
|
|
53
53
|
tag.render('tags:cloud', tag.attr.dup)
|
54
54
|
end
|
55
55
|
|
56
|
-
|
57
56
|
desc %{
|
58
57
|
Expands if there are is more than one tag to show.
|
59
|
-
(If there is only one tag coincident with the present set then it offers no reduction).
|
60
58
|
|
61
59
|
*Usage:*
|
62
60
|
<pre><code>
|
63
61
|
<r:library:if_tags>
|
64
62
|
Displaying items tagged with all of <r:requested_tags />
|
65
|
-
<r:library:
|
63
|
+
<r:library:if_tags>
|
66
64
|
</code></pre>
|
67
65
|
}
|
68
|
-
tag "library:
|
66
|
+
tag "library:if_tags" do |tag|
|
69
67
|
tag.locals.tags = _get_coincident_tags(tag)
|
70
68
|
tag.expand if tag.locals.tags.length > 1
|
71
69
|
end
|
72
70
|
desc %{
|
73
|
-
Expands if
|
74
|
-
(If there is only one tag coincident with the present set then it offers no reduction, so we don't show it).
|
71
|
+
Expands if are is one or no tag to show.
|
75
72
|
|
76
73
|
*Usage:*
|
77
74
|
<pre><code>
|
78
|
-
<r:library:
|
75
|
+
<r:library:unless_tags>That's your lot.</r:library:unless_tags>
|
79
76
|
</code></pre>
|
80
77
|
}
|
81
|
-
tag "library:
|
78
|
+
tag "library:unless_tags" do |tag|
|
82
79
|
tag.locals.tags = _get_coincident_tags(tag)
|
83
80
|
tag.expand if tag.locals.tags.length > 1
|
84
81
|
end
|
85
|
-
|
86
|
-
desc %{
|
87
|
-
Expands if there are is one or no coincident tags to show.
|
88
|
-
}
|
89
|
-
tag "library:unless_tags" do |tag|
|
90
|
-
tag.expand unless _get_coincident_tags(tag).length > 1
|
91
|
-
end
|
92
|
-
|
82
|
+
|
93
83
|
desc %{
|
94
84
|
Displays a list of the tags requested by the user.
|
95
85
|
To offer links that remove the tag from the current set, these will both work:
|
data/library_extension.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
require_dependency 'application_controller'
|
2
2
|
|
3
3
|
class LibraryExtension < Radiant::Extension
|
4
|
-
version "2.0.
|
4
|
+
version "2.0.3"
|
5
5
|
description "Combines paperclipped and taggable to create a general purpose faceted library"
|
6
6
|
url "http://github.com/spanner/radiant-library-extension"
|
7
7
|
|
@@ -11,6 +11,7 @@ class LibraryExtension < Radiant::Extension
|
|
11
11
|
Tag.send :include, Library::LibraryTag # adds assets and asset-type methods to Tag
|
12
12
|
LibraryPage # page type that reads tags/from/url and prepares paginated lists of matching pages and assets
|
13
13
|
SiteController.send :include, Library::SiteController # intervene to catch tag[]= parameters too
|
14
|
+
Page.send :include, Library::LibraryTags # defines the main r:library:* tags, mostly for facet-handling
|
14
15
|
Page.send :include, Library::MoreAssetTags # defines a few more r:assets:* radius tags
|
15
16
|
Page.send :include, Library::MoreTagTags # defines a few more r:tag:* radius tags
|
16
17
|
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{radiant-library-extension}
|
8
|
-
s.version = "2.0.
|
8
|
+
s.version = "2.0.3"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["spanner"]
|
12
|
-
s.date = %q{2010-
|
12
|
+
s.date = %q{2010-10-04}
|
13
13
|
s.description = %q{Combines paperclipped and taggable to create a general purpose faceted library}
|
14
14
|
s.email = %q{will@spanner.org}
|
15
15
|
s.extra_rdoc_files = [
|
@@ -37,6 +37,18 @@ Gem::Specification.new do |s|
|
|
37
37
|
"lib/tasks/library_extension_tasks.rake",
|
38
38
|
"library_extension.rb",
|
39
39
|
"pkg/radiant-library-extension-2.0.0.gem",
|
40
|
+
"pkg/radiant-library-extension-2.0.1.gem",
|
41
|
+
"pkg/radiant-library-extension-2.0.2.gem",
|
42
|
+
"public/images/library/bigframe.png",
|
43
|
+
"public/images/library/close.png",
|
44
|
+
"public/images/library/detag.png",
|
45
|
+
"public/images/library/frame1.png",
|
46
|
+
"public/images/library/frame2.png",
|
47
|
+
"public/images/library/shadowblock.png",
|
48
|
+
"public/images/library/smallframe.png",
|
49
|
+
"public/images/library/smallframe2.png",
|
50
|
+
"public/images/library/smallframe3.png",
|
51
|
+
"public/images/library/thumbframe.png",
|
40
52
|
"radiant-library-extension.gemspec",
|
41
53
|
"spec/controllers/library_site_controller_spec.rb",
|
42
54
|
"spec/datasets/library_pages_dataset.rb",
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: radiant-library-extension
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 9
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 2
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 2.0.
|
9
|
+
- 3
|
10
|
+
version: 2.0.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- spanner
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-
|
18
|
+
date: 2010-10-04 00:00:00 +01:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -80,6 +80,18 @@ files:
|
|
80
80
|
- lib/tasks/library_extension_tasks.rake
|
81
81
|
- library_extension.rb
|
82
82
|
- pkg/radiant-library-extension-2.0.0.gem
|
83
|
+
- pkg/radiant-library-extension-2.0.1.gem
|
84
|
+
- pkg/radiant-library-extension-2.0.2.gem
|
85
|
+
- public/images/library/bigframe.png
|
86
|
+
- public/images/library/close.png
|
87
|
+
- public/images/library/detag.png
|
88
|
+
- public/images/library/frame1.png
|
89
|
+
- public/images/library/frame2.png
|
90
|
+
- public/images/library/shadowblock.png
|
91
|
+
- public/images/library/smallframe.png
|
92
|
+
- public/images/library/smallframe2.png
|
93
|
+
- public/images/library/smallframe3.png
|
94
|
+
- public/images/library/thumbframe.png
|
83
95
|
- radiant-library-extension.gemspec
|
84
96
|
- spec/controllers/library_site_controller_spec.rb
|
85
97
|
- spec/datasets/library_pages_dataset.rb
|