sbdevcore 0.0.8 → 0.0.9

Sign up to get free protection for your applications and to get access to all the features.
data/.idea/workspace.xml CHANGED
@@ -23,8 +23,8 @@
23
23
  <component name="FileColors" enabled="true" enabledForTabs="true" />
24
24
  <component name="FileEditorManager">
25
25
  <leaf>
26
- <file leaf-file-name="sbdevcore.js" pinned="false" current="false" current-in-tab="false">
27
- <entry file="file://$PROJECT_DIR$/app/assets/javascripts/sbdevcore.js">
26
+ <file leaf-file-name="_sbdev_core.scss" pinned="false" current="false" current-in-tab="false">
27
+ <entry file="file://$PROJECT_DIR$/app/assets/stylesheets/_sbdev_core.scss">
28
28
  <provider selected="true" editor-type-id="text-editor">
29
29
  <state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0">
30
30
  <folding />
@@ -32,46 +32,10 @@
32
32
  </provider>
33
33
  </entry>
34
34
  </file>
35
- <file leaf-file-name="application.html.haml" pinned="false" current="false" current-in-tab="false">
36
- <entry file="file://$PROJECT_DIR$/app/views/layouts/application.html.haml">
37
- <provider selected="true" editor-type-id="text-editor">
38
- <state line="6" column="29" selection-start="387" selection-end="387" vertical-scroll-proportion="0.0">
39
- <folding />
40
- </state>
41
- </provider>
42
- </entry>
43
- </file>
44
- <file leaf-file-name="version.rb" pinned="false" current="false" current-in-tab="false">
35
+ <file leaf-file-name="version.rb" pinned="false" current="true" current-in-tab="true">
45
36
  <entry file="file://$PROJECT_DIR$/lib/sbdevcore/version.rb">
46
37
  <provider selected="true" editor-type-id="text-editor">
47
- <state line="1" column="18" selection-start="35" selection-end="35" vertical-scroll-proportion="0.0">
48
- <folding />
49
- </state>
50
- </provider>
51
- </entry>
52
- </file>
53
- <file leaf-file-name="template.rb" pinned="false" current="false" current-in-tab="false">
54
- <entry file="file://$PROJECT_DIR$/../templates/template.rb">
55
- <provider selected="true" editor-type-id="text-editor">
56
- <state line="9" column="0" selection-start="221" selection-end="221" vertical-scroll-proportion="0.0">
57
- <folding />
58
- </state>
59
- </provider>
60
- </entry>
61
- </file>
62
- <file leaf-file-name="sbdevcore.gemspec" pinned="false" current="true" current-in-tab="true">
63
- <entry file="file://$PROJECT_DIR$/sbdevcore.gemspec">
64
- <provider selected="true" editor-type-id="text-editor">
65
- <state line="25" column="28" selection-start="806" selection-end="806" vertical-scroll-proportion="0.610998">
66
- <folding />
67
- </state>
68
- </provider>
69
- </entry>
70
- </file>
71
- <file leaf-file-name="tiny_mce_config.js" pinned="false" current="false" current-in-tab="false">
72
- <entry file="file://$PROJECT_DIR$/app/assets/javascripts/tiny_mce_config.js">
73
- <provider selected="true" editor-type-id="text-editor">
74
- <state line="23" column="18" selection-start="1389" selection-end="1389" vertical-scroll-proportion="0.0">
38
+ <state line="1" column="18" selection-start="35" selection-end="35" vertical-scroll-proportion="0.015873017">
75
39
  <folding />
76
40
  </state>
77
41
  </provider>
@@ -90,22 +54,22 @@
90
54
  <component name="IdeDocumentHistory">
91
55
  <option name="changedFiles">
92
56
  <list>
93
- <option value="$PROJECT_DIR$/app/assets/javascripts/sbdevcore.js" />
94
- <option value="$PROJECT_DIR$/app/assets/javascripts/sbdevcore-tools.js" />
57
+ <option value="$PROJECT_DIR$/app/controllers/statics_controller.rb" />
58
+ <option value="$PROJECT_DIR$/app/views/galleries/index.html.erb" />
59
+ <option value="$PROJECT_DIR$/app/views/galleries/show.html.erb" />
60
+ <option value="$PROJECT_DIR$/app/views/shared/course_type_index.html.erb" />
61
+ <option value="$PROJECT_DIR$/app/views/indices/_index.html.erb" />
62
+ <option value="$PROJECT_DIR$/app/views/indices/show.html.erb" />
63
+ <option value="$PROJECT_DIR$/app/views/indices/_show.html.erb" />
64
+ <option value="$PROJECT_DIR$/app/controllers/indices_controller.rb" />
65
+ <option value="$PROJECT_DIR$/app/helpers/layout_helper.rb" />
95
66
  <option value="$PROJECT_DIR$/app/views/texts/_show.html.erb" />
