nanoc-toolbox 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
data/.rvmrc ADDED
@@ -0,0 +1 @@
1
+ rvm use ruby-1.9.2@nanoc-toolbox --create
data/.travis.yml ADDED
@@ -0,0 +1 @@
1
+ rvm: 1.9.2
data/Gemfile.lock CHANGED
@@ -17,6 +17,7 @@ GEM
17
17
  nanoc3 (3.2.3)
18
18
  cri (~> 2.0)
19
19
  nokogiri (1.5.0)
20
+ rake (0.9.2.2)
20
21
  rspec (2.4.0)
21
22
  rspec-core (~> 2.4.0)
22
23
  rspec-expectations (~> 2.4.0)
@@ -32,4 +33,5 @@ PLATFORMS
32
33
  DEPENDENCIES
33
34
  bundler (>= 1.0.0)
34
35
  nanoc-toolbox!
36
+ rake
35
37
  rspec (>= 1.0.0)
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # nanoc-toolbox
2
2
 
3
- !!! THIS LIBRARY IS STILL UNDER DEVELOPMENT !!!
3
+ [![Build Status](https://secure.travis-ci.org/aadlani/nanoc-toolbox.png)](http://travis-ci.org/aadlani/nanoc-toolbox)
4
4
 
5
5
  ## Presentation
6
6
 
@@ -21,8 +21,9 @@ The nanoc-toolbox is a collection of filters and helpers for the static site gen
21
21
  * **HtmlTidy**: Clean up the generated html code with Nokogiri
22
22
  * **JS Minify**: Minifies the JS files using JSMin
23
23
 
24
- ## Requirements
24
+ ## Requirements and compatibility
25
25
 
26
+ * **ruby >= 1.8.7**: This gem has been tested against ruby 1.8.7 and 1.9.2
26
27
  * **nanoc3**: It requires obviously the Nanoc gem
27
28
  * **Nokogiri**: For the HTML Tidy Filter
28
29
  * **jsmin**: For the JS Minify Filter
data/Rakefile CHANGED
@@ -1,2 +1,12 @@
1
1
  require 'bundler'
2
+ require 'rubygems'
3
+ require 'rspec/core/rake_task'
4
+ require "rake"
5
+
2
6
  Bundler::GemHelper.install_tasks
7
+
8
+ RSpec::Core::RakeTask.new(:spec) do |t|
9
+ t.pattern = "./spec/**/*_spec.rb"
10
+ end
11
+
12
+ task :default => :spec
@@ -104,7 +104,7 @@ module Nanoc::Toolbox::Helpers
104
104
  return '' if options.empty?
105
105
 
106
106
  # Build the parameters string
107
- '?' + options.sort.map { |e| e = e.join('=') if e.size == 2}.join('&')
107
+ '?' + options.sort{|a,b| a.to_s <=> b.to_s}.map{ |e| e = e.join('=') if e.size == 2}.join('&')
108
108
  end
109
109
 
110
110
  private
@@ -4,7 +4,7 @@ module Nanoc
4
4
  module Version
5
5
  MAJOR = 0
6
6
  MINOR = 0
7
- PATCH = 6
7
+ PATCH = 7
8
8
  BUILD = nil
9
9
 
10
10
  STRING = [MAJOR, MINOR, PATCH, BUILD].compact.join(".")
@@ -20,6 +20,7 @@ Gem::Specification.new do |s|
20
20
 
21
21
  s.add_development_dependency "bundler", ">= 1.0.0"
22
22
  s.add_development_dependency "rspec", ">= 1.0.0"
23
+ s.add_development_dependency "rake"
23
24
 
24
25
  s.files = `git ls-files`.split("\n")
25
26
  s.executables = `git ls-files`.split("\n").map{|f| f =~ /^bin\/(.*)/ ? $1 : nil}.compact
metadata CHANGED
@@ -1,8 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nanoc-toolbox
3
3
  version: !ruby/object:Gem::Version
4
+ hash: 17
4
5
  prerelease:
5
- version: 0.0.6
6
+ segments:
7
+ - 0
8
+ - 0
9
+ - 7
10
+ version: 0.0.7
6
11
  platform: ruby
7
12
  authors:
8
13
  - Anouar ADLANI
@@ -10,7 +15,8 @@ autorequire:
10
15
  bindir: bin
11
16
  cert_chain: []
12
17
 
13
- date: 2011-11-13 00:00:00 Z
18
+ date: 2011-11-14 00:00:00 +01:00
19
+ default_executable:
14
20
  dependencies:
15
21
  - !ruby/object:Gem::Dependency
16
22
  name: nanoc
@@ -20,6 +26,11 @@ dependencies:
20
26
  requirements:
21
27
  - - ">="
22
28
  - !ruby/object:Gem::Version
29
+ hash: 15
30
+ segments:
31
+ - 3
32
+ - 1
33
+ - 6
23
34
  version: 3.1.6
24
35
  type: :runtime
25
36
  version_requirements: *id001
@@ -31,6 +42,11 @@ dependencies:
31
42
  requirements:
32
43
  - - ">="
33
44
  - !ruby/object:Gem::Version
45
+ hash: 15
46
+ segments:
47
+ - 1
48
+ - 4
49
+ - 4
34
50
  version: 1.4.4
35
51
  type: :runtime
36
52
  version_requirements: *id002
@@ -42,6 +58,11 @@ dependencies:
42
58
  requirements:
43
59
  - - ">="
44
60
  - !ruby/object:Gem::Version
61
+ hash: 21
62
+ segments:
63
+ - 1
64
+ - 0
65
+ - 1
45
66
  version: 1.0.1
46
67
  type: :runtime
47
68
  version_requirements: *id003
@@ -53,6 +74,11 @@ dependencies:
53
74
  requirements:
54
75
  - - ">="
55
76
  - !ruby/object:Gem::Version
77
+ hash: 23
78
+ segments:
79
+ - 1
80
+ - 0
81
+ - 0
56
82
  version: 1.0.0
57
83
  type: :development
58
84
  version_requirements: *id004
@@ -64,9 +90,28 @@ dependencies:
64
90
  requirements:
65
91
  - - ">="
66
92
  - !ruby/object:Gem::Version
93
+ hash: 23
94
+ segments:
95
+ - 1
96
+ - 0
97
+ - 0
67
98
  version: 1.0.0
68
99
  type: :development
69
100
  version_requirements: *id005
101
+ - !ruby/object:Gem::Dependency
102
+ name: rake
103
+ prerelease: false
104
+ requirement: &id006 !ruby/object:Gem::Requirement
105
+ none: false
106
+ requirements:
107
+ - - ">="
108
+ - !ruby/object:Gem::Version
109
+ hash: 3
110
+ segments:
111
+ - 0
112
+ version: "0"
113
+ type: :development
114
+ version_requirements: *id006
70
115
  description: The nanoc-toolbox is a collection of filters and helpers for the static site generator tool nanoc
71
116
  email:
72
117
  - anouar@adlani.com
@@ -78,6 +123,8 @@ extra_rdoc_files: []
78
123
 
79
124
  files:
80
125
  - .gitignore
126
+ - .rvmrc
127
+ - .travis.yml
81
128
  - .yardopts
82
129
  - CHANGELOG.md
83
130
  - Gemfile
@@ -105,6 +152,7 @@ files:
105
152
  - spec/helpers/html_tag_spec.rb
106
153
  - spec/helpers/navigation_spec.rb
107
154
  - spec/spec_helper.rb
155
+ has_rdoc: true
108
156
  homepage: http://aadlani.github.com/nanoc-toolbox/
109
157
  licenses: []
110
158
 
@@ -119,17 +167,25 @@ required_ruby_version: !ruby/object:Gem::Requirement
119
167
  requirements:
120
168
  - - ">="
121
169
  - !ruby/object:Gem::Version
170
+ hash: 3
171
+ segments:
172
+ - 0
122
173
  version: "0"
123
174
  required_rubygems_version: !ruby/object:Gem::Requirement
124
175
  none: false
125
176
  requirements:
126
177
  - - ">="
127
178
  - !ruby/object:Gem::Version
179
+ hash: 23
180
+ segments:
181
+ - 1
182
+ - 3
183
+ - 6
128
184
  version: 1.3.6
129
185
  requirements: []
130
186
 
131
187
  rubyforge_project:
132
- rubygems_version: 1.8.11
188
+ rubygems_version: 1.4.2
133
189
  signing_key:
134
190
  specification_version: 3
135
191
  summary: A collection of helper and filters for nanoc