rad_kit 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +11 -0
- data/lib/components/kit.rb +16 -0
- data/lib/components/kit.yml +3 -0
- data/lib/components/models.rb +7 -0
- data/lib/kit/factories.rb +9 -0
- data/lib/kit/gems.rb +16 -0
- data/lib/kit/http_controller.rb +4 -0
- data/lib/kit/http_controller/authorized.rb +51 -0
- data/lib/kit/http_controller/localized.rb +13 -0
- data/lib/kit/kit.rb +29 -0
- data/lib/kit/models.rb +8 -0
- data/lib/kit/models/attachment_uploader.rb +15 -0
- data/lib/kit/models/attachments_uploader_helper.rb +79 -0
- data/lib/kit/models/authorized.rb +188 -0
- data/lib/kit/models/authorized_object.rb +167 -0
- data/lib/kit/models/default_permissions.yml +29 -0
- data/lib/kit/models/file_uploader.rb +26 -0
- data/lib/kit/models/micelaneous.rb +1 -0
- data/lib/kit/models/role.rb +88 -0
- data/lib/kit/models_after.rb +27 -0
- data/lib/kit/mongoid.rb +22 -0
- data/lib/kit/mongoid/rad_micelaneous.rb +36 -0
- data/lib/kit/mongoid/text_processor.rb +44 -0
- data/lib/kit/spec.rb +77 -0
- data/lib/kit/spec/items_controller_crud.rb +64 -0
- data/lib/kit/support.rb +14 -0
- data/lib/kit/support/string.rb +6 -0
- data/lib/kit/tasks.rb +18 -0
- data/lib/kit/text_utils.rb +43 -0
- data/lib/kit/text_utils/code_highlighter.rb +58 -0
- data/lib/kit/text_utils/custom_markdown.rb +90 -0
- data/lib/kit/text_utils/ensure_utf.rb +8 -0
- data/lib/kit/text_utils/github_flavoured_markdown.rb +32 -0
- data/lib/kit/text_utils/html_sanitizer.rb +89 -0
- data/lib/kit/text_utils/image_box.rb +35 -0
- data/lib/kit/text_utils/markup.rb +43 -0
- data/lib/kit/text_utils/processor.rb +25 -0
- data/lib/kit/text_utils/tag_shortcuts.rb +14 -0
- data/lib/kit/text_utils/truncate.rb +29 -0
- data/lib/kit/text_utils/truncator.rb +15 -0
- data/lib/kit/text_utils/urls.rb +13 -0
- data/readme.md +10 -0
- data/spec/controller/authorization_spec.rb +149 -0
- data/spec/controller/comments_spec.rb +54 -0
- data/spec/controller/items_spec.rb +45 -0
- data/spec/models/attachments_spec.rb +24 -0
- data/spec/models/attachments_spec/a.txt +1 -0
- data/spec/models/attachments_uploader_helper_spec.rb +108 -0
- data/spec/models/attachments_uploader_helper_spec/v1/a.txt +1 -0
- data/spec/models/attachments_uploader_helper_spec/v1/b.txt +1 -0
- data/spec/models/attachments_uploader_helper_spec/v2/a.txt +1 -0
- data/spec/models/authorization_spec.rb +77 -0
- data/spec/models/authorized_object_spec.rb +254 -0
- data/spec/models/comments_spec.rb +1 -0
- data/spec/models/item_spec.rb +51 -0
- data/spec/models/role_spec.rb +17 -0
- data/spec/models/tags_spec.rb +44 -0
- data/spec/models/uploader_spec.rb +37 -0
- data/spec/models/uploader_spec//321/204/320/260/320/270/314/206/320/273 /321/201 /320/277/321/200/320/276/320/261/320/265/320/273/320/260/320/274/320/270.txt" +1 -0
- data/spec/mongoid/basic_spec.rb +36 -0
- data/spec/spec_helper.rb +20 -0
- data/spec/spec_helper/controller.rb +9 -0
- data/spec/spec_helper/factories.rb +24 -0
- data/spec/spec_helper/user.rb +17 -0
- data/spec/utils/text_utils_spec.rb +280 -0
- metadata +232 -0
metadata
ADDED
@@ -0,0 +1,232 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: rad_kit
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Alexey Petrushin
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2011-07-04 00:00:00.000000000 +04:00
|
13
|
+
default_executable:
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
16
|
+
name: bluecloth
|
17
|
+
requirement: &2955410 !ruby/object:Gem::Requirement
|
18
|
+
none: false
|
19
|
+
requirements:
|
20
|
+
- - =
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: 2.0.9
|
23
|
+
type: :runtime
|
24
|
+
prerelease: false
|
25
|
+
version_requirements: *2955410
|
26
|
+
- !ruby/object:Gem::Dependency
|
27
|
+
name: sanitize
|
28
|
+
requirement: &2955170 !ruby/object:Gem::Requirement
|
29
|
+
none: false
|
30
|
+
requirements:
|
31
|
+
- - =
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 1.2.1
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: *2955170
|
37
|
+
- !ruby/object:Gem::Dependency
|
38
|
+
name: stringex
|
39
|
+
requirement: &2954960 !ruby/object:Gem::Requirement
|
40
|
+
none: false
|
41
|
+
requirements:
|
42
|
+
- - =
|
43
|
+
- !ruby/object:Gem::Version
|
44
|
+
version: 1.2.0
|
45
|
+
type: :runtime
|
46
|
+
prerelease: false
|
47
|
+
version_requirements: *2954960
|
48
|
+
- !ruby/object:Gem::Dependency
|
49
|
+
name: state_machine
|
50
|
+
requirement: &2954670 !ruby/object:Gem::Requirement
|
51
|
+
none: false
|
52
|
+
requirements:
|
53
|
+
- - =
|
54
|
+
- !ruby/object:Gem::Version
|
55
|
+
version: 0.10.4
|
56
|
+
type: :runtime
|
57
|
+
prerelease: false
|
58
|
+
version_requirements: *2954670
|
59
|
+
- !ruby/object:Gem::Dependency
|
60
|
+
name: factory_girl
|
61
|
+
requirement: &2954360 !ruby/object:Gem::Requirement
|
62
|
+
none: false
|
63
|
+
requirements:
|
64
|
+
- - =
|
65
|
+
- !ruby/object:Gem::Version
|
66
|
+
version: 1.3.3
|
67
|
+
type: :runtime
|
68
|
+
prerelease: false
|
69
|
+
version_requirements: *2954360
|
70
|
+
- !ruby/object:Gem::Dependency
|
71
|
+
name: coderay
|
72
|
+
requirement: &2954150 !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
74
|
+
requirements:
|
75
|
+
- - =
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: 0.9.7
|
78
|
+
type: :runtime
|
79
|
+
prerelease: false
|
80
|
+
version_requirements: *2954150
|
81
|
+
- !ruby/object:Gem::Dependency
|
82
|
+
name: rad_core
|
83
|
+
requirement: &2953910 !ruby/object:Gem::Requirement
|
84
|
+
none: false
|
85
|
+
requirements:
|
86
|
+
- - ! '>='
|
87
|
+
- !ruby/object:Gem::Version
|
88
|
+
version: '0'
|
89
|
+
type: :runtime
|
90
|
+
prerelease: false
|
91
|
+
version_requirements: *2953910
|
92
|
+
- !ruby/object:Gem::Dependency
|
93
|
+
name: rad_ext
|
94
|
+
requirement: &2953630 !ruby/object:Gem::Requirement
|
95
|
+
none: false
|
96
|
+
requirements:
|
97
|
+
- - ! '>='
|
98
|
+
- !ruby/object:Gem::Version
|
99
|
+
version: '0'
|
100
|
+
type: :runtime
|
101
|
+
prerelease: false
|
102
|
+
version_requirements: *2953630
|
103
|
+
- !ruby/object:Gem::Dependency
|
104
|
+
name: rad_common_interface
|
105
|
+
requirement: &2953230 !ruby/object:Gem::Requirement
|
106
|
+
none: false
|
107
|
+
requirements:
|
108
|
+
- - ! '>='
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
111
|
+
type: :runtime
|
112
|
+
prerelease: false
|
113
|
+
version_requirements: *2953230
|
114
|
+
- !ruby/object:Gem::Dependency
|
115
|
+
name: rad_assets
|
116
|
+
requirement: &2952940 !ruby/object:Gem::Requirement
|
117
|
+
none: false
|
118
|
+
requirements:
|
119
|
+
- - ! '>='
|
120
|
+
- !ruby/object:Gem::Version
|
121
|
+
version: '0'
|
122
|
+
type: :runtime
|
123
|
+
prerelease: false
|
124
|
+
version_requirements: *2952940
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: mongoid_misc
|
127
|
+
requirement: &2952670 !ruby/object:Gem::Requirement
|
128
|
+
none: false
|
129
|
+
requirements:
|
130
|
+
- - ! '>='
|
131
|
+
- !ruby/object:Gem::Version
|
132
|
+
version: '0'
|
133
|
+
type: :runtime
|
134
|
+
prerelease: false
|
135
|
+
version_requirements: *2952670
|
136
|
+
description:
|
137
|
+
email:
|
138
|
+
executables: []
|
139
|
+
extensions: []
|
140
|
+
extra_rdoc_files: []
|
141
|
+
files:
|
142
|
+
- Rakefile
|
143
|
+
- readme.md
|
144
|
+
- lib/components/kit.rb
|
145
|
+
- lib/components/kit.yml
|
146
|
+
- lib/components/models.rb
|
147
|
+
- lib/kit/factories.rb
|
148
|
+
- lib/kit/gems.rb
|
149
|
+
- lib/kit/http_controller/authorized.rb
|
150
|
+
- lib/kit/http_controller/localized.rb
|
151
|
+
- lib/kit/http_controller.rb
|
152
|
+
- lib/kit/kit.rb
|
153
|
+
- lib/kit/models/attachment_uploader.rb
|
154
|
+
- lib/kit/models/attachments_uploader_helper.rb
|
155
|
+
- lib/kit/models/authorized.rb
|
156
|
+
- lib/kit/models/authorized_object.rb
|
157
|
+
- lib/kit/models/default_permissions.yml
|
158
|
+
- lib/kit/models/file_uploader.rb
|
159
|
+
- lib/kit/models/micelaneous.rb
|
160
|
+
- lib/kit/models/role.rb
|
161
|
+
- lib/kit/models.rb
|
162
|
+
- lib/kit/models_after.rb
|
163
|
+
- lib/kit/mongoid/rad_micelaneous.rb
|
164
|
+
- lib/kit/mongoid/text_processor.rb
|
165
|
+
- lib/kit/mongoid.rb
|
166
|
+
- lib/kit/spec/items_controller_crud.rb
|
167
|
+
- lib/kit/spec.rb
|
168
|
+
- lib/kit/support/string.rb
|
169
|
+
- lib/kit/support.rb
|
170
|
+
- lib/kit/tasks.rb
|
171
|
+
- lib/kit/text_utils/code_highlighter.rb
|
172
|
+
- lib/kit/text_utils/custom_markdown.rb
|
173
|
+
- lib/kit/text_utils/ensure_utf.rb
|
174
|
+
- lib/kit/text_utils/github_flavoured_markdown.rb
|
175
|
+
- lib/kit/text_utils/html_sanitizer.rb
|
176
|
+
- lib/kit/text_utils/image_box.rb
|
177
|
+
- lib/kit/text_utils/markup.rb
|
178
|
+
- lib/kit/text_utils/processor.rb
|
179
|
+
- lib/kit/text_utils/tag_shortcuts.rb
|
180
|
+
- lib/kit/text_utils/truncate.rb
|
181
|
+
- lib/kit/text_utils/truncator.rb
|
182
|
+
- lib/kit/text_utils/urls.rb
|
183
|
+
- lib/kit/text_utils.rb
|
184
|
+
- spec/controller/authorization_spec.rb
|
185
|
+
- spec/controller/comments_spec.rb
|
186
|
+
- spec/controller/items_spec.rb
|
187
|
+
- spec/models/attachments_spec/a.txt
|
188
|
+
- spec/models/attachments_spec.rb
|
189
|
+
- spec/models/attachments_uploader_helper_spec/v1/a.txt
|
190
|
+
- spec/models/attachments_uploader_helper_spec/v1/b.txt
|
191
|
+
- spec/models/attachments_uploader_helper_spec/v2/a.txt
|
192
|
+
- spec/models/attachments_uploader_helper_spec.rb
|
193
|
+
- spec/models/authorization_spec.rb
|
194
|
+
- spec/models/authorized_object_spec.rb
|
195
|
+
- spec/models/comments_spec.rb
|
196
|
+
- spec/models/item_spec.rb
|
197
|
+
- spec/models/role_spec.rb
|
198
|
+
- spec/models/tags_spec.rb
|
199
|
+
- spec/models/uploader_spec/файл с пробелами.txt
|
200
|
+
- spec/models/uploader_spec.rb
|
201
|
+
- spec/mongoid/basic_spec.rb
|
202
|
+
- spec/spec_helper/controller.rb
|
203
|
+
- spec/spec_helper/factories.rb
|
204
|
+
- spec/spec_helper/user.rb
|
205
|
+
- spec/spec_helper.rb
|
206
|
+
- spec/utils/text_utils_spec.rb
|
207
|
+
has_rdoc: true
|
208
|
+
homepage: http://github.com/alexeypetrushin/rad_kit
|
209
|
+
licenses: []
|
210
|
+
post_install_message:
|
211
|
+
rdoc_options: []
|
212
|
+
require_paths:
|
213
|
+
- lib
|
214
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
215
|
+
none: false
|
216
|
+
requirements:
|
217
|
+
- - ! '>='
|
218
|
+
- !ruby/object:Gem::Version
|
219
|
+
version: '0'
|
220
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
221
|
+
none: false
|
222
|
+
requirements:
|
223
|
+
- - ! '>='
|
224
|
+
- !ruby/object:Gem::Version
|
225
|
+
version: '0'
|
226
|
+
requirements: []
|
227
|
+
rubyforge_project:
|
228
|
+
rubygems_version: 1.5.1
|
229
|
+
signing_key:
|
230
|
+
specification_version: 3
|
231
|
+
summary: Rapid Application Development Kit for Rad Framework
|
232
|
+
test_files: []
|