sbdevcore 0.2.0 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- data/.idea/workspace.xml +241 -65
- data/app/assets/javascripts/history.adapter.jquery.js +1 -0
- data/app/assets/javascripts/history.html4.js +1 -0
- data/app/assets/javascripts/history.js +1 -0
- data/app/assets/javascripts/sbdev-ajax.js +38 -5
- data/app/assets/javascripts/sbdevcore-tools.js +4 -4
- data/app/assets/javascripts/sbdevcore.js +3 -0
- data/app/assets/stylesheets/_buttons.scss +0 -5
- data/app/assets/stylesheets/_mixins.scss +23 -0
- data/app/assets/stylesheets/_nav.html.scss +0 -0
- data/app/assets/stylesheets/_sbdev_core.scss +44 -7
- data/app/controllers/sbdev_core_controller.rb +4 -0
- data/app/helpers/sbdev_core_helper.rb +11 -0
- data/app/models/photo.rb +6 -0
- data/app/views/application/_secondary_nav.html.haml +3 -2
- data/app/views/indices/_show.html.haml +10 -3
- data/app/views/indices/show.html.haml +12 -0
- data/app/views/layouts/application.html.haml +7 -7
- data/app/views/photos/_form.html.haml +2 -2
- data/app/views/sbdev_core/index.html.haml +8 -1
- data/app/views/sbdev_core/show.html.haml +1 -3
- data/app/views/shared/_prioritizable_fields.html.haml +1 -1
- data/db/migrate/20110815163647_create_photos.rb +1 -1
- data/db/seeds.rb +6 -6
- data/lib/generators/sbdevcore/install_generator.rb +1 -3
- data/lib/generators/sbdevcore/templates/application/_nav.html.haml +2 -2
- data/lib/sbdevcore/version.rb +1 -1
- metadata +143 -210
- data/app/helpers/layout_helper.rb +0 -37
- data/app/views/indices/index.html.haml +0 -17
- data/app/views/sbdev_core/show.js.haml +0 -1
metadata
CHANGED
@@ -1,249 +1,188 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: sbdevcore
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.2.2
|
5
5
|
prerelease:
|
6
|
-
segments:
|
7
|
-
- 0
|
8
|
-
- 2
|
9
|
-
- 0
|
10
|
-
version: 0.2.0
|
11
6
|
platform: ruby
|
12
|
-
authors:
|
7
|
+
authors:
|
13
8
|
- Adam Olsen
|
14
9
|
autorequire:
|
15
10
|
bindir: bin
|
16
11
|
cert_chain: []
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
- !ruby/object:Gem::Dependency
|
12
|
+
date: 2011-08-31 00:00:00.000000000Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
21
15
|
name: tinymce-rails
|
22
|
-
|
23
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
16
|
+
requirement: &2153469800 !ruby/object:Gem::Requirement
|
24
17
|
none: false
|
25
|
-
requirements:
|
26
|
-
- -
|
27
|
-
- !ruby/object:Gem::Version
|
28
|
-
|
29
|
-
segments:
|
30
|
-
- 0
|
31
|
-
version: "0"
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '0'
|
32
22
|
type: :runtime
|
33
|
-
version_requirements: *id001
|
34
|
-
- !ruby/object:Gem::Dependency
|
35
|
-
name: prioritizable
|
36
23
|
prerelease: false
|
37
|
-
|
24
|
+
version_requirements: *2153469800
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
|
+
name: prioritizable
|
27
|
+
requirement: &2153469320 !ruby/object:Gem::Requirement
|
38
28
|
none: false
|
39
|
-
requirements:
|
40
|
-
- -
|
41
|
-
- !ruby/object:Gem::Version
|
42
|
-
|
43
|
-
segments:
|
44
|
-
- 0
|
45
|
-
version: "0"
|
29
|
+
requirements:
|
30
|
+
- - ! '>='
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '0'
|
46
33
|
type: :runtime
|
47
|
-
version_requirements: *id002
|
48
|
-
- !ruby/object:Gem::Dependency
|
49
|
-
name: devise
|
50
34
|
prerelease: false
|
51
|
-
|
35
|
+
version_requirements: *2153469320
|
36
|
+
- !ruby/object:Gem::Dependency
|
37
|
+
name: devise
|
38
|
+
requirement: &2153468800 !ruby/object:Gem::Requirement
|
52
39
|
none: false
|
53
|
-
requirements:
|
54
|
-
- -
|
55
|
-
- !ruby/object:Gem::Version
|
56
|
-
|
57
|
-
segments:
|
58
|
-
- 0
|
59
|
-
version: "0"
|
40
|
+
requirements:
|
41
|
+
- - ! '>='
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: '0'
|
60
44
|
type: :runtime
|
61
|
-
version_requirements: *id003
|
62
|
-
- !ruby/object:Gem::Dependency
|
63
|
-
name: paperclip
|
64
45
|
prerelease: false
|
65
|
-
|
46
|
+
version_requirements: *2153468800
|
47
|
+
- !ruby/object:Gem::Dependency
|
48
|
+
name: paperclip
|
49
|
+
requirement: &2153468320 !ruby/object:Gem::Requirement
|
66
50
|
none: false
|
67
|
-
requirements:
|
68
|
-
- -
|
69
|
-
- !ruby/object:Gem::Version
|
70
|
-
|
71
|
-
segments:
|
72
|
-
- 0
|
73
|
-
version: "0"
|
51
|
+
requirements:
|
52
|
+
- - ! '>='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
74
55
|
type: :runtime
|
75
|
-
version_requirements: *id004
|
76
|
-
- !ruby/object:Gem::Dependency
|
77
|
-
name: haml-edge
|
78
56
|
prerelease: false
|
79
|
-
|
57
|
+
version_requirements: *2153468320
|
58
|
+
- !ruby/object:Gem::Dependency
|
59
|
+
name: haml-edge
|
60
|
+
requirement: &2153467880 !ruby/object:Gem::Requirement
|
80
61
|
none: false
|
81
|
-
requirements:
|
82
|
-
- -
|
83
|
-
- !ruby/object:Gem::Version
|
84
|
-
|
85
|
-
segments:
|
86
|
-
- 0
|
87
|
-
version: "0"
|
62
|
+
requirements:
|
63
|
+
- - ! '>='
|
64
|
+
- !ruby/object:Gem::Version
|
65
|
+
version: '0'
|
88
66
|
type: :runtime
|
89
|
-
version_requirements: *id005
|
90
|
-
- !ruby/object:Gem::Dependency
|
91
|
-
name: sitemap_generator
|
92
67
|
prerelease: false
|
93
|
-
|
68
|
+
version_requirements: *2153467880
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: sitemap_generator
|
71
|
+
requirement: &2153397660 !ruby/object:Gem::Requirement
|
94
72
|
none: false
|
95
|
-
requirements:
|
96
|
-
- -
|
97
|
-
- !ruby/object:Gem::Version
|
98
|
-
|
99
|
-
segments:
|
100
|
-
- 0
|
101
|
-
version: "0"
|
73
|
+
requirements:
|
74
|
+
- - ! '>='
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
version: '0'
|
102
77
|
type: :runtime
|
103
|
-
version_requirements: *id006
|
104
|
-
- !ruby/object:Gem::Dependency
|
105
|
-
name: hpricot
|
106
78
|
prerelease: false
|
107
|
-
|
79
|
+
version_requirements: *2153397660
|
80
|
+
- !ruby/object:Gem::Dependency
|
81
|
+
name: hpricot
|
82
|
+
requirement: &2153397140 !ruby/object:Gem::Requirement
|
108
83
|
none: false
|
109
|
-
requirements:
|
110
|
-
- -
|
111
|
-
- !ruby/object:Gem::Version
|
112
|
-
|
113
|
-
segments:
|
114
|
-
- 0
|
115
|
-
version: "0"
|
84
|
+
requirements:
|
85
|
+
- - ! '>='
|
86
|
+
- !ruby/object:Gem::Version
|
87
|
+
version: '0'
|
116
88
|
type: :runtime
|
117
|
-
version_requirements: *id007
|
118
|
-
- !ruby/object:Gem::Dependency
|
119
|
-
name: simple_form
|
120
89
|
prerelease: false
|
121
|
-
|
90
|
+
version_requirements: *2153397140
|
91
|
+
- !ruby/object:Gem::Dependency
|
92
|
+
name: simple_form
|
93
|
+
requirement: &2153396680 !ruby/object:Gem::Requirement
|
122
94
|
none: false
|
123
|
-
requirements:
|
124
|
-
- -
|
125
|
-
- !ruby/object:Gem::Version
|
126
|
-
|
127
|
-
segments:
|
128
|
-
- 0
|
129
|
-
version: "0"
|
95
|
+
requirements:
|
96
|
+
- - ! '>='
|
97
|
+
- !ruby/object:Gem::Version
|
98
|
+
version: '0'
|
130
99
|
type: :runtime
|
131
|
-
version_requirements: *id008
|
132
|
-
- !ruby/object:Gem::Dependency
|
133
|
-
name: client_side_validations
|
134
100
|
prerelease: false
|
135
|
-
|
101
|
+
version_requirements: *2153396680
|
102
|
+
- !ruby/object:Gem::Dependency
|
103
|
+
name: client_side_validations
|
104
|
+
requirement: &2153396140 !ruby/object:Gem::Requirement
|
136
105
|
none: false
|
137
|
-
requirements:
|
138
|
-
- -
|
139
|
-
- !ruby/object:Gem::Version
|
140
|
-
|
141
|
-
segments:
|
142
|
-
- 0
|
143
|
-
version: "0"
|
106
|
+
requirements:
|
107
|
+
- - ! '>='
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: '0'
|
144
110
|
type: :runtime
|
145
|
-
version_requirements: *id009
|
146
|
-
- !ruby/object:Gem::Dependency
|
147
|
-
name: formalize-rails
|
148
111
|
prerelease: false
|
149
|
-
|
112
|
+
version_requirements: *2153396140
|
113
|
+
- !ruby/object:Gem::Dependency
|
114
|
+
name: formalize-rails
|
115
|
+
requirement: &2153395660 !ruby/object:Gem::Requirement
|
150
116
|
none: false
|
151
|
-
requirements:
|
152
|
-
- -
|
153
|
-
- !ruby/object:Gem::Version
|
154
|
-
|
155
|
-
segments:
|
156
|
-
- 0
|
157
|
-
version: "0"
|
117
|
+
requirements:
|
118
|
+
- - ! '>='
|
119
|
+
- !ruby/object:Gem::Version
|
120
|
+
version: '0'
|
158
121
|
type: :runtime
|
159
|
-
version_requirements: *id010
|
160
|
-
- !ruby/object:Gem::Dependency
|
161
|
-
name: will_paginate
|
162
122
|
prerelease: false
|
163
|
-
|
123
|
+
version_requirements: *2153395660
|
124
|
+
- !ruby/object:Gem::Dependency
|
125
|
+
name: will_paginate
|
126
|
+
requirement: &2153395120 !ruby/object:Gem::Requirement
|
164
127
|
none: false
|
165
|
-
requirements:
|
128
|
+
requirements:
|
166
129
|
- - ~>
|
167
|
-
- !ruby/object:Gem::Version
|
168
|
-
hash: 1923831905
|
169
|
-
segments:
|
170
|
-
- 3
|
171
|
-
- 0
|
172
|
-
- pre
|
173
|
-
- 4
|
130
|
+
- !ruby/object:Gem::Version
|
174
131
|
version: 3.0.pre4
|
175
132
|
type: :runtime
|
176
|
-
version_requirements: *id011
|
177
|
-
- !ruby/object:Gem::Dependency
|
178
|
-
name: aws-s3
|
179
133
|
prerelease: false
|
180
|
-
|
134
|
+
version_requirements: *2153395120
|
135
|
+
- !ruby/object:Gem::Dependency
|
136
|
+
name: aws-s3
|
137
|
+
requirement: &2153394660 !ruby/object:Gem::Requirement
|
181
138
|
none: false
|
182
|
-
requirements:
|
183
|
-
- -
|
184
|
-
- !ruby/object:Gem::Version
|
185
|
-
|
186
|
-
segments:
|
187
|
-
- 0
|
188
|
-
version: "0"
|
139
|
+
requirements:
|
140
|
+
- - ! '>='
|
141
|
+
- !ruby/object:Gem::Version
|
142
|
+
version: '0'
|
189
143
|
type: :runtime
|
190
|
-
version_requirements: *id012
|
191
|
-
- !ruby/object:Gem::Dependency
|
192
|
-
name: rubyist-aasm
|
193
144
|
prerelease: false
|
194
|
-
|
145
|
+
version_requirements: *2153394660
|
146
|
+
- !ruby/object:Gem::Dependency
|
147
|
+
name: rubyist-aasm
|
148
|
+
requirement: &2153394080 !ruby/object:Gem::Requirement
|
195
149
|
none: false
|
196
|
-
requirements:
|
197
|
-
- -
|
198
|
-
- !ruby/object:Gem::Version
|
199
|
-
|
200
|
-
segments:
|
201
|
-
- 0
|
202
|
-
version: "0"
|
150
|
+
requirements:
|
151
|
+
- - ! '>='
|
152
|
+
- !ruby/object:Gem::Version
|
153
|
+
version: '0'
|
203
154
|
type: :runtime
|
204
|
-
version_requirements: *id013
|
205
|
-
- !ruby/object:Gem::Dependency
|
206
|
-
name: inherited_resources
|
207
155
|
prerelease: false
|
208
|
-
|
156
|
+
version_requirements: *2153394080
|
157
|
+
- !ruby/object:Gem::Dependency
|
158
|
+
name: inherited_resources
|
159
|
+
requirement: &2153393620 !ruby/object:Gem::Requirement
|
209
160
|
none: false
|
210
|
-
requirements:
|
211
|
-
- -
|
212
|
-
- !ruby/object:Gem::Version
|
213
|
-
|
214
|
-
segments:
|
215
|
-
- 0
|
216
|
-
version: "0"
|
161
|
+
requirements:
|
162
|
+
- - ! '>='
|
163
|
+
- !ruby/object:Gem::Version
|
164
|
+
version: '0'
|
217
165
|
type: :runtime
|
218
|
-
version_requirements: *id014
|
219
|
-
- !ruby/object:Gem::Dependency
|
220
|
-
name: friendly_id
|
221
166
|
prerelease: false
|
222
|
-
|
167
|
+
version_requirements: *2153393620
|
168
|
+
- !ruby/object:Gem::Dependency
|
169
|
+
name: friendly_id
|
170
|
+
requirement: &2153393000 !ruby/object:Gem::Requirement
|
223
171
|
none: false
|
224
|
-
requirements:
|
172
|
+
requirements:
|
225
173
|
- - ~>
|
226
|
-
- !ruby/object:Gem::Version
|
227
|
-
hash: 62196275
|
228
|
-
segments:
|
229
|
-
- 4
|
230
|
-
- 0
|
231
|
-
- 0
|
232
|
-
- beta
|
233
|
-
- 8
|
174
|
+
- !ruby/object:Gem::Version
|
234
175
|
version: 4.0.0.beta8
|
235
176
|
type: :runtime
|
236
|
-
|
177
|
+
prerelease: false
|
178
|
+
version_requirements: *2153393000
|
237
179
|
description: Core
|
238
|
-
email:
|
180
|
+
email:
|
239
181
|
- aosalias@gmail.com
|
240
182
|
executables: []
|
241
|
-
|
242
183
|
extensions: []
|
243
|
-
|
244
184
|
extra_rdoc_files: []
|
245
|
-
|
246
|
-
files:
|
185
|
+
files:
|
247
186
|
- .gitignore
|
248
187
|
- .idea/.rakeTasks
|
249
188
|
- .idea/core.iml
|
@@ -271,6 +210,9 @@ files:
|
|
271
210
|
- app/assets/images/paypal.gif
|
272
211
|
- app/assets/images/prev.gif
|
273
212
|
- app/assets/images/rails.png
|
213
|
+
- app/assets/javascripts/history.adapter.jquery.js
|
214
|
+
- app/assets/javascripts/history.html4.js
|
215
|
+
- app/assets/javascripts/history.js
|
274
216
|
- app/assets/javascripts/jquery.tools.min.js
|
275
217
|
- app/assets/javascripts/rails.validations.custom.js
|
276
218
|
- app/assets/javascripts/sbdev-ajax.js
|
@@ -282,6 +224,7 @@ files:
|
|
282
224
|
- app/assets/stylesheets/_forms.scss
|
283
225
|
- app/assets/stylesheets/_gallery.scss
|
284
226
|
- app/assets/stylesheets/_mixins.scss
|
227
|
+
- app/assets/stylesheets/_nav.html.scss
|
285
228
|
- app/assets/stylesheets/_overlay.scss
|
286
229
|
- app/assets/stylesheets/_sbdev_core.scss
|
287
230
|
- app/assets/stylesheets/_side_nav.scss
|
@@ -298,7 +241,7 @@ files:
|
|
298
241
|
- app/controllers/sbdev_core_controller.rb
|
299
242
|
- app/controllers/texts_controller.rb
|
300
243
|
- app/controllers/videos_controller.rb
|
301
|
-
- app/helpers/
|
244
|
+
- app/helpers/sbdev_core_helper.rb
|
302
245
|
- app/mailers/.gitkeep
|
303
246
|
- app/mailers/mailer.rb
|
304
247
|
- app/models/.gitkeep
|
@@ -337,7 +280,7 @@ files:
|
|
337
280
|
- app/views/indices/_form.html.haml
|
338
281
|
- app/views/indices/_show.html.haml
|
339
282
|
- app/views/indices/edit.html.haml
|
340
|
-
- app/views/indices/
|
283
|
+
- app/views/indices/show.html.haml
|
341
284
|
- app/views/layouts/application.html.haml
|
342
285
|
- app/views/layouts/bar_nav.html.haml
|
343
286
|
- app/views/layouts/sbdev_core.html.haml
|
@@ -352,7 +295,6 @@ files:
|
|
352
295
|
- app/views/photos/show.html.haml
|
353
296
|
- app/views/sbdev_core/index.html.haml
|
354
297
|
- app/views/sbdev_core/show.html.haml
|
355
|
-
- app/views/sbdev_core/show.js.haml
|
356
298
|
- app/views/shared/_asset_show.html.haml
|
357
299
|
- app/views/shared/_devise_links.erb
|
358
300
|
- app/views/shared/_devise_links.haml
|
@@ -425,40 +367,31 @@ files:
|
|
425
367
|
- test/performance/browsing_test.rb
|
426
368
|
- test/test_helper.rb
|
427
369
|
- test/unit/.gitkeep
|
428
|
-
homepage:
|
370
|
+
homepage: ''
|
429
371
|
licenses: []
|
430
|
-
|
431
372
|
post_install_message:
|
432
373
|
rdoc_options: []
|
433
|
-
|
434
|
-
require_paths:
|
374
|
+
require_paths:
|
435
375
|
- lib
|
436
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
376
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
437
377
|
none: false
|
438
|
-
requirements:
|
439
|
-
- -
|
440
|
-
- !ruby/object:Gem::Version
|
441
|
-
|
442
|
-
|
443
|
-
- 0
|
444
|
-
version: "0"
|
445
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
378
|
+
requirements:
|
379
|
+
- - ! '>='
|
380
|
+
- !ruby/object:Gem::Version
|
381
|
+
version: '0'
|
382
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
446
383
|
none: false
|
447
|
-
requirements:
|
448
|
-
- -
|
449
|
-
- !ruby/object:Gem::Version
|
450
|
-
|
451
|
-
segments:
|
452
|
-
- 0
|
453
|
-
version: "0"
|
384
|
+
requirements:
|
385
|
+
- - ! '>='
|
386
|
+
- !ruby/object:Gem::Version
|
387
|
+
version: '0'
|
454
388
|
requirements: []
|
455
|
-
|
456
389
|
rubyforge_project: sbdev
|
457
390
|
rubygems_version: 1.8.6
|
458
391
|
signing_key:
|
459
392
|
specification_version: 3
|
460
393
|
summary: Core
|
461
|
-
test_files:
|
394
|
+
test_files:
|
462
395
|
- test/fixtures/.gitkeep
|
463
396
|
- test/functional/.gitkeep
|
464
397
|
- test/integration/.gitkeep
|
@@ -1,37 +0,0 @@
|
|
1
|
-
# These helper methods can be called in your template to set variables to be used in the layout
|
2
|
-
# This module should be included in all views globally,
|
3
|
-
# to do so you may need to add this line to your ApplicationController
|
4
|
-
# helper :layout
|
5
|
-
module LayoutHelper
|
6
|
-
def title(page_title)
|
7
|
-
@content_for_title = page_title.to_s
|
8
|
-
end
|
9
|
-
|
10
|
-
def keywords(keywords)
|
11
|
-
@content_for_keywords = keywords
|
12
|
-
end
|
13
|
-
|
14
|
-
def description(description)
|
15
|
-
@content_for_description = description
|
16
|
-
end
|
17
|
-
|
18
|
-
def render_side_section(section)
|
19
|
-
content_for(:side_section) {
|
20
|
-
render :partial => 'application/side_section', :locals => {:section => section}
|
21
|
-
}
|
22
|
-
end
|
23
|
-
|
24
|
-
def render_seo(index)
|
25
|
-
title index.try "page_title"
|
26
|
-
keywords index.try 'keywords'
|
27
|
-
description index.try 'page_description'
|
28
|
-
end
|
29
|
-
|
30
|
-
def stylesheet(*args)
|
31
|
-
content_for(:head) { stylesheet_link_tag(*args) }
|
32
|
-
end
|
33
|
-
|
34
|
-
def javascript(*args)
|
35
|
-
content_for(:head) { javascript_include_tag(*args) }
|
36
|
-
end
|
37
|
-
end
|
@@ -1,17 +0,0 @@
|
|
1
|
-
- title "Indices"
|
2
|
-
%table
|
3
|
-
%tr
|
4
|
-
%th Name
|
5
|
-
%th Page Title
|
6
|
-
%th Keywords
|
7
|
-
%th Page Description
|
8
|
-
- for index in @indices
|
9
|
-
%tr
|
10
|
-
%td= h index.name
|
11
|
-
%td= h index.page_title
|
12
|
-
%td= h index.keywords
|
13
|
-
%td= h index.page_description
|
14
|
-
%td= link_to "Show", index
|
15
|
-
%td= link_to "Edit", edit_index_path(index)
|
16
|
-
%td= link_to "Destroy", index, :confirm => 'Are you sure?', :method => :delete
|
17
|
-
%p= link_to "New Index", new_index_path
|
@@ -1 +0,0 @@
|
|
1
|
-
=escape_javascript(render :partial => 'show', :object => resource, :as => resource_class.to_s.downcase.to_sym)
|