sbdevcore 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/.idea/workspace.xml +76 -56
- data/app/controllers/downloadables_controller.rb +1 -1
- data/app/views/downloadables/_show.html.erb +2 -2
- data/app/views/texts/_show.html.erb +1 -1
- data/lib/generators/sbdevcore/install_generator.rb +2 -1
- data/lib/generators/sbdevcore/templates/config/app_config.yml +1 -1
- data/lib/sbdevcore/version.rb +1 -1
- metadata +1 -1
data/.idea/workspace.xml
CHANGED
@@ -23,46 +23,55 @@
|
|
23
23
|
<component name="FileColors" enabled="true" enabledForTabs="true" />
|
24
24
|
<component name="FileEditorManager">
|
25
25
|
<leaf>
|
26
|
-
<file leaf-file-name="
|
27
|
-
<entry file="file://$PROJECT_DIR$/app/
|
26
|
+
<file leaf-file-name="_show.html.erb" pinned="false" current="false" current-in-tab="false">
|
27
|
+
<entry file="file://$PROJECT_DIR$/app/views/downloadables/_show.html.erb">
|
28
28
|
<provider selected="true" editor-type-id="text-editor">
|
29
|
-
<state line="
|
29
|
+
<state line="1" column="31" selection-start="87" selection-end="87" vertical-scroll-proportion="-0.6315789">
|
30
30
|
<folding />
|
31
31
|
</state>
|
32
32
|
</provider>
|
33
33
|
</entry>
|
34
34
|
</file>
|
35
|
-
<file leaf-file-name="
|
36
|
-
<entry file="file://$PROJECT_DIR$/
|
35
|
+
<file leaf-file-name="downloadables_controller.rb" pinned="false" current="false" current-in-tab="false">
|
36
|
+
<entry file="file://$PROJECT_DIR$/app/controllers/downloadables_controller.rb">
|
37
37
|
<provider selected="true" editor-type-id="text-editor">
|
38
|
-
<state line="
|
38
|
+
<state line="10" column="9" selection-start="278" selection-end="282" vertical-scroll-proportion="0.0">
|
39
39
|
<folding />
|
40
40
|
</state>
|
41
41
|
</provider>
|
42
42
|
</entry>
|
43
43
|
</file>
|
44
|
-
<file leaf-file-name="
|
45
|
-
<entry file="file://$PROJECT_DIR$/app/views/
|
44
|
+
<file leaf-file-name="_form.html.erb" pinned="false" current="false" current-in-tab="false">
|
45
|
+
<entry file="file://$PROJECT_DIR$/app/views/photos/_form.html.erb">
|
46
46
|
<provider selected="true" editor-type-id="text-editor">
|
47
|
-
<state line="
|
47
|
+
<state line="15" column="20" selection-start="477" selection-end="477" vertical-scroll-proportion="-9.473684">
|
48
48
|
<folding />
|
49
49
|
</state>
|
50
50
|
</provider>
|
51
51
|
</entry>
|
52
52
|
</file>
|
53
|
-
<file leaf-file-name="
|
54
|
-
<entry file="file://$PROJECT_DIR$/
|
53
|
+
<file leaf-file-name="version.rb" pinned="false" current="false" current-in-tab="false">
|
54
|
+
<entry file="file://$PROJECT_DIR$/lib/sbdevcore/version.rb">
|
55
55
|
<provider selected="true" editor-type-id="text-editor">
|
56
|
-
<state line="
|
56
|
+
<state line="1" column="18" selection-start="35" selection-end="35" vertical-scroll-proportion="0.0">
|
57
57
|
<folding />
|
58
58
|
</state>
|
59
59
|
</provider>
|
60
60
|
</entry>
|
61
61
|
</file>
|
62
|
-
<file leaf-file-name="
|
63
|
-
<entry file="file://$PROJECT_DIR
|
62
|
+
<file leaf-file-name="template.rb" pinned="false" current="true" current-in-tab="true">
|
63
|
+
<entry file="file://$PROJECT_DIR$/../templates/template.rb">
|
64
64
|
<provider selected="true" editor-type-id="text-editor">
|
65
|
-
<state line="
|
65
|
+
<state line="1" column="23" selection-start="59" selection-end="59" vertical-scroll-proportion="0.025423728">
|
66
|
+
<folding />
|
67
|
+
</state>
|
68
|
+
</provider>
|
69
|
+
</entry>
|
70
|
+
</file>
|
71
|
+
<file leaf-file-name="app_config.yml" pinned="false" current="false" current-in-tab="false">
|
72
|
+
<entry file="file://$PROJECT_DIR$/lib/generators/sbdevcore/templates/config/app_config.yml">
|
73
|
+
<provider selected="true" editor-type-id="text-editor">
|
74
|
+
<state line="27" column="21" selection-start="624" selection-end="624" vertical-scroll-proportion="0.0">
|
66
75
|
<folding />
|
67
76
|
</state>
|
68
77
|
</provider>
|
@@ -81,12 +90,6 @@
|
|
81
90
|
<component name="IdeDocumentHistory">
|
82
91
|
<option name="changedFiles">
|
83
92
|
<list>
|
84
|
-
<option value="$PROJECT_DIR$/app/controllers/texts_controller.rb" />
|
85
|
-
<option value="$PROJECT_DIR$/../templates/template.rb" />
|
86
|
-
<option value="$PROJECT_DIR$/lib/sbdevcore/engine.rb" />
|
87
|
-
<option value="$PROJECT_DIR$/app/views/layouts/bar_nav.html.haml" />
|
88
|
-
<option value="$PROJECT_DIR$/lib/generators/sbdevcore/templates/application/_nav.html.haml" />
|
89
|
-
<option value="$PROJECT_DIR$/lib/generators/sbdevcore/install_generator.rb" />
|
90
93
|
<option value="$PROJECT_DIR$/app/assets/stylesheets/_bar_nav.scss" />
|
91
94
|
<option value="$PROJECT_DIR$/app/assets/stylesheets/_sbdev_core.scss" />
|
92
95
|
<option value="$PROJECT_DIR$/app/views/layouts/tab_nav.html.haml" />
|
@@ -96,7 +99,13 @@
|
|
96
99
|
<option value="$PROJECT_DIR$/app/assets/javascripts/tiny_mce_config.js" />
|
97
100
|
<option value="$PROJECT_DIR$/app/views/layouts/application.html.haml" />
|
98
101
|
<option value="$PROJECT_DIR$/app/assets/javascripts/sbdevcore-tools.js" />
|
102
|
+
<option value="$PROJECT_DIR$/lib/generators/sbdevcore/install_generator.rb" />
|
103
|
+
<option value="$PROJECT_DIR$/app/views/texts/_show.html.erb" />
|
104
|
+
<option value="$PROJECT_DIR$/lib/generators/sbdevcore/templates/config/app_config.yml" />
|
105
|
+
<option value="$PROJECT_DIR$/app/views/downloadables/_show.html.erb" />
|
106
|
+
<option value="$PROJECT_DIR$/app/controllers/downloadables_controller.rb" />
|
99
107
|
<option value="$PROJECT_DIR$/lib/sbdevcore/version.rb" />
|
108
|
+
<option value="$PROJECT_DIR$/../templates/template.rb" />
|
100
109
|
</list>
|
101
110
|
</option>
|
102
111
|
</component>
|
@@ -135,6 +144,16 @@
|
|
135
144
|
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
136
145
|
</PATH_ELEMENT>
|
137
146
|
</PATH>
|
147
|
+
<PATH>
|
148
|
+
<PATH_ELEMENT>
|
149
|
+
<option name="myItemId" value="sbdevcore" />
|
150
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
151
|
+
</PATH_ELEMENT>
|
152
|
+
<PATH_ELEMENT>
|
153
|
+
<option name="myItemId" value="sbdevcore" />
|
154
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
155
|
+
</PATH_ELEMENT>
|
156
|
+
</PATH>
|
138
157
|
</subPane>
|
139
158
|
</pane>
|
140
159
|
<pane id="RailsProjectView" />
|
@@ -353,7 +372,7 @@
|
|
353
372
|
</component>
|
354
373
|
<component name="ToolWindowManager">
|
355
374
|
<frame x="0" y="22" width="1436" height="878" extended-state="0" />
|
356
|
-
<editor active="
|
375
|
+
<editor active="true" />
|
357
376
|
<layout>
|
358
377
|
<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" />
|
359
378
|
<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" />
|
@@ -361,7 +380,7 @@
|
|
361
380
|
<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" />
|
362
381
|
<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" />
|
363
382
|
<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" />
|
364
|
-
<window_info id="Project" active="
|
383
|
+
<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" />
|
365
384
|
<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" />
|
366
385
|
<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" />
|
367
386
|
<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" />
|
@@ -386,7 +405,7 @@
|
|
386
405
|
<option name="ENABLE_BACKGROUND_PROCESSES" value="true" />
|
387
406
|
<option name="CHANGED_ON_SERVER_INTERVAL" value="5" />
|
388
407
|
<option name="FORCE_NON_EMPTY_COMMENT" value="false" />
|
389
|
-
<option name="LAST_COMMIT_MESSAGE" value="
|
408
|
+
<option name="LAST_COMMIT_MESSAGE" value="tweaks" />
|
390
409
|
<option name="MAKE_NEW_CHANGELIST_ACTIVE" value="true" />
|
391
410
|
<option name="OPTIMIZE_IMPORTS_BEFORE_PROJECT_COMMIT" value="false" />
|
392
411
|
<option name="CHECK_FILES_UP_TO_DATE_BEFORE_COMMIT" value="false" />
|
@@ -403,119 +422,120 @@
|
|
403
422
|
<MESSAGE value="contacts" />
|
404
423
|
<MESSAGE value="templates" />
|
405
424
|
<MESSAGE value="scss" />
|
425
|
+
<MESSAGE value="tweaks" />
|
406
426
|
</component>
|
407
427
|
<component name="XDebuggerManager">
|
408
428
|
<breakpoint-manager />
|
409
429
|
</component>
|
410
430
|
<component name="editorHistoryManager">
|
411
|
-
<entry file="file://$PROJECT_DIR$/
|
431
|
+
<entry file="file://$PROJECT_DIR$/app/assets/stylesheets/_sbdev_core.scss">
|
412
432
|
<provider selected="true" editor-type-id="text-editor">
|
413
|
-
<state line="
|
433
|
+
<state line="26" column="20" selection-start="570" selection-end="570" vertical-scroll-proportion="0.34391534">
|
414
434
|
<folding />
|
415
435
|
</state>
|
416
436
|
</provider>
|
417
437
|
</entry>
|
418
|
-
<entry file="file://$PROJECT_DIR$/
|
438
|
+
<entry file="file://$PROJECT_DIR$/app/assets/stylesheets/_tab_nav.scss">
|
419
439
|
<provider selected="true" editor-type-id="text-editor">
|
420
|
-
<state line="
|
440
|
+
<state line="15" column="1" selection-start="298" selection-end="298" vertical-scroll-proportion="0.23809524">
|
421
441
|
<folding />
|
422
442
|
</state>
|
423
443
|
</provider>
|
424
444
|
</entry>
|
425
|
-
<entry file="file://$PROJECT_DIR$/app/
|
445
|
+
<entry file="file://$PROJECT_DIR$/app/assets/javascripts/tiny_mce/tiny_mce.js">
|
426
446
|
<provider selected="true" editor-type-id="text-editor">
|
427
|
-
<state line="
|
447
|
+
<state line="0" column="178601" selection-start="178601" selection-end="178601" vertical-scroll-proportion="0.0">
|
428
448
|
<folding />
|
429
449
|
</state>
|
430
450
|
</provider>
|
431
451
|
</entry>
|
432
|
-
<entry file="file://$PROJECT_DIR$/
|
452
|
+
<entry file="file://$PROJECT_DIR$/app/assets/javascripts/tiny_mce_config.js">
|
433
453
|
<provider selected="true" editor-type-id="text-editor">
|
434
|
-
<state line="
|
454
|
+
<state line="6" column="24" selection-start="161" selection-end="161" vertical-scroll-proportion="0.15126051">
|
435
455
|
<folding />
|
436
456
|
</state>
|
437
457
|
</provider>
|
438
458
|
</entry>
|
439
|
-
<entry file="file://$PROJECT_DIR$/app/views/
|
459
|
+
<entry file="file://$PROJECT_DIR$/app/views/indices/_form.html.erb">
|
440
460
|
<provider selected="true" editor-type-id="text-editor">
|
441
|
-
<state line="
|
461
|
+
<state line="38" column="33" selection-start="1113" selection-end="1113" vertical-scroll-proportion="1.0066226">
|
442
462
|
<folding />
|
443
463
|
</state>
|
444
464
|
</provider>
|
445
465
|
</entry>
|
446
|
-
<entry file="file://$PROJECT_DIR$/app/
|
466
|
+
<entry file="file://$PROJECT_DIR$/app/views/texts/_show.html.erb">
|
447
467
|
<provider selected="true" editor-type-id="text-editor">
|
448
|
-
<state line="
|
468
|
+
<state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0">
|
449
469
|
<folding />
|
450
470
|
</state>
|
451
471
|
</provider>
|
452
472
|
</entry>
|
453
|
-
<entry file="file://$PROJECT_DIR$/
|
473
|
+
<entry file="file://$PROJECT_DIR$/lib/generators/sbdevcore/install_generator.rb">
|
454
474
|
<provider selected="true" editor-type-id="text-editor">
|
455
|
-
<state line="
|
475
|
+
<state line="59" column="76" selection-start="2225" selection-end="2230" vertical-scroll-proportion="0.8319328">
|
456
476
|
<folding />
|
457
477
|
</state>
|
458
478
|
</provider>
|
459
479
|
</entry>
|
460
|
-
<entry file="file://$PROJECT_DIR$/app/assets/
|
480
|
+
<entry file="file://$PROJECT_DIR$/app/assets/javascripts/sbdevcore.js">
|
461
481
|
<provider selected="true" editor-type-id="text-editor">
|
462
|
-
<state line="
|
482
|
+
<state line="7" column="37" selection-start="468" selection-end="468" vertical-scroll-proportion="0.17107943">
|
463
483
|
<folding />
|
464
484
|
</state>
|
465
485
|
</provider>
|
466
486
|
</entry>
|
467
|
-
<entry file="file://$PROJECT_DIR$/app/
|
487
|
+
<entry file="file://$PROJECT_DIR$/app/views/layouts/application.html.haml">
|
468
488
|
<provider selected="true" editor-type-id="text-editor">
|
469
|
-
<state line="
|
489
|
+
<state line="10" column="26" selection-start="499" selection-end="499" vertical-scroll-proportion="0.24439919">
|
470
490
|
<folding />
|
471
491
|
</state>
|
472
492
|
</provider>
|
473
493
|
</entry>
|
474
|
-
<entry file="file://$PROJECT_DIR$/
|
494
|
+
<entry file="file://$PROJECT_DIR$/app/assets/javascripts/sbdevcore-tools.js">
|
475
495
|
<provider selected="true" editor-type-id="text-editor">
|
476
|
-
<state line="
|
496
|
+
<state line="136" column="23" selection-start="3441" selection-end="3441" vertical-scroll-proportion="0.5733333">
|
477
497
|
<folding />
|
478
498
|
</state>
|
479
499
|
</provider>
|
480
500
|
</entry>
|
481
|
-
<entry file="file://$PROJECT_DIR$/
|
501
|
+
<entry file="file://$PROJECT_DIR$/lib/generators/sbdevcore/templates/config/app_config.yml">
|
482
502
|
<provider selected="true" editor-type-id="text-editor">
|
483
|
-
<state line="
|
503
|
+
<state line="27" column="21" selection-start="624" selection-end="624" vertical-scroll-proportion="0.0">
|
484
504
|
<folding />
|
485
505
|
</state>
|
486
506
|
</provider>
|
487
507
|
</entry>
|
488
|
-
<entry file="file://$PROJECT_DIR$/app/
|
508
|
+
<entry file="file://$PROJECT_DIR$/app/views/downloadables/_show.html.erb">
|
489
509
|
<provider selected="true" editor-type-id="text-editor">
|
490
|
-
<state line="
|
510
|
+
<state line="1" column="31" selection-start="87" selection-end="87" vertical-scroll-proportion="-0.6315789">
|
491
511
|
<folding />
|
492
512
|
</state>
|
493
513
|
</provider>
|
494
514
|
</entry>
|
495
|
-
<entry file="file://$PROJECT_DIR$/app/
|
515
|
+
<entry file="file://$PROJECT_DIR$/app/controllers/downloadables_controller.rb">
|
496
516
|
<provider selected="true" editor-type-id="text-editor">
|
497
|
-
<state line="
|
517
|
+
<state line="10" column="9" selection-start="278" selection-end="282" vertical-scroll-proportion="0.0">
|
498
518
|
<folding />
|
499
519
|
</state>
|
500
520
|
</provider>
|
501
521
|
</entry>
|
502
|
-
<entry file="file://$PROJECT_DIR$/app/views/
|
522
|
+
<entry file="file://$PROJECT_DIR$/app/views/photos/_form.html.erb">
|
503
523
|
<provider selected="true" editor-type-id="text-editor">
|
504
|
-
<state line="
|
524
|
+
<state line="15" column="20" selection-start="477" selection-end="477" vertical-scroll-proportion="-9.473684">
|
505
525
|
<folding />
|
506
526
|
</state>
|
507
527
|
</provider>
|
508
528
|
</entry>
|
509
|
-
<entry file="file://$PROJECT_DIR$/
|
529
|
+
<entry file="file://$PROJECT_DIR$/lib/sbdevcore/version.rb">
|
510
530
|
<provider selected="true" editor-type-id="text-editor">
|
511
|
-
<state line="
|
531
|
+
<state line="1" column="18" selection-start="35" selection-end="35" vertical-scroll-proportion="0.0">
|
512
532
|
<folding />
|
513
533
|
</state>
|
514
534
|
</provider>
|
515
535
|
</entry>
|
516
|
-
<entry file="file://$PROJECT_DIR
|
536
|
+
<entry file="file://$PROJECT_DIR$/../templates/template.rb">
|
517
537
|
<provider selected="true" editor-type-id="text-editor">
|
518
|
-
<state line="1" column="
|
538
|
+
<state line="1" column="23" selection-start="59" selection-end="59" vertical-scroll-proportion="0.025423728">
|
519
539
|
<folding />
|
520
540
|
</state>
|
521
541
|
</provider>
|
@@ -8,7 +8,7 @@ class DownloadablesController < ApplicationController
|
|
8
8
|
|
9
9
|
def show
|
10
10
|
@downloadable = Downloadable.find(params[:id])
|
11
|
-
|
11
|
+
send_data(@downloadable.asset.url, :filename => @downloadable.asset_file_name, :type => @downloadable.asset_content_type, :disposition => 'attachment')
|
12
12
|
end
|
13
13
|
|
14
14
|
def new
|
@@ -1,5 +1,5 @@
|
|
1
|
-
<%= link_to downloadable.
|
2
|
-
|
1
|
+
<%= link_to downloadable.name.titleize, downloadable %>
|
2
|
+
<p><%= downloadable.description %></p>
|
3
3
|
<% if admin_signed_in? %>
|
4
4
|
<p class='asset-admin'>
|
5
5
|
<%= link_to "Remove Downloadable", downloadable, :confirm => 'Are you sure?', :method => :delete %>
|
@@ -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
|
45
|
+
inject_into_file "app/assets/javascripts/application.js", "//= require sbdevcore\n", :before => "//= require_tree ."
|
46
46
|
|
47
47
|
dev_mailer = <<-OPTS
|
48
48
|
|
@@ -57,6 +57,7 @@ ActionMailer::Base.perform_deliveries = true
|
|
57
57
|
ActionMailer::Base.raise_delivery_errors = false
|
58
58
|
OPTS
|
59
59
|
inject_into_file "config/environments/production.rb", prod_mailer, :after => "Tester::Application.configure do"
|
60
|
+
gsub_file "config/environments/production.rb", /"X-Sendfile"/, "nil"
|
60
61
|
end
|
61
62
|
|
62
63
|
def git
|
data/lib/sbdevcore/version.rb
CHANGED