lolita 3.1.18 → 3.2.0.rc1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (144) hide show
  1. data/Gemfile +5 -2
  2. data/History.rdoc +24 -0
  3. data/README.md +113 -0
  4. data/VERSION +1 -1
  5. data/{public → app/assets}/images/lolita/plus.png +0 -0
  6. data/{public → app/assets}/javascripts/lolita/application.js +0 -0
  7. data/{public → app/assets}/javascripts/lolita/base64.js +0 -0
  8. data/{public → app/assets}/javascripts/lolita/main.js +1 -0
  9. data/{public → app/assets}/javascripts/lolita/tab.js +0 -0
  10. data/{public → app/assets}/stylesheets/lolita/PIE-custom.htc +0 -0
  11. data/{public → app/assets}/stylesheets/lolita/PIE.htc +0 -0
  12. data/{public → app/assets}/stylesheets/lolita/default.css +0 -0
  13. data/{public → app/assets}/stylesheets/lolita/style.css +0 -21
  14. data/app/controllers/lolita/info_controller.rb +1 -12
  15. data/app/controllers/lolita/rest_controller.rb +2 -7
  16. data/app/helpers/lolita_helper.rb +1 -12
  17. data/app/views/components/lolita/configuration/column/_header.html.erb +1 -1
  18. data/app/views/components/lolita/configuration/column/_sort.html.erb +4 -7
  19. data/app/views/components/lolita/configuration/field/array/habtm/_display.html.haml +1 -1
  20. data/app/views/components/lolita/configuration/field/array/select/_display.html.erb +1 -1
  21. data/app/views/components/lolita/configuration/field/string/disabled/_display.html.erb +1 -1
  22. data/app/views/components/lolita/configuration/field/string/text/_display.html.erb +1 -1
  23. data/app/views/components/lolita/configuration/list/_paginator.html.erb +1 -1
  24. data/app/views/components/lolita/configuration/list/_title.html.erb +1 -6
  25. data/app/views/components/lolita/configuration/nested_form/_display.html.erb +6 -8
  26. data/app/views/components/lolita/navigation/_tree.html.erb +25 -18
  27. data/app/views/components/lolita/shared/_header.html.erb +1 -1
  28. data/app/views/components/lolita/shared/_right_sidebar.html.erb +6 -1
  29. data/app/views/layouts/lolita/application.html.erb +3 -3
  30. data/config/locales/en.yml +24 -1
  31. data/config/locales/lv.yml +0 -1
  32. data/config/routes.rb +1 -3
  33. data/lib/generators/lolita/install_generator.rb +1 -5
  34. data/lib/lolita.rb +23 -38
  35. data/lib/lolita/adapter/abstract_adapter.rb +0 -1
  36. data/lib/lolita/adapter/active_record.rb +4 -42
  37. data/lib/lolita/adapter/mongoid.rb +4 -76
  38. data/lib/lolita/configuration/base.rb +2 -15
  39. data/lib/lolita/configuration/column.rb +2 -25
  40. data/lib/lolita/configuration/factory/field.rb +2 -10
  41. data/lib/lolita/configuration/field.rb +1 -6
  42. data/lib/lolita/configuration/field/array.rb +31 -124
  43. data/lib/lolita/configuration/field/integer.rb +1 -0
  44. data/lib/lolita/configuration/list.rb +2 -23
  45. data/lib/lolita/configuration/tabs.rb +0 -6
  46. data/lib/lolita/controllers/component_helpers.rb +1 -1
  47. data/lib/lolita/controllers/internal_helpers.rb +4 -18
  48. data/lib/lolita/controllers/user_helpers.rb +11 -23
  49. data/lib/lolita/hooks.rb +120 -163
  50. data/lib/lolita/lazy_loader.rb +0 -3
  51. data/lib/lolita/mapping.rb +0 -23
  52. data/lib/lolita/modules/rest.rb +1 -1
  53. data/lib/lolita/navigation/branch.rb +1 -52
  54. data/lib/lolita/navigation/tree.rb +0 -10
  55. data/lib/lolita/rails.rb +2 -1
  56. data/lib/lolita/rails/routes.rb +5 -4
  57. data/lib/lolita/system_configuration/application.rb +1 -7
  58. data/lolita.gemspec +83 -100
  59. data/spec/configuration/field_spec.rb +1 -1
  60. data/spec/configuration/list_spec.rb +14 -19
  61. data/spec/rails_app/app/mongoid/post.rb +0 -4
  62. data/spec/rails_app/config/application.rb +1 -12
  63. data/spec/rails_app/config/environments/development.rb +2 -6
  64. data/spec/rails_app/config/environments/production.rb +1 -5
  65. data/spec/rails_app/config/environments/test.rb +1 -5
  66. data/vendor/assets/javascripts/jquery-1.6.2.min.js +18 -0
  67. data/{public → vendor/assets}/javascripts/jquery-ui-1.8.13.min.js +0 -0
  68. data/{public → vendor/assets}/javascripts/modernizr-1.7.min.js +0 -0
  69. data/{public → vendor/assets}/javascripts/tinymce/jquery.tinymce.js +0 -0
  70. data/{public → vendor/assets}/javascripts/tinymce/langs/en.js +0 -0
  71. data/{public → vendor/assets}/javascripts/tinymce/license.txt +0 -0
  72. data/{public → vendor/assets}/javascripts/tinymce/themes/advanced/about.htm +0 -0
  73. data/{public → vendor/assets}/javascripts/tinymce/themes/advanced/anchor.htm +0 -0
  74. data/{public → vendor/assets}/javascripts/tinymce/themes/advanced/charmap.htm +0 -0
  75. data/{public → vendor/assets}/javascripts/tinymce/themes/advanced/color_picker.htm +0 -0
  76. data/{public → vendor/assets}/javascripts/tinymce/themes/advanced/editor_template.js +0 -0
  77. data/{public → vendor/assets}/javascripts/tinymce/themes/advanced/editor_template_src.js +0 -0
  78. data/{public → vendor/assets}/javascripts/tinymce/themes/advanced/image.htm +0 -0
  79. data/{public → vendor/assets}/javascripts/tinymce/themes/advanced/img/colorpicker.jpg +0 -0
  80. data/{public → vendor/assets}/javascripts/tinymce/themes/advanced/img/flash.gif +0 -0
  81. data/{public → vendor/assets}/javascripts/tinymce/themes/advanced/img/icons.gif +0 -0
  82. data/{public → vendor/assets}/javascripts/tinymce/themes/advanced/img/iframe.gif +0 -0
  83. data/{public → vendor/assets}/javascripts/tinymce/themes/advanced/img/pagebreak.gif +0 -0
  84. data/{public → vendor/assets}/javascripts/tinymce/themes/advanced/img/quicktime.gif +0 -0
  85. data/{public → vendor/assets}/javascripts/tinymce/themes/advanced/img/realmedia.gif +0 -0
  86. data/{public → vendor/assets}/javascripts/tinymce/themes/advanced/img/shockwave.gif +0 -0
  87. data/{public → vendor/assets}/javascripts/tinymce/themes/advanced/img/trans.gif +0 -0
  88. data/{public → vendor/assets}/javascripts/tinymce/themes/advanced/img/video.gif +0 -0
  89. data/{public → vendor/assets}/javascripts/tinymce/themes/advanced/img/windowsmedia.gif +0 -0
  90. data/{public → vendor/assets}/javascripts/tinymce/themes/advanced/js/about.js +0 -0
  91. data/{public → vendor/assets}/javascripts/tinymce/themes/advanced/js/anchor.js +0 -0
  92. data/{public → vendor/assets}/javascripts/tinymce/themes/advanced/js/charmap.js +0 -0
  93. data/{public → vendor/assets}/javascripts/tinymce/themes/advanced/js/color_picker.js +0 -0
  94. data/{public → vendor/assets}/javascripts/tinymce/themes/advanced/js/image.js +0 -0
  95. data/{public → vendor/assets}/javascripts/tinymce/themes/advanced/js/link.js +0 -0
  96. data/{public → vendor/assets}/javascripts/tinymce/themes/advanced/js/source_editor.js +0 -0
  97. data/{public → vendor/assets}/javascripts/tinymce/themes/advanced/langs/en.js +0 -0
  98. data/{public → vendor/assets}/javascripts/tinymce/themes/advanced/langs/en_dlg.js +0 -0
  99. data/{public → vendor/assets}/javascripts/tinymce/themes/advanced/link.htm +0 -0
  100. data/{public → vendor/assets}/javascripts/tinymce/themes/advanced/shortcuts.htm +0 -0
  101. data/{public → vendor/assets}/javascripts/tinymce/themes/advanced/skins/cirkuit/content.css +0 -0
  102. data/{public → vendor/assets}/javascripts/tinymce/themes/advanced/skins/cirkuit/dialog.css +0 -0
  103. data/{public → vendor/assets}/javascripts/tinymce/themes/advanced/skins/cirkuit/img/butt2.png +0 -0
  104. data/{public → vendor/assets}/javascripts/tinymce/themes/advanced/skins/cirkuit/img/button-bg.png +0 -0
  105. data/{public → vendor/assets}/javascripts/tinymce/themes/advanced/skins/cirkuit/img/buttons.png +0 -0
  106. data/{public → vendor/assets}/javascripts/tinymce/themes/advanced/skins/cirkuit/img/down_arrow.gif +0 -0
  107. data/{public → vendor/assets}/javascripts/tinymce/themes/advanced/skins/cirkuit/img/fade-butt.png +0 -0
  108. data/{public → vendor/assets}/javascripts/tinymce/themes/advanced/skins/cirkuit/img/icons.png +0 -0
  109. data/{public → vendor/assets}/javascripts/tinymce/themes/advanced/skins/cirkuit/img/items.gif +0 -0
  110. data/{public → vendor/assets}/javascripts/tinymce/themes/advanced/skins/cirkuit/img/menu-arrow.png +0 -0
  111. data/{public → vendor/assets}/javascripts/tinymce/themes/advanced/skins/cirkuit/img/menu-check.png +0 -0
  112. data/{public → vendor/assets}/javascripts/tinymce/themes/advanced/skins/cirkuit/img/progress.gif +0 -0
  113. data/{public → vendor/assets}/javascripts/tinymce/themes/advanced/skins/cirkuit/img/tabs.gif +0 -0
  114. data/{public → vendor/assets}/javascripts/tinymce/themes/advanced/skins/cirkuit/img/toolbarbg.png +0 -0
  115. data/{public → vendor/assets}/javascripts/tinymce/themes/advanced/skins/cirkuit/ui.css +0 -0
  116. data/{public → vendor/assets}/javascripts/tinymce/themes/advanced/source_editor.htm +0 -0
  117. data/{public → vendor/assets}/javascripts/tinymce/tiny_mce.js +0 -0
  118. data/{public → vendor/assets}/javascripts/tinymce/tiny_mce_popup.js +0 -0
  119. data/{public → vendor/assets}/javascripts/tinymce/utils/editable_selects.js +0 -0
  120. data/{public → vendor/assets}/javascripts/tinymce/utils/form_utils.js +0 -0
  121. data/{public → vendor/assets}/javascripts/tinymce/utils/mctabs.js +0 -0
  122. data/{public → vendor/assets}/javascripts/tinymce/utils/validate.js +0 -0
  123. data/{public → vendor/assets}/javascripts/tinymce_config.js +1 -1
  124. metadata +121 -127
  125. data/README.rdoc +0 -100
  126. data/app/controllers/lolita/field_data_controller.rb +0 -36
  127. data/app/views/components/lolita/configuration/field/array/autocomplete/_display.html.haml +0 -11
  128. data/app/views/components/lolita/configuration/field/array/checkbox/_display.html.haml +0 -8
  129. data/app/views/components/lolita/configuration/field/array/polymorphic/_display.html.haml +0 -6
  130. data/app/views/components/lolita/configuration/field/array/polymorphic/_options_for_select.html.haml +0 -1
  131. data/app/views/components/lolita/configuration/search/_display.html.haml +0 -2
  132. data/app/views/components/lolita/shared/_save_button.html.erb +0 -6
  133. data/lib/generators/lolita/assets_generator.rb +0 -19
  134. data/lib/lolita/configuration/factory.rb +0 -56
  135. data/lib/lolita/configuration/helper.rb +0 -24
  136. data/lib/lolita/configuration/page.rb +0 -126
  137. data/lib/lolita/configuration/search.rb +0 -91
  138. data/lib/lolita/controller_additions.rb +0 -15
  139. data/lib/lolita/controllers/authorization_helpers.rb +0 -56
  140. data/lib/lolita/search/simple.rb +0 -76
  141. data/public/javascripts/jquery-1.6.min.js +0 -16
  142. data/public/javascripts/rails.js +0 -137
  143. data/spec/configuration/search_spec.rb +0 -44
  144. data/spec/search/simple_spec.rb +0 -48
