jekyll-tagging 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
data/ChangeLog CHANGED
@@ -1,3 +1,7 @@
1
+ == 0.1.2 [2011-01-31]
2
+
3
+ * Nothing to do when there are no tags.
4
+
1
5
  == 0.1.1 [2010-11-26]
2
6
 
3
7
  * Posts on tag pages are now sorted.
@@ -39,7 +39,7 @@ module Jekyll
39
39
  # [[<TAG>, <CLASS>], ...]
40
40
  def calculate_tag_cloud(site, num = 5)
41
41
  tags = site.tags.map { |tag, posts| [tag, posts.size] }.sort
42
- range = 1..tags.map { |_, size| size }.max
42
+ range = 1..tags.map { |_, size| size }.max unless tags.empty?
43
43
 
44
44
  tags.map { |tag, size| [tag, range.quantile(size, num)] }
45
45
  end
@@ -6,7 +6,7 @@ module Jekyll
6
6
 
7
7
  MAJOR = 0
8
8
  MINOR = 1
9
- TINY = 1
9
+ TINY = 2
10
10
 
11
11
  class << self
12
12
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-tagging
3
3
  version: !ruby/object:Gem::Version
4
- hash: 25
5
- prerelease: false
4
+ hash: 31
5
+ prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 1
10
- version: 0.1.1
9
+ - 2
10
+ version: 0.1.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Arne Eilermann
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2010-11-26 00:00:00 +01:00
19
+ date: 2011-01-31 00:00:00 +01:00
20
20
  default_executable:
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency
@@ -43,26 +43,25 @@ extensions: []
43
43
 
44
44
  extra_rdoc_files:
45
45
  - ChangeLog
46
- - README.rdoc
47
46
  files:
48
47
  - lib/jekyll/tagging/version.rb
49
48
  - lib/jekyll/tagging.rb
50
- - Rakefile
51
- - README.rdoc
52
49
  - ChangeLog
50
+ - README.rdoc
51
+ - Rakefile
53
52
  has_rdoc: true
54
53
  homepage: http://github.com/pattex/jekyll-tagging
55
54
  licenses: []
56
55
 
57
56
  post_install_message:
58
57
  rdoc_options:
59
- - --title
60
- - jekyll-tagging Application documentation
61
58
  - --line-numbers
59
+ - --title
60
+ - jekyll-tagging Application documentation (v0.1.2)
62
61
  - --inline-source
63
- - --all
64
62
  - --charset
65
63
  - UTF-8
64
+ - --all
66
65
  require_paths:
67
66
  - lib
68
67
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -86,7 +85,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
86
85
  requirements: []
87
86
 
88
87
  rubyforge_project:
89
- rubygems_version: 1.3.7
88
+ rubygems_version: 1.4.2
90
89
  signing_key:
91
90
  specification_version: 3
92
91
  summary: Jekyll plugin to automatically generate a tag cloud and tag pages.