96
- <option value="$PROJECT_DIR$/lib/generators/sbdevcore/templates/config/app_config.yml" />
97
- <option value="$PROJECT_DIR$/app/views/downloadables/_show.html.erb" />
98
- <option value="$PROJECT_DIR$/app/controllers/downloadables_controller.rb" />
99
- <option value="$PROJECT_DIR$/lib/generators/sbdevcore/install_generator.rb" />
100
- <option value="$PROJECT_DIR$/lib/generators/sbdevcore/templates/sass.scss" />
101
- <option value="$PROJECT_DIR$/app/views/layouts/tab_nav.html.haml" />
67
+ <option value="$PROJECT_DIR$/script/rails" />
68
+ <option value="$PROJECT_DIR$/sbdevcore.gemspec" />
69
+ <option value="$PROJECT_DIR$/app/controllers/core_controller.rb" />
70
+ <option value="$PROJECT_DIR$/lib/tasks/sbdevcore.rake" />
102
71
  <option value="$PROJECT_DIR$/app/assets/stylesheets/_sbdev_core.scss" />
103
- <option value="$PROJECT_DIR$/app/views/layouts/bar_nav.html.haml" />
104
- <option value="$PROJECT_DIR$/app/views/layouts/application.html.haml" />
105
72
  <option value="$PROJECT_DIR$/lib/sbdevcore/version.rb" />
106
- <option value="$PROJECT_DIR$/app/assets/javascripts/tiny_mce_config.js" />
107
- <option value="$PROJECT_DIR$/sbdevcore.gemspec" />
108
- <option value="$PROJECT_DIR$/../templates/template.rb" />
109
73
  </list>
110
74
  </option>
111
75
  </component>
@@ -136,7 +100,6 @@
136
100
  </navigator>
137
101
  <panes>
138
102
  <pane id="Favorites" />
139
- <pane id="Scope" />
140
103
  <pane id="ProjectPane">
141
104
  <subPane>
142
105
  <PATH>
@@ -155,6 +118,52 @@
155
118
  <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
156
119
  </PATH_ELEMENT>
157
120
  </PATH>
121
+ <PATH>
122
+ <PATH_ELEMENT>
123
+ <option name="myItemId" value="sbdevcore" />
124
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
125
+ </PATH_ELEMENT>
126
+ <PATH_ELEMENT>
127
+ <option name="myItemId" value="sbdevcore" />
128
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
129
+ </PATH_ELEMENT>
130
+ <PATH_ELEMENT>
131
+ <option name="myItemId" value="script" />
132
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
133
+ </PATH_ELEMENT>
134
+ </PATH>
135
+ <PATH>
136
+ <PATH_ELEMENT>
137
+ <option name="myItemId" value="sbdevcore" />
138
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
139
+ </PATH_ELEMENT>
140
+ <PATH_ELEMENT>
141
+ <option name="myItemId" value="sbdevcore" />
142
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
143
+ </PATH_ELEMENT>
144
+ <PATH_ELEMENT>
145
+ <option name="myItemId" value="app" />
146
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
147
+ </PATH_ELEMENT>
148
+ <PATH_ELEMENT>
149
+ <option name="myItemId" value="views" />
150
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
151
+ </PATH_ELEMENT>
152
+ </PATH>
153
+ <PATH>
154
+ <PATH_ELEMENT>
155
+ <option name="myItemId" value="sbdevcore" />
156
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
157
+ </PATH_ELEMENT>
158
+ <PATH_ELEMENT>
159
+ <option name="myItemId" value="sbdevcore" />
160
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
161
+ </PATH_ELEMENT>
162
+ <PATH_ELEMENT>
163
+ <option name="myItemId" value="app" />
164
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
165
+ </PATH_ELEMENT>
166
+ </PATH>
158
167
  <PATH>
