radiant-taggable-extension 1.2.2 → 1.2.3
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +1 -0
- data/VERSION +1 -1
- data/app/controllers/admin/tags_controller.rb +2 -2
- data/lib/taggable_tags.rb +1 -1
- data/radiant-taggable-extension.gemspec +3 -2
- data/taggable_extension.rb +1 -1
- metadata +4 -3
data/.gitignore
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
pkg/*
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.2.
|
1
|
+
1.2.3
|
@@ -1,7 +1,7 @@
|
|
1
1
|
class Admin::TagsController < Admin::ResourceController
|
2
2
|
|
3
3
|
def index
|
4
|
-
@tags = Tag.with_count
|
4
|
+
@tags = Tag.with_count.sort
|
5
5
|
response_for :plural
|
6
6
|
end
|
7
7
|
|
@@ -10,7 +10,7 @@ class Admin::TagsController < Admin::ResourceController
|
|
10
10
|
end
|
11
11
|
|
12
12
|
def cloud
|
13
|
-
@tags = Tag.sized(Tag.with_count)
|
13
|
+
@tags = Tag.sized(Tag.with_count).sort
|
14
14
|
response_for :plural
|
15
15
|
end
|
16
16
|
|
data/lib/taggable_tags.rb
CHANGED
@@ -86,7 +86,7 @@ module TaggableTags
|
|
86
86
|
tag.locals.tags = Tag.for_cloud(tag.locals.tags).sort
|
87
87
|
result = []
|
88
88
|
result << %{<div class="cloud">}
|
89
|
-
tag.locals.tags.each do |t|
|
89
|
+
tag.locals.tags.sort.each do |t|
|
90
90
|
tag.locals.tag = t
|
91
91
|
result << tag.render("tag:link", options.merge('style' => "font-size: #{t.cloud_size.to_f * 2.5}em;"))
|
92
92
|
end
|
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{radiant-taggable-extension}
|
8
|
-
s.version = "1.2.
|
8
|
+
s.version = "1.2.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"]
|
@@ -16,7 +16,8 @@ Gem::Specification.new do |s|
|
|
16
16
|
"README.md"
|
17
17
|
]
|
18
18
|
s.files = [
|
19
|
-
"
|
19
|
+
".gitignore",
|
20
|
+
"README.md",
|
20
21
|
"Rakefile",
|
21
22
|
"VERSION",
|
22
23
|
"app/controllers/admin/taggings_controller.rb",
|
data/taggable_extension.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: radiant-taggable-extension
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 25
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 1.2.
|
9
|
+
- 3
|
10
|
+
version: 1.2.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- spanner
|
@@ -43,6 +43,7 @@ extensions: []
|
|
43
43
|
extra_rdoc_files:
|
44
44
|
- README.md
|
45
45
|
files:
|
46
|
+
- .gitignore
|
46
47
|
- README.md
|
47
48
|
- Rakefile
|
48
49
|
- VERSION
|