rear 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (121) hide show
  1. checksums.yaml +15 -0
  2. data/.travis.yml +7 -0
  3. data/CHANGELOG.md +7 -0
  4. data/Gemfile +20 -0
  5. data/LICENSE +19 -0
  6. data/README.md +101 -0
  7. data/Rakefile +79 -0
  8. data/assets/api.js +307 -0
  9. data/assets/bootstrap-datetimepicker/css/bootstrap-datetimepicker.min.css +8 -0
  10. data/assets/bootstrap-datetimepicker/js/bootstrap-datetimepicker.min.js +26 -0
  11. data/assets/bootstrap/css/bootstrap-responsive.min.css +9 -0
  12. data/assets/bootstrap/css/bootstrap.min.css +9 -0
  13. data/assets/bootstrap/img/glyphicons-halflings-white.png +0 -0
  14. data/assets/bootstrap/img/glyphicons-halflings.png +0 -0
  15. data/assets/bootstrap/js/bootstrap.min.js +6 -0
  16. data/assets/jquery.js +5 -0
  17. data/assets/noty/jquery.noty.js +520 -0
  18. data/assets/noty/layouts/top.js +34 -0
  19. data/assets/noty/layouts/topRight.js +43 -0
  20. data/assets/noty/promise.js +432 -0
  21. data/assets/noty/themes/default.js +156 -0
  22. data/assets/select2-bootstrap.css +86 -0
  23. data/assets/select2/select2-spinner.gif +0 -0
  24. data/assets/select2/select2.css +652 -0
  25. data/assets/select2/select2.min.js +22 -0
  26. data/assets/select2/select2.png +0 -0
  27. data/assets/select2/select2x2.png +0 -0
  28. data/assets/ui.css +75 -0
  29. data/assets/xhr.js +4 -0
  30. data/bin/rear +65 -0
  31. data/docs/Assocs.md +100 -0
  32. data/docs/Columns.md +404 -0
  33. data/docs/Deploy.md +62 -0
  34. data/docs/FileManager.md +75 -0
  35. data/docs/Filters.md +341 -0
  36. data/docs/Setup.md +201 -0
  37. data/lib/rear.rb +13 -0
  38. data/lib/rear/actions.rb +98 -0
  39. data/lib/rear/constants.rb +61 -0
  40. data/lib/rear/controller_setup.rb +249 -0
  41. data/lib/rear/helpers.rb +17 -0
  42. data/lib/rear/helpers/class.rb +46 -0
  43. data/lib/rear/helpers/columns.rb +68 -0
  44. data/lib/rear/helpers/filters.rb +147 -0
  45. data/lib/rear/helpers/generic.rb +73 -0
  46. data/lib/rear/helpers/order.rb +47 -0
  47. data/lib/rear/helpers/pager.rb +35 -0
  48. data/lib/rear/helpers/render.rb +37 -0
  49. data/lib/rear/home_controller.rb +10 -0
  50. data/lib/rear/input.rb +341 -0
  51. data/lib/rear/orm.rb +73 -0
  52. data/lib/rear/rear.rb +74 -0
  53. data/lib/rear/setup.rb +9 -0
  54. data/lib/rear/setup/associations.rb +33 -0
  55. data/lib/rear/setup/columns.rb +109 -0
  56. data/lib/rear/setup/filters.rb +314 -0
  57. data/lib/rear/setup/generic.rb +59 -0
  58. data/lib/rear/setup/menu.rb +39 -0
  59. data/lib/rear/templates/editor/ace.slim +7 -0
  60. data/lib/rear/templates/editor/assocs.slim +10 -0
  61. data/lib/rear/templates/editor/boolean.slim +5 -0
  62. data/lib/rear/templates/editor/bulk_edit.slim +75 -0
  63. data/lib/rear/templates/editor/checkbox.slim +5 -0
  64. data/lib/rear/templates/editor/ckeditor.slim +7 -0
  65. data/lib/rear/templates/editor/date.slim +9 -0
  66. data/lib/rear/templates/editor/datetime.slim +9 -0
  67. data/lib/rear/templates/editor/layout.slim +103 -0
  68. data/lib/rear/templates/editor/password.slim +1 -0
  69. data/lib/rear/templates/editor/radio.slim +5 -0
  70. data/lib/rear/templates/editor/select.slim +3 -0
  71. data/lib/rear/templates/editor/string.slim +1 -0
  72. data/lib/rear/templates/editor/text.slim +1 -0
  73. data/lib/rear/templates/editor/time.slim +9 -0
  74. data/lib/rear/templates/error.slim +36 -0
  75. data/lib/rear/templates/filters/boolean.slim +10 -0
  76. data/lib/rear/templates/filters/checkbox.slim +15 -0
  77. data/lib/rear/templates/filters/date.slim +10 -0
  78. data/lib/rear/templates/filters/datetime.slim +10 -0
  79. data/lib/rear/templates/filters/layout.slim +26 -0
  80. data/lib/rear/templates/filters/radio.slim +14 -0
  81. data/lib/rear/templates/filters/select.slim +9 -0
  82. data/lib/rear/templates/filters/string.slim +3 -0
  83. data/lib/rear/templates/filters/text.slim +3 -0
  84. data/lib/rear/templates/filters/time.slim +10 -0
  85. data/lib/rear/templates/home.slim +0 -0
  86. data/lib/rear/templates/layout.slim +78 -0
  87. data/lib/rear/templates/pager.slim +22 -0
  88. data/lib/rear/templates/pane/ace.slim +2 -0
  89. data/lib/rear/templates/pane/assocs.slim +62 -0
  90. data/lib/rear/templates/pane/boolean.slim +2 -0
  91. data/lib/rear/templates/pane/checkbox.slim +5 -0
  92. data/lib/rear/templates/pane/ckeditor.slim +2 -0
  93. data/lib/rear/templates/pane/date.slim +2 -0
  94. data/lib/rear/templates/pane/datetime.slim +2 -0
  95. data/lib/rear/templates/pane/layout.slim +111 -0
  96. data/lib/rear/templates/pane/password.slim +2 -0
  97. data/lib/rear/templates/pane/quickview.slim +21 -0
  98. data/lib/rear/templates/pane/radio.slim +5 -0
  99. data/lib/rear/templates/pane/select.slim +5 -0
  100. data/lib/rear/templates/pane/string.slim +2 -0
  101. data/lib/rear/templates/pane/text.slim +2 -0
  102. data/lib/rear/templates/pane/time.slim +2 -0
  103. data/lib/rear/utils.rb +288 -0
  104. data/rear.gemspec +27 -0
  105. data/test/helpers.rb +33 -0
  106. data/test/models/ar.rb +52 -0
  107. data/test/models/dm.rb +53 -0
  108. data/test/models/sq.rb +58 -0
  109. data/test/setup.rb +4 -0
  110. data/test/templates/adhoc/book/editor/name.slim +1 -0
  111. data/test/templates/adhoc/book/editor/string.slim +1 -0
  112. data/test/templates/adhoc/book/pane/name.slim +1 -0
  113. data/test/templates/adhoc/book/pane/string.slim +1 -0
  114. data/test/templates/shared/shared-templates/editor/string.slim +1 -0
  115. data/test/templates/shared/shared-templates/pane/string.slim +1 -0
  116. data/test/test__assocs.rb +249 -0
  117. data/test/test__columns.rb +269 -0
  118. data/test/test__crud.rb +81 -0
  119. data/test/test__custom_templates.rb +147 -0
  120. data/test/test__filters.rb +228 -0
  121. 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: []