@@ -41,16 +41,6 @@ module Lolita
41
41
  !parent
42
42
  end
43
43
 
44
- def visible?(view)
45
- self.branches.inject([]){|result,branch|
46
- if branch.visible?(view)
47
- result << true
48
- else
49
- result
50
- end
51
- }.any?
52
- end
53
-
54
44
  def method_missing method_name, *args
55
45
  @branches.send(method_name.to_sym,*args)
56
46
  end
data/lib/lolita/rails.rb CHANGED
@@ -1,12 +1,13 @@
1
- require 'action_controller/railtie'
2
1
  require 'lolita/rails/routes'
3
2
  require 'haml'
4
3
 
5
4
  ActiveSupport.on_load(:action_controller) {
5
+ include Lolita::Controllers::ViewUserHelpers
6
6
  include Lolita::Controllers::UrlHelpers
7
7
  include Lolita::Controllers::ComponentHelpers
8
8
  }
9
9
  ActiveSupport.on_load(:action_view) {
10
+ include Lolita::Controllers::ViewUserHelpers
10
11
  include Lolita::Controllers::UrlHelpers
11
12
  include Lolita::Controllers::ComponentHelpers
12
13
  }
@@ -56,13 +56,11 @@ module ActionDispatch::Routing
56
56
  options[:module] ||= @scope[:module] if @scope[:module].present?
