spiderfw 0.5.10 → 0.5.11
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +6 -0
- data/Rakefile +4 -1
- data/VERSION +1 -0
- data/apps/core/auth/controllers/login_controller.rb +10 -1
- data/apps/core/auth/controllers/mixins/auth_helper.rb +4 -2
- data/apps/core/auth/views/login.shtml +1 -1
- data/apps/core/components/_init.rb +1 -1
- data/apps/core/components/public/css/spider.css +0 -1
- data/apps/core/components/public/js/jquery/plugins/jquery.form.js +2 -1
- data/apps/core/components/public/js/list.js +14 -126
- data/apps/core/components/public/js/plugins/plugin.js +7 -0
- data/apps/core/components/public/js/plugins/sortable.js +124 -0
- data/apps/core/components/public/js/spider.js +212 -51
- data/apps/core/components/widgets/list/list.shtml +1 -0
- data/apps/core/components/widgets/table/table.rb +1 -1
- data/apps/core/components/widgets/table/table.shtml +3 -3
- data/apps/core/components/widgets/tabs/tabs.rb +70 -22
- data/apps/core/components/widgets/tabs/tabs.shtml +8 -2
- data/apps/core/forms/widgets/inputs/file_input/file_input.rb +4 -1
- data/data/locale/it/LC_MESSAGES/cms.mo +0 -0
- data/data/locale/it/LC_MESSAGES/spider.mo +0 -0
- data/data/locale/it/LC_MESSAGES/spider_files.mo +0 -0
- data/data/locale/it/LC_MESSAGES/spider_images.mo +0 -0
- data/lib/spiderfw.rb +3 -1
- data/lib/spiderfw/config/configuration.rb +3 -1
- data/lib/spiderfw/controller/controller.rb +8 -0
- data/lib/spiderfw/controller/mixins/static_content.rb +14 -2
- data/lib/spiderfw/controller/mixins/visual.rb +25 -25
- data/lib/spiderfw/controller/page_controller.rb +3 -0
- data/lib/spiderfw/controller/request.rb +4 -1
- data/lib/spiderfw/controller/session.rb +7 -6
- data/lib/spiderfw/create.rb +10 -1
- data/lib/spiderfw/model/base_model.rb +104 -57
- data/lib/spiderfw/model/condition.rb +9 -1
- data/lib/spiderfw/model/data_type.rb +15 -0
- data/lib/spiderfw/model/datatypes/uuid.rb +5 -0
- data/lib/spiderfw/model/extended_models/managed.rb +2 -2
- data/lib/spiderfw/model/mappers/db_mapper.rb +46 -21
- data/lib/spiderfw/model/mappers/mapper.rb +34 -8
- data/lib/spiderfw/model/mixins/list.rb +2 -0
- data/lib/spiderfw/model/mixins/tree.rb +2 -1
- data/lib/spiderfw/model/mixins/versioned.rb +12 -9
- data/lib/spiderfw/model/model.rb +72 -0
- data/lib/spiderfw/model/query_set.rb +7 -0
- data/lib/spiderfw/model/storage/base_storage.rb +5 -1
- data/lib/spiderfw/model/storage/db/adapters/mysql.rb +5 -2
- data/lib/spiderfw/model/storage/db/adapters/oci8.rb +9 -3
- data/lib/spiderfw/model/storage/db/db_storage.rb +8 -5
- data/lib/spiderfw/model/sync.rb +12 -6
- data/lib/spiderfw/requires.rb +1 -0
- data/lib/spiderfw/templates/blocks/parent_context.rb +26 -0
- data/lib/spiderfw/templates/blocks/widget.rb +17 -7
- data/lib/spiderfw/templates/layout.rb +11 -1
- data/lib/spiderfw/templates/template.rb +36 -3
- data/lib/spiderfw/templates/template_blocks.rb +36 -26
- data/lib/spiderfw/utils/annotations.rb +2 -1
- data/lib/spiderfw/utils/thread_out.rb +15 -0
- data/lib/spiderfw/widget/widget.rb +58 -16
- data/spider.gemspec +3 -0
- metadata +143 -48
data/spider.gemspec
CHANGED
@@ -12,6 +12,8 @@ Gem::Specification.new do |s|
|
|
12
12
|
s.authors = ["Ivan Pirlik"]
|
13
13
|
s.files = FileList[
|
14
14
|
'README',
|
15
|
+
'VERSION',
|
16
|
+
'CHANGELOG',
|
15
17
|
'Rakefile',
|
16
18
|
'spider.gemspec',
|
17
19
|
'apps/**/*',
|
@@ -35,6 +37,7 @@ Gem::Specification.new do |s|
|
|
35
37
|
s.add_dependency("mime-types", ["> 1.0"])
|
36
38
|
s.add_dependency("locale", ["> 2.0"])
|
37
39
|
s.add_dependency("builder", ["> 2.1"])
|
40
|
+
s.add_dependency("macaddr", [">= 1.0.0"])
|
38
41
|
s.add_development_dependency("rake", ["> 0.7.3"])
|
39
42
|
s.add_development_dependency("ruby-debug", ["> 0.9.3"])
|
40
43
|
s.requirements << "Optional dependencies: openssl, sqlite3, webrick, mongrel, ruby-oci8 >2.0, mysql"
|
metadata
CHANGED
@@ -1,7 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spiderfw
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
4
|
+
hash: 29
|
5
|
+
prerelease: false
|
6
|
+
segments:
|
7
|
+
- 0
|
8
|
+
- 5
|
9
|
+
- 11
|
10
|
+
version: 0.5.11
|
5
11
|
platform: ruby
|
6
12
|
authors:
|
7
13
|
- Ivan Pirlik
|
@@ -14,114 +20,189 @@ default_executable: spider
|
|
14
20
|
dependencies:
|
15
21
|
- !ruby/object:Gem::Dependency
|
16
22
|
name: cmdparse
|
17
|
-
|
18
|
-
|
19
|
-
|
23
|
+
prerelease: false
|
24
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
20
26
|
requirements:
|
21
27
|
- - ">"
|
22
28
|
- !ruby/object:Gem::Version
|
29
|
+
hash: 15
|
30
|
+
segments:
|
31
|
+
- 2
|
32
|
+
- 0
|
33
|
+
- 0
|
23
34
|
version: 2.0.0
|
24
|
-
|
35
|
+
type: :runtime
|
36
|
+
version_requirements: *id001
|
25
37
|
- !ruby/object:Gem::Dependency
|
26
38
|
name: gettext
|
27
|
-
|
28
|
-
|
29
|
-
|
39
|
+
prerelease: false
|
40
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
30
42
|
requirements:
|
31
43
|
- - ">"
|
32
44
|
- !ruby/object:Gem::Version
|
45
|
+
hash: 15
|
46
|
+
segments:
|
47
|
+
- 2
|
48
|
+
- 0
|
49
|
+
- 0
|
33
50
|
version: 2.0.0
|
34
|
-
|
51
|
+
type: :runtime
|
52
|
+
version_requirements: *id002
|
35
53
|
- !ruby/object:Gem::Dependency
|
36
54
|
name: hpricot
|
37
|
-
|
38
|
-
|
39
|
-
|
55
|
+
prerelease: false
|
56
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
40
58
|
requirements:
|
41
59
|
- - ">"
|
42
60
|
- !ruby/object:Gem::Version
|
61
|
+
hash: 27
|
62
|
+
segments:
|
63
|
+
- 0
|
64
|
+
- 8
|
43
65
|
version: "0.8"
|
44
|
-
|
66
|
+
type: :runtime
|
67
|
+
version_requirements: *id003
|
45
68
|
- !ruby/object:Gem::Dependency
|
46
69
|
name: json
|
47
|
-
|
48
|
-
|
49
|
-
|
70
|
+
prerelease: false
|
71
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
72
|
+
none: false
|
50
73
|
requirements:
|
51
74
|
- - ">"
|
52
75
|
- !ruby/object:Gem::Version
|
76
|
+
hash: 13
|
77
|
+
segments:
|
78
|
+
- 1
|
79
|
+
- 1
|
53
80
|
version: "1.1"
|
54
|
-
|
81
|
+
type: :runtime
|
82
|
+
version_requirements: *id004
|
55
83
|
- !ruby/object:Gem::Dependency
|
56
84
|
name: uuidtools
|
57
|
-
|
58
|
-
|
59
|
-
|
85
|
+
prerelease: false
|
86
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
87
|
+
none: false
|
60
88
|
requirements:
|
61
89
|
- - ">"
|
62
90
|
- !ruby/object:Gem::Version
|
91
|
+
hash: 1
|
92
|
+
segments:
|
93
|
+
- 2
|
94
|
+
- 1
|
63
95
|
version: "2.1"
|
64
|
-
|
96
|
+
type: :runtime
|
97
|
+
version_requirements: *id005
|
65
98
|
- !ruby/object:Gem::Dependency
|
66
99
|
name: rufus-scheduler
|
67
|
-
|
68
|
-
|
69
|
-
|
100
|
+
prerelease: false
|
101
|
+
requirement: &id006 !ruby/object:Gem::Requirement
|
102
|
+
none: false
|
70
103
|
requirements:
|
71
104
|
- - ">"
|
72
105
|
- !ruby/object:Gem::Version
|
106
|
+
hash: 15
|
107
|
+
segments:
|
108
|
+
- 1
|
109
|
+
- 0
|
73
110
|
version: "1.0"
|
74
|
-
|
111
|
+
type: :runtime
|
112
|
+
version_requirements: *id006
|
75
113
|
- !ruby/object:Gem::Dependency
|
76
114
|
name: mime-types
|
77
|
-
|
78
|
-
|
79
|
-
|
115
|
+
prerelease: false
|
116
|
+
requirement: &id007 !ruby/object:Gem::Requirement
|
117
|
+
none: false
|
80
118
|
requirements:
|
81
119
|
- - ">"
|
82
120
|
- !ruby/object:Gem::Version
|
121
|
+
hash: 15
|
122
|
+
segments:
|
123
|
+
- 1
|
124
|
+
- 0
|
83
125
|
version: "1.0"
|
84
|
-
|
126
|
+
type: :runtime
|
127
|
+
version_requirements: *id007
|
85
128
|
- !ruby/object:Gem::Dependency
|
86
129
|
name: locale
|
87
|
-
|
88
|
-
|
89
|
-
|
130
|
+
prerelease: false
|
131
|
+
requirement: &id008 !ruby/object:Gem::Requirement
|
132
|
+
none: false
|
90
133
|
requirements:
|
91
134
|
- - ">"
|
92
135
|
- !ruby/object:Gem::Version
|
136
|
+
hash: 3
|
137
|
+
segments:
|
138
|
+
- 2
|
139
|
+
- 0
|
93
140
|
version: "2.0"
|
94
|
-
|
141
|
+
type: :runtime
|
142
|
+
version_requirements: *id008
|
95
143
|
- !ruby/object:Gem::Dependency
|
96
144
|
name: builder
|
97
|
-
|
98
|
-
|
99
|
-
|
145
|
+
prerelease: false
|
146
|
+
requirement: &id009 !ruby/object:Gem::Requirement
|
147
|
+
none: false
|
100
148
|
requirements:
|
101
149
|
- - ">"
|
102
150
|
- !ruby/object:Gem::Version
|
151
|
+
hash: 1
|
152
|
+
segments:
|
153
|
+
- 2
|
154
|
+
- 1
|
103
155
|
version: "2.1"
|
104
|
-
|
156
|
+
type: :runtime
|
157
|
+
version_requirements: *id009
|
158
|
+
- !ruby/object:Gem::Dependency
|
159
|
+
name: macaddr
|
160
|
+
prerelease: false
|
161
|
+
requirement: &id010 !ruby/object:Gem::Requirement
|
162
|
+
none: false
|
163
|
+
requirements:
|
164
|
+
- - ">="
|
165
|
+
- !ruby/object:Gem::Version
|
166
|
+
hash: 23
|
167
|
+
segments:
|
168
|
+
- 1
|
169
|
+
- 0
|
170
|
+
- 0
|
171
|
+
version: 1.0.0
|
172
|
+
type: :runtime
|
173
|
+
version_requirements: *id010
|
105
174
|
- !ruby/object:Gem::Dependency
|
106
175
|
name: rake
|
107
|
-
|
108
|
-
|
109
|
-
|
176
|
+
prerelease: false
|
177
|
+
requirement: &id011 !ruby/object:Gem::Requirement
|
178
|
+
none: false
|
110
179
|
requirements:
|
111
180
|
- - ">"
|
112
181
|
- !ruby/object:Gem::Version
|
182
|
+
hash: 5
|
183
|
+
segments:
|
184
|
+
- 0
|
185
|
+
- 7
|
186
|
+
- 3
|
113
187
|
version: 0.7.3
|
114
|
-
|
188
|
+
type: :development
|
189
|
+
version_requirements: *id011
|
115
190
|
- !ruby/object:Gem::Dependency
|
116
191
|
name: ruby-debug
|
117
|
-
|
118
|
-
|
119
|
-
|
192
|
+
prerelease: false
|
193
|
+
requirement: &id012 !ruby/object:Gem::Requirement
|
194
|
+
none: false
|
120
195
|
requirements:
|
121
196
|
- - ">"
|
122
197
|
- !ruby/object:Gem::Version
|
198
|
+
hash: 61
|
199
|
+
segments:
|
200
|
+
- 0
|
201
|
+
- 9
|
202
|
+
- 3
|
123
203
|
version: 0.9.3
|
124
|
-
|
204
|
+
type: :development
|
205
|
+
version_requirements: *id012
|
125
206
|
description: Spider is yet another Ruby framework.
|
126
207
|
email: abmajor7@gmail.com
|
127
208
|
executables:
|
@@ -132,6 +213,8 @@ extra_rdoc_files: []
|
|
132
213
|
|
133
214
|
files:
|
134
215
|
- README
|
216
|
+
- VERSION
|
217
|
+
- CHANGELOG
|
135
218
|
- Rakefile
|
136
219
|
- spider.gemspec
|
137
220
|
- apps/app_server/_init.rb
|
@@ -498,6 +581,8 @@ files:
|
|
498
581
|
- apps/core/components/public/js/jquery/plugins/ui-timepickr/test/test.js
|
499
582
|
- apps/core/components/public/js/jquery/plugins/ui-timepickr/test/unit/ui.timepickr.js
|
500
583
|
- apps/core/components/public/js/list.js
|
584
|
+
- apps/core/components/public/js/plugins/plugin.js
|
585
|
+
- apps/core/components/public/js/plugins/sortable.js
|
501
586
|
- apps/core/components/public/js/spider.js
|
502
587
|
- apps/core/components/public/widgets/search_table.js
|
503
588
|
- apps/core/components/public/widgets/table.js
|
@@ -645,10 +730,13 @@ files:
|
|
645
730
|
- blueprints/home/config/config.yml
|
646
731
|
- blueprints/home/init.rb
|
647
732
|
- blueprints/install/config.ru
|
733
|
+
- data/locale/it/LC_MESSAGES/cms.mo
|
648
734
|
- data/locale/it/LC_MESSAGES/spider.mo
|
649
735
|
- data/locale/it/LC_MESSAGES/spider_auth.mo
|
650
736
|
- data/locale/it/LC_MESSAGES/spider_components.mo
|
737
|
+
- data/locale/it/LC_MESSAGES/spider_files.mo
|
651
738
|
- data/locale/it/LC_MESSAGES/spider_forms.mo
|
739
|
+
- data/locale/it/LC_MESSAGES/spider_images.mo
|
652
740
|
- data/locale/it/LC_MESSAGES/spider_messenger.mo
|
653
741
|
- lib/spiderfw/app.rb
|
654
742
|
- lib/spiderfw/autoload.rb
|
@@ -779,6 +867,7 @@ files:
|
|
779
867
|
- lib/spiderfw/templates/blocks/each.rb
|
780
868
|
- lib/spiderfw/templates/blocks/html.rb
|
781
869
|
- lib/spiderfw/templates/blocks/if.rb
|
870
|
+
- lib/spiderfw/templates/blocks/parent_context.rb
|
782
871
|
- lib/spiderfw/templates/blocks/pass.rb
|
783
872
|
- lib/spiderfw/templates/blocks/render.rb
|
784
873
|
- lib/spiderfw/templates/blocks/run.rb
|
@@ -838,21 +927,27 @@ rdoc_options: []
|
|
838
927
|
require_paths:
|
839
928
|
- lib
|
840
929
|
required_ruby_version: !ruby/object:Gem::Requirement
|
930
|
+
none: false
|
841
931
|
requirements:
|
842
932
|
- - ">="
|
843
933
|
- !ruby/object:Gem::Version
|
934
|
+
hash: 3
|
935
|
+
segments:
|
936
|
+
- 0
|
844
937
|
version: "0"
|
845
|
-
version:
|
846
938
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
939
|
+
none: false
|
847
940
|
requirements:
|
848
941
|
- - ">="
|
849
942
|
- !ruby/object:Gem::Version
|
943
|
+
hash: 3
|
944
|
+
segments:
|
945
|
+
- 0
|
850
946
|
version: "0"
|
851
|
-
version:
|
852
947
|
requirements:
|
853
948
|
- "Optional dependencies: openssl, sqlite3, webrick, mongrel, ruby-oci8 >2.0, mysql"
|
854
949
|
rubyforge_project:
|
855
|
-
rubygems_version: 1.3.
|
950
|
+
rubygems_version: 1.3.7
|
856
951
|
signing_key:
|
857
952
|
specification_version: 3
|
858
953
|
summary: A (web) framework
|