spiderfw 0.6.25 → 0.6.26.pre1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (44) hide show
  1. data/CHANGELOG +15 -0
  2. data/VERSION +1 -1
  3. data/apps/core/auth/controllers/login_controller.rb +2 -0
  4. data/apps/core/auth/controllers/mixins/auth_helper.rb +1 -1
  5. data/apps/core/auth/public/css/login.css +49 -0
  6. data/apps/core/auth/views/login.layout.shtml +14 -0
  7. data/apps/core/auth/views/login.shtml +1 -0
  8. data/apps/core/components/public/js/jquery/plugins/jquery.ui.nestedSortable.js +356 -0
  9. data/apps/core/forms/public/date_time.js +1 -1
  10. data/apps/core/forms/public/select.js +1 -1
  11. data/apps/core/forms/tags/element_row.erb +2 -2
  12. data/apps/core/forms/widgets/form/form.rb +34 -22
  13. data/apps/messenger/_init.rb +1 -0
  14. data/apps/messenger/views/admin/index.shtml +1 -1
  15. data/apps/messenger/views/index.shtml +1 -1
  16. data/blueprints/.DS_Store +0 -0
  17. data/blueprints/home/.DS_Store +0 -0
  18. data/blueprints/install/.DS_Store +0 -0
  19. data/data/keys/spider.rsa +27 -0
  20. data/data/keys/spider.rsa.pub +1 -0
  21. data/lib/spiderfw/app.rb +64 -4
  22. data/lib/spiderfw/autoload.rb +0 -1
  23. data/lib/spiderfw/cmd/commands/app.rb +2 -1
  24. data/lib/spiderfw/controller/controller.rb +189 -90
  25. data/lib/spiderfw/controller/dispatcher.rb +13 -3
  26. data/lib/spiderfw/controller/http_controller.rb +18 -4
  27. data/lib/spiderfw/controller/mixins/http_mixin.rb +37 -10
  28. data/lib/spiderfw/controller/mixins/visual.rb +14 -5
  29. data/lib/spiderfw/http/http.rb +5 -0
  30. data/lib/spiderfw/model/base_model.rb +1 -11
  31. data/lib/spiderfw/model/condition.rb +7 -4
  32. data/lib/spiderfw/model/mappers/mapper.rb +2 -2
  33. data/lib/spiderfw/requires.rb +1 -0
  34. data/lib/spiderfw/setup/app_manager.rb +7 -2
  35. data/lib/spiderfw/setup/setup_task.rb +1 -1
  36. data/lib/spiderfw/setup/spider_setup_wizard.rb +1 -1
  37. data/lib/spiderfw/spider.rb +4 -1
  38. data/lib/spiderfw/templates/layout.rb +8 -3
  39. data/lib/spiderfw/templates/template.rb +2 -1
  40. data/lib/spiderfw/test/rack_tester.rb +10 -0
  41. data/lib/spiderfw/widget/widget_plugin.rb +8 -1
  42. metadata +254 -157
  43. data/lib/spiderfw/model/storage/db/connectors/mysql.rb +0 -16
  44. data/lib/spiderfw/model/storage/db/connectors/mysql2.rb +0 -9
metadata CHANGED
@@ -1,210 +1,289 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: spiderfw
3
- version: !ruby/object:Gem::Version
4
- version: 0.6.25
5
- prerelease:
3
+ version: !ruby/object:Gem::Version
4
+ hash: 1923831835
5
+ prerelease: 7
6
+ segments:
7
+ - 0
8
+ - 6
9
+ - 26
10
+ - pre
11
+ - 1
12
+ version: 0.6.26.pre1
6
13
  platform: ruby
7
- authors:
14
+ authors:
8
15
  - Ivan Pirlik
9
16
  autorequire:
10
17
  bindir: bin
11
18
  cert_chain: []
12
- date: 2012-03-07 00:00:00.000000000 Z
13
- dependencies:
14
- - !ruby/object:Gem::Dependency
19
+
20
+ date: 2012-03-22 00:00:00 +01:00
21
+ default_executable: spider
22
+ dependencies:
23
+ - !ruby/object:Gem::Dependency
15
24
  name: cmdparse
