bcms_tools 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1,2 +1,2 @@
1
- 0.2.2
1
+ 0.2.3
2
2
 
data/bcms_tools.gemspec CHANGED
@@ -1,15 +1,15 @@
1
1
  # Generated by jeweler
2
- # DO NOT EDIT THIS FILE
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run `rake gemspec`
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in rakefile, and run the gemspec command
4
4
  # -*- encoding: utf-8 -*-
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{bcms_tools}
8
- s.version = "0.2.2"
8
+ s.version = "0.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 = ["buzzware"]
12
- s.date = %q{2010-07-21}
12
+ s.date = %q{2010-07-30}
13
13
  s.description = %q{Tools for BrowserCms.}
14
14
  s.email = %q{contact@buzzware.com.au}
15
15
  s.extra_rdoc_files = [
@@ -28,12 +28,8 @@ Gem::Specification.new do |s|
28
28
  "bcms_tools.vpw",
29
29
  "lib/bcms_tools.rb",
30
30
  "lib/bcms_tools/bcms_thumbnails.rb",
31
- "lib/bcms_tools/bcms_thumbnails.rb",
32
- "lib/bcms_tools/form_helpers.rb",
33
31
  "lib/bcms_tools/form_helpers.rb",
34
32
  "lib/bcms_tools/migration_helpers.rb",
35
- "lib/bcms_tools/migration_helpers.rb",
36
- "lib/bcms_tools/view_helpers.rb",
37
33
  "lib/bcms_tools/view_helpers.rb",
38
34
  "lib/bcms_tools_dev.rb",
39
35
  "public/stylesheets/bcms_tools.css",
@@ -44,7 +40,7 @@ Gem::Specification.new do |s|
44
40
  s.homepage = %q{http://github.com/buzzware/bcms_tools}
45
41
  s.rdoc_options = ["--charset=UTF-8"]
46
42
  s.require_paths = ["lib"]
47
- s.rubygems_version = %q{1.3.5}
43
+ s.rubygems_version = %q{1.3.7}
48
44
  s.summary = %q{Tools for BrowserCms.}
49
45
  s.test_files = [
50
46
  "test/bcms_tools_test.rb",
@@ -55,7 +51,7 @@ Gem::Specification.new do |s|
55
51
  current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
56
52
  s.specification_version = 3
57
53
 
58
- if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
54
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
59
55
  s.add_runtime_dependency(%q<buzzcore>, [">= 0.3.2"])
60
56
  s.add_runtime_dependency(%q<paperclip>, ["= 2.3.1.1"])
61
57
  s.add_runtime_dependency(%q<browsercms>, [">= 0"])
@@ -73,3 +69,4 @@ Gem::Specification.new do |s|
73
69
  s.add_dependency(%q<shoulda>, [">= 0"])
74
70
  end
75
71
  end
72
+
@@ -151,7 +151,7 @@ module ActionView
151
151
  item_level = []
152
152
  lvl.each do |node|
153
153
  name = (node.name.index('/') ? File.basename(node.name) : node.name)
154
- item = {:id => aIdPrefix+node.id.to_s, :name => name }
154
+ item = {:id => aIdPrefix+node.id.to_s, :name => name }
155
155
  item[:node] = node
156
156
  if last_lvl && parent_item = last_lvl.find {|i| i[:node].id == node.parent_id}
157
157
  parent_item[:children] ||= []
@@ -164,8 +164,10 @@ module ActionView
164
164
  end
165
165
 
166
166
  item[:selected] = true if category && (category==node.name.urlize('+'))
167
+ item[:order] = aOptions[:order_proc].call(item) if aOptions.has_key?(:order_proc)
167
168
  item_level << item
168
169
  end
170
+ item_level.sort! {|a,b| a[:order].to_i <=> b[:order].to_i}
169
171
  tree_items << item_level
170
172
  last_lvl = item_level
171
173
  end
metadata CHANGED
@@ -1,7 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bcms_tools
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ hash: 17
5
+ prerelease: false
6
+ segments:
7
+ - 0
8
+ - 2
9
+ - 3
10
+ version: 0.2.3
5
11
  platform: ruby
6
12
  authors:
7
13
  - buzzware
@@ -9,49 +15,70 @@ autorequire:
9
15
  bindir: bin
10
16
  cert_chain: []
11
17
 
12
- date: 2010-07-21 00:00:00 +08:00
18
+ date: 2010-07-30 00:00:00 +08:00
13
19
  default_executable:
14
20
  dependencies:
15
21
  - !ruby/object:Gem::Dependency
16
22
  name: buzzcore
17
- type: :runtime
18
- version_requirement:
19
- version_requirements: !ruby/object:Gem::Requirement
23
+ prerelease: false
24
+ requirement: &id001 !ruby/object:Gem::Requirement
25
+ none: false
20
26
  requirements:
21
27
  - - ">="
22
28
  - !ruby/object:Gem::Version
29
+ hash: 23
30
+ segments:
31
+ - 0
32
+ - 3
33
+ - 2
23
34
  version: 0.3.2
24
- version:
35
+ type: :runtime
36
+ version_requirements: *id001
25
37
  - !ruby/object:Gem::Dependency
26
38
  name: paperclip
27
- type: :runtime
28
- version_requirement:
29
- version_requirements: !ruby/object:Gem::Requirement
39
+ prerelease: false
40
+ requirement: &id002 !ruby/object:Gem::Requirement
41
+ none: false
30
42
  requirements:
31
43
  - - "="
32
44
  - !ruby/object:Gem::Version
45
+ hash: 113
46
+ segments:
47
+ - 2
48
+ - 3
49
+ - 1
50
+ - 1
33
51
  version: 2.3.1.1
34
- version:
52
+ type: :runtime
53
+ version_requirements: *id002
35
54
  - !ruby/object:Gem::Dependency
36
55
  name: browsercms
37
- type: :runtime
38
- version_requirement:
39
- version_requirements: !ruby/object:Gem::Requirement
56
+ prerelease: false
57
+ requirement: &id003 !ruby/object:Gem::Requirement
58
+ none: false
40
59
  requirements:
41
60
  - - ">="
42
61
  - !ruby/object:Gem::Version
62
+ hash: 3
63
+ segments:
64
+ - 0
43
65
  version: "0"
44
- version:
66
+ type: :runtime
67
+ version_requirements: *id003
45
68
  - !ruby/object:Gem::Dependency
46
69
  name: shoulda
47
- type: :development
48
- version_requirement:
49
- version_requirements: !ruby/object:Gem::Requirement
70
+ prerelease: false
71
+ requirement: &id004 !ruby/object:Gem::Requirement
72
+ none: false
50
73
  requirements:
51
74
  - - ">="
52
75
  - !ruby/object:Gem::Version
76
+ hash: 3
77
+ segments:
78
+ - 0
53
79
  version: "0"
54
- version:
80
+ type: :development
81
+ version_requirements: *id004
55
82
  description: Tools for BrowserCms.
56
83
  email: contact@buzzware.com.au
57
84
  executables: []
@@ -91,21 +118,27 @@ rdoc_options:
91
118
  require_paths:
92
119
  - lib
93
120
  required_ruby_version: !ruby/object:Gem::Requirement
121
+ none: false
94
122
  requirements:
95
123
  - - ">="
96
124
  - !ruby/object:Gem::Version
125
+ hash: 3
126
+ segments:
127
+ - 0
97
128
  version: "0"
98
- version:
99
129
  required_rubygems_version: !ruby/object:Gem::Requirement
130
+ none: false
100
131
  requirements:
101
132
  - - ">="
102
133
  - !ruby/object:Gem::Version
134
+ hash: 3
135
+ segments:
136
+ - 0
103
137
  version: "0"
104
- version:
105
138
  requirements: []
106
139
 
107
140
  rubyforge_project:
108
- rubygems_version: 1.3.5
141
+ rubygems_version: 1.3.7
109
142
  signing_key:
110
143
  specification_version: 3
111
144
  summary: Tools for BrowserCms.