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 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="sbdevcore-tools.js" pinned="false" current="false" current-in-tab="false">
27
- <entry file="file://$PROJECT_DIR$/app/assets/javascripts/sbdevcore-tools.js">
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="136" column="23" selection-start="3441" selection-end="3441" vertical-scroll-proportion="-9.923077">
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="version.rb" pinned="false" current="true" current-in-tab="true">
36
- <entry file="file://$PROJECT_DIR$/lib/sbdevcore/version.rb">
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="1" column="18" selection-start="35" selection-end="35" vertical-scroll-proportion="0.024439918">
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="application.html.haml" pinned="false" current="false" current-in-tab="false">
45
- <entry file="file://$PROJECT_DIR$/app/views/layouts/application.html.haml">
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="10" column="26" selection-start="499" selection-end="499" vertical-scroll-proportion="0.0">
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="sbdevcore.js" pinned="false" current="false" current-in-tab="false">
54
- <entry file="file://$PROJECT_DIR$/app/assets/javascripts/sbdevcore.js">
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="7" column="37" selection-start="468" selection-end="468" vertical-scroll-proportion="0.0">
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="install_generator.rb" pinned="false" current="false" current-in-tab="false">
63
- <entry file="file://$PROJECT_DIR$/lib/generators/sbdevcore/install_generator.rb">
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="44" column="0" selection-start="1512" selection-end="1512" vertical-scroll-proportion="0.0">
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="false" />
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="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" />
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="scss" />
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$/lib/sbdevcore/engine.rb">
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="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0">
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$/lib/generators/sbdevcore/templates/application/_nav.html.haml">
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="0" column="4" selection-start="4" selection-end="4" vertical-scroll-proportion="0.0">
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/views/layouts/bar_nav.html.haml">
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="1" column="17" selection-start="28" selection-end="28" vertical-scroll-proportion="0.024439918">
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$/lib/generators/sbdevcore/templates/sass.scss">
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="8" column="8" selection-start="195" selection-end="203" vertical-scroll-proportion="0.19551934">
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/layouts/tab_nav.html.haml">
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="5" column="17" selection-start="130" selection-end="130" vertical-scroll-proportion="0.07936508">
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/assets/stylesheets/_mixins.scss">
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="45" column="38" selection-start="3244" selection-end="3244" vertical-scroll-proportion="0.7287449">
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$/app/assets/stylesheets/_bar_nav.scss">
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="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0">
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/stylesheets/_sbdev_core.scss">
480
+ <entry file="file://$PROJECT_DIR$/app/assets/javascripts/sbdevcore.js">
461
481
  <provider selected="true" editor-type-id="text-editor">
462
- <state line="26" column="20" selection-start="570" selection-end="570" vertical-scroll-proportion="0.34391534">
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/assets/stylesheets/_tab_nav.scss">
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="15" column="1" selection-start="298" selection-end="298" vertical-scroll-proportion="0.23809524">
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$/lib/generators/sbdevcore/install_generator.rb">
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="44" column="0" selection-start="1512" selection-end="1512" vertical-scroll-proportion="0.0">
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$/app/assets/javascripts/tiny_mce/tiny_mce.js">
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="0" column="178601" selection-start="178601" selection-end="178601" vertical-scroll-proportion="0.0">
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/assets/javascripts/sbdevcore.js">
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="7" column="37" selection-start="468" selection-end="468" vertical-scroll-proportion="0.0">
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/assets/javascripts/tiny_mce_config.js">
515
+ <entry file="file://$PROJECT_DIR$/app/controllers/downloadables_controller.rb">
496
516
  <provider selected="true" editor-type-id="text-editor">
497
- <state line="6" column="24" selection-start="161" selection-end="161" vertical-scroll-proportion="0.15126051">
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/layouts/application.html.haml">
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="10" column="26" selection-start="499" selection-end="499" vertical-scroll-proportion="0.0">
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$/app/assets/javascripts/sbdevcore-tools.js">
529
+ <entry file="file://$PROJECT_DIR$/lib/sbdevcore/version.rb">
510
530
  <provider selected="true" editor-type-id="text-editor">
511
- <state line="136" column="23" selection-start="3441" selection-end="3441" vertical-scroll-proportion="-9.923077">
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$/lib/sbdevcore/version.rb">
536
+ <entry file="file://$PROJECT_DIR$/../templates/template.rb">
517
537
  <provider selected="true" editor-type-id="text-editor">
518
- <state line="1" column="18" selection-start="35" selection-end="35" vertical-scroll-proportion="0.024439918">
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
- send_file(open(@downloadable.asset.url).path, :filename => @downloadable.asset_file_name, :type => @downloadable.asset_content_type)
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.title, downloadable %>
2
- <%= "<p>#{downloadable.description}</p>" %>
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 %>
@@ -1,4 +1,4 @@
1
- <div class='section clearfix'>
1
+ <div>
2
2
  <%= raw text.content %>
3
3
  <% if admin_signed_in? %>
4
4
  <p class='asset-admin'>
@@ -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 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
@@ -25,7 +25,7 @@ shared:
25
25
  - about
26
26
  dynamic_pages:
27
27
  - contacts
28
- bucket_name: small-biz-dev
28
+ bucket_name: sbdev-tester
29
29
  heroku_name: sbdevtester
30
30
  nav_style: bar
31
31
  contact_name: Adam Olsen
@@ -1,3 +1,3 @@
1
1
  module Sbdevcore
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
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.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: