lolita 3.2.0.rc.6 → 3.2.0.rc.7
Sign up to get free protection for your applications and to get access to all the features.
- data/History.rdoc +8 -3
- data/README.md +0 -5
- data/VERSION +1 -1
- data/app/assets/images/lolita/jquery-ui/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- data/app/assets/images/lolita/jquery-ui/images/ui-bg_flat_55_fbec88_40x100.png +0 -0
- data/app/assets/images/lolita/jquery-ui/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
- data/app/assets/images/lolita/jquery-ui/images/ui-bg_highlight-soft_45_676767_1x100.png +0 -0
- data/app/assets/images/lolita/jquery-ui/images/ui-bg_highlight-soft_75_e3e3e3_1x100.png +0 -0
- data/app/assets/images/lolita/jquery-ui/images/ui-bg_highlight-soft_85_f3f3f3_1x100.png +0 -0
- data/app/assets/images/lolita/jquery-ui/images/ui-bg_inset-hard_100_d7d7d7_1x100.png +0 -0
- data/app/assets/images/lolita/jquery-ui/images/ui-bg_inset-hard_100_fcfdfd_1x100.png +0 -0
- data/app/assets/images/lolita/jquery-ui/images/ui-icons_7ac1ed_256x240.png +0 -0
- data/app/assets/images/lolita/jquery-ui/images/ui-icons_a1a1a1_256x240.png +0 -0
- data/app/assets/images/lolita/jquery-ui/images/ui-icons_cd0a0a_256x240.png +0 -0
- data/app/assets/images/lolita/jquery-ui/images/ui-icons_d8e7f3_256x240.png +0 -0
- data/app/assets/images/lolita/large-ajax-loader.gif +0 -0
- data/app/assets/images/lolita/small-ajax-loader.gif +0 -0
- data/app/assets/images/lolita/trash-small.png +0 -0
- data/app/assets/javascripts/lolita/main.js +3 -1
- data/app/assets/javascripts/lolita/tab.js +46 -35
- data/app/assets/stylesheets/lolita/application.css +1 -1
- data/app/assets/stylesheets/lolita/jquery-ui-1.8.16.lolita.css.erb +568 -0
- data/app/assets/stylesheets/lolita/style.css.erb +10 -0
- data/app/controllers/lolita/field_data_controller.rb +13 -9
- data/app/controllers/lolita/info_controller.rb +12 -1
- data/app/views/components/lolita/configuration/column/_header.html.erb +1 -1
- data/app/views/components/lolita/configuration/column/_sort.html.erb +7 -4
- data/app/views/components/lolita/configuration/field/_display.html.erb +12 -10
- data/app/views/components/lolita/configuration/field/array/_display.html.erb +1 -1
- data/app/views/components/lolita/configuration/field/array/autocomplete/_display.html.haml +14 -0
- data/app/views/components/lolita/configuration/field/array/autocomplete/_input.html.haml +19 -0
- data/app/views/components/lolita/configuration/field/array/{habtm → checkbox}/_display.html.haml +0 -0
- data/app/views/components/lolita/configuration/list/_new_resource.html.erb +6 -4
- data/app/views/components/lolita/configuration/nested_form/_display.html.erb +8 -6
- data/app/views/components/lolita/configuration/tab/_error_msg.html.erb +10 -4
- data/app/views/components/lolita/navigation/_tree.html.erb +2 -0
- data/app/views/components/lolita/shared/_right_sidebar.html.erb +1 -6
- data/app/views/components/lolita/shared/_save_button.html.erb +6 -0
- data/config/routes.rb +1 -1
- data/lib/lolita.rb +5 -0
- data/lib/lolita/adapter/active_record.rb +17 -13
- data/lib/lolita/adapter/mongoid.rb +21 -17
- data/lib/lolita/configuration/base.rb +15 -2
- data/lib/lolita/configuration/column.rb +25 -2
- data/lib/lolita/configuration/field.rb +24 -1
- data/lib/lolita/configuration/field/array.rb +33 -9
- data/lib/lolita/configuration/search.rb +1 -0
- data/lib/lolita/controllers/authorization_helpers.rb +1 -1
- data/lib/lolita/controllers/internal_helpers.rb +17 -3
- data/lib/lolita/hooks.rb +33 -5
- data/lib/lolita/lazy_loader.rb +3 -0
- data/lib/lolita/mapping.rb +13 -2
- data/lib/lolita/navigation/branch.rb +13 -11
- data/lib/lolita/rails.rb +1 -0
- data/lib/lolita/rails/routes.rb +3 -1
- data/lib/lolita/search/simple.rb +1 -2
- data/lolita.gemspec +23 -6
- data/spec/configuration/field_spec.rb +17 -0
- data/vendor/assets/javascripts/application_vendor_lolita.js +1 -0
- data/vendor/assets/javascripts/jquery-numeric.js +280 -0
- metadata +60 -43
- data/app/views/components/lolita/configuration/field/array/habtm_autocomplete/_display.html.haml +0 -11
- data/lolita.gemspec.orig +0 -434
- data/vendor/assets/javascripts/jquery-ui-1.8.13.min.js +0 -407
@@ -85,5 +85,22 @@ describe Lolita::Configuration::Field do
|
|
85
85
|
field.association.macro.should == :many
|
86
86
|
end
|
87
87
|
|
88
|
+
it "should use detect field state matches record state" do
|
89
|
+
field = Lolita::Configuration::Factory::Field.add(@dbi, :title, :string, :on => :create)
|
90
|
+
field2 = Lolita::Configuration::Factory::Field.add(@dbi, :title, :string, :on => [:update])
|
91
|
+
field3 = Lolita::Configuration::Factory::Field.add(@dbi, :title, :string)
|
92
|
+
field4 = Lolita::Configuration::Factory::Field.add(@dbi, :title, :string, :on => Proc.new{|rec| rec.title == "title"})
|
93
|
+
record = @dbi.klass.new
|
94
|
+
field.match_state_of?(record).should be_true
|
95
|
+
field2.match_state_of?(record).should_not be_true
|
96
|
+
field3.match_state_of?(record).should be_true
|
97
|
+
field4.match_state_of?(record).should_not be_true
|
98
|
+
record2 = @dbi.klass.create!(:title => "title")
|
99
|
+
field.match_state_of?(record2).should_not be_true
|
100
|
+
field2.match_state_of?(record2).should be_true
|
101
|
+
field3.match_state_of?(record2).should be_true
|
102
|
+
field4.match_state_of?(record2).should be_true
|
103
|
+
end
|
104
|
+
|
88
105
|
end
|
89
106
|
|
@@ -0,0 +1,280 @@
|
|
1
|
+
/*
|
2
|
+
*
|
3
|
+
* Copyright (c) 2006-2011 Sam Collett (http://www.texotela.co.uk)
|
4
|
+
* Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php)
|
5
|
+
* and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses.
|
6
|
+
*
|
7
|
+
* Version 1.3.1
|
8
|
+
* Demo: http://www.texotela.co.uk/code/jquery/numeric/
|
9
|
+
*
|
10
|
+
*/
|
11
|
+
(function($) {
|
12
|
+
/*
|
13
|
+
* Allows only valid characters to be entered into input boxes.
|
14
|
+
* Note: fixes value when pasting via Ctrl+V, but not when using the mouse to paste
|
15
|
+
* side-effect: Ctrl+A does not work, though you can still use the mouse to select (or double-click to select all)
|
16
|
+
*
|
17
|
+
* @name numeric
|
18
|
+
* @param config { decimal : "." , negative : true }
|
19
|
+
* @param callback A function that runs if the number is not valid (fires onblur)
|
20
|
+
* @author Sam Collett (http://www.texotela.co.uk)
|
21
|
+
* @example $(".numeric").numeric();
|
22
|
+
* @example $(".numeric").numeric(","); // use , as separater
|
23
|
+
* @example $(".numeric").numeric({ decimal : "," }); // use , as separator
|
24
|
+
* @example $(".numeric").numeric({ negative : false }); // do not allow negative values
|
25
|
+
* @example $(".numeric").numeric(null, callback); // use default values, pass on the 'callback' function
|
26
|
+
*
|
27
|
+
*/
|
28
|
+
$.fn.numeric = function(config, callback)
|
29
|
+
{
|
30
|
+
if(typeof config === 'boolean')
|
31
|
+
{
|
32
|
+
config = { decimal: config };
|
33
|
+
}
|
34
|
+
config = config || {};
|
35
|
+
// if config.negative undefined, set to true (default is to allow negative numbers)
|
36
|
+
if(typeof config.negative == "undefined") config.negative = true;
|
37
|
+
// set decimal point
|
38
|
+
var decimal = (config.decimal === false) ? "" : config.decimal || ".";
|
39
|
+
// allow negatives
|
40
|
+
var negative = (config.negative === true) ? true : false;
|
41
|
+
// callback function
|
42
|
+
var callback = typeof callback == "function" ? callback : function(){};
|
43
|
+
// set data and methods
|
44
|
+
return this.data("numeric.decimal", decimal).data("numeric.negative", negative).data("numeric.callback", callback).keypress($.fn.numeric.keypress).keyup($.fn.numeric.keyup).blur($.fn.numeric.blur);
|
45
|
+
}
|
46
|
+
|
47
|
+
$.fn.numeric.keypress = function(e)
|
48
|
+
{
|
49
|
+
// get decimal character and determine if negatives are allowed
|
50
|
+
var decimal = $.data(this, "numeric.decimal");
|
51
|
+
var negative = $.data(this, "numeric.negative");
|
52
|
+
// get the key that was pressed
|
53
|
+
var key = e.charCode ? e.charCode : e.keyCode ? e.keyCode : 0;
|
54
|
+
// allow enter/return key (only when in an input box)
|
55
|
+
if(key == 13 && this.nodeName.toLowerCase() == "input")
|
56
|
+
{
|
57
|
+
return true;
|
58
|
+
}
|
59
|
+
else if(key == 13)
|
60
|
+
{
|
61
|
+
return false;
|
62
|
+
}
|
63
|
+
var allow = false;
|
64
|
+
// allow Ctrl+A
|
65
|
+
if((e.ctrlKey && key == 97 /* firefox */) || (e.ctrlKey && key == 65) /* opera */) return true;
|
66
|
+
// allow Ctrl+X (cut)
|
67
|
+
if((e.ctrlKey && key == 120 /* firefox */) || (e.ctrlKey && key == 88) /* opera */) return true;
|
68
|
+
// allow Ctrl+C (copy)
|
69
|
+
if((e.ctrlKey && key == 99 /* firefox */) || (e.ctrlKey && key == 67) /* opera */) return true;
|
70
|
+
// allow Ctrl+Z (undo)
|
71
|
+
if((e.ctrlKey && key == 122 /* firefox */) || (e.ctrlKey && key == 90) /* opera */) return true;
|
72
|
+
// allow or deny Ctrl+V (paste), Shift+Ins
|
73
|
+
if((e.ctrlKey && key == 118 /* firefox */) || (e.ctrlKey && key == 86) /* opera */
|
74
|
+
|| (e.shiftKey && key == 45)) return true;
|
75
|
+
// if a number was not pressed
|
76
|
+
if(key < 48 || key > 57)
|
77
|
+
{
|
78
|
+
var value = $(this).val();
|
79
|
+
/* '-' only allowed at start and if negative numbers allowed */
|
80
|
+
if(value.indexOf("-") != 0 && negative && key == 45 && (value.length == 0 || ($.fn.getSelectionStart(this)) == 0)) return true;
|
81
|
+
/* only one decimal separator allowed */
|
82
|
+
if(decimal && key == decimal.charCodeAt(0) && value.indexOf(decimal) != -1)
|
83
|
+
{
|
84
|
+
allow = false;
|
85
|
+
}
|
86
|
+
// check for other keys that have special purposes
|
87
|
+
if(
|
88
|
+
key != 8 /* backspace */ &&
|
89
|
+
key != 9 /* tab */ &&
|
90
|
+
key != 13 /* enter */ &&
|
91
|
+
key != 35 /* end */ &&
|
92
|
+
key != 36 /* home */ &&
|
93
|
+
key != 37 /* left */ &&
|
94
|
+
key != 39 /* right */ &&
|
95
|
+
key != 46 /* del */
|
96
|
+
)
|
97
|
+
{
|
98
|
+
allow = false;
|
99
|
+
}
|
100
|
+
else
|
101
|
+
{
|
102
|
+
// for detecting special keys (listed above)
|
103
|
+
// IE does not support 'charCode' and ignores them in keypress anyway
|
104
|
+
if(typeof e.charCode != "undefined")
|
105
|
+
{
|
106
|
+
// special keys have 'keyCode' and 'which' the same (e.g. backspace)
|
107
|
+
if(e.keyCode == e.which && e.which != 0)
|
108
|
+
{
|
109
|
+
allow = true;
|
110
|
+
// . and delete share the same code, don't allow . (will be set to true later if it is the decimal point)
|
111
|
+
if(e.which == 46) allow = false;
|
112
|
+
}
|
113
|
+
// or keyCode != 0 and 'charCode'/'which' = 0
|
114
|
+
else if(e.keyCode != 0 && e.charCode == 0 && e.which == 0)
|
115
|
+
{
|
116
|
+
allow = true;
|
117
|
+
}
|
118
|
+
}
|
119
|
+
}
|
120
|
+
// if key pressed is the decimal and it is not already in the field
|
121
|
+
if(decimal && key == decimal.charCodeAt(0))
|
122
|
+
{
|
123
|
+
if(value.indexOf(decimal) == -1)
|
124
|
+
{
|
125
|
+
allow = true;
|
126
|
+
}
|
127
|
+
else
|
128
|
+
{
|
129
|
+
allow = false;
|
130
|
+
}
|
131
|
+
}
|
132
|
+
}
|
133
|
+
else
|
134
|
+
{
|
135
|
+
allow = true;
|
136
|
+
}
|
137
|
+
return allow;
|
138
|
+
}
|
139
|
+
|
140
|
+
$.fn.numeric.keyup = function(e)
|
141
|
+
{
|
142
|
+
var val = $(this).value;
|
143
|
+
if(val && val.length > 0)
|
144
|
+
{
|
145
|
+
// get carat (cursor) position
|
146
|
+
var carat = $.fn.getSelectionStart(this);
|
147
|
+
// get decimal character and determine if negatives are allowed
|
148
|
+
var decimal = $.data(this, "numeric.decimal");
|
149
|
+
var negative = $.data(this, "numeric.negative");
|
150
|
+
|
151
|
+
// prepend a 0 if necessary
|
152
|
+
if(decimal != "")
|
153
|
+
{
|
154
|
+
// find decimal point
|
155
|
+
var dot = val.indexOf(decimal);
|
156
|
+
// if dot at start, add 0 before
|
157
|
+
if(dot == 0)
|
158
|
+
{
|
159
|
+
this.value = "0" + val;
|
160
|
+
}
|
161
|
+
// if dot at position 1, check if there is a - symbol before it
|
162
|
+
if(dot == 1 && val.charAt(0) == "-")
|
163
|
+
{
|
164
|
+
this.value = "-0" + val.substring(1);
|
165
|
+
}
|
166
|
+
val = this.value;
|
167
|
+
}
|
168
|
+
|
169
|
+
// if pasted in, only allow the following characters
|
170
|
+
var validChars = [0,1,2,3,4,5,6,7,8,9,'-',decimal];
|
171
|
+
// get length of the value (to loop through)
|
172
|
+
var length = val.length;
|
173
|
+
// loop backwards (to prevent going out of bounds)
|
174
|
+
for(var i = length - 1; i >= 0; i--)
|
175
|
+
{
|
176
|
+
var ch = val.charAt(i);
|
177
|
+
// remove '-' if it is in the wrong place
|
178
|
+
if(i != 0 && ch == "-")
|
179
|
+
{
|
180
|
+
val = val.substring(0, i) + val.substring(i + 1);
|
181
|
+
}
|
182
|
+
// remove character if it is at the start, a '-' and negatives aren't allowed
|
183
|
+
else if(i == 0 && !negative && ch == "-")
|
184
|
+
{
|
185
|
+
val = val.substring(1);
|
186
|
+
}
|
187
|
+
var validChar = false;
|
188
|
+
// loop through validChars
|
189
|
+
for(var j = 0; j < validChars.length; j++)
|
190
|
+
{
|
191
|
+
// if it is valid, break out the loop
|
192
|
+
if(ch == validChars[j])
|
193
|
+
{
|
194
|
+
validChar = true;
|
195
|
+
break;
|
196
|
+
}
|
197
|
+
}
|
198
|
+
// if not a valid character, or a space, remove
|
199
|
+
if(!validChar || ch == " ")
|
200
|
+
{
|
201
|
+
val = val.substring(0, i) + val.substring(i + 1);
|
202
|
+
}
|
203
|
+
}
|
204
|
+
// remove extra decimal characters
|
205
|
+
var firstDecimal = val.indexOf(decimal);
|
206
|
+
if(firstDecimal > 0)
|
207
|
+
{
|
208
|
+
for(var i = length - 1; i > firstDecimal; i--)
|
209
|
+
{
|
210
|
+
var ch = val.charAt(i);
|
211
|
+
// remove decimal character
|
212
|
+
if(ch == decimal)
|
213
|
+
{
|
214
|
+
val = val.substring(0, i) + val.substring(i + 1);
|
215
|
+
}
|
216
|
+
}
|
217
|
+
}
|
218
|
+
// set the value and prevent the cursor moving to the end
|
219
|
+
this.value = val;
|
220
|
+
$.fn.setSelection(this, carat);
|
221
|
+
}
|
222
|
+
}
|
223
|
+
|
224
|
+
$.fn.numeric.blur = function()
|
225
|
+
{
|
226
|
+
var decimal = $.data(this, "numeric.decimal");
|
227
|
+
var callback = $.data(this, "numeric.callback");
|
228
|
+
var val = this.value;
|
229
|
+
if(val != "")
|
230
|
+
{
|
231
|
+
var re = new RegExp("^\\d+$|\\d*" + decimal + "\\d+");
|
232
|
+
if(!re.exec(val))
|
233
|
+
{
|
234
|
+
callback.apply(this);
|
235
|
+
}
|
236
|
+
}
|
237
|
+
}
|
238
|
+
|
239
|
+
$.fn.removeNumeric = function()
|
240
|
+
{
|
241
|
+
return this.data("numeric.decimal", null).data("numeric.negative", null).data("numeric.callback", null).unbind("keypress", $.fn.numeric.keypress).unbind("blur", $.fn.numeric.blur);
|
242
|
+
}
|
243
|
+
|
244
|
+
// Based on code from http://javascript.nwbox.com/cursor_position/ (Diego Perini <dperini@nwbox.com>)
|
245
|
+
$.fn.getSelectionStart = function(o)
|
246
|
+
{
|
247
|
+
if (o.createTextRange)
|
248
|
+
{
|
249
|
+
var r = document.selection.createRange().duplicate();
|
250
|
+
r.moveEnd('character', o.value.length);
|
251
|
+
if (r.text == '') return o.value.length;
|
252
|
+
return o.value.lastIndexOf(r.text);
|
253
|
+
} else return o.selectionStart;
|
254
|
+
}
|
255
|
+
|
256
|
+
// set the selection, o is the object (input), p is the position ([start, end] or just start)
|
257
|
+
$.fn.setSelection = function(o, p)
|
258
|
+
{
|
259
|
+
// if p is number, start and end are the same
|
260
|
+
if(typeof p == "number") p = [p, p];
|
261
|
+
// only set if p is an array of length 2
|
262
|
+
if(p && p.constructor == Array && p.length == 2)
|
263
|
+
{
|
264
|
+
if (o.createTextRange)
|
265
|
+
{
|
266
|
+
var r = o.createTextRange();
|
267
|
+
r.collapse(true);
|
268
|
+
r.moveStart('character', p[0]);
|
269
|
+
r.moveEnd('character', p[1]);
|
270
|
+
r.select();
|
271
|
+
}
|
272
|
+
else if(o.setSelectionRange)
|
273
|
+
{
|
274
|
+
o.focus();
|
275
|
+
o.setSelectionRange(p[0], p[1]);
|
276
|
+
}
|
277
|
+
}
|
278
|
+
}
|
279
|
+
|
280
|
+
})(jQuery);
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lolita
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.2.0.rc.
|
4
|
+
version: 3.2.0.rc.7
|
5
5
|
prerelease: 6
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2011-
|
12
|
+
date: 2011-12-20 00:00:00.000000000Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
16
|
-
requirement: &
|
16
|
+
requirement: &75378760 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: 3.1.1
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *75378760
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: kaminari
|
27
|
-
requirement: &
|
27
|
+
requirement: &75378360 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ~>
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: 0.12.4
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *75378360
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: abstract
|
38
|
-
requirement: &
|
38
|
+
requirement: &75377990 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ! '>='
|
@@ -43,10 +43,10 @@ dependencies:
|
|
43
43
|
version: '0'
|
44
44
|
type: :runtime
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *75377990
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: builder
|
49
|
-
requirement: &
|
49
|
+
requirement: &75377620 !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|
52
52
|
- - ~>
|
@@ -54,10 +54,10 @@ dependencies:
|
|
54
54
|
version: '3.0'
|
55
55
|
type: :runtime
|
56
56
|
prerelease: false
|
57
|
-
version_requirements: *
|
57
|
+
version_requirements: *75377620
|
58
58
|
- !ruby/object:Gem::Dependency
|
59
59
|
name: haml
|
60
|
-
requirement: &
|
60
|
+
requirement: &75377200 !ruby/object:Gem::Requirement
|
61
61
|
none: false
|
62
62
|
requirements:
|
63
63
|
- - ~>
|
@@ -65,10 +65,10 @@ dependencies:
|
|
65
65
|
version: 3.1.2
|
66
66
|
type: :runtime
|
67
67
|
prerelease: false
|
68
|
-
version_requirements: *
|
68
|
+
version_requirements: *75377200
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: jquery-rails
|
71
|
-
requirement: &
|
71
|
+
requirement: &75376810 !ruby/object:Gem::Requirement
|
72
72
|
none: false
|
73
73
|
requirements:
|
74
74
|
- - ! '>='
|
@@ -76,10 +76,10 @@ dependencies:
|
|
76
76
|
version: '0'
|
77
77
|
type: :runtime
|
78
78
|
prerelease: false
|
79
|
-
version_requirements: *
|
79
|
+
version_requirements: *75376810
|
80
80
|
- !ruby/object:Gem::Dependency
|
81
81
|
name: tinymce-rails
|
82
|
-
requirement: &
|
82
|
+
requirement: &75376350 !ruby/object:Gem::Requirement
|
83
83
|
none: false
|
84
84
|
requirements:
|
85
85
|
- - ! '>='
|
@@ -87,10 +87,10 @@ dependencies:
|
|
87
87
|
version: '0'
|
88
88
|
type: :runtime
|
89
89
|
prerelease: false
|
90
|
-
version_requirements: *
|
90
|
+
version_requirements: *75376350
|
91
91
|
- !ruby/object:Gem::Dependency
|
92
92
|
name: jeweler
|
93
|
-
requirement: &
|
93
|
+
requirement: &75375950 !ruby/object:Gem::Requirement
|
94
94
|
none: false
|
95
95
|
requirements:
|
96
96
|
- - ~>
|
@@ -98,10 +98,10 @@ dependencies:
|
|
98
98
|
version: 1.6.4
|
99
99
|
type: :development
|
100
100
|
prerelease: false
|
101
|
-
version_requirements: *
|
101
|
+
version_requirements: *75375950
|
102
102
|
- !ruby/object:Gem::Dependency
|
103
103
|
name: metric_fu
|
104
|
-
requirement: &
|
104
|
+
requirement: &75375560 !ruby/object:Gem::Requirement
|
105
105
|
none: false
|
106
106
|
requirements:
|
107
107
|
- - ! '>='
|
@@ -109,10 +109,10 @@ dependencies:
|
|
109
109
|
version: '0'
|
110
110
|
type: :development
|
111
111
|
prerelease: false
|
112
|
-
version_requirements: *
|
112
|
+
version_requirements: *75375560
|
113
113
|
- !ruby/object:Gem::Dependency
|
114
114
|
name: fattr
|
115
|
-
requirement: &
|
115
|
+
requirement: &75375150 !ruby/object:Gem::Requirement
|
116
116
|
none: false
|
117
117
|
requirements:
|
118
118
|
- - ! '>='
|
@@ -120,10 +120,10 @@ dependencies:
|
|
120
120
|
version: '0'
|
121
121
|
type: :development
|
122
122
|
prerelease: false
|
123
|
-
version_requirements: *
|
123
|
+
version_requirements: *75375150
|
124
124
|
- !ruby/object:Gem::Dependency
|
125
125
|
name: arrayfields
|
126
|
-
requirement: &
|
126
|
+
requirement: &75374740 !ruby/object:Gem::Requirement
|
127
127
|
none: false
|
128
128
|
requirements:
|
129
129
|
- - ! '>='
|
@@ -131,10 +131,10 @@ dependencies:
|
|
131
131
|
version: '0'
|
132
132
|
type: :development
|
133
133
|
prerelease: false
|
134
|
-
version_requirements: *
|
134
|
+
version_requirements: *75374740
|
135
135
|
- !ruby/object:Gem::Dependency
|
136
136
|
name: map
|
137
|
-
requirement: &
|
137
|
+
requirement: &75374240 !ruby/object:Gem::Requirement
|
138
138
|
none: false
|
139
139
|
requirements:
|
140
140
|
- - ! '>='
|
@@ -142,10 +142,10 @@ dependencies:
|
|
142
142
|
version: '0'
|
143
143
|
type: :development
|
144
144
|
prerelease: false
|
145
|
-
version_requirements: *
|
145
|
+
version_requirements: *75374240
|
146
146
|
- !ruby/object:Gem::Dependency
|
147
147
|
name: rspec
|
148
|
-
requirement: &
|
148
|
+
requirement: &75373840 !ruby/object:Gem::Requirement
|
149
149
|
none: false
|
150
150
|
requirements:
|
151
151
|
- - ~>
|
@@ -153,10 +153,10 @@ dependencies:
|
|
153
153
|
version: 2.6.0
|
154
154
|
type: :development
|
155
155
|
prerelease: false
|
156
|
-
version_requirements: *
|
156
|
+
version_requirements: *75373840
|
157
157
|
- !ruby/object:Gem::Dependency
|
158
158
|
name: rspec-rails
|
159
|
-
requirement: &
|
159
|
+
requirement: &75373470 !ruby/object:Gem::Requirement
|
160
160
|
none: false
|
161
161
|
requirements:
|
162
162
|
- - ~>
|
@@ -164,10 +164,10 @@ dependencies:
|
|
164
164
|
version: 2.6.1
|
165
165
|
type: :development
|
166
166
|
prerelease: false
|
167
|
-
version_requirements: *
|
167
|
+
version_requirements: *75373470
|
168
168
|
- !ruby/object:Gem::Dependency
|
169
169
|
name: factory_girl
|
170
|
-
requirement: &
|
170
|
+
requirement: &75369950 !ruby/object:Gem::Requirement
|
171
171
|
none: false
|
172
172
|
requirements:
|
173
173
|
- - ! '>='
|
@@ -175,10 +175,10 @@ dependencies:
|
|
175
175
|
version: '0'
|
176
176
|
type: :development
|
177
177
|
prerelease: false
|
178
|
-
version_requirements: *
|
178
|
+
version_requirements: *75369950
|
179
179
|
- !ruby/object:Gem::Dependency
|
180
180
|
name: ffaker
|
181
|
-
requirement: &
|
181
|
+
requirement: &75369390 !ruby/object:Gem::Requirement
|
182
182
|
none: false
|
183
183
|
requirements:
|
184
184
|
- - ! '>='
|
@@ -186,10 +186,10 @@ dependencies:
|
|
186
186
|
version: '0'
|
187
187
|
type: :development
|
188
188
|
prerelease: false
|
189
|
-
version_requirements: *
|
189
|
+
version_requirements: *75369390
|
190
190
|
- !ruby/object:Gem::Dependency
|
191
191
|
name: ruby-debug19
|
192
|
-
requirement: &
|
192
|
+
requirement: &75368900 !ruby/object:Gem::Requirement
|
193
193
|
none: false
|
194
194
|
requirements:
|
195
195
|
- - ! '>='
|
@@ -197,10 +197,10 @@ dependencies:
|
|
197
197
|
version: '0'
|
198
198
|
type: :development
|
199
199
|
prerelease: false
|
200
|
-
version_requirements: *
|
200
|
+
version_requirements: *75368900
|
201
201
|
- !ruby/object:Gem::Dependency
|
202
202
|
name: database_cleaner
|
203
|
-
requirement: &
|
203
|
+
requirement: &75368420 !ruby/object:Gem::Requirement
|
204
204
|
none: false
|
205
205
|
requirements:
|
206
206
|
- - ! '>='
|
@@ -208,7 +208,7 @@ dependencies:
|
|
208
208
|
version: '0'
|
209
209
|
type: :development
|
210
210
|
prerelease: false
|
211
|
-
version_requirements: *
|
211
|
+
version_requirements: *75368420
|
212
212
|
description: ! 'Great Rails CMS, that turns your business logic into good-looking,
|
213
213
|
fully functional workspace. '
|
214
214
|
email: support@ithouse.lv
|
@@ -228,8 +228,23 @@ files:
|
|
228
228
|
- Rakefile
|
229
229
|
- VERSION
|
230
230
|
- app/assets/images/lolita/favicon.ico
|
231
|
+
- app/assets/images/lolita/jquery-ui/images/ui-bg_flat_0_aaaaaa_40x100.png
|
232
|
+
- app/assets/images/lolita/jquery-ui/images/ui-bg_flat_55_fbec88_40x100.png
|
233
|
+
- app/assets/images/lolita/jquery-ui/images/ui-bg_glass_95_fef1ec_1x400.png
|
234
|
+
- app/assets/images/lolita/jquery-ui/images/ui-bg_highlight-soft_45_676767_1x100.png
|
235
|
+
- app/assets/images/lolita/jquery-ui/images/ui-bg_highlight-soft_75_e3e3e3_1x100.png
|
236
|
+
- app/assets/images/lolita/jquery-ui/images/ui-bg_highlight-soft_85_f3f3f3_1x100.png
|
237
|
+
- app/assets/images/lolita/jquery-ui/images/ui-bg_inset-hard_100_d7d7d7_1x100.png
|
238
|
+
- app/assets/images/lolita/jquery-ui/images/ui-bg_inset-hard_100_fcfdfd_1x100.png
|
239
|
+
- app/assets/images/lolita/jquery-ui/images/ui-icons_7ac1ed_256x240.png
|
240
|
+
- app/assets/images/lolita/jquery-ui/images/ui-icons_a1a1a1_256x240.png
|
241
|
+
- app/assets/images/lolita/jquery-ui/images/ui-icons_cd0a0a_256x240.png
|
242
|
+
- app/assets/images/lolita/jquery-ui/images/ui-icons_d8e7f3_256x240.png
|
243
|
+
- app/assets/images/lolita/large-ajax-loader.gif
|
231
244
|
- app/assets/images/lolita/plus.png
|
232
245
|
- app/assets/images/lolita/search_icon.png
|
246
|
+
- app/assets/images/lolita/small-ajax-loader.gif
|
247
|
+
- app/assets/images/lolita/trash-small.png
|
233
248
|
- app/assets/javascripts/lolita/application.js
|
234
249
|
- app/assets/javascripts/lolita/base64.js
|
235
250
|
- app/assets/javascripts/lolita/main.js
|
@@ -238,6 +253,7 @@ files:
|
|
238
253
|
- app/assets/stylesheets/lolita/PIE.htc
|
239
254
|
- app/assets/stylesheets/lolita/application.css
|
240
255
|
- app/assets/stylesheets/lolita/default.css.erb
|
256
|
+
- app/assets/stylesheets/lolita/jquery-ui-1.8.16.lolita.css.erb
|
241
257
|
- app/assets/stylesheets/lolita/style.css.erb
|
242
258
|
- app/controllers/lolita/field_data_controller.rb
|
243
259
|
- app/controllers/lolita/info_controller.rb
|
@@ -260,9 +276,10 @@ files:
|
|
260
276
|
- app/views/components/lolita/configuration/field/_label.html.erb
|
261
277
|
- app/views/components/lolita/configuration/field/_object.html.erb
|
262
278
|
- app/views/components/lolita/configuration/field/array/_display.html.erb
|
279
|
+
- app/views/components/lolita/configuration/field/array/autocomplete/_display.html.haml
|
280
|
+
- app/views/components/lolita/configuration/field/array/autocomplete/_input.html.haml
|
281
|
+
- app/views/components/lolita/configuration/field/array/checkbox/_display.html.haml
|
263
282
|
- app/views/components/lolita/configuration/field/array/filter/_display.html.erb
|
264
|
-
- app/views/components/lolita/configuration/field/array/habtm/_display.html.haml
|
265
|
-
- app/views/components/lolita/configuration/field/array/habtm_autocomplete/_display.html.haml
|
266
283
|
- app/views/components/lolita/configuration/field/array/polymorphic/_display.html.haml
|
267
284
|
- app/views/components/lolita/configuration/field/array/polymorphic/_options_for_select.html.haml
|
268
285
|
- app/views/components/lolita/configuration/field/array/select/_display.html.erb
|
@@ -302,6 +319,7 @@ files:
|
|
302
319
|
- app/views/components/lolita/shared/_flash.html.erb
|
303
320
|
- app/views/components/lolita/shared/_header.html.erb
|
304
321
|
- app/views/components/lolita/shared/_right_sidebar.html.erb
|
322
|
+
- app/views/components/lolita/shared/_save_button.html.erb
|
305
323
|
- app/views/kaminari/lolita/_first_page.html.erb
|
306
324
|
- app/views/kaminari/lolita/_gap.html.erb
|
307
325
|
- app/views/kaminari/lolita/_last_page.html.erb
|
@@ -389,7 +407,6 @@ files:
|
|
389
407
|
- lib/lolita/system_configuration/base.rb
|
390
408
|
- lib/lolita/test/matchers.rb
|
391
409
|
- lolita.gemspec
|
392
|
-
- lolita.gemspec.orig
|
393
410
|
- spec/adapter_helper.rb
|
394
411
|
- spec/builder_spec.rb
|
395
412
|
- spec/configuration/base_spec.rb
|
@@ -502,7 +519,7 @@ files:
|
|
502
519
|
- spec/support/factories/tag.rb
|
503
520
|
- spec/support/formatter_spec.rb
|
504
521
|
- vendor/assets/javascripts/application_vendor_lolita.js
|
505
|
-
- vendor/assets/javascripts/jquery-
|
522
|
+
- vendor/assets/javascripts/jquery-numeric.js
|
506
523
|
- vendor/assets/javascripts/modernizr_1_7_min.js
|
507
524
|
- vendor/assets/javascripts/tinymce/themes/advanced/skins/cirkuit/content.css
|
508
525
|
- vendor/assets/javascripts/tinymce/themes/advanced/skins/cirkuit/dialog.css
|
@@ -536,7 +553,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
536
553
|
version: '0'
|
537
554
|
segments:
|
538
555
|
- 0
|
539
|
-
hash:
|
556
|
+
hash: 367958319
|
540
557
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
541
558
|
none: false
|
542
559
|
requirements:
|