57
57
  options[:path_prefix] ||= @scope[:path] if @scope[:path].present?
58
58
  resources.map!(&:to_sym)
59
-
60
59
  all_resource_classes=[]
61
60
  resources.each{|resource|
62
61
  mapping=Lolita.add_mapping(resource,options)
63
62
  Lolita.resources[mapping.name]=mapping
64
63
  target_class=mapping.to
65
-
66
64
  #TODO refactor all these variables
67
65
  all_resource_classes<<target_class
68
66
 
@@ -91,7 +89,10 @@ module ActionDispatch::Routing
91
89
 
92
90
  end
93
91
 
94
- mapping.add_to_navigation_tree
92
+ tree=Lolita::Navigation::Tree[:"left_side_navigation"]
93
+ unless tree.branches.detect{|b| b.object.is_a?(Lolita::Mapping) && b.object.to==mapping.to}
94
+ tree.append(mapping,:title=>mapping.to.model_name.human(:count=>2))
95
+ end
95
96
  }
96
97
  Lolita.common_routes(all_resource_classes).each do |route_name|
97
98
  send(:"lolita_#{route_name}_route")
@@ -122,7 +123,7 @@ module ActionDispatch::Routing
122
123
  private
123
124
 
124
125
  def migrating?
125
- File.basename($0).match(/^rake/) && (ARGV.detect{|arg| arg.to_s.match(/migrate/)})
126
+ File.basename($0).match(/^rake/) && (ARGV.include?("db:migrate"))
126
127
  end
127
128
 
