utopia 0.9.45 → 0.9.46

Sign up to get free protection for your applications and to get access to all the features.
@@ -245,6 +245,7 @@ class Utopia::Tags::Gallery
245
245
  metadata.default = {}
246
246
 
247
247
  tag_name = state["tag"] || "img"
248
+ gallery_class = state["class"] || "gallery"
248
249
 
249
250
  options = {}
250
251
  options[:process] = state["process"]
@@ -252,7 +253,7 @@ class Utopia::Tags::Gallery
252
253
 
253
254
  filter = Regexp.new(state["filter"], Regexp::IGNORECASE) if state["filter"]
254
255
 
255
- transaction.tag("div", "class" => "gallery") do |node|
256
+ transaction.tag("div", "class" => gallery_class) do |node|
256
257
  images = gallery.images(options).sort do |a, b|
257
258
  if (metadata[a.original.basename]["order"] && metadata[b.original.basename]["order"])
258
259
  metadata[a.original.basename]["order"] <=> metadata[b.original.basename]["order"]
@@ -6,7 +6,7 @@ module Utopia
6
6
  module VERSION
7
7
  MAJOR = 0
8
8
  MINOR = 9
9
- TINY = 45
9
+ TINY = 46
10
10
 
11
11
  STRING = [MAJOR, MINOR, TINY].join('.')
12
12
  end
metadata CHANGED
@@ -1,13 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: utopia
3
3
  version: !ruby/object:Gem::Version
4
- hash: 97
5
- prerelease: false
6
- segments:
7
- - 0
8
- - 9
9
- - 45
10
- version: 0.9.45
4
+ version: 0.9.46
11
5
  platform: ruby
12
6
  authors:
13
7
  - Samuel Williams
@@ -15,79 +9,59 @@ autorequire:
15
9
  bindir: bin
16
10
  cert_chain: []
17
11
 
18
- date: 2011-02-09 00:00:00 +13:00
12
+ date: 2011-03-25 00:00:00 +13:00
19
13
  default_executable: utopia
20
14
  dependencies:
21
15
  - !ruby/object:Gem::Dependency
22
16
  name: mime-types
23
- prerelease: false
24
- requirement: &id001 !ruby/object:Gem::Requirement
25
- none: false
17
+ type: :runtime
18
+ version_requirement:
19
+ version_requirements: !ruby/object:Gem::Requirement
26
20
  requirements:
27
21
  - - ">="
28
22
  - !ruby/object:Gem::Version
29
- hash: 3
30
- segments:
31
- - 0
32
23
  version: "0"
33
- type: :runtime
34
- version_requirements: *id001
24
+ version:
35
25
  - !ruby/object:Gem::Dependency
36
26
  name: rack
37
- prerelease: false
38
- requirement: &id002 !ruby/object:Gem::Requirement
39
- none: false
27
+ type: :runtime
28
+ version_requirement:
29
+ version_requirements: !ruby/object:Gem::Requirement
40
30
  requirements:
41
31
  - - ">="
42
32
  - !ruby/object:Gem::Version
43
- hash: 3
44
- segments:
45
- - 0
46
33
  version: "0"
47
- type: :runtime
48
- version_requirements: *id002
34
+ version:
49
35
  - !ruby/object:Gem::Dependency
50
36
  name: rack-cache
51
- prerelease: false
52
- requirement: &id003 !ruby/object:Gem::Requirement
53
- none: false
37
+ type: :runtime
38
+ version_requirement:
39
+ version_requirements: !ruby/object:Gem::Requirement
54
40
  requirements:
55
41
  - - ">="
56
42
  - !ruby/object:Gem::Version
57
- hash: 3
58
- segments:
59
- - 0
60
43
  version: "0"
61
- type: :runtime
62
- version_requirements: *id003
44
+ version:
63
45
  - !ruby/object:Gem::Dependency
64
46
  name: rack-contrib
65
- prerelease: false
66
- requirement: &id004 !ruby/object:Gem::Requirement
67
- none: false
47
+ type: :runtime
48
+ version_requirement:
49
+ version_requirements: !ruby/object:Gem::Requirement
68
50
  requirements:
69
51
  - - ">="
70
52
  - !ruby/object:Gem::Version
71
- hash: 3
72
- segments:
73
- - 0
74
53
  version: "0"
75
- type: :runtime
76
- version_requirements: *id004
54
+ version:
77
55
  - !ruby/object:Gem::Dependency
78
56
  name: rmagick
79
- prerelease: false
80
- requirement: &id005 !ruby/object:Gem::Requirement
81
- none: false
57
+ type: :runtime
58
+ version_requirement:
59
+ version_requirements: !ruby/object:Gem::Requirement
82
60
  requirements:
83
61
  - - ">="
84
62
  - !ruby/object:Gem::Version
85
- hash: 3
86
- segments:
87
- - 0
88
63
  version: "0"
89
- type: :runtime
90
- version_requirements: *id005
64
+ version:
91
65
  description:
92
66
  email: samuel.williams@oriontransfer.co.nz
93
67
  executables:
@@ -163,27 +137,21 @@ rdoc_options: []
163
137
  require_paths:
164
138
  - lib
165
139
  required_ruby_version: !ruby/object:Gem::Requirement
166
- none: false
167
140
  requirements:
168
141
  - - ">="
169
142
  - !ruby/object:Gem::Version
170
- hash: 3
171
- segments:
172
- - 0
173
143
  version: "0"
144
+ version:
174
145
  required_rubygems_version: !ruby/object:Gem::Requirement
175
- none: false
176
146
  requirements:
177
147
  - - ">="
178
148
  - !ruby/object:Gem::Version
179
- hash: 3
180
- segments:
181
- - 0
182
149
  version: "0"
150
+ version:
183
151
  requirements: []
184
152
 
185
153
  rubyforge_project:
186
- rubygems_version: 1.3.7
154
+ rubygems_version: 1.3.5
187
155
  signing_key:
188
156
  specification_version: 3
189
157
  summary: Utopia is a framework for building websites.