159
168
  <PATH_ELEMENT>
160
169
  <option name="myItemId" value="sbdevcore" />
@@ -168,6 +177,10 @@
168
177
  <option name="myItemId" value="app" />
169
178
  <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
170
179
  </PATH_ELEMENT>
180
+ <PATH_ELEMENT>
181
+ <option name="myItemId" value="mailers" />
182
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
183
+ </PATH_ELEMENT>
171
184
  </PATH>
172
185
  <PATH>
173
186
  <PATH_ELEMENT>
@@ -186,6 +199,10 @@
186
199
  <option name="myItemId" value="assets" />
187
200
  <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
188
201
  </PATH_ELEMENT>
202
+ <PATH_ELEMENT>
203
+ <option name="myItemId" value="stylesheets" />
204
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
205
+ </PATH_ELEMENT>
189
206
  </PATH>
190
207
  <PATH>
191
208
  <PATH_ELEMENT>
@@ -209,8 +226,27 @@
209
226
  <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
210
227
  </PATH_ELEMENT>
211
228
  </PATH>
229
+ <PATH>
230
+ <PATH_ELEMENT>
231
+ <option name="myItemId" value="sbdevcore" />
232
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
233
+ </PATH_ELEMENT>
234
+ <PATH_ELEMENT>
235
+ <option name="myItemId" value="sbdevcore" />
236
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
237
+ </PATH_ELEMENT>
238
+ <PATH_ELEMENT>
239
+ <option name="myItemId" value="app" />
240
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
241
+ </PATH_ELEMENT>
242
+ <PATH_ELEMENT>
243
+ <option name="myItemId" value="assets" />
244
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
245
+ </PATH_ELEMENT>
246
+ </PATH>
212
247
  </subPane>
213
248
  </pane>
249
+ <pane id="Scope" />
214
250
  <pane id="RailsProjectView" />
215
251
  </panes>
216
252
  </component>
@@ -426,21 +462,21 @@
426
462
  </component>
427
463
  <component name="ToolWindowManager">
428
464
  <frame x="0" y="22" width="1436" height="878" extended-state="0" />
429
- <editor active="true" />
465
+ <editor active="false" />
430
466
  <layout>
431
467
  <window_info id="Messages" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.32908162" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
432
- <window_info id="Changes" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.32908162" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
468
+ <window_info id="Changes" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.32908162" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
433
469
  <window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
470
+ <window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.32908162" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
434
471
  <window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="1" side_tool="true" content_ui="tabs" />
435
472
  <window_info id="Dependency Viewer" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
436
- <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.3293201" sideWeight="0.6619898" order="0" side_tool="false" content_ui="tabs" />
473
+ <window_info id="Project" active="true" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.3293201" sideWeight="0.6619898" order="0" side_tool="false" content_ui="tabs" />
437
474
  <window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
438
475
  <window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
439
476
  <window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.32908162" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
440
477
  <window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" />
441
478
  <window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
442
479
  <window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
443
- <window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.32908162" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
444
480
  <window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
445
481
  <window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="combo" />
446
482
  <window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" />
@@ -459,7 +495,7 @@
459
495
  <option name="ENABLE_BACKGROUND_PROCESSES" value="true" />
460
496
  <option name="CHANGED_ON_SERVER_INTERVAL" value="5" />
461
497
  <option name="FORCE_NON_EMPTY_COMMENT" value="false" />
462
- <option name="LAST_COMMIT_MESSAGE" value="tiny paste" />
498
+ <option name="LAST_COMMIT_MESSAGE" value="tweaks" />
463
499
  <option name="MAKE_NEW_CHANGELIST_ACTIVE" value="true" />
464
500
  <option name="OPTIMIZE_IMPORTS_BEFORE_PROJECT_COMMIT" value="false" />
465
501
  <option name="CHECK_FILES_UP_TO_DATE_BEFORE_COMMIT" value="false" />
@@ -476,97 +512,128 @@
476
512
  <MESSAGE value="contacts" />
477
513
  <MESSAGE value="templates" />
478
514
  <MESSAGE value="scss" />
479
- <MESSAGE value="tweaks" />
480
515
  <MESSAGE value="tiny paste" />
516
+ <MESSAGE value="tweaks" />
481
517
  </component>
482
518
  <component name="XDebuggerManager">