128
129
  def generating_instalation?
@@ -1,19 +1,13 @@
1
1
  module Lolita
2
2
  module SystemConfiguration
3
- # This configuration is used in application lolita initializer
4
- # For detailed documentation see initializer.
5
3
  class Application
6
4
 
7
- attr_writer :name, :assets
5
+ attr_writer :name
8
6
 
9
7
  def name
10
8
  @name || default_name
11
9
  end
12
10
 
13
- def assets
14
- @assets ||= []
15
- end
16
-
17
11
  def default_name
18
12
  if defined?(Rails)
19
13
  Rails::Application.subclasses.first.to_s.split("::").first
data/lolita.gemspec CHANGED
@@ -5,16 +5,16 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "lolita"
8
- s.version = "3.1.18"
8
+ s.version = "3.2.0.rc1"
9
9
 
10
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
10
+ s.required_rubygems_version = Gem::Requirement.new("> 1.3.1") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["ITHouse (Latvia) and Arturs Meisters"]
12
- s.date = "2011-12-07"
12
+ s.date = "2011-09-05"
13
13
  s.description = "Great Rails CMS, that turns your business logic into good-looking, fully functional workspace. "
14
14
  s.email = "support@ithouse.lv"
15
15
  s.extra_rdoc_files = [
16
16
  "LICENSE.txt",
17
- "README.rdoc"
17
+ "README.md"
18
18
  ]