16
- requirement: &70179779189120 !ruby/object:Gem::Requirement
25
+ prerelease: false
26
+ requirement: &id001 !ruby/object:Gem::Requirement
17
27
  none: false
18
- requirements:
19
- - - ! '>'
20
- - !ruby/object:Gem::Version
28
+ requirements:
29
+ - - ">"
30
+ - !ruby/object:Gem::Version
31
+ hash: 15
32
+ segments:
33
+ - 2
34
+ - 0
35
+ - 0
21
36
  version: 2.0.0
22
37
  type: :runtime
23
- prerelease: false
24
- version_requirements: *70179779189120
25
- - !ruby/object:Gem::Dependency
38
+ version_requirements: *id001
39
+ - !ruby/object:Gem::Dependency
26
40
  name: fast_gettext
27
- requirement: &70179780906780 !ruby/object:Gem::Requirement
41
+ prerelease: false
42
+ requirement: &id002 !ruby/object:Gem::Requirement
28
43
  none: false
29
- requirements:
30
- - - ! '>='
31
- - !ruby/object:Gem::Version
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ hash: 17
48
+ segments:
49
+ - 0
50
+ - 5
51
+ - 13
32
52
  version: 0.5.13
33
53
  type: :runtime
34
- prerelease: false
35
- version_requirements: *70179780906780
36
- - !ruby/object:Gem::Dependency
54
+ version_requirements: *id002
55
+ - !ruby/object:Gem::Dependency
37
56
  name: hpricot
38
- requirement: &70179780906300 !ruby/object:Gem::Requirement
57
+ prerelease: false
58
+ requirement: &id003 !ruby/object:Gem::Requirement
39
59
  none: false
40
- requirements:
41
- - - ! '>'
42
- - !ruby/object:Gem::Version
43
- version: '0.8'
60
+ requirements:
61
+ - - ">"
62
+ - !ruby/object:Gem::Version
63
+ hash: 27
64
+ segments:
65
+ - 0
66
+ - 8
67
+ version: "0.8"
44
68
  type: :runtime
45
- prerelease: false
46
- version_requirements: *70179780906300
47
- - !ruby/object:Gem::Dependency
69
+ version_requirements: *id003
70
+ - !ruby/object:Gem::Dependency
48
71
  name: json_pure
49
- requirement: &70179780905820 !ruby/object:Gem::Requirement
72
+ prerelease: false
73
+ requirement: &id004 !ruby/object:Gem::Requirement
50
74
  none: false
51
- requirements:
52
- - - ! '>'
53
- - !ruby/object:Gem::Version
54
- version: '1.1'
75
+ requirements:
76
+ - - ">"
77
+ - !ruby/object:Gem::Version
78
+ hash: 13
79
+ segments:
80
+ - 1
81
+ - 1
82
+ version: "1.1"
55
83
  type: :runtime
56
- prerelease: false
57
- version_requirements: *70179780905820
58
- - !ruby/object:Gem::Dependency
84
+ version_requirements: *id004
85
+ - !ruby/object:Gem::Dependency
59
86
  name: uuidtools
60
- requirement: &70179780905340 !ruby/object:Gem::Requirement
87
+ prerelease: false
88
+ requirement: &id005 !ruby/object:Gem::Requirement
61
89
  none: false
62
- requirements:
63
- - - ! '>'
64
- - !ruby/object:Gem::Version
65
- version: '2.1'
90
+ requirements:
91
+ - - ">"
92
+ - !ruby/object:Gem::Version
93
+ hash: 1
94
+ segments:
95
+ - 2
96
+ - 1
97
+ version: "2.1"
66
98
  type: :runtime
67
- prerelease: false
68
- version_requirements: *70179780905340
69
- - !ruby/object:Gem::Dependency
99
+ version_requirements: *id005
100
+ - !ruby/object:Gem::Dependency
70
101
  name: rufus-scheduler
71
- requirement: &70179780904860 !ruby/object:Gem::Requirement
102
+ prerelease: false
103
+ requirement: &id006 !ruby/object:Gem::Requirement
72
104
  none: false
