liquor 0.9.4 → 0.9.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -13,17 +13,17 @@ module Liquor
13
13
  {% if page.is_current then: %}
14
14
  <span class="disabled previous_page">&#8592; Previous</span>
15
15
  {% else %}
16
- <a href="{{ previous_page_url }}" rel="previous" class="previous_page_page">&#8592; Previous</a>
16
+ <a href="{{ previous_page_path }}" rel="previous" class="previous_page_page">&#8592; Previous</a>
17
17
  {% end if %}
18
18
  {% page: %}
19
19
  {% if page.is_current then: %}
20
20
  <em class="current">{{ page.number }}</em>
21
21
  {% elsif page.is_next then: %}
22
- <a href="{{ page.url }}" rel="next">{{ page.number }}</a>
22
+ <a href="{{ page.path }}" rel="next">{{ page.number }}</a>
23
23
  {% elsif page.is_prev then: %}
24
- <a href="{{ page.url }}" rel="previous">{{ page.number }}</a>
24
+ <a href="{{ page.path }}" rel="previous">{{ page.number }}</a>
25
25
  {% else %}
26
- <a href="{{ page.url }}">3</a>
26
+ <a href="{{ page.path }}">3</a>
27
27
  {% end if %}
28
28
  {% gap: %}
29
29
  <span class="gap">&hellip;</span>
@@ -31,7 +31,7 @@ module Liquor
31
31
  {% if page.is_current then: %}
32
32
  <span class="disabled next_page">Next &#8594;</span>
33
33
  {% else %}
34
- <a href="{{ next_page_url }}" rel="next" class="next_page">Next &#8594;</a></div>
34
+ <a href="{{ next_page_path }}" rel="next" class="next_page">Next &#8594;</a></div>
35
35
  {% end if %}
36
36
  {% end pagination %}
37
37
  =end
@@ -126,7 +126,12 @@ module Liquor
126
126
  raise "Don't know how to generate page path for #{@collection.class}"
127
127
  end
128
128
  end
129
- export :path
129
+
130
+ def number
131
+ @index
132
+ end
133
+
134
+ export :path, :number
130
135
  end
131
136
 
132
137
  class Scope < Liquor::Drop::Scope
@@ -1,3 +1,3 @@
1
1
  module Liquor
2
- VERSION = "0.9.4"
2
+ VERSION = "0.9.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: liquor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.4
4
+ version: 0.9.5
5
+ prerelease:
5
6
  platform: ruby
6
7
  authors:
7
8
  - Peter Zotov
@@ -10,146 +11,166 @@ authors:
10
11
  autorequire:
11
12
  bindir: bin
12
13
  cert_chain: []
13
- date: 2014-03-05 00:00:00.000000000 Z
14
+ date: 2014-03-11 00:00:00.000000000 Z
14
15
  dependencies:
15
16
  - !ruby/object:Gem::Dependency
16
17
  name: rake
17
18
  requirement: !ruby/object:Gem::Requirement
19
+ none: false
18
20
  requirements:
19
- - - ">="
21
+ - - ! '>='
20
22
  - !ruby/object:Gem::Version
21
23
  version: '0'
22
24
  type: :development
23
25
  prerelease: false
24
26
  version_requirements: !ruby/object:Gem::Requirement
27
+ none: false
25
28
  requirements:
26
- - - ">="
29
+ - - ! '>='
27
30
  - !ruby/object:Gem::Version
28
31
  version: '0'
29
32
  - !ruby/object:Gem::Dependency
30
33
  name: racc
31
34
  requirement: !ruby/object:Gem::Requirement
35
+ none: false
32
36
  requirements:
33
- - - ">="
37
+ - - ! '>='
34
38
  - !ruby/object:Gem::Version
35
39
  version: '0'
36
40
  type: :development
37
41
  prerelease: false
38
42
  version_requirements: !ruby/object:Gem::Requirement
43
+ none: false
39
44
  requirements:
40
- - - ">="
45
+ - - ! '>='
41
46
  - !ruby/object:Gem::Version
42
47
  version: '0'
43
48
  - !ruby/object:Gem::Dependency
44
49
  name: kramdown
45
50
  requirement: !ruby/object:Gem::Requirement
51
+ none: false
46
52
  requirements:
47
- - - ">="
53
+ - - ! '>='
48
54
  - !ruby/object:Gem::Version
49
55
  version: '0'
50
56
  type: :development
51
57
  prerelease: false
52
58
  version_requirements: !ruby/object:Gem::Requirement
59
+ none: false
53
60
  requirements:
54
- - - ">="
61
+ - - ! '>='
55
62
  - !ruby/object:Gem::Version
56
63
  version: '0'
57
64
  - !ruby/object:Gem::Dependency
58
65
  name: rspec
59
66
  requirement: !ruby/object:Gem::Requirement
67
+ none: false
60
68
  requirements:
61
- - - ">="
69
+ - - ! '>='
62
70
  - !ruby/object:Gem::Version
63
71
  version: '0'
64
72
  type: :development
65
73
  prerelease: false
66
74
  version_requirements: !ruby/object:Gem::Requirement
75
+ none: false
67
76
  requirements:
68
- - - ">="
77
+ - - ! '>='
69
78
  - !ruby/object:Gem::Version
70
79
  version: '0'
71
80
  - !ruby/object:Gem::Dependency
72
81
  name: simplecov
73
82
  requirement: !ruby/object:Gem::Requirement
83
+ none: false
74
84
  requirements:
75
- - - ">="
85
+ - - ! '>='
76
86
  - !ruby/object:Gem::Version
77
87
  version: '0'
78
88
  type: :development
79
89
  prerelease: false
80
90
  version_requirements: !ruby/object:Gem::Requirement
91
+ none: false
81
92
  requirements:
82
- - - ">="
93
+ - - ! '>='
83
94
  - !ruby/object:Gem::Version
84
95
  version: '0'
85
96
  - !ruby/object:Gem::Dependency
86
97
  name: guard-rspec
87
98
  requirement: !ruby/object:Gem::Requirement
99
+ none: false
88
100
  requirements:
89
- - - ">="
101
+ - - ! '>='
90
102
  - !ruby/object:Gem::Version
91
103
  version: '0'
92
104
  type: :development
93
105
  prerelease: false
94
106
  version_requirements: !ruby/object:Gem::Requirement
107
+ none: false
95
108
  requirements:
96
- - - ">="
109
+ - - ! '>='
97
110
  - !ruby/object:Gem::Version
98
111
  version: '0'
99
112
  - !ruby/object:Gem::Dependency
100
113
  name: rails
101
114
  requirement: !ruby/object:Gem::Requirement
115
+ none: false
102
116
  requirements:
103
- - - ">="
117
+ - - ! '>='
104
118
  - !ruby/object:Gem::Version
105
119
  version: '0'
106
120
  type: :development
107
121
  prerelease: false
108
122
  version_requirements: !ruby/object:Gem::Requirement
123
+ none: false
109
124
  requirements:
110
- - - ">="
125
+ - - ! '>='
111
126
  - !ruby/object:Gem::Version
112
127
  version: '0'
113
128
  - !ruby/object:Gem::Dependency
114
129
  name: nokogiri
115
130
  requirement: !ruby/object:Gem::Requirement
131
+ none: false
116
132
  requirements:
117
- - - ">="
133
+ - - ! '>='
118
134
  - !ruby/object:Gem::Version
119
135
  version: '0'
120
136
  type: :development
121
137
  prerelease: false
122
138
  version_requirements: !ruby/object:Gem::Requirement
139
+ none: false
123
140
  requirements:
124
- - - ">="
141
+ - - ! '>='
125
142
  - !ruby/object:Gem::Version
126
143
  version: '0'
127
144
  - !ruby/object:Gem::Dependency
128
145
  name: htmlentities
129
146
  requirement: !ruby/object:Gem::Requirement
147
+ none: false
130
148
  requirements:
131
- - - ">="
149
+ - - ! '>='
132
150
  - !ruby/object:Gem::Version
133
151
  version: '0'
134
152
  type: :development
135
153
  prerelease: false
136
154
  version_requirements: !ruby/object:Gem::Requirement
155
+ none: false
137
156
  requirements:
138
- - - ">="
157
+ - - ! '>='
139
158
  - !ruby/object:Gem::Version
140
159
  version: '0'
141
160
  - !ruby/object:Gem::Dependency
142
161
  name: sqlite3
143
162
  requirement: !ruby/object:Gem::Requirement
163
+ none: false
144
164
  requirements:
145
- - - ">="
165
+ - - ! '>='
146
166
  - !ruby/object:Gem::Version
147
167
  version: '0'
148
168
  type: :development
149
169
  prerelease: false
150
170
  version_requirements: !ruby/object:Gem::Requirement
171
+ none: false
151
172
  requirements:
152
- - - ">="
173
+ - - ! '>='
153
174
  - !ruby/object:Gem::Version
154
175
  version: '0'
155
176
  description: Liquor is a template system based on well-defined, strongly dynamically
@@ -162,9 +183,9 @@ executables: []
162
183
  extensions: []
163
184
  extra_rdoc_files: []
164
185
  files:
165
- - ".gitignore"
166
- - ".rspec"
167
- - ".travis.yml"
186
+ - .gitignore
187
+ - .rspec
188
+ - .travis.yml
168
189
  - Gemfile
169
190
  - Guardfile
170
191
  - MIT-LICENSE
@@ -221,26 +242,27 @@ files:
221
242
  - spec/tag_spec.rb
222
243
  homepage: http://github.com/evilmartians/liquor
223
244
  licenses: []
224
- metadata: {}
225
245
  post_install_message:
226
246
  rdoc_options: []
227
247
  require_paths:
228
248
  - lib
229
249
  required_ruby_version: !ruby/object:Gem::Requirement
250
+ none: false
230
251
  requirements:
231
- - - ">="
252
+ - - ! '>='
232
253
  - !ruby/object:Gem::Version
233
254
  version: '1.9'
234
255
  required_rubygems_version: !ruby/object:Gem::Requirement
256
+ none: false
235
257
  requirements:
236
- - - ">="
258
+ - - ! '>='
237
259
  - !ruby/object:Gem::Version
238
260
  version: '0'
239
261
  requirements: []
240
262
  rubyforge_project:
241
- rubygems_version: 2.2.2
263
+ rubygems_version: 1.8.23
242
264
  signing_key:
243
- specification_version: 4
265
+ specification_version: 3
244
266
  summary: Liquor is a template system based on well-defined, strongly dynamically typed
245
267
  language which is fun to use and easy to debug.
246
268
  test_files:
checksums.yaml DELETED
@@ -1,7 +0,0 @@
1
- ---
2
- SHA1:
3
- metadata.gz: dacc35e01493e5bc4d0aa69629450accc671d9b4
4
- data.tar.gz: ca5b99b8cf52417a767f499a76725ba459bf85a9
5
- SHA512:
6
- metadata.gz: 78535449b81a601dd6c0699f4f00a471bbada7ab6b0ea68be950a3e14bec33824fe3f9d1f075e57fa517875727c58486214237943463eb9d4c7b802db60756a8
7
- data.tar.gz: 443c4fba66a47056414296c036200d294dd73bfb289f65ebb8db59e3e079e26dc6d2ecbb02a43f1d1385c654321f63a66543518b34e45cf14d1faf4f73fe0143