19
19
  s.files = [
20
20
  ".document",
@@ -23,10 +23,18 @@ Gem::Specification.new do |s|
23
23
  "Gemfile",
24
24
  "History.rdoc",
25
25
  "LICENSE.txt",
26
- "README.rdoc",
26
+ "README.md",
27
27
  "Rakefile",
28
28
  "VERSION",
29
- "app/controllers/lolita/field_data_controller.rb",
29
+ "app/assets/images/lolita/plus.png",
30
+ "app/assets/javascripts/lolita/application.js",
31
+ "app/assets/javascripts/lolita/base64.js",
32
+ "app/assets/javascripts/lolita/main.js",
33
+ "app/assets/javascripts/lolita/tab.js",
34
+ "app/assets/stylesheets/lolita/PIE-custom.htc",
35
+ "app/assets/stylesheets/lolita/PIE.htc",
36
+ "app/assets/stylesheets/lolita/default.css",
37
+ "app/assets/stylesheets/lolita/style.css",
30
38
  "app/controllers/lolita/info_controller.rb",
31
39
  "app/controllers/lolita/rest_controller.rb",
32
40
  "app/helpers/components/lolita/configuration/list_component.rb",
@@ -47,12 +55,8 @@ Gem::Specification.new do |s|
47
55
  "app/views/components/lolita/configuration/field/_label.html.erb",
48
56
  "app/views/components/lolita/configuration/field/_object.html.erb",
49
57
  "app/views/components/lolita/configuration/field/array/_display.html.erb",
50
- "app/views/components/lolita/configuration/field/array/autocomplete/_display.html.haml",
51
- "app/views/components/lolita/configuration/field/array/checkbox/_display.html.haml",
52
58
  "app/views/components/lolita/configuration/field/array/filter/_display.html.erb",
53
59
  "app/views/components/lolita/configuration/field/array/habtm/_display.html.haml",
54
- "app/views/components/lolita/configuration/field/array/polymorphic/_display.html.haml",
55
- "app/views/components/lolita/configuration/field/array/polymorphic/_options_for_select.html.haml",
56
60
  "app/views/components/lolita/configuration/field/array/select/_display.html.erb",
57
61
  "app/views/components/lolita/configuration/field/big_decimal/_display.html.erb",
58
62
  "app/views/components/lolita/configuration/field/boolean/_display.html.erb",
@@ -77,7 +81,6 @@ Gem::Specification.new do |s|
77
81
  "app/views/components/lolita/configuration/list/_title.html.erb",
78
82
  "app/views/components/lolita/configuration/nested_form/_display.html.erb",
79
83
  "app/views/components/lolita/configuration/nested_form/_fields.html.erb",
80
- "app/views/components/lolita/configuration/search/_display.html.haml",
81
84
  "app/views/components/lolita/configuration/tab/_display.html.erb",
82
85
  "app/views/components/lolita/configuration/tab/_error_msg.html.erb",
83
86
  "app/views/components/lolita/configuration/tab/_fields.html.erb",
@@ -90,7 +93,6 @@ Gem::Specification.new do |s|
90
93
  "app/views/components/lolita/shared/_flash.html.erb",
91
94
  "app/views/components/lolita/shared/_header.html.erb",
92
95
  "app/views/components/lolita/shared/_right_sidebar.html.erb",
93
- "app/views/components/lolita/shared/_save_button.html.erb",
94
96
  "app/views/kaminari/lolita/_first_page.html.erb",
95
97
  "app/views/kaminari/lolita/_gap.html.erb",
96
98
  "app/views/kaminari/lolita/_last_page.html.erb",
@@ -114,7 +116,6 @@ Gem::Specification.new do |s|
114
116
  "features/support/env.rb",
115
117
  "features/support/paths.rb",
116
118
  "lib/generators/helpers/file_helper.rb",
117
- "lib/generators/lolita/assets_generator.rb",
118
119
  "lib/generators/lolita/install_generator.rb",
119
120
  "lib/generators/templates/lolita.rb",
120
121
  "lib/lolita.rb",
@@ -126,7 +127,6 @@ Gem::Specification.new do |s|
126
127
  "lib/lolita/configuration/base.rb",
127
128
  "lib/lolita/configuration/column.rb",
128
129
  "lib/lolita/configuration/columns.rb",
129
- "lib/lolita/configuration/factory.rb",
130
130
  "lib/lolita/configuration/factory/field.rb",
131
131
  "lib/lolita/configuration/factory/tab.rb",
132
132
  "lib/lolita/configuration/field.rb",
@@ -146,17 +146,12 @@ Gem::Specification.new do |s|
146
146
  "lib/lolita/configuration/field_set.rb",
147
147
  "lib/lolita/configuration/fields.rb",
148
148
  "lib/lolita/configuration/filter.rb",
149
- "lib/lolita/configuration/helper.rb",
150
149
  "lib/lolita/configuration/list.rb",
151
150
  "lib/lolita/configuration/nested_form.rb",
152
- "lib/lolita/configuration/page.rb",
153
- "lib/lolita/configuration/search.rb",
154
151
  "lib/lolita/configuration/tab.rb",
155
152
  "lib/lolita/configuration/tab/content.rb",
156
153
  "lib/lolita/configuration/tab/default.rb",
157
154
  "lib/lolita/configuration/tabs.rb",
158
- "lib/lolita/controller_additions.rb",
159
- "lib/lolita/controllers/authorization_helpers.rb",
160
155
  "lib/lolita/controllers/component_helpers.rb",
161
156
  "lib/lolita/controllers/internal_helpers.rb",
162
157
  "lib/lolita/controllers/url_helpers.rb",
@@ -177,81 +172,12 @@ Gem::Specification.new do |s|
177
172
  "lib/lolita/rails/all.rb",
178
173
  "lib/lolita/rails/routes.rb",
179
174
  "lib/lolita/ruby_ext/accessors.rb",
180
- "lib/lolita/search/simple.rb",
181
175
  "lib/lolita/support/formatter.rb",
182
176
  "lib/lolita/support/formatter/rails.rb",
183
177
  "lib/lolita/system_configuration/application.rb",
184
178
  "lib/lolita/system_configuration/base.rb",
185
179
  "lib/lolita/test/matchers.rb",
186
180
  "lolita.gemspec",
187
- "public/images/lolita/plus.png",
188
- "public/javascripts/jquery-1.6.min.js",
189
- "public/javascripts/jquery-ui-1.8.13.min.js",
190
- "public/javascripts/lolita/application.js",
191
- "public/javascripts/lolita/base64.js",
192
- "public/javascripts/lolita/main.js",
193
- "public/javascripts/lolita/tab.js",
194
- "public/javascripts/modernizr-1.7.min.js",
195
- "public/javascripts/rails.js",
196
- "public/javascripts/tinymce/jquery.tinymce.js",
197
- "public/javascripts/tinymce/langs/en.js",
198
- "public/javascripts/tinymce/license.txt",
199
- "public/javascripts/tinymce/themes/advanced/about.htm",
200
- "public/javascripts/tinymce/themes/advanced/anchor.htm",
201
- "public/javascripts/tinymce/themes/advanced/charmap.htm",
202
- "public/javascripts/tinymce/themes/advanced/color_picker.htm",
203
- "public/javascripts/tinymce/themes/advanced/editor_template.js",
204
- "public/javascripts/tinymce/themes/advanced/editor_template_src.js",
205
- "public/javascripts/tinymce/themes/advanced/image.htm",
206
- "public/javascripts/tinymce/themes/advanced/img/colorpicker.jpg",
207
- "public/javascripts/tinymce/themes/advanced/img/flash.gif",
208
- "public/javascripts/tinymce/themes/advanced/img/icons.gif",
209
- "public/javascripts/tinymce/themes/advanced/img/iframe.gif",
210
- "public/javascripts/tinymce/themes/advanced/img/pagebreak.gif",
211
- "public/javascripts/tinymce/themes/advanced/img/quicktime.gif",
212
- "public/javascripts/tinymce/themes/advanced/img/realmedia.gif",
213
- "public/javascripts/tinymce/themes/advanced/img/shockwave.gif",
214
- "public/javascripts/tinymce/themes/advanced/img/trans.gif",
215
- "public/javascripts/tinymce/themes/advanced/img/video.gif",
216
- "public/javascripts/tinymce/themes/advanced/img/windowsmedia.gif",
217
- "public/javascripts/tinymce/themes/advanced/js/about.js",
218
- "public/javascripts/tinymce/themes/advanced/js/anchor.js",
219
- "public/javascripts/tinymce/themes/advanced/js/charmap.js",
220
- "public/javascripts/tinymce/themes/advanced/js/color_picker.js",
221
- "public/javascripts/tinymce/themes/advanced/js/image.js",
222
- "public/javascripts/tinymce/themes/advanced/js/link.js",
223
- "public/javascripts/tinymce/themes/advanced/js/source_editor.js",
224
- "public/javascripts/tinymce/themes/advanced/langs/en.js",
225
- "public/javascripts/tinymce/themes/advanced/langs/en_dlg.js",
226
- "public/javascripts/tinymce/themes/advanced/link.htm",
227
- "public/javascripts/tinymce/themes/advanced/shortcuts.htm",
228
- "public/javascripts/tinymce/themes/advanced/skins/cirkuit/content.css",
229
- "public/javascripts/tinymce/themes/advanced/skins/cirkuit/dialog.css",
230
- "public/javascripts/tinymce/themes/advanced/skins/cirkuit/img/butt2.png",
231
- "public/javascripts/tinymce/themes/advanced/skins/cirkuit/img/button-bg.png",
232
- "public/javascripts/tinymce/themes/advanced/skins/cirkuit/img/buttons.png",
233
- "public/javascripts/tinymce/themes/advanced/skins/cirkuit/img/down_arrow.gif",
234
- "public/javascripts/tinymce/themes/advanced/skins/cirkuit/img/fade-butt.png",
235
- "public/javascripts/tinymce/themes/advanced/skins/cirkuit/img/icons.png",
236
- "public/javascripts/tinymce/themes/advanced/skins/cirkuit/img/items.gif",
237
- "public/javascripts/tinymce/themes/advanced/skins/cirkuit/img/menu-arrow.png",
238
- "public/javascripts/tinymce/themes/advanced/skins/cirkuit/img/menu-check.png",
239
- "public/javascripts/tinymce/themes/advanced/skins/cirkuit/img/progress.gif",
240
- "public/javascripts/tinymce/themes/advanced/skins/cirkuit/img/tabs.gif",
241
- "public/javascripts/tinymce/themes/advanced/skins/cirkuit/img/toolbarbg.png",
242
- "public/javascripts/tinymce/themes/advanced/skins/cirkuit/ui.css",
243
- "public/javascripts/tinymce/themes/advanced/source_editor.htm",
244
- "public/javascripts/tinymce/tiny_mce.js",
245
- "public/javascripts/tinymce/tiny_mce_popup.js",
246
- "public/javascripts/tinymce/utils/editable_selects.js",
247
- "public/javascripts/tinymce/utils/form_utils.js",
248
- "public/javascripts/tinymce/utils/mctabs.js",
249
- "public/javascripts/tinymce/utils/validate.js",
250
- "public/javascripts/tinymce_config.js",
251
- "public/stylesheets/lolita/PIE-custom.htc",
252
- "public/stylesheets/lolita/PIE.htc",
253
- "public/stylesheets/lolita/default.css",
254
- "public/stylesheets/lolita/style.css",
255
181
  "spec/adapter_helper.rb",
256
182
  "spec/builder_spec.rb",
257
183
  "spec/configuration/base_spec.rb",
@@ -261,7 +187,6 @@ Gem::Specification.new do |s|
261
187
  "spec/configuration/field_spec.rb",
262
188
  "spec/configuration/filter_spec.rb",
263
189
  "spec/configuration/list_spec.rb",
264
- "spec/configuration/search_spec.rb",
265
190
  "spec/configuration/tab_spec.rb",
266
191
  "spec/configuration/tabs_spec.rb",
267
192
  "spec/controllers/component_helpers_spec.rb",
@@ -356,18 +281,75 @@ Gem::Specification.new do |s|
356
281
  "spec/rails_app/public/stylesheets/lolita/default.css",
357
282
  "spec/rails_app/public/stylesheets/lolita/style.css",
358
283
  "spec/routing/routes_spec.rb",
359
- "spec/search/simple_spec.rb",
360
284
  "spec/simple_spec_helper.rb",
361
285
  "spec/spec_helper.rb",
362
286
  "spec/support/factories/category.rb",
363
287
  "spec/support/factories/post.rb",
364
288
  "spec/support/factories/tag.rb",
365
- "spec/support/formatter_spec.rb"
289
+ "spec/support/formatter_spec.rb",
290
+ "vendor/assets/javascripts/jquery-1.6.2.min.js",
291
+ "vendor/assets/javascripts/jquery-ui-1.8.13.min.js",
292
+ "vendor/assets/javascripts/modernizr-1.7.min.js",
293
+ "vendor/assets/javascripts/tinymce/jquery.tinymce.js",
294
+ "vendor/assets/javascripts/tinymce/langs/en.js",
295
+ "vendor/assets/javascripts/tinymce/license.txt",
296
+ "vendor/assets/javascripts/tinymce/themes/advanced/about.htm",
297
+ "vendor/assets/javascripts/tinymce/themes/advanced/anchor.htm",
298
+ "vendor/assets/javascripts/tinymce/themes/advanced/charmap.htm",
299
+ "vendor/assets/javascripts/tinymce/themes/advanced/color_picker.htm",
300
+ "vendor/assets/javascripts/tinymce/themes/advanced/editor_template.js",
301
+ "vendor/assets/javascripts/tinymce/themes/advanced/editor_template_src.js",
302
+ "vendor/assets/javascripts/tinymce/themes/advanced/image.htm",
303
+ "vendor/assets/javascripts/tinymce/themes/advanced/img/colorpicker.jpg",
304
+ "vendor/assets/javascripts/tinymce/themes/advanced/img/flash.gif",
305
+ "vendor/assets/javascripts/tinymce/themes/advanced/img/icons.gif",
306
+ "vendor/assets/javascripts/tinymce/themes/advanced/img/iframe.gif",
307
+ "vendor/assets/javascripts/tinymce/themes/advanced/img/pagebreak.gif",
308
+ "vendor/assets/javascripts/tinymce/themes/advanced/img/quicktime.gif",
309
+ "vendor/assets/javascripts/tinymce/themes/advanced/img/realmedia.gif",
310
+ "vendor/assets/javascripts/tinymce/themes/advanced/img/shockwave.gif",
311
+ "vendor/assets/javascripts/tinymce/themes/advanced/img/trans.gif",
312
+ "vendor/assets/javascripts/tinymce/themes/advanced/img/video.gif",
313
+ "vendor/assets/javascripts/tinymce/themes/advanced/img/windowsmedia.gif",
314
+ "vendor/assets/javascripts/tinymce/themes/advanced/js/about.js",
315
+ "vendor/assets/javascripts/tinymce/themes/advanced/js/anchor.js",
316
+ "vendor/assets/javascripts/tinymce/themes/advanced/js/charmap.js",
317
+ "vendor/assets/javascripts/tinymce/themes/advanced/js/color_picker.js",
318
+ "vendor/assets/javascripts/tinymce/themes/advanced/js/image.js",
319
+ "vendor/assets/javascripts/tinymce/themes/advanced/js/link.js",
320
+ "vendor/assets/javascripts/tinymce/themes/advanced/js/source_editor.js",
321
+ "vendor/assets/javascripts/tinymce/themes/advanced/langs/en.js",
322
+ "vendor/assets/javascripts/tinymce/themes/advanced/langs/en_dlg.js",
323
+ "vendor/assets/javascripts/tinymce/themes/advanced/link.htm",
324
+ "vendor/assets/javascripts/tinymce/themes/advanced/shortcuts.htm",
325
+ "vendor/assets/javascripts/tinymce/themes/advanced/skins/cirkuit/content.css",
326
+ "vendor/assets/javascripts/tinymce/themes/advanced/skins/cirkuit/dialog.css",
327
+ "vendor/assets/javascripts/tinymce/themes/advanced/skins/cirkuit/img/butt2.png",
328
+ "vendor/assets/javascripts/tinymce/themes/advanced/skins/cirkuit/img/button-bg.png",
329
+ "vendor/assets/javascripts/tinymce/themes/advanced/skins/cirkuit/img/buttons.png",
330
+ "vendor/assets/javascripts/tinymce/themes/advanced/skins/cirkuit/img/down_arrow.gif",
331
+ "vendor/assets/javascripts/tinymce/themes/advanced/skins/cirkuit/img/fade-butt.png",
332
+ "vendor/assets/javascripts/tinymce/themes/advanced/skins/cirkuit/img/icons.png",
333
+ "vendor/assets/javascripts/tinymce/themes/advanced/skins/cirkuit/img/items.gif",
334
+ "vendor/assets/javascripts/tinymce/themes/advanced/skins/cirkuit/img/menu-arrow.png",
335
+ "vendor/assets/javascripts/tinymce/themes/advanced/skins/cirkuit/img/menu-check.png",
336
+ "vendor/assets/javascripts/tinymce/themes/advanced/skins/cirkuit/img/progress.gif",
337
+ "vendor/assets/javascripts/tinymce/themes/advanced/skins/cirkuit/img/tabs.gif",
338
+ "vendor/assets/javascripts/tinymce/themes/advanced/skins/cirkuit/img/toolbarbg.png",
339
+ "vendor/assets/javascripts/tinymce/themes/advanced/skins/cirkuit/ui.css",
340
+ "vendor/assets/javascripts/tinymce/themes/advanced/source_editor.htm",
341
+ "vendor/assets/javascripts/tinymce/tiny_mce.js",
342
+ "vendor/assets/javascripts/tinymce/tiny_mce_popup.js",
343
+ "vendor/assets/javascripts/tinymce/utils/editable_selects.js",
344
+ "vendor/assets/javascripts/tinymce/utils/form_utils.js",
345
+ "vendor/assets/javascripts/tinymce/utils/mctabs.js",
346
+ "vendor/assets/javascripts/tinymce/utils/validate.js",
347
+ "vendor/assets/javascripts/tinymce_config.js"
366
348
  ]