73
- requirements:
74
- - - ! '>'
75
- - !ruby/object:Gem::Version
76
- version: '1.0'
105
+ requirements:
106
+ - - ">"
107
+ - !ruby/object:Gem::Version
108
+ hash: 15
109
+ segments:
110
+ - 1
111
+ - 0
112
+ version: "1.0"
77
113
  type: :runtime
78
- prerelease: false
79
- version_requirements: *70179780904860
80
- - !ruby/object:Gem::Dependency
114
+ version_requirements: *id006
115
+ - !ruby/object:Gem::Dependency
81
116
  name: mime-types
82
- requirement: &70179780904380 !ruby/object:Gem::Requirement
117
+ prerelease: false
118
+ requirement: &id007 !ruby/object:Gem::Requirement
83
119
  none: false
84
- requirements:
85
- - - ! '>'
86
- - !ruby/object:Gem::Version
87
- version: '1.0'
120
+ requirements:
121
+ - - ">"
122
+ - !ruby/object:Gem::Version
123
+ hash: 15
124
+ segments:
125
+ - 1
126
+ - 0
127
+ version: "1.0"
88
128
  type: :runtime
89
- prerelease: false
90
- version_requirements: *70179780904380
91
- - !ruby/object:Gem::Dependency
129
+ version_requirements: *id007
130
+ - !ruby/object:Gem::Dependency
92
131
  name: locale
93
- requirement: &70179780903900 !ruby/object:Gem::Requirement
132
+ prerelease: false
133
+ requirement: &id008 !ruby/object:Gem::Requirement
94
134
  none: false
95
- requirements:
96
- - - ! '>'
97
- - !ruby/object:Gem::Version
98
- version: '2.0'
135
+ requirements:
136
+ - - ">"
137
+ - !ruby/object:Gem::Version
138
+ hash: 3
139
+ segments:
140
+ - 2
141
+ - 0
142
+ version: "2.0"
99
143
  type: :runtime
100
- prerelease: false
101
- version_requirements: *70179780903900
102
- - !ruby/object:Gem::Dependency
144
+ version_requirements: *id008
145
+ - !ruby/object:Gem::Dependency
103
146
  name: builder
104
- requirement: &70179780903420 !ruby/object:Gem::Requirement
147
+ prerelease: false
148
+ requirement: &id009 !ruby/object:Gem::Requirement
105
149
  none: false
106
- requirements:
107
- - - ! '>'
108
- - !ruby/object:Gem::Version
109
- version: '2.1'
150
+ requirements:
151
+ - - ">"
152
+ - !ruby/object:Gem::Version
153
+ hash: 1
154
+ segments:
155
+ - 2
156
+ - 1
157
+ version: "2.1"
110
158
  type: :runtime
111
- prerelease: false
112
- version_requirements: *70179780903420
113
- - !ruby/object:Gem::Dependency
159
+ version_requirements: *id009
160
+ - !ruby/object:Gem::Dependency
114
161
  name: macaddr
115
- requirement: &70179780902940 !ruby/object:Gem::Requirement
162
+ prerelease: false
163
+ requirement: &id010 !ruby/object:Gem::Requirement
116
164
  none: false
117
- requirements:
118
- - - ! '>='
119
- - !ruby/object:Gem::Version
165
+ requirements:
166
+ - - ">="
167
+ - !ruby/object:Gem::Version
168
+ hash: 23
169
+ segments:
170
+ - 1
171
+ - 0
172
+ - 0
120
173
  version: 1.0.0
121
174
  type: :runtime
122
- prerelease: false
123
- version_requirements: *70179780902940
124
- - !ruby/object:Gem::Dependency
175
+ version_requirements: *id010
176
+ - !ruby/object:Gem::Dependency
125
177
  name: bundler
126
- requirement: &70179780902560 !ruby/object:Gem::Requirement
178
+ prerelease: false
179
+ requirement: &id011 !ruby/object:Gem::Requirement
127
180
  none: false
128
- requirements:
129
- - - ! '>='
130
- - !ruby/object:Gem::Version
131
- version: '0'
181
+ requirements:
182
+ - - ">="
183
+ - !ruby/object:Gem::Version
184
+ hash: 3
185
+ segments:
186
+ - 0
187
+ version: "0"
132
188
  type: :runtime