483
- <breakpoint-manager />
519
+ <breakpoint-manager>
520
+ <breakpoints>
521
+ <line-breakpoint enabled="true" type="ruby-line">
522
+ <url>file://$PROJECT_DIR$/../../working/stone/app/models/mailer.rb</url>
523
+ <line>4</line>
524
+ </line-breakpoint>
525
+ </breakpoints>
526
+ </breakpoint-manager>
484
527
  </component>
485
528
  <component name="editorHistoryManager">
486
- <entry file="file://$PROJECT_DIR$/lib/generators/sbdevcore/templates/config/app_config.yml">
529
+ <entry file="file://$PROJECT_DIR$/app/controllers/texts_controller.rb">
487
530
  <provider selected="true" editor-type-id="text-editor">
488
- <state line="27" column="21" selection-start="624" selection-end="624" vertical-scroll-proportion="0.6598778" />
531
+ <state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0">
532
+ <folding />
533
+ </state>
489
534
  </provider>
490
535
  </entry>
491
- <entry file="file://$PROJECT_DIR$/lib/generators/sbdevcore/install_generator.rb">
536
+ <entry file="file://$PROJECT_DIR$/app/controllers/galleries_controller.rb">
492
537
  <provider selected="true" editor-type-id="text-editor">
493
- <state line="30" column="17" selection-start="995" selection-end="995" vertical-scroll-proportion="0.025210084" />
538
+ <state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0">
539
+ <folding />
540
+ </state>
494
541
  </provider>
495
542
  </entry>
496
- <entry file="file://$PROJECT_DIR$/lib/sbdevcore/engine.rb">
543
+ <entry file="file://$PROJECT_DIR$/app/views/texts/_show.html.erb">
497
544
  <provider selected="true" editor-type-id="text-editor">
498
- <state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0" />
545
+ <state line="8" column="0" selection-start="32" selection-end="295" vertical-scroll-proportion="0.1302578">
546
+ <folding />
547
+ </state>
499
548
  </provider>
500
549
  </entry>
501
- <entry file="file://$PROJECT_DIR$/app/views/layouts/tab_nav.html.haml">
550
+ <entry file="file://$PROJECT_DIR$/lib/sbdevcore.rb">
502
551
  <provider selected="true" editor-type-id="text-editor">
503
- <state line="2" column="4" selection-start="25" selection-end="53" vertical-scroll-proportion="0.048879836" />
552
+ <state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0">
553
+ <folding />
554
+ </state>
504
555
  </provider>
505
556
  </entry>
506
- <entry file="file://$PROJECT_DIR$/app/assets/stylesheets/_bar_nav.scss">
557
+ <entry file="file://$PROJECT_DIR$/app/assets/javascripts/sbdevcore-tools.js">
507
558
  <provider selected="true" editor-type-id="text-editor">
508
- <state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0" />
559
+ <state line="37" column="10" selection-start="758" selection-end="758" vertical-scroll-proportion="0.63793105">
560
+ <folding />
561
+ </state>
509
562
  </provider>
510
563
  </entry>
511
- <entry file="file://$PROJECT_DIR$/app/views/layouts/bar_nav.html.haml">
564
+ <entry file="file://$PROJECT_DIR$/app/mailers/mailer.rb">
512
565
  <provider selected="true" editor-type-id="text-editor">
513
- <state line="3" column="34" selection-start="75" selection-end="75" vertical-scroll-proportion="0.073319755" />
566
+ <state line="9" column="0" selection-start="298" selection-end="298" vertical-scroll-proportion="0.14654003">
567
+ <folding />
568
+ </state>
514
569
  </provider>
515
570
  </entry>
516
- <entry file="file://$PROJECT_DIR$/lib/generators/sbdevcore/templates/sass.scss">
571
+ <entry file="file://$PROJECT_DIR$/lib/generators/sbdevcore/templates/application/_footer.html.haml">
517
572
  <provider selected="true" editor-type-id="text-editor">
518
- <state line="15" column="1" selection-start="336" selection-end="431" vertical-scroll-proportion="0.36659878" />
573
+ <state line="6" column="0" selection-start="254" selection-end="254" vertical-scroll-proportion="0.097693354">
574
+ <folding />
575
+ </state>
519
576
  </provider>
520
577
  </entry>
