rear 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +15 -0
- data/.travis.yml +7 -0
- data/CHANGELOG.md +7 -0
- data/Gemfile +20 -0
- data/LICENSE +19 -0
- data/README.md +101 -0
- data/Rakefile +79 -0
- data/assets/api.js +307 -0
- data/assets/bootstrap-datetimepicker/css/bootstrap-datetimepicker.min.css +8 -0
- data/assets/bootstrap-datetimepicker/js/bootstrap-datetimepicker.min.js +26 -0
- data/assets/bootstrap/css/bootstrap-responsive.min.css +9 -0
- data/assets/bootstrap/css/bootstrap.min.css +9 -0
- data/assets/bootstrap/img/glyphicons-halflings-white.png +0 -0
- data/assets/bootstrap/img/glyphicons-halflings.png +0 -0
- data/assets/bootstrap/js/bootstrap.min.js +6 -0
- data/assets/jquery.js +5 -0
- data/assets/noty/jquery.noty.js +520 -0
- data/assets/noty/layouts/top.js +34 -0
- data/assets/noty/layouts/topRight.js +43 -0
- data/assets/noty/promise.js +432 -0
- data/assets/noty/themes/default.js +156 -0
- data/assets/select2-bootstrap.css +86 -0
- data/assets/select2/select2-spinner.gif +0 -0
- data/assets/select2/select2.css +652 -0
- data/assets/select2/select2.min.js +22 -0
- data/assets/select2/select2.png +0 -0
- data/assets/select2/select2x2.png +0 -0
- data/assets/ui.css +75 -0
- data/assets/xhr.js +4 -0
- data/bin/rear +65 -0
- data/docs/Assocs.md +100 -0
- data/docs/Columns.md +404 -0
- data/docs/Deploy.md +62 -0
- data/docs/FileManager.md +75 -0
- data/docs/Filters.md +341 -0
- data/docs/Setup.md +201 -0
- data/lib/rear.rb +13 -0
- data/lib/rear/actions.rb +98 -0
- data/lib/rear/constants.rb +61 -0
- data/lib/rear/controller_setup.rb +249 -0
- data/lib/rear/helpers.rb +17 -0
- data/lib/rear/helpers/class.rb +46 -0
- data/lib/rear/helpers/columns.rb +68 -0
- data/lib/rear/helpers/filters.rb +147 -0
- data/lib/rear/helpers/generic.rb +73 -0
- data/lib/rear/helpers/order.rb +47 -0
- data/lib/rear/helpers/pager.rb +35 -0
- data/lib/rear/helpers/render.rb +37 -0
- data/lib/rear/home_controller.rb +10 -0
- data/lib/rear/input.rb +341 -0
- data/lib/rear/orm.rb +73 -0
- data/lib/rear/rear.rb +74 -0
- data/lib/rear/setup.rb +9 -0
- data/lib/rear/setup/associations.rb +33 -0
- data/lib/rear/setup/columns.rb +109 -0
- data/lib/rear/setup/filters.rb +314 -0
- data/lib/rear/setup/generic.rb +59 -0
- data/lib/rear/setup/menu.rb +39 -0
- data/lib/rear/templates/editor/ace.slim +7 -0
- data/lib/rear/templates/editor/assocs.slim +10 -0
- data/lib/rear/templates/editor/boolean.slim +5 -0
- data/lib/rear/templates/editor/bulk_edit.slim +75 -0
- data/lib/rear/templates/editor/checkbox.slim +5 -0
- data/lib/rear/templates/editor/ckeditor.slim +7 -0
- data/lib/rear/templates/editor/date.slim +9 -0
- data/lib/rear/templates/editor/datetime.slim +9 -0
- data/lib/rear/templates/editor/layout.slim +103 -0
- data/lib/rear/templates/editor/password.slim +1 -0
- data/lib/rear/templates/editor/radio.slim +5 -0
- data/lib/rear/templates/editor/select.slim +3 -0
- data/lib/rear/templates/editor/string.slim +1 -0
- data/lib/rear/templates/editor/text.slim +1 -0
- data/lib/rear/templates/editor/time.slim +9 -0
- data/lib/rear/templates/error.slim +36 -0
- data/lib/rear/templates/filters/boolean.slim +10 -0
- data/lib/rear/templates/filters/checkbox.slim +15 -0
- data/lib/rear/templates/filters/date.slim +10 -0
- data/lib/rear/templates/filters/datetime.slim +10 -0
- data/lib/rear/templates/filters/layout.slim +26 -0
- data/lib/rear/templates/filters/radio.slim +14 -0
- data/lib/rear/templates/filters/select.slim +9 -0
- data/lib/rear/templates/filters/string.slim +3 -0
- data/lib/rear/templates/filters/text.slim +3 -0
- data/lib/rear/templates/filters/time.slim +10 -0
- data/lib/rear/templates/home.slim +0 -0
- data/lib/rear/templates/layout.slim +78 -0
- data/lib/rear/templates/pager.slim +22 -0
- data/lib/rear/templates/pane/ace.slim +2 -0
- data/lib/rear/templates/pane/assocs.slim +62 -0
- data/lib/rear/templates/pane/boolean.slim +2 -0
- data/lib/rear/templates/pane/checkbox.slim +5 -0
- data/lib/rear/templates/pane/ckeditor.slim +2 -0
- data/lib/rear/templates/pane/date.slim +2 -0
- data/lib/rear/templates/pane/datetime.slim +2 -0
- data/lib/rear/templates/pane/layout.slim +111 -0
- data/lib/rear/templates/pane/password.slim +2 -0
- data/lib/rear/templates/pane/quickview.slim +21 -0
- data/lib/rear/templates/pane/radio.slim +5 -0
- data/lib/rear/templates/pane/select.slim +5 -0
- data/lib/rear/templates/pane/string.slim +2 -0
- data/lib/rear/templates/pane/text.slim +2 -0
- data/lib/rear/templates/pane/time.slim +2 -0
- data/lib/rear/utils.rb +288 -0
- data/rear.gemspec +27 -0
- data/test/helpers.rb +33 -0
- data/test/models/ar.rb +52 -0
- data/test/models/dm.rb +53 -0
- data/test/models/sq.rb +58 -0
- data/test/setup.rb +4 -0
- data/test/templates/adhoc/book/editor/name.slim +1 -0
- data/test/templates/adhoc/book/editor/string.slim +1 -0
- data/test/templates/adhoc/book/pane/name.slim +1 -0
- data/test/templates/adhoc/book/pane/string.slim +1 -0
- data/test/templates/shared/shared-templates/editor/string.slim +1 -0
- data/test/templates/shared/shared-templates/pane/string.slim +1 -0
- data/test/test__assocs.rb +249 -0
- data/test/test__columns.rb +269 -0
- data/test/test__crud.rb +81 -0
- data/test/test__custom_templates.rb +147 -0
- data/test/test__filters.rb +228 -0
- metadata +220 -0
metadata
ADDED
@@ -0,0 +1,220 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: rear
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.2.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Silviu Rusu
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2013-07-23 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: e
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ! '>='
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 0.4.8
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ! '>='
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 0.4.8
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: el
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ! '>='
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 0.4.8
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ! '>='
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 0.4.8
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: slim
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ! '>='
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '2.0'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ! '>='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '2.0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: bundler
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ! '>='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ! '>='
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
description: ORM-agnostic CRUDifier for Espresso Framework
|
70
|
+
email:
|
71
|
+
- slivuz@gmail.com
|
72
|
+
executables:
|
73
|
+
- rear
|
74
|
+
extensions: []
|
75
|
+
extra_rdoc_files: []
|
76
|
+
files:
|
77
|
+
- assets/api.js
|
78
|
+
- assets/bootstrap/css/bootstrap-responsive.min.css
|
79
|
+
- assets/bootstrap/css/bootstrap.min.css
|
80
|
+
- assets/bootstrap/img/glyphicons-halflings-white.png
|
81
|
+
- assets/bootstrap/img/glyphicons-halflings.png
|
82
|
+
- assets/bootstrap/js/bootstrap.min.js
|
83
|
+
- assets/bootstrap-datetimepicker/css/bootstrap-datetimepicker.min.css
|
84
|
+
- assets/bootstrap-datetimepicker/js/bootstrap-datetimepicker.min.js
|
85
|
+
- assets/jquery.js
|
86
|
+
- assets/noty/jquery.noty.js
|
87
|
+
- assets/noty/layouts/top.js
|
88
|
+
- assets/noty/layouts/topRight.js
|
89
|
+
- assets/noty/promise.js
|
90
|
+
- assets/noty/themes/default.js
|
91
|
+
- assets/select2/select2-spinner.gif
|
92
|
+
- assets/select2/select2.css
|
93
|
+
- assets/select2/select2.min.js
|
94
|
+
- assets/select2/select2.png
|
95
|
+
- assets/select2/select2x2.png
|
96
|
+
- assets/select2-bootstrap.css
|
97
|
+
- assets/ui.css
|
98
|
+
- assets/xhr.js
|
99
|
+
- bin/rear
|
100
|
+
- CHANGELOG.md
|
101
|
+
- docs/Assocs.md
|
102
|
+
- docs/Columns.md
|
103
|
+
- docs/Deploy.md
|
104
|
+
- docs/FileManager.md
|
105
|
+
- docs/Filters.md
|
106
|
+
- docs/Setup.md
|
107
|
+
- Gemfile
|
108
|
+
- lib/rear/actions.rb
|
109
|
+
- lib/rear/constants.rb
|
110
|
+
- lib/rear/controller_setup.rb
|
111
|
+
- lib/rear/helpers/class.rb
|
112
|
+
- lib/rear/helpers/columns.rb
|
113
|
+
- lib/rear/helpers/filters.rb
|
114
|
+
- lib/rear/helpers/generic.rb
|
115
|
+
- lib/rear/helpers/order.rb
|
116
|
+
- lib/rear/helpers/pager.rb
|
117
|
+
- lib/rear/helpers/render.rb
|
118
|
+
- lib/rear/helpers.rb
|
119
|
+
- lib/rear/home_controller.rb
|
120
|
+
- lib/rear/input.rb
|
121
|
+
- lib/rear/orm.rb
|
122
|
+
- lib/rear/rear.rb
|
123
|
+
- lib/rear/setup/associations.rb
|
124
|
+
- lib/rear/setup/columns.rb
|
125
|
+
- lib/rear/setup/filters.rb
|
126
|
+
- lib/rear/setup/generic.rb
|
127
|
+
- lib/rear/setup/menu.rb
|
128
|
+
- lib/rear/setup.rb
|
129
|
+
- lib/rear/templates/editor/ace.slim
|
130
|
+
- lib/rear/templates/editor/assocs.slim
|
131
|
+
- lib/rear/templates/editor/boolean.slim
|
132
|
+
- lib/rear/templates/editor/bulk_edit.slim
|
133
|
+
- lib/rear/templates/editor/checkbox.slim
|
134
|
+
- lib/rear/templates/editor/ckeditor.slim
|
135
|
+
- lib/rear/templates/editor/date.slim
|
136
|
+
- lib/rear/templates/editor/datetime.slim
|
137
|
+
- lib/rear/templates/editor/layout.slim
|
138
|
+
- lib/rear/templates/editor/password.slim
|
139
|
+
- lib/rear/templates/editor/radio.slim
|
140
|
+
- lib/rear/templates/editor/select.slim
|
141
|
+
- lib/rear/templates/editor/string.slim
|
142
|
+
- lib/rear/templates/editor/text.slim
|
143
|
+
- lib/rear/templates/editor/time.slim
|
144
|
+
- lib/rear/templates/error.slim
|
145
|
+
- lib/rear/templates/filters/boolean.slim
|
146
|
+
- lib/rear/templates/filters/checkbox.slim
|
147
|
+
- lib/rear/templates/filters/date.slim
|
148
|
+
- lib/rear/templates/filters/datetime.slim
|
149
|
+
- lib/rear/templates/filters/layout.slim
|
150
|
+
- lib/rear/templates/filters/radio.slim
|
151
|
+
- lib/rear/templates/filters/select.slim
|
152
|
+
- lib/rear/templates/filters/string.slim
|
153
|
+
- lib/rear/templates/filters/text.slim
|
154
|
+
- lib/rear/templates/filters/time.slim
|
155
|
+
- lib/rear/templates/home.slim
|
156
|
+
- lib/rear/templates/layout.slim
|
157
|
+
- lib/rear/templates/pager.slim
|
158
|
+
- lib/rear/templates/pane/ace.slim
|
159
|
+
- lib/rear/templates/pane/assocs.slim
|
160
|
+
- lib/rear/templates/pane/boolean.slim
|
161
|
+
- lib/rear/templates/pane/checkbox.slim
|
162
|
+
- lib/rear/templates/pane/ckeditor.slim
|
163
|
+
- lib/rear/templates/pane/date.slim
|
164
|
+
- lib/rear/templates/pane/datetime.slim
|
165
|
+
- lib/rear/templates/pane/layout.slim
|
166
|
+
- lib/rear/templates/pane/password.slim
|
167
|
+
- lib/rear/templates/pane/quickview.slim
|
168
|
+
- lib/rear/templates/pane/radio.slim
|
169
|
+
- lib/rear/templates/pane/select.slim
|
170
|
+
- lib/rear/templates/pane/string.slim
|
171
|
+
- lib/rear/templates/pane/text.slim
|
172
|
+
- lib/rear/templates/pane/time.slim
|
173
|
+
- lib/rear/utils.rb
|
174
|
+
- lib/rear.rb
|
175
|
+
- LICENSE
|
176
|
+
- Rakefile
|
177
|
+
- README.md
|
178
|
+
- rear.gemspec
|
179
|
+
- test/helpers.rb
|
180
|
+
- test/models/ar.rb
|
181
|
+
- test/models/dm.rb
|
182
|
+
- test/models/sq.rb
|
183
|
+
- test/setup.rb
|
184
|
+
- test/templates/adhoc/book/editor/name.slim
|
185
|
+
- test/templates/adhoc/book/editor/string.slim
|
186
|
+
- test/templates/adhoc/book/pane/name.slim
|
187
|
+
- test/templates/adhoc/book/pane/string.slim
|
188
|
+
- test/templates/shared/shared-templates/editor/string.slim
|
189
|
+
- test/templates/shared/shared-templates/pane/string.slim
|
190
|
+
- test/test__assocs.rb
|
191
|
+
- test/test__columns.rb
|
192
|
+
- test/test__crud.rb
|
193
|
+
- test/test__custom_templates.rb
|
194
|
+
- test/test__filters.rb
|
195
|
+
- .travis.yml
|
196
|
+
homepage: https://github.com/espresso/rear
|
197
|
+
licenses:
|
198
|
+
- MIT
|
199
|
+
metadata: {}
|
200
|
+
post_install_message:
|
201
|
+
rdoc_options: []
|
202
|
+
require_paths:
|
203
|
+
- lib
|
204
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
205
|
+
requirements:
|
206
|
+
- - ! '>='
|
207
|
+
- !ruby/object:Gem::Version
|
208
|
+
version: 1.9.2
|
209
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
210
|
+
requirements:
|
211
|
+
- - ! '>='
|
212
|
+
- !ruby/object:Gem::Version
|
213
|
+
version: '0'
|
214
|
+
requirements: []
|
215
|
+
rubyforge_project:
|
216
|
+
rubygems_version: 2.0.4
|
217
|
+
signing_key:
|
218
|
+
specification_version: 4
|
219
|
+
summary: rear-0.2.0
|
220
|
+
test_files: []
|