133
- prerelease: false
134
- version_requirements: *70179780902560
135
- - !ruby/object:Gem::Dependency
189
+ version_requirements: *id011
190
+ - !ruby/object:Gem::Dependency
136
191
  name: mail
137
- requirement: &70179780902100 !ruby/object:Gem::Requirement
192
+ prerelease: false
193
+ requirement: &id012 !ruby/object:Gem::Requirement
138
194
  none: false
139
- requirements:
140
- - - ! '>='
141
- - !ruby/object:Gem::Version
142
- version: '0'
195
+ requirements:
196
+ - - ">="
197
+ - !ruby/object:Gem::Version
198
+ hash: 3
199
+ segments:
200
+ - 0
201
+ version: "0"
143
202
  type: :runtime
144
- prerelease: false
145
- version_requirements: *70179780902100
146
- - !ruby/object:Gem::Dependency
203
+ version_requirements: *id012
204
+ - !ruby/object:Gem::Dependency
147
205
  name: backports
148
- requirement: &70179780901680 !ruby/object:Gem::Requirement
206
+ prerelease: false
207
+ requirement: &id013 !ruby/object:Gem::Requirement
149
208
  none: false
150
- requirements:
151
- - - ! '>='
152
- - !ruby/object:Gem::Version
153
- version: '0'
209
+ requirements:
210
+ - - ">="
211
+ - !ruby/object:Gem::Version
212
+ hash: 3
213
+ segments:
214
+ - 0
215
+ version: "0"
154
216
  type: :runtime
155
- prerelease: false
156
- version_requirements: *70179780901680
157
- - !ruby/object:Gem::Dependency
217
+ version_requirements: *id013
218
+ - !ruby/object:Gem::Dependency
158
219
  name: rack
159
- requirement: &70179780901260 !ruby/object:Gem::Requirement
220
+ prerelease: false
221
+ requirement: &id014 !ruby/object:Gem::Requirement
160
222
  none: false
161
- requirements:
162
- - - ! '>='
163
- - !ruby/object:Gem::Version
164
- version: '0'
223
+ requirements:
224
+ - - ">="
225
+ - !ruby/object:Gem::Version
226
+ hash: 3
227
+ segments:
228
+ - 0
229
+ version: "0"
165
230
  type: :runtime
166
- prerelease: false
167
- version_requirements: *70179780901260
168
- - !ruby/object:Gem::Dependency
231
+ version_requirements: *id014
232
+ - !ruby/object:Gem::Dependency
169
233
  name: rake
170
- requirement: &70179780900740 !ruby/object:Gem::Requirement
234
+ prerelease: false
235
+ requirement: &id015 !ruby/object:Gem::Requirement
171
236
  none: false
172
- requirements:
173
- - - ! '>'
174
- - !ruby/object:Gem::Version
237
+ requirements:
238
+ - - ">"
239
+ - !ruby/object:Gem::Version
240
+ hash: 5
241
+ segments:
242
+ - 0
243
+ - 7
244
+ - 3
175
245
  version: 0.7.3
176
246
  type: :development
177
- prerelease: false
178
- version_requirements: *70179780900740
179
- - !ruby/object:Gem::Dependency
247
+ version_requirements: *id015
248
+ - !ruby/object:Gem::Dependency
180
249
  name: gettext
181
- requirement: &70179780900220 !ruby/object:Gem::Requirement
250
+ prerelease: false
251
+ requirement: &id016 !ruby/object:Gem::Requirement
182
252
  none: false
183
- requirements:
184
- - - ! '>='
185
- - !ruby/object:Gem::Version
253
+ requirements:
254
+ - - ">="
255
+ - !ruby/object:Gem::Version
256
+ hash: 11
257
+ segments:
258
+ - 2
259
+ - 1
260
+ - 0
186
261
  version: 2.1.0
187
262
  type: :development
188
- prerelease: false
189
- version_requirements: *70179780900220
190
- - !ruby/object:Gem::Dependency
263
+ version_requirements: *id016
264
+ - !ruby/object:Gem::Dependency
191
265
  name: fssm