521
- <entry file="file://$PROJECT_DIR$/app/assets/stylesheets/_buttons.scss">
578
+ <entry file="file://$PROJECT_DIR$/lib/tasks/sbdevcore.rake">
522
579
  <provider selected="true" editor-type-id="text-editor">
523
- <state line="23" column="0" selection-start="396" selection-end="436" vertical-scroll-proportion="0.5621181" />
580
+ <state line="2" column="12" selection-start="67" selection-end="67" vertical-scroll-proportion="0.03256445">
581
+ <folding />
582
+ </state>
524
583
  </provider>
525
584
  </entry>
526
- <entry file="file://$PROJECT_DIR$/app/assets/stylesheets/_sbdev_core.scss">
585
+ <entry file="file://$PROJECT_DIR$/sbdevcore.gemspec">
527
586
  <provider selected="true" editor-type-id="text-editor">
528
- <state line="28" column="0" selection-start="531" selection-end="531" vertical-scroll-proportion="0.5621181" />
587
+ <state line="28" column="43" selection-start="924" selection-end="924" vertical-scroll-proportion="0.4559023">
588
+ <folding />
589
+ </state>
529
590
  </provider>
530
591
  </entry>
531
- <entry file="file://$PROJECT_DIR$/app/assets/javascripts/sbdevcore-tools.js">
592
+ <entry file="file://$PROJECT_DIR$/lib/generators/sbdevcore/templates/config/app_config.yml">
532
593
  <provider selected="true" editor-type-id="text-editor">
533
- <state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="-3.857143" />
594
+ <state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0">
595
+ <folding />
596
+ </state>
534
597
  </provider>
535
598
  </entry>
536
- <entry file="file://$PROJECT_DIR$/app/assets/javascripts/sbdevcore.js">
599
+ <entry file="file://$PROJECT_DIR$/app/models/contact.rb">
537
600
  <provider selected="true" editor-type-id="text-editor">
538
- <state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0" />
601
+ <state line="7" column="2" selection-start="160" selection-end="160" vertical-scroll-proportion="0.11111111">
602
+ <folding />
603
+ </state>
539
604
  </provider>
540
605
  </entry>
541
- <entry file="file://$PROJECT_DIR$/app/views/layouts/application.html.haml">
606
+ <entry file="file://$PROJECT_DIR$/app/controllers/core_controller.rb">
542
607
  <provider selected="true" editor-type-id="text-editor">
543
- <state line="6" column="29" selection-start="387" selection-end="387" vertical-scroll-proportion="0.0" />
608
+ <state line="2" column="2" selection-start="71" selection-end="71" vertical-scroll-proportion="0.031746034">
609
+ <folding />
610
+ </state>
544
611
  </provider>
545
612
  </entry>
546
- <entry file="file://$PROJECT_DIR$/lib/sbdevcore/version.rb">
613
+ <entry file="file://$PROJECT_DIR$/app/controllers/sbdevcore/application_controller_extensions.rb">
547
614
  <provider selected="true" editor-type-id="text-editor">
548
- <state line="1" column="18" selection-start="35" selection-end="35" vertical-scroll-proportion="0.0">
615
+ <state line="9" column="33" selection-start="282" selection-end="282" vertical-scroll-proportion="0.14285715">
549
616
  <folding />
550
617
  </state>
551
618
  </provider>
552
619
  </entry>
553
- <entry file="file://$PROJECT_DIR$/app/assets/javascripts/tiny_mce_config.js">
620
+ <entry file="file://$PROJECT_DIR$/app/controllers/contacts_controller.rb">
554
621
  <provider selected="true" editor-type-id="text-editor">
555
- <state line="23" column="18" selection-start="1389" selection-end="1389" vertical-scroll-proportion="0.0">
622
+ <state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0">
556
623
  <folding />
557
624
  </state>
558
625
  </provider>
559
626
  </entry>
560
- <entry file="file://$PROJECT_DIR$/../templates/template.rb">
627
+ <entry file="file://$PROJECT_DIR$/app/assets/stylesheets/_sbdev_core.scss">
561
628
  <provider selected="true" editor-type-id="text-editor">
562
- <state line="9" column="0" selection-start="221" selection-end="221" vertical-scroll-proportion="0.0">
629
+ <state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0">
563
630
  <folding />
564
631
  </state>
565
632
  </provider>
566
633
  </entry>
