active_scaffold-sequel 0.5.1 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/app/assets/javascripts/jquery/active_scaffold.js +67 -22
- data/app/assets/javascripts/prototype/active_scaffold.js +76 -25
- data/doc/README.mark +30 -0
- data/frontends/default/views/update_column.js.erb +14 -16
- data/lib/active_scaffold/actions/core.rb +1 -4
- data/lib/active_scaffold/actions/delete.rb +0 -1
- data/lib/active_scaffold/actions/mark.rb +4 -62
- data/lib/active_scaffold/actions/update.rb +17 -9
- data/lib/active_scaffold/config/list.rb +0 -7
- data/lib/active_scaffold/config/mark.rb +1 -10
- data/lib/active_scaffold/data_structures/columns.rb +8 -4
- data/lib/active_scaffold/helpers/list_column_helpers.rb +12 -17
- data/lib/active_scaffold/helpers/view_helpers.rb +3 -0
- data/lib/active_scaffold/marked_model.rb +4 -29
- data/lib/active_scaffold/version.rb +2 -2
- metadata +177 -155
- data/frontends/default/views/on_mark_all.js.erb +0 -12
@@ -18,7 +18,6 @@ module ActiveScaffold::Config
|
|
18
18
|
@association_join_text = self.class.association_join_text
|
19
19
|
@pagination = self.class.pagination
|
20
20
|
@show_search_reset = true
|
21
|
-
@mark_records = self.class.mark_records
|
22
21
|
end
|
23
22
|
|
24
23
|
# global level configuration
|
@@ -46,9 +45,6 @@ module ActiveScaffold::Config
|
|
46
45
|
cattr_accessor :pagination
|
47
46
|
@@pagination = true
|
48
47
|
|
49
|
-
# Add a checkbox in front of each record to mark them and use them with a batch action later
|
50
|
-
cattr_accessor :mark_records
|
51
|
-
|
52
48
|
# instance-level configuration
|
53
49
|
# ----------------------------
|
54
50
|
|
@@ -81,9 +77,6 @@ module ActiveScaffold::Config
|
|
81
77
|
# show a link to reset the search next to filtered message
|
82
78
|
attr_accessor :show_search_reset
|
83
79
|
|
84
|
-
# Add a checkbox in front of each record to mark them and use them with a batch action later
|
85
|
-
attr_accessor :mark_records
|
86
|
-
|
87
80
|
# the default sorting. should be an array of hashes of {column_name => direction}, e.g. [{:a => 'desc'}, {:b => 'asc'}]. to just sort on one column, you can simply provide a hash, though, e.g. {:a => 'desc'}.
|
88
81
|
def sorting=(val)
|
89
82
|
sorting.set(*val)
|
@@ -2,17 +2,8 @@ module ActiveScaffold::Config
|
|
2
2
|
class Mark < Base
|
3
3
|
self.crud_type = :read
|
4
4
|
|
5
|
-
# What kind of mark all mode to use:
|
6
|
-
# * :search: de-/mark all records using current search conditions
|
7
|
-
# * :page: de-/mark all records on current page
|
8
|
-
cattr_accessor :mark_all_mode
|
9
|
-
@@mark_all_mode = :search
|
10
|
-
|
11
|
-
attr_accessor :mark_all_mode
|
12
|
-
|
13
5
|
def initialize(core_config)
|
14
6
|
@core = core_config
|
15
|
-
@mark_all_mode = self.class.mark_all_mode
|
16
7
|
if core_config.actions.include?(:update)
|
17
8
|
@core.model.send(:include, ActiveScaffold::MarkedModel) unless @core.model.ancestors.include?(ActiveScaffold::MarkedModel)
|
18
9
|
add_mark_column
|
@@ -24,7 +15,7 @@ module ActiveScaffold::Config
|
|
24
15
|
protected
|
25
16
|
|
26
17
|
def add_mark_column
|
27
|
-
@core.columns.
|
18
|
+
@core.columns.prepend(:marked)
|
28
19
|
@core.columns[:marked].label = 'M'
|
29
20
|
@core.columns[:marked].form_ui = :checkbox
|
30
21
|
@core.columns[:marked].inplace_edit = true
|
@@ -30,16 +30,20 @@ module ActiveScaffold::DataStructures
|
|
30
30
|
# the way to add columns to the set. this is primarily useful for virtual columns.
|
31
31
|
# note that this also makes columns inheritable
|
32
32
|
def add(*args)
|
33
|
-
args.flatten
|
34
|
-
args = args.collect{ |a| a.to_sym }
|
35
|
-
|
33
|
+
args = args.flatten.collect{|a| a.to_sym}
|
36
34
|
# make the columns inheritable
|
37
35
|
@_inheritable.concat(args)
|
38
36
|
# then add columns to @set (unless they already exist)
|
39
|
-
args.each {
|
37
|
+
args.each {|a| @set << ActiveScaffold::DataStructures::Column.new(a, @active_record_class) unless find_by_name(a)}
|
40
38
|
end
|
41
39
|
alias_method :<<, :add
|
42
40
|
|
41
|
+
def prepend(*args)
|
42
|
+
columns = args.flatten.collect {|a| a.to_sym}
|
43
|
+
@_inheritable.unshift(*(columns.reverse))
|
44
|
+
columns.each {|a| @set.unshift(ActiveScaffold::DataStructures::Column.new(a, @active_record_class)) unless find_by_name(a)}
|
45
|
+
end
|
46
|
+
|
43
47
|
def exclude(*args)
|
44
48
|
# only remove columns from _inheritable. we never want to completely forget about a column.
|
45
49
|
args.each { |a| @_inheritable.delete a }
|
@@ -237,8 +237,9 @@ module ActiveScaffold
|
|
237
237
|
|
238
238
|
def active_scaffold_inplace_edit(record, column, options = {})
|
239
239
|
formatted_column = options[:formatted_column] || format_column_value(record, column)
|
240
|
+
klass = (column.name == :marked ? 'mark_record_field' : 'in_place_editor_field')
|
240
241
|
id_options = {:id => record.id.to_s, :action => 'update_column', :name => column.name.to_s}
|
241
|
-
tag_options = {:id => element_cell_id(id_options), :class =>
|
242
|
+
tag_options = {:id => element_cell_id(id_options), :class => klass,
|
242
243
|
:title => as_(:click_to_edit), 'data-ie_id' => record.id.to_s}
|
243
244
|
|
244
245
|
content_tag(:span, formatted_column, tag_options)
|
@@ -262,7 +263,11 @@ module ActiveScaffold
|
|
262
263
|
|
263
264
|
def inplace_edit_tag_attributes(column)
|
264
265
|
tag_options = {}
|
265
|
-
|
266
|
+
if column.name == :marked
|
267
|
+
tag_options['data-ie_url'] = '#'
|
268
|
+
else
|
269
|
+
tag_options['data-ie_url'] = url_for({:controller => params_for[:controller], :action => 'update_column', :column => column.name, :id => '__id__'})
|
270
|
+
end
|
266
271
|
tag_options['data-ie_cancel_text'] = column.options[:cancel_text] || as_(:cancel)
|
267
272
|
tag_options['data-ie_loading_text'] = column.options[:loading_text] || as_(:loading)
|
268
273
|
tag_options['data-ie_save_text'] = column.options[:save_text] || as_(:update)
|
@@ -286,17 +291,8 @@ module ActiveScaffold
|
|
286
291
|
end
|
287
292
|
|
288
293
|
def mark_column_heading
|
289
|
-
|
290
|
-
|
291
|
-
@page.items.each do |record|
|
292
|
-
all_marked = false if !marked_records.entries.include?(record.id)
|
293
|
-
end
|
294
|
-
else
|
295
|
-
all_marked = (marked_records.length >= @page.pager.count)
|
296
|
-
end
|
297
|
-
tag_options = {:id => "#{controller_id}_mark_heading", :class => "mark_heading in_place_editor_field"}
|
298
|
-
tag_options['data-ie_url'] = url_for({:controller => params_for[:controller], :action => 'mark_all', :eid => params[:eid]})
|
299
|
-
content_tag(:span, check_box_tag("#{controller_id}_mark_heading_span_input", !all_marked, all_marked), tag_options)
|
294
|
+
tag_options = {:id => "#{controller_id}_mark_heading", :class => 'mark_heading', 'data-ie_url' => '#', 'data-tbody_id' => active_scaffold_tbody_id}
|
295
|
+
content_tag(:span, check_box_tag("#{controller_id}_mark_heading_span_input", true, false), tag_options)
|
300
296
|
end
|
301
297
|
|
302
298
|
def render_column_heading(column, sorting, sort_direction)
|
@@ -314,14 +310,13 @@ module ActiveScaffold
|
|
314
310
|
:sort => column.name, :sort_direction => sort_direction)
|
315
311
|
link_to column.label, url_options, options
|
316
312
|
else
|
317
|
-
if column.name
|
318
|
-
content_tag(:p, column.label)
|
319
|
-
else
|
313
|
+
if column.name == :marked
|
320
314
|
mark_column_heading
|
315
|
+
else
|
316
|
+
content_tag(:p, column.label)
|
321
317
|
end
|
322
318
|
end
|
323
319
|
end
|
324
320
|
end
|
325
321
|
end
|
326
322
|
end
|
327
|
-
|
@@ -150,6 +150,9 @@ module ActiveScaffold
|
|
150
150
|
html_options[:onclick] = link.dhtml_confirm.onclick_function(controller, link_id)
|
151
151
|
end
|
152
152
|
html_options[:class] += " #{link.html_options[:class]}" unless link.html_options[:class].blank?
|
153
|
+
if html_options[:class].split(' ').include?('marked_records_action')
|
154
|
+
html_options['data-tbody_id'] = active_scaffold_tbody_id
|
155
|
+
end
|
153
156
|
html_options
|
154
157
|
end
|
155
158
|
|
@@ -1,38 +1,13 @@
|
|
1
1
|
module ActiveScaffold
|
2
2
|
module MarkedModel
|
3
3
|
# This is a module aimed at making the make session_stored marked_records available to ActiveRecord models
|
4
|
-
|
5
|
-
def self.included(base)
|
6
|
-
base.extend ClassMethods
|
7
|
-
base.scope :marked, lambda {{:conditions => {:id => base.marked_records.to_a}}}
|
8
|
-
end
|
9
|
-
|
4
|
+
|
10
5
|
def marked
|
11
|
-
|
12
|
-
end
|
13
|
-
|
14
|
-
def marked=(value)
|
15
|
-
value = [true, 'true', 1, '1', 'T', 't'].include?(value.class == String ? value.downcase : value)
|
16
|
-
if value == true
|
17
|
-
marked_records << self.id if !marked
|
18
|
-
else
|
19
|
-
marked_records.delete(self.id)
|
20
|
-
end
|
6
|
+
false
|
21
7
|
end
|
22
|
-
|
23
|
-
module ClassMethods
|
24
|
-
def marked_records
|
25
|
-
Thread.current[:marked_records] ||= Set.new
|
26
|
-
end
|
27
8
|
|
28
|
-
|
29
|
-
|
30
|
-
end
|
31
|
-
end
|
32
|
-
|
33
|
-
# Instance-level access to the marked_records
|
34
|
-
def marked_records
|
35
|
-
self.class.marked_records
|
9
|
+
def marked=(value)
|
10
|
+
value
|
36
11
|
end
|
37
12
|
end
|
38
13
|
end
|
metadata
CHANGED
@@ -1,107 +1,131 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: active_scaffold-sequel
|
3
|
-
version: !ruby/object:Gem::Version
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.6.0
|
4
5
|
prerelease:
|
5
|
-
version: 0.5.1
|
6
6
|
platform: ruby
|
7
|
-
authors:
|
7
|
+
authors:
|
8
8
|
- Many, see README
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
- !ruby/object:Gem::Dependency
|
12
|
+
date: 2013-08-08 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
16
15
|
name: shoulda
|
17
|
-
|
18
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
19
17
|
none: false
|
20
|
-
requirements:
|
21
|
-
- -
|
22
|
-
- !ruby/object:Gem::Version
|
23
|
-
version:
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '0'
|
24
22
|
type: :development
|
25
|
-
version_requirements: *id001
|
26
|
-
- !ruby/object:Gem::Dependency
|
27
|
-
name: bundler
|
28
23
|
prerelease: false
|
29
|
-
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ! '>='
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '0'
|
30
|
+
- !ruby/object:Gem::Dependency
|
31
|
+
name: bundler
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
30
33
|
none: false
|
31
|
-
requirements:
|
34
|
+
requirements:
|
32
35
|
- - ~>
|
33
|
-
- !ruby/object:Gem::Version
|
36
|
+
- !ruby/object:Gem::Version
|
34
37
|
version: 1.0.0
|
35
38
|
type: :development
|
36
|
-
version_requirements: *id002
|
37
|
-
- !ruby/object:Gem::Dependency
|
38
|
-
name: rcov
|
39
39
|
prerelease: false
|
40
|
-
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
41
|
none: false
|
42
|
-
requirements:
|
43
|
-
- -
|
44
|
-
- !ruby/object:Gem::Version
|
45
|
-
version:
|
42
|
+
requirements:
|
43
|
+
- - ~>
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: 1.0.0
|
46
|
+
- !ruby/object:Gem::Dependency
|
47
|
+
name: rcov
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
49
|
+
none: false
|
50
|
+
requirements:
|
51
|
+
- - ! '>='
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '0'
|
46
54
|
type: :development
|
47
|
-
version_requirements: *id003
|
48
|
-
- !ruby/object:Gem::Dependency
|
49
|
-
name: rails
|
50
55
|
prerelease: false
|
51
|
-
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
52
57
|
none: false
|
53
|
-
requirements:
|
54
|
-
- -
|
55
|
-
- !ruby/object:Gem::Version
|
58
|
+
requirements:
|
59
|
+
- - ! '>='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
- !ruby/object:Gem::Dependency
|
63
|
+
name: rails
|
64
|
+
requirement: !ruby/object:Gem::Requirement
|
65
|
+
none: false
|
66
|
+
requirements:
|
67
|
+
- - ! '>='
|
68
|
+
- !ruby/object:Gem::Version
|
56
69
|
version: 3.1.3
|
57
70
|
type: :runtime
|
58
|
-
version_requirements: *id004
|
59
|
-
- !ruby/object:Gem::Dependency
|
60
|
-
name: sequel
|
61
71
|
prerelease: false
|
62
|
-
|
72
|
+
version_requirements: !ruby/object:Gem::Requirement
|
63
73
|
none: false
|
64
|
-
requirements:
|
65
|
-
- -
|
66
|
-
- !ruby/object:Gem::Version
|
67
|
-
version:
|
74
|
+
requirements:
|
75
|
+
- - ! '>='
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: 3.1.3
|
78
|
+
- !ruby/object:Gem::Dependency
|
79
|
+
name: sequel
|
80
|
+
requirement: !ruby/object:Gem::Requirement
|
81
|
+
none: false
|
82
|
+
requirements:
|
83
|
+
- - ! '>='
|
84
|
+
- !ruby/object:Gem::Version
|
85
|
+
version: '0'
|
68
86
|
type: :runtime
|
69
|
-
|
70
|
-
|
87
|
+
prerelease: false
|
88
|
+
version_requirements: !ruby/object:Gem::Requirement
|
89
|
+
none: false
|
90
|
+
requirements:
|
91
|
+
- - ! '>='
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
version: '0'
|
94
|
+
description: The original ActiveScaffold supports Rails (http://rubyonrails.org/)
|
95
|
+
with it's native ORM ActiveRecord. This version replaces support for ActiveRecord
|
96
|
+
with support for Sequel (http://sequel.rubyforge.org/).
|
71
97
|
email: stu3.141@googlemail.com
|
72
98
|
executables: []
|
73
|
-
|
74
99
|
extensions: []
|
75
|
-
|
76
|
-
extra_rdoc_files:
|
100
|
+
extra_rdoc_files:
|
77
101
|
- README
|
78
|
-
files:
|
79
|
-
- app/assets/images/active_scaffold/add.gif
|
102
|
+
files:
|
80
103
|
- app/assets/images/active_scaffold/arrow_down.gif
|
104
|
+
- app/assets/images/active_scaffold/add.gif
|
105
|
+
- app/assets/images/active_scaffold/indicator-small.gif
|
81
106
|
- app/assets/images/active_scaffold/arrow_up.gif
|
82
107
|
- app/assets/images/active_scaffold/close.gif
|
83
108
|
- app/assets/images/active_scaffold/close_touch.png
|
84
109
|
- app/assets/images/active_scaffold/config.png
|
85
110
|
- app/assets/images/active_scaffold/cross.png
|
86
111
|
- app/assets/images/active_scaffold/gears.png
|
87
|
-
- app/assets/images/active_scaffold/indicator-small.gif
|
88
112
|
- app/assets/images/active_scaffold/indicator.gif
|
89
113
|
- app/assets/images/active_scaffold/magnifier.png
|
90
|
-
- app/assets/javascripts/active_scaffold.js.erb
|
91
|
-
- app/assets/javascripts/jquery/active_scaffold.js
|
92
114
|
- app/assets/javascripts/jquery/date_picker_bridge.js.erb
|
93
|
-
- app/assets/javascripts/jquery/
|
115
|
+
- app/assets/javascripts/jquery/active_scaffold.js
|
94
116
|
- app/assets/javascripts/jquery/jquery.editinplace.js
|
117
|
+
- app/assets/javascripts/jquery/draggable_lists.js
|
95
118
|
- app/assets/javascripts/jquery/tiny_mce_bridge.js
|
119
|
+
- app/assets/javascripts/prototype/form_enhancements.js
|
96
120
|
- app/assets/javascripts/prototype/active_scaffold.js
|
97
121
|
- app/assets/javascripts/prototype/dhtml_history.js
|
98
|
-
- app/assets/javascripts/prototype/form_enhancements.js
|
99
|
-
- app/assets/javascripts/prototype/rico_corner.js
|
100
122
|
- app/assets/javascripts/prototype/tiny_mce_bridge.js
|
101
|
-
- app/assets/
|
123
|
+
- app/assets/javascripts/prototype/rico_corner.js
|
124
|
+
- app/assets/javascripts/active_scaffold.js.erb
|
102
125
|
- app/assets/stylesheets/active_scaffold.css.scss
|
103
|
-
- app/assets/stylesheets/
|
126
|
+
- app/assets/stylesheets/active_scaffold-ie.css
|
104
127
|
- app/assets/stylesheets/active_scaffold_extensions.css.erb
|
128
|
+
- app/assets/stylesheets/active_scaffold_colors.css.scss
|
105
129
|
- app/assets/stylesheets/active_scaffold_images.css.scss
|
106
130
|
- app/assets/stylesheets/active_scaffold_layout.css
|
107
131
|
- app/assets/stylesheets/blue-theme.css
|
@@ -112,35 +136,37 @@ files:
|
|
112
136
|
- config/locales/hu.yml
|
113
137
|
- config/locales/ja.yml
|
114
138
|
- config/locales/ru.yml
|
115
|
-
-
|
139
|
+
- doc/README.mark
|
116
140
|
- frontends/default/views/_add_existing_form.html.erb
|
117
|
-
- frontends/default/views/
|
141
|
+
- frontends/default/views/_action_group.html.erb
|
118
142
|
- frontends/default/views/_create_form.html.erb
|
143
|
+
- frontends/default/views/_base_form.html.erb
|
144
|
+
- frontends/default/views/_form_association_footer.html.erb
|
119
145
|
- frontends/default/views/_create_form_on_list.html.erb
|
120
146
|
- frontends/default/views/_field_search.html.erb
|
121
147
|
- frontends/default/views/_form.html.erb
|
122
148
|
- frontends/default/views/_form_association.html.erb
|
123
|
-
- frontends/default/views/_form_association_footer.html.erb
|
124
|
-
- frontends/default/views/_form_attribute.html.erb
|
125
149
|
- frontends/default/views/_form_hidden_attribute.html.erb
|
150
|
+
- frontends/default/views/_form_attribute.html.erb
|
151
|
+
- frontends/default/views/_list_actions.html.erb
|
152
|
+
- frontends/default/views/_list.html.erb
|
126
153
|
- frontends/default/views/_form_messages.html.erb
|
127
154
|
- frontends/default/views/_horizontal_subform.html.erb
|
128
|
-
- frontends/default/views/_human_conditions.html.erb
|
129
155
|
- frontends/default/views/_horizontal_subform_footer.html.erb
|
130
156
|
- frontends/default/views/_horizontal_subform_header.html.erb
|
131
157
|
- frontends/default/views/_horizontal_subform_record.html.erb
|
132
|
-
- frontends/default/views/
|
133
|
-
- frontends/default/views/_list_actions.html.erb
|
134
|
-
- frontends/default/views/_list_calculations.html.erb
|
158
|
+
- frontends/default/views/_human_conditions.html.erb
|
135
159
|
- frontends/default/views/_list_column_headings.html.erb
|
136
|
-
- frontends/default/views/
|
160
|
+
- frontends/default/views/_list_calculations.html.erb
|
137
161
|
- frontends/default/views/_list_inline_adapter.html.erb
|
138
|
-
- frontends/default/views/
|
162
|
+
- frontends/default/views/_list_header.html.erb
|
139
163
|
- frontends/default/views/_list_pagination.html.erb
|
164
|
+
- frontends/default/views/_list_messages.html.erb
|
165
|
+
- frontends/default/views/_vertical_subform_record.html.erb
|
140
166
|
- frontends/default/views/_list_pagination_links.html.erb
|
141
167
|
- frontends/default/views/_list_record.html.erb
|
142
|
-
- frontends/default/views/_list_with_header.html.erb
|
143
168
|
- frontends/default/views/_list_record_columns.html.erb
|
169
|
+
- frontends/default/views/_list_with_header.html.erb
|
144
170
|
- frontends/default/views/_messages.html.erb
|
145
171
|
- frontends/default/views/_render_field.js.erb
|
146
172
|
- frontends/default/views/_row.html.erb
|
@@ -151,7 +177,6 @@ files:
|
|
151
177
|
- frontends/default/views/_update_actions.html.erb
|
152
178
|
- frontends/default/views/_update_form.html.erb
|
153
179
|
- frontends/default/views/_vertical_subform.html.erb
|
154
|
-
- frontends/default/views/_vertical_subform_record.html.erb
|
155
180
|
- frontends/default/views/action_confirmation.html.erb
|
156
181
|
- frontends/default/views/add_existing.js.erb
|
157
182
|
- frontends/default/views/add_existing_form.html.erb
|
@@ -164,7 +189,6 @@ files:
|
|
164
189
|
- frontends/default/views/list.html.erb
|
165
190
|
- frontends/default/views/on_action_update.js.erb
|
166
191
|
- frontends/default/views/on_create.js.erb
|
167
|
-
- frontends/default/views/on_mark_all.js.erb
|
168
192
|
- frontends/default/views/on_update.js.erb
|
169
193
|
- frontends/default/views/refresh_list.js.erb
|
170
194
|
- frontends/default/views/render_field.js.erb
|
@@ -173,7 +197,6 @@ files:
|
|
173
197
|
- frontends/default/views/update.html.erb
|
174
198
|
- frontends/default/views/update_column.js.erb
|
175
199
|
- frontends/default/views/update_row.js.erb
|
176
|
-
- lib/active_scaffold.rb
|
177
200
|
- lib/active_scaffold/actions/common_search.rb
|
178
201
|
- lib/active_scaffold/actions/core.rb
|
179
202
|
- lib/active_scaffold/actions/create.rb
|
@@ -186,47 +209,41 @@ files:
|
|
186
209
|
- lib/active_scaffold/actions/show.rb
|
187
210
|
- lib/active_scaffold/actions/subform.rb
|
188
211
|
- lib/active_scaffold/actions/update.rb
|
189
|
-
- lib/active_scaffold/render.rb
|
190
|
-
- lib/active_scaffold/ring.rb
|
191
|
-
- lib/active_scaffold/attribute_params.rb
|
192
|
-
- lib/active_scaffold/bridges.rb
|
193
|
-
- lib/active_scaffold/bridges/calendar_date_select.rb
|
194
212
|
- lib/active_scaffold/bridges/calendar_date_select/as_cds_bridge.rb
|
195
|
-
- lib/active_scaffold/bridges/cancan.rb
|
196
213
|
- lib/active_scaffold/bridges/cancan/cancan_bridge.rb
|
197
|
-
- lib/active_scaffold/bridges/carrierwave.rb
|
198
|
-
- lib/active_scaffold/bridges/carrierwave/carrierwave_bridge.rb
|
199
214
|
- lib/active_scaffold/bridges/carrierwave/carrierwave_bridge_helpers.rb
|
215
|
+
- lib/active_scaffold/bridges/carrierwave/carrierwave_bridge.rb
|
200
216
|
- lib/active_scaffold/bridges/carrierwave/form_ui.rb
|
201
217
|
- lib/active_scaffold/bridges/carrierwave/list_ui.rb
|
202
|
-
- lib/active_scaffold/bridges/country_helper.rb
|
203
218
|
- lib/active_scaffold/bridges/country_helper/country_helper_bridge.rb
|
204
|
-
- lib/active_scaffold/bridges/date_picker.rb
|
205
|
-
- lib/active_scaffold/bridges/date_picker/ext.rb
|
206
219
|
- lib/active_scaffold/bridges/date_picker/helper.rb
|
207
|
-
- lib/active_scaffold/bridges/
|
208
|
-
- lib/active_scaffold/bridges/dragonfly/dragonfly_bridge.rb
|
220
|
+
- lib/active_scaffold/bridges/date_picker/ext.rb
|
209
221
|
- lib/active_scaffold/bridges/dragonfly/dragonfly_bridge_helpers.rb
|
222
|
+
- lib/active_scaffold/bridges/dragonfly/dragonfly_bridge.rb
|
210
223
|
- lib/active_scaffold/bridges/dragonfly/form_ui.rb
|
211
224
|
- lib/active_scaffold/bridges/dragonfly/list_ui.rb
|
212
225
|
- lib/active_scaffold/bridges/shared/date_bridge.rb
|
213
|
-
- lib/active_scaffold/bridges/tiny_mce.rb
|
214
226
|
- lib/active_scaffold/bridges/tiny_mce/helpers.rb
|
227
|
+
- lib/active_scaffold/bridges/calendar_date_select.rb
|
228
|
+
- lib/active_scaffold/bridges/cancan.rb
|
229
|
+
- lib/active_scaffold/bridges/carrierwave.rb
|
230
|
+
- lib/active_scaffold/bridges/country_helper.rb
|
231
|
+
- lib/active_scaffold/bridges/date_picker.rb
|
232
|
+
- lib/active_scaffold/bridges/dragonfly.rb
|
233
|
+
- lib/active_scaffold/bridges/tiny_mce.rb
|
234
|
+
- lib/active_scaffold/config/create.rb
|
215
235
|
- lib/active_scaffold/config/base.rb
|
216
236
|
- lib/active_scaffold/config/core.rb
|
217
|
-
- lib/active_scaffold/config/create.rb
|
218
|
-
- lib/active_scaffold/config/delete.rb
|
219
237
|
- lib/active_scaffold/config/field_search.rb
|
238
|
+
- lib/active_scaffold/config/delete.rb
|
239
|
+
- lib/active_scaffold/config/nested.rb
|
220
240
|
- lib/active_scaffold/config/form.rb
|
221
241
|
- lib/active_scaffold/config/list.rb
|
222
242
|
- lib/active_scaffold/config/mark.rb
|
223
|
-
- lib/active_scaffold/config/nested.rb
|
224
243
|
- lib/active_scaffold/config/search.rb
|
225
244
|
- lib/active_scaffold/config/show.rb
|
226
245
|
- lib/active_scaffold/config/subform.rb
|
227
246
|
- lib/active_scaffold/config/update.rb
|
228
|
-
- lib/active_scaffold/configurable.rb
|
229
|
-
- lib/active_scaffold/constraints.rb
|
230
247
|
- lib/active_scaffold/data_structures/action_columns.rb
|
231
248
|
- lib/active_scaffold/data_structures/action_link.rb
|
232
249
|
- lib/active_scaffold/data_structures/action_links.rb
|
@@ -238,39 +255,46 @@ files:
|
|
238
255
|
- lib/active_scaffold/data_structures/nested_info.rb
|
239
256
|
- lib/active_scaffold/data_structures/set.rb
|
240
257
|
- lib/active_scaffold/data_structures/sorting.rb
|
241
|
-
- lib/active_scaffold/engine.rb
|
242
|
-
- lib/active_scaffold/extensions/to_label.rb
|
243
258
|
- lib/active_scaffold/extensions/action_view_rendering.rb
|
244
|
-
- lib/active_scaffold/extensions/unsaved_associated.rb
|
245
|
-
- lib/active_scaffold/extensions/unsaved_record.rb
|
246
|
-
- lib/active_scaffold/extensions/paginator_extensions.rb
|
247
259
|
- lib/active_scaffold/extensions/localize.rb
|
248
260
|
- lib/active_scaffold/extensions/name_option_for_datetime.rb
|
261
|
+
- lib/active_scaffold/extensions/paginator_extensions.rb
|
249
262
|
- lib/active_scaffold/extensions/routing_mapper.rb
|
263
|
+
- lib/active_scaffold/extensions/to_label.rb
|
264
|
+
- lib/active_scaffold/extensions/unsaved_associated.rb
|
265
|
+
- lib/active_scaffold/extensions/unsaved_record.rb
|
250
266
|
- lib/active_scaffold/extensions/usa_state.rb
|
251
|
-
- lib/active_scaffold/
|
267
|
+
- lib/active_scaffold/helpers/human_condition_helpers.rb
|
252
268
|
- lib/active_scaffold/helpers/association_helpers.rb
|
253
269
|
- lib/active_scaffold/helpers/controller_helpers.rb
|
254
270
|
- lib/active_scaffold/helpers/form_column_helpers.rb
|
255
|
-
- lib/active_scaffold/helpers/human_condition_helpers.rb
|
256
|
-
- lib/active_scaffold/helpers/id_helpers.rb
|
257
271
|
- lib/active_scaffold/helpers/list_column_helpers.rb
|
258
|
-
- lib/active_scaffold/helpers/
|
272
|
+
- lib/active_scaffold/helpers/id_helpers.rb
|
259
273
|
- lib/active_scaffold/helpers/search_column_helpers.rb
|
274
|
+
- lib/active_scaffold/helpers/pagination_helpers.rb
|
260
275
|
- lib/active_scaffold/helpers/show_column_helpers.rb
|
261
276
|
- lib/active_scaffold/helpers/view_helpers.rb
|
277
|
+
- lib/active_scaffold/model_permissions.rb
|
278
|
+
- lib/active_scaffold/attribute_params.rb
|
279
|
+
- lib/active_scaffold/bridges.rb
|
280
|
+
- lib/active_scaffold/configurable.rb
|
281
|
+
- lib/active_scaffold/constraints.rb
|
282
|
+
- lib/active_scaffold/engine.rb
|
283
|
+
- lib/active_scaffold/finder.rb
|
262
284
|
- lib/active_scaffold/marked_model.rb
|
263
|
-
- lib/active_scaffold/paginator.rb
|
264
285
|
- lib/active_scaffold/responds_to_parent.rb
|
286
|
+
- lib/active_scaffold/paginator.rb
|
287
|
+
- lib/active_scaffold/render.rb
|
265
288
|
- lib/active_scaffold/version.rb
|
266
|
-
- lib/active_scaffold/
|
267
|
-
- lib/active_scaffold_env.rb
|
289
|
+
- lib/active_scaffold/ring.rb
|
268
290
|
- lib/generators/active_scaffold/USAGE
|
269
291
|
- lib/generators/active_scaffold/active_scaffold_generator.rb
|
270
|
-
- lib/generators/active_scaffold_controller/USAGE
|
271
|
-
- lib/generators/active_scaffold_controller/active_scaffold_controller_generator.rb
|
272
292
|
- lib/generators/active_scaffold_controller/templates/controller.rb
|
273
293
|
- lib/generators/active_scaffold_controller/templates/helper.rb
|
294
|
+
- lib/generators/active_scaffold_controller/USAGE
|
295
|
+
- lib/generators/active_scaffold_controller/active_scaffold_controller_generator.rb
|
296
|
+
- lib/active_scaffold_env.rb
|
297
|
+
- lib/active_scaffold.rb
|
274
298
|
- public/blank.html
|
275
299
|
- shoulda_macros/macros.rb
|
276
300
|
- vendor/assets/images/ui-bg_diagonals-thick_18_b81900_40x40.png
|
@@ -292,35 +316,34 @@ files:
|
|
292
316
|
- MIT-LICENSE
|
293
317
|
- CHANGELOG
|
294
318
|
- README
|
295
|
-
- test/bridges/
|
319
|
+
- test/bridges/paperclip_test.rb
|
296
320
|
- test/bridges/bridge_test.rb
|
321
|
+
- test/bridges/active_scaffold_dependent_protect_test.rb
|
297
322
|
- test/bridges/company.rb
|
298
|
-
- test/bridges/paperclip_test.rb
|
299
323
|
- test/bridges/tiny_mce_test.rb
|
300
324
|
- test/bridges/unobtrusive_date_picker_test.rb
|
301
325
|
- test/bridges/validation_reflection_test.rb
|
326
|
+
- test/config/field_search_test.rb
|
302
327
|
- test/config/base_test.rb
|
303
328
|
- test/config/core_test.rb
|
304
329
|
- test/config/create_test.rb
|
305
330
|
- test/config/delete_test.rb
|
306
|
-
- test/config/field_search_test.rb
|
307
331
|
- test/config/list_test.rb
|
308
332
|
- test/config/nested_test.rb
|
309
333
|
- test/config/search_test.rb
|
310
334
|
- test/config/show_test.rb
|
311
335
|
- test/config/subform_test.rb
|
312
336
|
- test/config/update_test.rb
|
313
|
-
- test/
|
337
|
+
- test/data_structures/association_column_test.rb
|
314
338
|
- test/data_structures/action_columns_test.rb
|
315
339
|
- test/data_structures/action_link_test.rb
|
316
340
|
- test/data_structures/action_links_test.rb
|
317
341
|
- test/data_structures/actions_test.rb
|
318
|
-
- test/data_structures/
|
342
|
+
- test/data_structures/error_message_test.rb
|
319
343
|
- test/data_structures/column_test.rb
|
320
344
|
- test/data_structures/columns_test.rb
|
321
|
-
- test/data_structures/error_message_test.rb
|
322
|
-
- test/data_structures/set_test.rb
|
323
345
|
- test/data_structures/sorting_test.rb
|
346
|
+
- test/data_structures/set_test.rb
|
324
347
|
- test/data_structures/standard_column_test.rb
|
325
348
|
- test/data_structures/virtual_column_test.rb
|
326
349
|
- test/extensions/active_record_test.rb
|
@@ -336,9 +359,6 @@ files:
|
|
336
359
|
- test/misc/lang_test.rb
|
337
360
|
- test/mock_app/app/controllers/application_controller.rb
|
338
361
|
- test/mock_app/app/helpers/application_helper.rb
|
339
|
-
- test/mock_app/config/boot.rb
|
340
|
-
- test/mock_app/config/database.yml
|
341
|
-
- test/mock_app/config/environment.rb
|
342
362
|
- test/mock_app/config/environments/development.rb
|
343
363
|
- test/mock_app/config/environments/production.rb
|
344
364
|
- test/mock_app/config/environments/test.rb
|
@@ -348,86 +368,87 @@ files:
|
|
348
368
|
- test/mock_app/config/initializers/new_rails_defaults.rb
|
349
369
|
- test/mock_app/config/initializers/session_store.rb
|
350
370
|
- test/mock_app/config/locales/en.yml
|
371
|
+
- test/mock_app/config/database.yml
|
372
|
+
- test/mock_app/config/boot.rb
|
373
|
+
- test/mock_app/config/environment.rb
|
351
374
|
- test/mock_app/config/routes.rb
|
352
375
|
- test/mock_app/db/test.sqlite3
|
353
|
-
- test/mock_app/public/blank.html
|
354
|
-
- test/mock_app/public/images/active_scaffold/DO_NOT_EDIT
|
355
|
-
- test/mock_app/public/images/active_scaffold/default/add.gif
|
356
376
|
- test/mock_app/public/images/active_scaffold/default/arrow_down.gif
|
377
|
+
- test/mock_app/public/images/active_scaffold/default/add.gif
|
378
|
+
- test/mock_app/public/images/active_scaffold/default/indicator-small.gif
|
357
379
|
- test/mock_app/public/images/active_scaffold/default/arrow_up.gif
|
358
380
|
- test/mock_app/public/images/active_scaffold/default/close.gif
|
359
381
|
- test/mock_app/public/images/active_scaffold/default/cross.png
|
360
|
-
- test/mock_app/public/images/active_scaffold/default/indicator-small.gif
|
361
382
|
- test/mock_app/public/images/active_scaffold/default/indicator.gif
|
362
383
|
- test/mock_app/public/images/active_scaffold/default/magnifier.png
|
363
|
-
- test/mock_app/public/
|
384
|
+
- test/mock_app/public/images/active_scaffold/DO_NOT_EDIT
|
385
|
+
- test/mock_app/public/javascripts/active_scaffold/default/form_enhancements.js
|
364
386
|
- test/mock_app/public/javascripts/active_scaffold/default/active_scaffold.js
|
365
387
|
- test/mock_app/public/javascripts/active_scaffold/default/dhtml_history.js
|
366
|
-
- test/mock_app/public/javascripts/active_scaffold/default/form_enhancements.js
|
367
388
|
- test/mock_app/public/javascripts/active_scaffold/default/rico_corner.js
|
368
|
-
- test/mock_app/public/
|
389
|
+
- test/mock_app/public/javascripts/active_scaffold/DO_NOT_EDIT
|
369
390
|
- test/mock_app/public/stylesheets/active_scaffold/default/stylesheet-ie.css
|
370
391
|
- test/mock_app/public/stylesheets/active_scaffold/default/stylesheet.css
|
392
|
+
- test/mock_app/public/stylesheets/active_scaffold/DO_NOT_EDIT
|
393
|
+
- test/mock_app/public/blank.html
|
394
|
+
- test/const_mocker.rb
|
371
395
|
- test/model_stub.rb
|
372
396
|
- test/run_all.rb
|
373
397
|
- test/test_helper.rb
|
374
398
|
homepage: http://as-seq.rubyforge.org/
|
375
|
-
licenses:
|
399
|
+
licenses:
|
376
400
|
- MIT
|
377
401
|
post_install_message:
|
378
402
|
rdoc_options: []
|
379
|
-
|
380
|
-
require_paths:
|
403
|
+
require_paths:
|
381
404
|
- lib
|
382
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
405
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
383
406
|
none: false
|
384
|
-
requirements:
|
385
|
-
- -
|
386
|
-
- !ruby/object:Gem::Version
|
387
|
-
version:
|
388
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
407
|
+
requirements:
|
408
|
+
- - ! '>='
|
409
|
+
- !ruby/object:Gem::Version
|
410
|
+
version: '0'
|
411
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
389
412
|
none: false
|
390
|
-
requirements:
|
391
|
-
- -
|
392
|
-
- !ruby/object:Gem::Version
|
393
|
-
version:
|
413
|
+
requirements:
|
414
|
+
- - ! '>='
|
415
|
+
- !ruby/object:Gem::Version
|
416
|
+
version: '0'
|
394
417
|
requirements: []
|
395
|
-
|
396
418
|
rubyforge_project:
|
397
|
-
rubygems_version: 1.8.
|
419
|
+
rubygems_version: 1.8.23
|
398
420
|
signing_key:
|
399
421
|
specification_version: 3
|
400
422
|
summary: ActiveScaffold version supporting Sequel with Rails 3.1.
|
401
|
-
test_files:
|
402
|
-
- test/bridges/
|
423
|
+
test_files:
|
424
|
+
- test/bridges/paperclip_test.rb
|
403
425
|
- test/bridges/bridge_test.rb
|
426
|
+
- test/bridges/active_scaffold_dependent_protect_test.rb
|
404
427
|
- test/bridges/company.rb
|
405
|
-
- test/bridges/paperclip_test.rb
|
406
428
|
- test/bridges/tiny_mce_test.rb
|
407
429
|
- test/bridges/unobtrusive_date_picker_test.rb
|
408
430
|
- test/bridges/validation_reflection_test.rb
|
431
|
+
- test/config/field_search_test.rb
|
409
432
|
- test/config/base_test.rb
|
410
433
|
- test/config/core_test.rb
|
411
434
|
- test/config/create_test.rb
|
412
435
|
- test/config/delete_test.rb
|
413
|
-
- test/config/field_search_test.rb
|
414
436
|
- test/config/list_test.rb
|
415
437
|
- test/config/nested_test.rb
|
416
438
|
- test/config/search_test.rb
|
417
439
|
- test/config/show_test.rb
|
418
440
|
- test/config/subform_test.rb
|
419
441
|
- test/config/update_test.rb
|
420
|
-
- test/
|
442
|
+
- test/data_structures/association_column_test.rb
|
421
443
|
- test/data_structures/action_columns_test.rb
|
422
444
|
- test/data_structures/action_link_test.rb
|
423
445
|
- test/data_structures/action_links_test.rb
|
424
446
|
- test/data_structures/actions_test.rb
|
425
|
-
- test/data_structures/
|
447
|
+
- test/data_structures/error_message_test.rb
|
426
448
|
- test/data_structures/column_test.rb
|
427
449
|
- test/data_structures/columns_test.rb
|
428
|
-
- test/data_structures/error_message_test.rb
|
429
|
-
- test/data_structures/set_test.rb
|
430
450
|
- test/data_structures/sorting_test.rb
|
451
|
+
- test/data_structures/set_test.rb
|
431
452
|
- test/data_structures/standard_column_test.rb
|
432
453
|
- test/data_structures/virtual_column_test.rb
|
433
454
|
- test/extensions/active_record_test.rb
|
@@ -443,9 +464,6 @@ test_files:
|
|
443
464
|
- test/misc/lang_test.rb
|
444
465
|
- test/mock_app/app/controllers/application_controller.rb
|
445
466
|
- test/mock_app/app/helpers/application_helper.rb
|
446
|
-
- test/mock_app/config/boot.rb
|
447
|
-
- test/mock_app/config/database.yml
|
448
|
-
- test/mock_app/config/environment.rb
|
449
467
|
- test/mock_app/config/environments/development.rb
|
450
468
|
- test/mock_app/config/environments/production.rb
|
451
469
|
- test/mock_app/config/environments/test.rb
|
@@ -455,26 +473,30 @@ test_files:
|
|
455
473
|
- test/mock_app/config/initializers/new_rails_defaults.rb
|
456
474
|
- test/mock_app/config/initializers/session_store.rb
|
457
475
|
- test/mock_app/config/locales/en.yml
|
476
|
+
- test/mock_app/config/database.yml
|
477
|
+
- test/mock_app/config/boot.rb
|
478
|
+
- test/mock_app/config/environment.rb
|
458
479
|
- test/mock_app/config/routes.rb
|
459
480
|
- test/mock_app/db/test.sqlite3
|
460
|
-
- test/mock_app/public/blank.html
|
461
|
-
- test/mock_app/public/images/active_scaffold/DO_NOT_EDIT
|
462
|
-
- test/mock_app/public/images/active_scaffold/default/add.gif
|
463
481
|
- test/mock_app/public/images/active_scaffold/default/arrow_down.gif
|
482
|
+
- test/mock_app/public/images/active_scaffold/default/add.gif
|
483
|
+
- test/mock_app/public/images/active_scaffold/default/indicator-small.gif
|
464
484
|
- test/mock_app/public/images/active_scaffold/default/arrow_up.gif
|
465
485
|
- test/mock_app/public/images/active_scaffold/default/close.gif
|
466
486
|
- test/mock_app/public/images/active_scaffold/default/cross.png
|
467
|
-
- test/mock_app/public/images/active_scaffold/default/indicator-small.gif
|
468
487
|
- test/mock_app/public/images/active_scaffold/default/indicator.gif
|
469
488
|
- test/mock_app/public/images/active_scaffold/default/magnifier.png
|
470
|
-
- test/mock_app/public/
|
489
|
+
- test/mock_app/public/images/active_scaffold/DO_NOT_EDIT
|
490
|
+
- test/mock_app/public/javascripts/active_scaffold/default/form_enhancements.js
|
471
491
|
- test/mock_app/public/javascripts/active_scaffold/default/active_scaffold.js
|
472
492
|
- test/mock_app/public/javascripts/active_scaffold/default/dhtml_history.js
|
473
|
-
- test/mock_app/public/javascripts/active_scaffold/default/form_enhancements.js
|
474
493
|
- test/mock_app/public/javascripts/active_scaffold/default/rico_corner.js
|
475
|
-
- test/mock_app/public/
|
494
|
+
- test/mock_app/public/javascripts/active_scaffold/DO_NOT_EDIT
|
476
495
|
- test/mock_app/public/stylesheets/active_scaffold/default/stylesheet-ie.css
|
477
496
|
- test/mock_app/public/stylesheets/active_scaffold/default/stylesheet.css
|
497
|
+
- test/mock_app/public/stylesheets/active_scaffold/DO_NOT_EDIT
|
498
|
+
- test/mock_app/public/blank.html
|
499
|
+
- test/const_mocker.rb
|
478
500
|
- test/model_stub.rb
|
479
501
|
- test/run_all.rb
|
480
502
|
- test/test_helper.rb
|