192
- requirement: &70179780899840 !ruby/object:Gem::Requirement
266
+ prerelease: false
267
+ requirement: &id017 !ruby/object:Gem::Requirement
193
268
  none: false
194
- requirements:
195
- - - ! '>='
196
- - !ruby/object:Gem::Version
197
- version: '0'
269
+ requirements:
270
+ - - ">="
271
+ - !ruby/object:Gem::Version
272
+ hash: 3
273
+ segments:
274
+ - 0
275
+ version: "0"
198
276
  type: :development
199
- prerelease: false
200
- version_requirements: *70179780899840
277
+ version_requirements: *id017
201
278
  description: Spider is yet another Ruby framework.
202
279
  email: abmajor7@gmail.com
203
- executables:
280
+ executables:
204
281
  - spider
205
282
  extensions: []
283
+
206
284
  extra_rdoc_files: []
207
- files:
285
+
286
+ files:
208
287
  - README.rdoc
209
288
  - VERSION
210
289
  - CHANGELOG
@@ -292,6 +371,8 @@ files:
292
371
  - apps/core/auth/models/user.rb
293
372
  - apps/core/auth/po/it/spider_auth.po
294
373
  - apps/core/auth/po/spider_auth.pot
374
+ - apps/core/auth/public/css/login.css
375
+ - apps/core/auth/views/login.layout.shtml
295
376
  - apps/core/auth/views/login.shtml
296
377
  - apps/core/components/_init.rb
297
378
  - apps/core/components/assets.rb
@@ -542,6 +623,7 @@ files:
542
623
  - apps/core/components/public/js/jquery/plugins/jquery.form.js
543
624
  - apps/core/components/public/js/jquery/plugins/jquery.json.js
544
625
  - apps/core/components/public/js/jquery/plugins/jquery.query-2.1.6.js
626
+ - apps/core/components/public/js/jquery/plugins/jquery.ui.nestedSortable.js
545
627
  - apps/core/components/public/js/jquery/plugins/jquery.url.js
546
628
  - apps/core/components/public/js/jquery/plugins/treeview/changelog.txt
547
629
  - apps/core/components/public/js/jquery/plugins/treeview/images/ajax-loader.gif
@@ -1068,6 +1150,7 @@ files:
1068
1150
  - apps/worker/models/job.rb
1069
1151
  - apps/worker/worker.rb
1070
1152
  - bin/spider
1153
+ - blueprints/.DS_Store
1071
1154
  - blueprints/app/.dirs
1072
1155
  - blueprints/app/__APP__.appspec
1073
1156
  - blueprints/app/_init.rb
@@ -1080,6 +1163,7 @@ files:
1080
1163
  - blueprints/app/widgets/.gitignore
1081
1164
  - blueprints/bin/spider
1082
1165
  - blueprints/home/.dirs
1166
+ - blueprints/home/.DS_Store
1083
1167
  - blueprints/home/.gitignore
1084
1168
  - blueprints/home/apps/.gitignore
1085
1169
  - blueprints/home/config/config.yml
@@ -1092,7 +1176,10 @@ files:
1092
1176
  - blueprints/home/var/cache/.gitignore
1093
1177
  - blueprints/home/var/log/.gitignore
1094
1178
  - blueprints/home/var/sessions/.gitignore
1179
+ - blueprints/install/.DS_Store
1095
1180
  - blueprints/install/config.ru
1181
+ - data/keys/spider.rsa
1182
+ - data/keys/spider.rsa.pub
1096
1183
  - data/locale/it/LC_MESSAGES/spider.mo
1097
1184
  - data/locale/it/LC_MESSAGES/spider_auth.mo
1098
1185
  - data/locale/it/LC_MESSAGES/spider_components.mo
@@ -1223,8 +1310,6 @@ files:
1223
1310
  - lib/spiderfw/model/storage/db/adapters/sqlite.rb
1224
1311
  - lib/spiderfw/model/storage/db/connectors/jdbc.rb
1225
1312
  - lib/spiderfw/model/storage/db/connectors/jdbc_oracle.rb