367
349
  s.homepage = "http://github.com/ithouse/lolita"
368
350
  s.licenses = ["MIT"]
369
351
  s.require_paths = ["lib"]
370
- s.rubygems_version = "1.8.11"
352
+ s.rubygems_version = "1.8.10"
371
353
  s.summary = "Great Rails CMS."
372
354
  s.test_files = [
373
355
  "spec/adapter_helper.rb",
@@ -379,7 +361,6 @@ Gem::Specification.new do |s|
379
361
  "spec/configuration/field_spec.rb",
380
362
  "spec/configuration/filter_spec.rb",
381
363
  "spec/configuration/list_spec.rb",
382
- "spec/configuration/search_spec.rb",
383
364
  "spec/configuration/tab_spec.rb",
384
365
  "spec/configuration/tabs_spec.rb",
385
366
  "spec/controllers/component_helpers_spec.rb",
@@ -415,7 +396,6 @@ Gem::Specification.new do |s|
415
396
  "spec/rails_app/db/schema.rb",
416
397
  "spec/rails_app/lib/lolita/configuration/field/my_custom_collection.rb",
417
398
  "spec/routing/routes_spec.rb",
418
- "spec/search/simple_spec.rb",
419
399
  "spec/simple_spec_helper.rb",
420
400
  "spec/spec_helper.rb",
421
401
  "spec/support/factories/category.rb",
@@ -428,11 +408,12 @@ Gem::Specification.new do |s|
428
408
  s.specification_version = 3
429
409
 
430
410
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
431
- s.add_runtime_dependency(%q<rails>, ["~> 3.0.10"])
411
+ s.add_runtime_dependency(%q<rails>, ["~> 3.1.0"])
432
412
  s.add_runtime_dependency(%q<kaminari>, ["~> 0.12.4"])
433
413
  s.add_runtime_dependency(%q<abstract>, [">= 0"])
434
- s.add_runtime_dependency(%q<builder>, ["~> 2.1.2"])
414
+ s.add_runtime_dependency(%q<builder>, ["~> 3.0"])
435
415
  s.add_runtime_dependency(%q<haml>, ["~> 3.1.2"])
416
+ s.add_runtime_dependency(%q<jquery-rails>, [">= 0"])
436
417
  s.add_development_dependency(%q<jeweler>, ["~> 1.5.2"])
437
418
  s.add_development_dependency(%q<rspec>, ["~> 2.6.0"])
438
419
  s.add_development_dependency(%q<rspec-rails>, ["~> 2.6.0"])
@@ -444,11 +425,12 @@ Gem::Specification.new do |s|
444
425
  s.add_development_dependency(%q<database_cleaner>, [">= 0"])
445
426
  s.add_development_dependency(%q<akephalos>, [">= 0"])
446
427
  else
447
- s.add_dependency(%q<rails>, ["~> 3.0.10"])
428
+ s.add_dependency(%q<rails>, ["~> 3.1.0"])
448
429
  s.add_dependency(%q<kaminari>, ["~> 0.12.4"])
449
430
  s.add_dependency(%q<abstract>, [">= 0"])
450
- s.add_dependency(%q<builder>, ["~> 2.1.2"])
431
+ s.add_dependency(%q<builder>, ["~> 3.0"])
451
432
  s.add_dependency(%q<haml>, ["~> 3.1.2"])
433
+ s.add_dependency(%q<jquery-rails>, [">= 0"])
452
434
  s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
453
435
  s.add_dependency(%q<rspec>, ["~> 2.6.0"])
454
436
  s.add_dependency(%q<rspec-rails>, ["~> 2.6.0"])
@@ -461,11 +443,12 @@ Gem::Specification.new do |s|
461
443
  s.add_dependency(%q<akephalos>, [">= 0"])
462
444
  end
463
445
  else
464
- s.add_dependency(%q<rails>, ["~> 3.0.10"])
446
+ s.add_dependency(%q<rails>, ["~> 3.1.0"])
465
447
  s.add_dependency(%q<kaminari>, ["~> 0.12.4"])
466
448
  s.add_dependency(%q<abstract>, [">= 0"])
467
- s.add_dependency(%q<builder>, ["~> 2.1.2"])
449
+ s.add_dependency(%q<builder>, ["~> 3.0"])
468
450
  s.add_dependency(%q<haml>, ["~> 3.1.2"])
451
+ s.add_dependency(%q<jquery-rails>, [">= 0"])
469
452
  s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
470
453
  s.add_dependency(%q<rspec>, ["~> 2.6.0"])
471
454
  s.add_dependency(%q<rspec-rails>, ["~> 2.6.0"])
@@ -81,7 +81,7 @@ describe Lolita::Configuration::Field do
81
81
 
82
82
  it "should allow set field that references to (has_many or has_one) any class" do
83
83
  field=Lolita::Configuration::Factory::Field.add(@dbi,:comments,:array)
84
- field.type.to_s.should == "array"
84
+ field.type.should == "array"
85
85
  field.association.macro.should == :many
86
86
  end
87
87
 
@@ -1,10 +1,5 @@
1
1
  require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
2
2
 
3
- class SearchEngine
4
- def run(*args)
5
- end
6
- end
7
-
8
3
  describe Lolita::Configuration::List do
9
4
 
10
5
  before(:each) do
@@ -60,20 +55,20 @@ describe Lolita::Configuration::List do
60
55
  list.columns.size.should == 3
61
56
  end
62
57
 
63
- describe "search" do
64
- let(:list){ Lolita::Configuration::List.new(@dbi,:per => 10) }
65
-
66
- it "should define default search by passing true" do
67
- list.search true
68
- list.search.class.to_s.should match(/Lolita::Configuration::Search/)
69
- end
70
-
71
- it "should define search with block" do
72
- list.search do
73
- with SearchEngine.new
74
- end
75
- list.search.class.to_s.should match(/Lolita::Configuration::Search/)
76
- end
58
+
59
+ it "should move columns to right or left" do
60
+ pending
61
+ # list = Lolita::Configuration::List.new do
62
+ # column :name=>"col1"
63
+ # column :name=>"col2"
64
+ # column :name=>"col3"
65
+ # end
66
+ # list.columns.first.name.should == "col1"
67
+ # list.move(:col2).before(:col1)
68
+ # list.columns[:col_index].move_after(:col1)
69
+ # list.columns.first.name.should == "col2"
70
+ # list.move(:col2).after(:col1)
71
+ # list.columns.first.name.should == "col1"
77
72
  end
78
73
 
79
74
  end