567
- <entry file="file://$PROJECT_DIR$/sbdevcore.gemspec">
634
+ <entry file="file://$PROJECT_DIR$/lib/sbdevcore/version.rb">
568
635
  <provider selected="true" editor-type-id="text-editor">
569
- <state line="25" column="28" selection-start="806" selection-end="806" vertical-scroll-proportion="0.610998">
636
+ <state line="1" column="18" selection-start="35" selection-end="35" vertical-scroll-proportion="0.015873017">
570
637
  <folding />
571
638
  </state>
572
639
  </provider>
@@ -104,6 +104,10 @@ ul, li {
104
104
  margin: 0;
105
105
  }
106
106
 
107
+ form {
108
+ margin: 0;
109
+ }
110
+
107
111
  .circle {
108
112
  background: $content-background-color;
109
113
  border: 3px solid $button-background-color;
@@ -163,7 +167,7 @@ table.mceLayout {
163
167
  }
164
168
 
165
169
  .highlight-section {
166
- background-color: darken($background-color, 1);
170
+ background-color: #FFE87C;
167
171
  }
168
172
 
169
173
  .justify_right {
@@ -0,0 +1,5 @@
1
+ class CoreController < ActionController::Base
2
+ protect_from_forgery
3
+ inherit_resources
4
+ respond_to :html
5
+ end
@@ -0,0 +1,13 @@
1
+ module Sbdevcore
2
+ module ApplicationControllerExtensions
3
+ def self.included(base)
4
+ base.send(:include, InstanceMethods)
5
+ base.before_filter :get_index
6
+ end
7
+ module InstanceMethods
8
+ def get_index
9
+ @index = Index.find_by_name(controller_name)
10
+ end
11
+ end
12
+ end
13
+ end
@@ -1,6 +1,6 @@
1
1
  class StaticsController < ApplicationController
2
2
  def show
3
3
  @index = Index.find_by_name(params[:page])
4
- render "indices/show"
4
+ render "indices/index"
5
5
  end
6
6
  end
@@ -22,9 +22,9 @@ module LayoutHelper
22
22
  end
23
23
 
24
24
  def render_seo(index)
25
- title index.page_title unless index.page_title.blank?
26
- keywords index.keywords unless index.keywords.blank?
27
- description index.page_description unless index.page_description.blank?
25
+ title index.try "page_title"
26
+ keywords index.try 'keywords'
27
+ description index.try 'page_description'
28
28
  end
29
29
 
30
30
  def stylesheet(*args)
@@ -1,6 +1,6 @@
1
1
  <% render_seo @index %>
2
2
 
3
- <%= render :partial => 'indices/show' %>
3
+ <%= render :partial => 'indices/index' %>
4
4
 
5
5
  <% if admin_signed_in? %>
6
6
  <p><%= link_to "New Gallery", new_gallery_path %></p>
@@ -2,7 +2,7 @@
2
2
 
3
3
  <h2><%=h @gallery.title %></h2>
4
4
 
5
- <%= render :partial => 'indices/show' %>
5
+ <%= render :partial => 'indices/index' %>
6
6
 
7
7
  <% if admin_signed_in? %>
8
8
  <p>
@@ -1,21 +1,21 @@
1
- <% render_seo @index %>
1
+ <% render_seo index %>
2
2
 
3
- <div class='clearfix'><%= render :partial => 'shared/asset_show', :collection => @index.assets, :as => :asset %></div>
3
+ <div class='clearfix'><%= render :partial => 'shared/asset_show', :collection => index.assets, :as => :asset %></div>
4
4
  <% if admin_signed_in? %>
5
5
  <div>
6
6
  <p class="asset-admin">
7
- <%= link_to "Add Text", new_index_text_path(@index.id), :rel=>"#overlay", :class => "overlayed" %>
8
- <%= link_to "Add Photo", new_index_photo_path(@index.id), :rel=>"#overlay", :class => "overlayed" %>
9
- <%= link_to "Add Video", new_index_video_path(@index.id), :rel=>"#overlay", :class => "overlayed" %>
10
- <%= link_to "Add Downloadable File", new_index_downloadable_path(@index.id), :rel=>"#overlay", :class => "overlayed" %>
7
+ <%= link_to "Add Text", new_index_text_path(index.id), :rel=>"#overlay", :class => "overlayed" %>
8
+ <%= link_to "Add Photo", new_index_photo_path(index.id), :rel=>"#overlay", :class => "overlayed" %>
9
+ <%= link_to "Add Video", new_index_video_path(index.id), :rel=>"#overlay", :class => "overlayed" %>
10
+ <%= link_to "Add Downloadable File", new_index_downloadable_path(index.id), :rel=>"#overlay", :class => "overlayed" %>
11
11
  </p>
12
12
  </div>
13
13
  <% end %>
14
14
 
15
- <% unless @index.gallery.nil? %>
15
+ <% unless index.gallery.nil? %>
16
16
  <% content_for :post_content do %>
17
17
  <div class="content corner-all box-shadow">
18
- <%= render :partial => "shared/gallery", :locals => {:objs => @index.gallery.assets} %>
18
+ <%= render :partial => "shared/gallery", :locals => {:objs => index.gallery.assets} %>
19
19
  </div>
20
20
  <% end %>
21
21
  <% end %>
@@ -1,4 +1,4 @@
1
1
  <%= render :partial => 'application/inline_nav', :locals => {:indices => @index.indices} %>
2
2
  <div id='ajax_content'>
3
- <%= render :partial => 'indices/show' %>
3
+ <%= render :partial => 'indices/show', :locals => { :index => @index } %>
4
4
  </div>
@@ -12,5 +12,5 @@
12
12
  <% end %>
13
13
 
14
14
  <div id='ajax_content'>
15
- <%= render :partial => 'indices/show' if @index %>
15
+ <%= render :partial => 'indices/index' if @index %>
16
16
  </div>
@@ -42,7 +42,7 @@ Index.find_all_by_name(APP_CONFIG[:static_pages]).each do |page|
42
42
  directory "application", "app/views/application"
43
43
 
44
44
  copy_file "new_contact.html.erb", "app/views/contacts/new.html.erb", :force => true
45
- inject_into_file "app/assets/javascripts/application.js", "//= require sbdevcore\n", :before => "//= require_tree ."
45
+ inject_into_file "app/assets/javascripts/application.js", "//= require tinymce.jquery\n//= require sbdevcore\n", :before => "//= require_tree ."
46
46
 
47
47
  dev_mailer = <<-OPTS
48
48
 
@@ -16,6 +16,12 @@ module Sbdevcore
16
16
  rake_tasks do
17
17
  load "tasks/sbdevcore.rake"
18
18
  end
19
+
20
+ initializer 'sbdevcore.app_controller' do |app|
21
+ ActiveSupport.on_load(:action_controller) do
22
+ include Sbdevcore::ApplicationControllerExtensions
23
+ end
24
+ end
19
25
  end
20
26
 
21
27
  module Routes
@@ -1,3 +1,3 @@
1
1
  module Sbdevcore
2
- VERSION = "0.0.8"
2
+ VERSION = "0.0.9"
3
3
  end
@@ -1,5 +1,6 @@
1
1
  namespace :sbdevcore do
2
- task :load_core_seeds do
3
- SbdevCore::Engine.load_seed
2
+ desc "load sbdev core seeds"
3
+ task :seed => :environment do
4
+ Sbdevcart::Engine.load_seed
4
5
  end
5
6
  end
data/sbdevcore.gemspec CHANGED
@@ -25,4 +25,7 @@ Gem::Specification.new do |s|
25
25
  s.add_dependency('haml-edge')
26
26
  s.add_dependency('sitemap_generator')
27
27
  s.add_dependency("hpricot")
28
+ s.add_dependency("simple_form")
29
+ # s.add_dependency("inherited_resources")
30
+ # s.add_development_dependency("web-app-theme", ">= 0.6.2")
28
31
  end
data/script/rails CHANGED
@@ -1,6 +1,4 @@
1
1
  #!/usr/bin/env ruby
2
2
  # This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
3
3
 
4
- APP_PATH = File.expand_path('../../config/application', __FILE__)
5
- require File.expand_path('../../config/boot', __FILE__)
6
4
  require 'rails/commands'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sbdevcore
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-08-21 00:00:00.000000000Z
12
+ date: 2011-08-23 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: tinymce-rails
16
- requirement: &2161446300 !ruby/object:Gem::Requirement
16
+ requirement: &2161317100 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *2161446300
24
+ version_requirements: *2161317100
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: prioritizable
27
- requirement: &2161445780 !ruby/object:Gem::Requirement
27
+ requirement: &2161316660 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '0'
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *2161445780
35
+ version_requirements: *2161316660
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: devise
38
- requirement: &2161445240 !ruby/object:Gem::Requirement
38
+ requirement: &2161316220 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: '0'
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *2161445240
46
+ version_requirements: *2161316220
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: paperclip
49
- requirement: &2161444820 !ruby/object:Gem::Requirement
49
+ requirement: &2161315700 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: '0'
55
55
  type: :runtime
56
56
  prerelease: false
57
- version_requirements: *2161444820
57
+ version_requirements: *2161315700
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: haml-edge
60
- requirement: &2161444280 !ruby/object:Gem::Requirement
60
+ requirement: &2161315240 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ! '>='
@@ -65,10 +65,10 @@ dependencies:
65
65
  version: '0'
66
66
  type: :runtime
67
67
  prerelease: false
68
- version_requirements: *2161444280
68
+ version_requirements: *2161315240
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: sitemap_generator
71
- requirement: &2161443740 !ruby/object:Gem::Requirement
71
+ requirement: &2161314800 !ruby/object:Gem::Requirement
72
72
  none: false
73
73
  requirements:
74
74
  - - ! '>='
@@ -76,10 +76,10 @@ dependencies:
76
76
  version: '0'
77
77
  type: :runtime
78
78
  prerelease: false
79
- version_requirements: *2161443740
79
+ version_requirements: *2161314800
80
80
  - !ruby/object:Gem::Dependency
81
81
  name: hpricot
82
- requirement: &2161443200 !ruby/object:Gem::Requirement
82
+ requirement: &2161314380 !ruby/object:Gem::Requirement
83
83
  none: false
84
84
  requirements:
85
85
  - - ! '>='
@@ -87,7 +87,18 @@ dependencies:
87
87
  version: '0'
88
88
  type: :runtime
89
89
  prerelease: false
90
- version_requirements: *2161443200
90
+ version_requirements: *2161314380
91
+ - !ruby/object:Gem::Dependency
92
+ name: simple_form
93
+ requirement: &2161313960 !ruby/object:Gem::Requirement
94
+ none: false
95
+ requirements:
96
+ - - ! '>='
97
+ - !ruby/object:Gem::Version
98
+ version: '0'
99
+ type: :runtime
100
+ prerelease: false
101
+ version_requirements: *2161313960
91
102
  description: Core
92
103
  email:
93
104
  - aosalias@gmail.com
@@ -137,10 +148,12 @@ files:
137
148
  - app/assets/stylesheets/_tooltips.scss
138
149
  - app/assets/stylesheets/_trip_advisor.scss
139
150
  - app/controllers/contacts_controller.rb
151
+ - app/controllers/core_controller.rb
140
152
  - app/controllers/downloadables_controller.rb
141
153
  - app/controllers/galleries_controller.rb
142
154
  - app/controllers/indices_controller.rb
143
155
  - app/controllers/photos_controller.rb
156
+ - app/controllers/sbdevcore/application_controller_extensions.rb
144
157
  - app/controllers/statics_controller.rb
145
158
  - app/controllers/texts_controller.rb
146
159
  - app/controllers/videos_controller.rb
@@ -235,7 +248,6 @@ files:
235
248
  - lib/generators/sbdevcore/templates/.gitignore
236
249
  - lib/generators/sbdevcore/templates/application.scss
237
250
  - lib/generators/sbdevcore/templates/application/_404.html.erb
238
- - lib/generators/sbdevcore/templates/application/_footer.html.erb
239
251
  - lib/generators/sbdevcore/templates/application/_footer.html.haml
240
252
  - lib/generators/sbdevcore/templates/application/_inline_nav.html.erb
241
253
  - lib/generators/sbdevcore/templates/application/_nav.html.haml
@@ -1,9 +0,0 @@
1
- <div id='footer' class='content'>
2
- <% if admin_signed_in? %>
3
- <%= link_to "Admin Sign out", destroy_admin_session_path, :method => :delete %>
4
- <% else %>
5
- <%= link_to "Admin Sign in", new_admin_session_path %>
6
- <% end %>
7
- |
8
- Site By: Adam Olsen <%= mail_to "aosalias@gmail.com", "aosalias@gmail.com" %>
9
- </div>