1226
- - lib/spiderfw/model/storage/db/connectors/mysql.rb
1227
- - lib/spiderfw/model/storage/db/connectors/mysql2.rb
1228
1313
  - lib/spiderfw/model/storage/db/connectors/oci8.rb
1229
1314
  - lib/spiderfw/model/storage/db/connectors/odbc.rb
1230
1315
  - lib/spiderfw/model/storage/db/db.rb
@@ -1282,6 +1367,7 @@ files:
1282
1367
  - lib/spiderfw/test/cucumber.rb
1283
1368
  - lib/spiderfw/test/extensions/db_storage.rb
1284
1369
  - lib/spiderfw/test/page_object.rb
1370
+ - lib/spiderfw/test/rack_tester.rb
1285
1371
  - lib/spiderfw/test/spec.rb
1286
1372
  - lib/spiderfw/test/stubs/mapper_stub.rb
1287
1373
  - lib/spiderfw/test/stubs/storage_stub.rb
@@ -1336,30 +1422,41 @@ files:
1336
1422
  - public/css/error_page.css
1337
1423
  - public/js/error_page.js
1338
1424
  - templates/email/error.erb
1425
+ has_rdoc: true
1339
1426
  homepage: http://github.com/me/spider
1340
1427
  licenses: []
1428
+
1341
1429
  post_install_message:
1342
1430
  rdoc_options: []
1343
- require_paths:
1431
+
1432
+ require_paths:
1344
1433
  - lib
1345
- required_ruby_version: !ruby/object:Gem::Requirement
1434
+ required_ruby_version: !ruby/object:Gem::Requirement
1346
1435
  none: false
1347
- requirements:
1348
- - - ! '>='
1349
- - !ruby/object:Gem::Version
1350
- version: '0'
1351
- required_rubygems_version: !ruby/object:Gem::Requirement
1436
+ requirements:
1437
+ - - ">="
1438
+ - !ruby/object:Gem::Version
1439
+ hash: 3
1440
+ segments:
1441
+ - 0
1442
+ version: "0"
1443
+ required_rubygems_version: !ruby/object:Gem::Requirement
1352
1444
  none: false
1353
- requirements:
1354
- - - ! '>='
1355
- - !ruby/object:Gem::Version
1356
- version: '0'
1357
- requirements:
1358
- - ! 'Optional dependencies: ripl, ripl-irb, ripl-multi_line, json, openssl, sqlite3,
1359
- mongrel, ruby-oci8 >2.0, mysql, yui-compressor, cldr'
1445
+ requirements:
1446
+ - - ">"
1447
+ - !ruby/object:Gem::Version
1448
+ hash: 25
1449
+ segments:
1450
+ - 1
1451
+ - 3
1452
+ - 1
1453
+ version: 1.3.1
1454
+ requirements:
1455
+ - "Optional dependencies: ripl, ripl-irb, ripl-multi_line, json, openssl, sqlite3, mongrel, ruby-oci8 >2.0, mysql, yui-compressor, cldr"
1360
1456
  rubyforge_project:
1361
- rubygems_version: 1.8.11
1457
+ rubygems_version: 1.6.2
1362
1458
  signing_key:
1363
1459
  specification_version: 3
1364
1460
  summary: A (web) framework
1365
1461
  test_files: []
1462
+
@@ -1,16 +0,0 @@
1
- require 'mysql'
2
-
3
- module Spider; module Model; module Storage; module Db; module Connectors
4
-
5
- module Mysql
6
-
7
- def self.new_connection(host=nil, user=nil, passwd=nil, db=nil, port=nil, sock=nil, flag=nil)
8
- conn = ::Mysql2::Client.new(
9
- :host => host, :username => user, :password => passwd, :database => db, :port => port, :socket => sock
10
- )
11
- return conn
12
- end
13
-
14
- end
15
-
16
- end; end; end; end; end
@@ -1,9 +0,0 @@
1
- require 'mysql2'
2
-
3
- module Spider; module Model; module Storage; module Db; module Connectors
4
-
5
- module Mysql2
6
-
7
- end
8
-
9
- end; end; end; end; end