commontator 4.5.4 → 4.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (141) hide show
  1. checksums.yaml +5 -13
  2. data/MIT-LICENSE +2 -1
  3. data/README.md +31 -34
  4. data/Rakefile +3 -2
  5. data/app/assets/stylesheets/commontator/application.css +1 -0
  6. data/app/assets/stylesheets/commontator/comments.css +1 -0
  7. data/app/assets/stylesheets/commontator/threads.css +13 -7
  8. data/{spec/dummy/tmp/cache/assets/test/sprockets/a473b3873e554893372a53d71f5e9879 → app/assets/stylesheets/commontator/threads.css~} +0 -0
  9. data/app/controllers/commontator/application_controller.rb +14 -14
  10. data/app/controllers/commontator/application_controller.rb~ +35 -0
  11. data/app/controllers/commontator/comments_controller.rb +8 -7
  12. data/app/controllers/commontator/comments_controller.rb~ +153 -0
  13. data/app/controllers/commontator/subscriptions_controller.rb +1 -0
  14. data/app/controllers/commontator/threads_controller.rb +7 -2
  15. data/app/helpers/commontator/application_helper.rb +1 -0
  16. data/app/mailers/commontator/subscriptions_mailer.rb +8 -10
  17. data/app/mailers/commontator/subscriptions_mailer.rb~ +44 -0
  18. data/app/models/commontator/comment.rb +14 -13
  19. data/app/models/commontator/comment.rb~ +119 -0
  20. data/app/models/commontator/subscription.rb +8 -4
  21. data/app/models/commontator/thread.rb +64 -43
  22. data/app/models/commontator/thread.rb~ +159 -0
  23. data/app/views/commontator/comments/_actions.html.erb +1 -0
  24. data/app/views/commontator/comments/_body.html.erb +2 -1
  25. data/app/views/commontator/comments/_form.html.erb +5 -1
  26. data/app/views/commontator/comments/_form.html.erb~ +39 -0
  27. data/app/views/commontator/comments/_list.html.erb +1 -1
  28. data/app/views/commontator/comments/_show.html.erb +5 -3
  29. data/app/views/commontator/comments/_show.html.erb~ +49 -0
  30. data/app/views/commontator/comments/_votes.html.erb +2 -1
  31. data/app/views/commontator/comments/_votes.html.erb~ +69 -0
  32. data/app/views/commontator/comments/cancel.js.erb +1 -0
  33. data/app/views/commontator/comments/create.js.erb +6 -4
  34. data/app/views/commontator/comments/create.js.erb~ +14 -0
  35. data/app/views/commontator/comments/delete.js.erb +1 -0
  36. data/app/views/commontator/comments/edit.js.erb +1 -0
  37. data/app/views/commontator/comments/new.js.erb +3 -1
  38. data/app/views/commontator/comments/new.js.erb~ +13 -0
  39. data/app/views/commontator/comments/update.js.erb +1 -0
  40. data/app/views/commontator/comments/vote.js.erb +1 -0
  41. data/app/views/commontator/shared/_thread.html.erb +4 -5
  42. data/app/views/commontator/subscriptions/_link.html.erb +2 -1
  43. data/app/views/commontator/subscriptions/_link.html.erb~ +16 -0
  44. data/app/views/commontator/subscriptions/subscribe.js.erb +1 -0
  45. data/app/views/commontator/subscriptions_mailer/comment_created.html.erb +1 -0
  46. data/app/views/commontator/threads/_reply.html.erb +4 -2
  47. data/app/views/commontator/threads/_reply.html.erb~ +19 -0
  48. data/app/views/commontator/threads/_show.html.erb +44 -9
  49. data/app/views/commontator/threads/_show.html.erb~ +95 -0
  50. data/app/views/commontator/threads/_show.js.erb +19 -0
  51. data/app/views/commontator/threads/show.js.erb +4 -4
  52. data/config/initializers/commontator.rb +169 -132
  53. data/config/initializers/commontator.rb~ +238 -0
  54. data/config/locales/commontator/en.yml +12 -3
  55. data/config/locales/commontator/en.yml~ +104 -0
  56. data/config/routes.rb +1 -0
  57. data/db/migrate/0_install_commontator.rb +9 -11
  58. data/db/migrate/0_install_commontator.rb~ +54 -0
  59. data/lib/commontator.rb +57 -16
  60. data/lib/commontator.rb~ +142 -0
  61. data/lib/commontator/acts_as_commontable.rb +12 -14
  62. data/lib/commontator/acts_as_commontator.rb +1 -16
  63. data/lib/commontator/commontable_config.rb +1 -0
  64. data/lib/commontator/commontator_config.rb +1 -0
  65. data/lib/commontator/controller_includes.rb +3 -3
  66. data/lib/commontator/engine.rb +1 -0
  67. data/lib/commontator/link_renderer.rb +29 -0
  68. data/lib/commontator/security_transgression.rb +1 -0
  69. data/lib/commontator/shared_helper.rb +7 -5
  70. data/lib/commontator/version.rb +2 -1
  71. data/lib/tasks/commontator_tasks.rake +1 -0
  72. data/spec/app/controllers/commontator/comments_controller_spec.rb +12 -11
  73. data/spec/app/controllers/commontator/subscriptions_controller_spec.rb +2 -1
  74. data/spec/app/controllers/commontator/threads_controller_spec.rb +2 -1
  75. data/spec/app/helpers/commontator/application_helper_spec.rb +2 -1
  76. data/spec/app/mailers/commontator/subscriptions_mailer_spec.rb +2 -1
  77. data/spec/app/models/commontator/comment_spec.rb +18 -11
  78. data/spec/app/models/commontator/comment_spec.rb~ +74 -0
  79. data/spec/app/models/commontator/subscription_spec.rb +18 -8
  80. data/spec/app/models/commontator/thread_spec.rb +28 -42
  81. data/spec/dummy/README.md +1 -0
  82. data/spec/dummy/Rakefile +1 -0
  83. data/spec/dummy/app/assets/javascripts/application.js +1 -0
  84. data/spec/dummy/app/assets/stylesheets/application.css +1 -0
  85. data/spec/dummy/app/controllers/application_controller.rb +1 -0
  86. data/spec/dummy/app/controllers/dummy_models_controller.rb +1 -0
  87. data/spec/dummy/app/helpers/application_helper.rb +1 -0
  88. data/spec/dummy/app/models/dummy_model.rb +1 -0
  89. data/spec/dummy/app/models/dummy_user.rb +7 -2
  90. data/spec/dummy/app/models/dummy_user.rb~ +16 -0
  91. data/spec/dummy/app/views/dummy_model/show.html.erb +1 -0
  92. data/spec/dummy/app/views/layouts/application.html.erb +1 -0
  93. data/spec/dummy/config.ru +1 -0
  94. data/spec/dummy/config/boot.rb +1 -0
  95. data/spec/dummy/config/database.yml +1 -0
  96. data/spec/dummy/config/environment.rb +1 -0
  97. data/spec/dummy/config/environments/development.rb +1 -0
  98. data/spec/dummy/config/environments/production.rb +1 -0
  99. data/spec/dummy/config/environments/test.rb +1 -0
  100. data/spec/dummy/config/initializers/backtrace_silencers.rb +1 -0
  101. data/spec/dummy/config/initializers/commontator.rb +6 -1
  102. data/spec/dummy/config/initializers/commontator.rb~ +15 -0
  103. data/spec/dummy/config/initializers/filter_parameter_logging.rb +1 -0
  104. data/spec/dummy/config/initializers/inflections.rb +1 -0
  105. data/spec/dummy/config/initializers/mime_types.rb +1 -0
  106. data/spec/dummy/config/initializers/secret_token.rb +1 -0
  107. data/spec/dummy/config/initializers/session_store.rb +1 -0
  108. data/spec/dummy/config/initializers/wrap_parameters.rb +1 -0
  109. data/spec/dummy/config/routes.rb +1 -0
  110. data/spec/dummy/db/development.sqlite3 +0 -0
  111. data/spec/dummy/db/migrate/1_create_dummy_models.rb +1 -0
  112. data/spec/dummy/db/migrate/2_create_dummy_users.rb +1 -0
  113. data/spec/dummy/db/migrate/3_acts_as_votable_migration.rb +1 -0
  114. data/spec/dummy/db/schema.rb +10 -13
  115. data/spec/dummy/db/test.sqlite3 +0 -0
  116. data/spec/dummy/public/404.html +1 -0
  117. data/spec/dummy/public/422.html +1 -0
  118. data/spec/dummy/public/500.html +1 -0
  119. data/spec/dummy/script/rails +1 -0
  120. data/spec/dummy/tmp/cache/assets/test/sprockets/{72b63dddbc5c995f79af8e3c94904fd9 → 02d4b791eb831cf2057bf4703a1218d1} +0 -0
  121. data/spec/dummy/tmp/cache/assets/test/sprockets/{a77b1a9223d168112e1705c29220116f → 0f196a1a50363b0a076ec6e1ee5417f6} +0 -0
  122. data/spec/dummy/tmp/cache/assets/test/sprockets/a3fb9025f90ff05a6fd4afc7ded2692c +0 -0
  123. data/spec/dummy/tmp/cache/assets/test/sprockets/a41c8be5379abec3c0d0d98e2f0d5609 +0 -0
  124. data/spec/dummy/tmp/cache/assets/test/sprockets/c69ee3cc5796188d873574179290a6ef +0 -0
  125. data/spec/dummy/tmp/cache/assets/test/sprockets/{f721383d531f067d82b071e14aed7a92 → e1f674c11941d62aac1764ef3a7134e4} +0 -0
  126. data/spec/dummy/tmp/cache/assets/test/sprockets/{d2244ccef8e05bb993f75715af0344cc → e85565206c3e5fdf9dfeb367c85557b1} +0 -0
  127. data/spec/lib/commontator/acts_as_commontable_spec.rb +3 -2
  128. data/spec/lib/commontator/acts_as_commontator_spec.rb +2 -5
  129. data/spec/lib/commontator/commontable_config_spec.rb +8 -5
  130. data/spec/lib/commontator/commontator_config_spec.rb +2 -1
  131. data/spec/lib/commontator/controller_includes_spec.rb +2 -1
  132. data/spec/lib/commontator/shared_helper_spec.rb +2 -1
  133. data/spec/lib/commontator_spec.rb +2 -1
  134. data/spec/{test_helper.rb → spec_helper.rb} +0 -0
  135. metadata +154 -135
  136. data/lib/commontator/remote_link_renderer.rb +0 -10
  137. data/spec/dummy/config/locales/en.yml +0 -23
  138. data/spec/dummy/log/development.log +0 -36
  139. data/spec/dummy/log/test.log +0 -22683
  140. data/spec/dummy/tmp/cache/assets/test/sprockets/afa63eb365bdf4f42584b17ac9176b9d +0 -0
  141. data/spec/dummy/tmp/cache/assets/test/sprockets/decb63cac838a5314aa0c22a979f5ac9 +0 -0
@@ -1,4 +1,4 @@
1
- require 'test_helper'
1
+ require 'spec_helper'
2
2
 
3
3
  module Commontator
4
4
  describe SubscriptionsController do
@@ -97,3 +97,4 @@ module Commontator
97
97
  end
98
98
  end
99
99
  end
100
+
@@ -1,4 +1,4 @@
1
- require 'test_helper'
1
+ require 'spec_helper'
2
2
 
3
3
  module Commontator
4
4
  describe ThreadsController do
@@ -125,3 +125,4 @@ module Commontator
125
125
  end
126
126
  end
127
127
  end
128
+
@@ -1,4 +1,4 @@
1
- require 'test_helper'
1
+ require 'spec_helper'
2
2
 
3
3
  module Commontator
4
4
  describe ApplicationHelper do
@@ -7,3 +7,4 @@ module Commontator
7
7
  end
8
8
  end
9
9
  end
10
+
@@ -1,4 +1,4 @@
1
- require 'test_helper'
1
+ require 'spec_helper'
2
2
 
3
3
  module Commontator
4
4
  describe SubscriptionsMailer do
@@ -28,3 +28,4 @@ module Commontator
28
28
  end
29
29
  end
30
30
  end
31
+
@@ -1,4 +1,4 @@
1
- require 'test_helper'
1
+ require 'spec_helper'
2
2
  require 'acts_as_votable'
3
3
 
4
4
  module Commontator
@@ -48,20 +48,27 @@ module Commontator
48
48
  it 'must make proper timestamps' do
49
49
  @comment.save!
50
50
 
51
- editor_name = @user.commontator_config.user_name_proc.call(@user)
52
- @comment.created_timestamp.must_equal I18n.t('commontator.comment.status.created_at', :created_at => I18n.l(@comment.created_at,
53
- :format => :commontator))
54
- @comment.updated_timestamp.must_equal ''
51
+ @comment.created_timestamp.must_equal I18n.t('commontator.comment.status.created_at',
52
+ :created_at => I18n.l(@comment.created_at,
53
+ :format => :commontator))
54
+ @comment.updated_timestamp.must_equal I18n.t('commontator.comment.status.updated_at',
55
+ :editor_name => @user.name,
56
+ :updated_at => I18n.l(@comment.updated_at,
57
+ :format => :commontator))
55
58
 
59
+ user2 = DummyUser.create
56
60
  @comment.body = 'Something else'
57
- @comment.editor = @user
61
+ @comment.editor = user2
58
62
  @comment.save!
59
63
 
60
- @comment.created_timestamp.must_equal I18n.t('commontator.comment.status.created_at', :created_at => I18n.l(@comment.created_at,
61
- :format => :commontator))
62
- @comment.updated_timestamp.must_equal I18n.t('commontator.comment.status.updated_at', :editor_name => editor_name,
63
- :updated_at => I18n.l(@comment.updated_at,
64
- :format => :commontator))
64
+ @comment.created_timestamp.must_equal I18n.t('commontator.comment.status.created_at',
65
+ :created_at => I18n.l(@comment.created_at,
66
+ :format => :commontator))
67
+ @comment.updated_timestamp.must_equal I18n.t('commontator.comment.status.updated_at',
68
+ :editor_name => user2.name,
69
+ :updated_at => I18n.l(@comment.updated_at,
70
+ :format => :commontator))
65
71
  end
66
72
  end
67
73
  end
74
+
@@ -0,0 +1,74 @@
1
+ require 'spec_helper'
2
+ require 'acts_as_votable'
3
+
4
+ module Commontator
5
+ describe Comment do
6
+ before do
7
+ setup_model_spec
8
+ @comment = Comment.new
9
+ @comment.thread = @thread
10
+ @comment.creator = @user
11
+ @comment.body = 'Something'
12
+ end
13
+
14
+ it 'must be votable if acts_as_votable is installed' do
15
+ Comment.must_respond_to(:acts_as_votable)
16
+ @comment.is_votable?.must_equal true
17
+ @comment.acts_as_votable_initialized.must_equal true
18
+ end
19
+
20
+ it 'must know if it has been modified' do
21
+ @comment.save!
22
+
23
+ @comment.is_modified?.must_equal false
24
+
25
+ @comment.body = 'Something else'
26
+ @comment.editor = @user
27
+ @comment.save!
28
+
29
+ @comment.is_modified?.must_equal true
30
+ end
31
+
32
+ it 'must know if it has been deleted' do
33
+ user = DummyUser.new
34
+
35
+ @comment.is_deleted?.must_equal false
36
+ @comment.editor.must_be_nil
37
+
38
+ @comment.delete_by(user)
39
+
40
+ @comment.is_deleted?.must_equal true
41
+ @comment.editor.must_equal user
42
+
43
+ @comment.undelete_by(user)
44
+
45
+ @comment.is_deleted?.must_equal false
46
+ end
47
+
48
+ it 'must make proper timestamps' do
49
+ @comment.save!
50
+
51
+ @comment.created_timestamp.must_equal I18n.t('commontator.comment.status.created_at',
52
+ :created_at => I18n.l(@comment.created_at,
53
+ :format => :commontator))
54
+ @comment.updated_timestamp.must_equal I18n.t('commontator.comment.status.updated_at',
55
+ :editor_name => @user.name,
56
+ :updated_at => I18n.l(@comment.updated_at,
57
+ :format => :commontator))
58
+
59
+ user2 = @user = DummyUser.create
60
+ @comment.body = 'Something else'
61
+ @comment.editor = user2
62
+ @comment.save!
63
+
64
+ @comment.created_timestamp.must_equal I18n.t('commontator.comment.status.created_at',
65
+ :created_at => I18n.l(@comment.created_at,
66
+ :format => :commontator))
67
+ @comment.updated_timestamp.must_equal I18n.t('commontator.comment.status.updated_at',
68
+ :editor_name => user2.name,
69
+ :updated_at => I18n.l(@comment.updated_at,
70
+ :format => :commontator))
71
+ end
72
+ end
73
+ end
74
+
@@ -1,4 +1,4 @@
1
- require 'test_helper'
1
+ require 'spec_helper'
2
2
 
3
3
  module Commontator
4
4
  describe Subscription do
@@ -7,22 +7,32 @@ module Commontator
7
7
  @subscription = Subscription.new
8
8
  @subscription.thread = @thread
9
9
  @subscription.subscriber = @user
10
+ @subscription.save!
10
11
  end
11
12
 
12
13
  it 'must count unread comments' do
13
- @subscription.unread.must_equal 0
14
+ @subscription.unread_comments.count.must_equal 0
14
15
 
15
- @subscription.add_unread
16
+ comment = Comment.new
17
+ comment.thread = @thread
18
+ comment.creator = @user
19
+ comment.body = 'Something'
20
+ comment.save!
16
21
 
17
- @subscription.unread.must_equal 1
22
+ @subscription.reload.unread_comments.count.must_equal 1
18
23
 
19
- @subscription.add_unread
24
+ comment = Comment.new
25
+ comment.thread = @thread
26
+ comment.creator = @user
27
+ comment.body = 'Something else'
28
+ comment.save!
20
29
 
21
- @subscription.unread.must_equal 2
30
+ @subscription.reload.unread_comments.count.must_equal 2
22
31
 
23
- @subscription.mark_as_read
32
+ @subscription.touch
24
33
 
25
- @subscription.unread.must_equal 0
34
+ @subscription.reload.unread_comments.count.must_equal 0
26
35
  end
27
36
  end
28
37
  end
38
+
@@ -1,4 +1,4 @@
1
- require 'test_helper'
1
+ require 'spec_helper'
2
2
 
3
3
  module Commontator
4
4
  describe Thread do
@@ -8,8 +8,8 @@ module Commontator
8
8
 
9
9
  it 'must have a config' do
10
10
  @thread.config.must_be_instance_of CommontableConfig
11
- @thread.commontable = nil
12
- @thread.config.must_equal Commontator
11
+ @thread.update_attribute(:commontable_id, nil)
12
+ Thread.find(@thread.id).config.must_equal Commontator
13
13
  end
14
14
 
15
15
  it 'must order all comments' do
@@ -65,42 +65,23 @@ module Commontator
65
65
  @thread.is_closed?.must_equal false
66
66
  end
67
67
 
68
- it 'must know if an user is subscribed' do
68
+ it 'must mark comments as read' do
69
69
  @thread.subscribe(@user)
70
- user2 = DummyUser.create
71
-
72
- @thread.subscribe(user2)
73
-
74
- @thread.is_subscribed?(@user).must_equal true
75
- @thread.is_subscribed?(user2).must_equal true
76
- @thread.is_subscribed?(DummyUser.create).must_equal false
77
-
78
- @thread.unsubscribe(@user)
79
-
80
- @thread.is_subscribed?(@user).must_equal false
81
- @thread.is_subscribed?(user2).must_equal true
82
- @thread.is_subscribed?(DummyUser.create).must_equal false
83
- end
84
-
85
- it 'must add unread comments and mark comments as read' do
86
- @thread.subscribe(@user)
87
- user2 = DummyUser.create
88
- @thread.subscribe(user2)
89
-
90
- @thread.subscription_for(@user).unread.must_equal 0
91
- @thread.subscription_for(user2).unread.must_equal 0
92
-
93
- @thread.add_unread_except_for(@user)
94
- @thread.add_unread_except_for(user2)
95
- @thread.add_unread_except_for(@user)
70
+
71
+ subscription = @thread.subscription_for(@user)
72
+ subscription.unread_comments.count.must_equal 0
73
+
74
+ comment = Comment.new
75
+ comment.thread = @thread
76
+ comment.creator = @user
77
+ comment.body = 'Something'
78
+ comment.save!
96
79
 
97
- @thread.subscription_for(@user).unread.must_equal 1
98
- @thread.subscription_for(user2).unread.must_equal 2
80
+ subscription.reload.unread_comments.count.must_equal 1
99
81
 
100
- @thread.mark_as_read_for(user2)
82
+ @thread.mark_as_read_for(@user)
101
83
 
102
- @thread.subscription_for(@user).unread.must_equal 1
103
- @thread.subscription_for(user2).unread.must_equal 0
84
+ subscription.reload.unread_comments.count.must_equal 0
104
85
  end
105
86
 
106
87
  it 'must be able to clear comments' do
@@ -109,19 +90,23 @@ module Commontator
109
90
  comment.creator = @user
110
91
  comment.body = 'Something'
111
92
  comment.save!
112
-
93
+
94
+ @thread.close(@user)
95
+
113
96
  @thread.commontable.must_equal @commontable
114
97
  @thread.comments.must_include comment
115
- @thread.is_closed?.must_equal false
98
+ @thread.is_closed?.must_equal true
99
+ @thread.closer.must_equal @user
100
+
101
+ @commontable = DummyModel.find(@commontable.id)
116
102
  @commontable.thread.must_equal @thread
117
-
118
- @thread.clear(@user)
103
+
104
+ @thread.clear
119
105
 
120
106
  @thread.commontable.must_be_nil
121
107
  @thread.comments.must_include comment
122
- @thread.is_closed?.must_equal true
123
- @thread.closer.must_equal @user
124
- @commontable.reload
108
+
109
+ @commontable = DummyModel.find(@commontable.id)
125
110
  @commontable.thread.wont_be_nil
126
111
  @commontable.thread.wont_equal @thread
127
112
  @commontable.thread.comments.wont_include comment
@@ -133,3 +118,4 @@ module Commontator
133
118
  end
134
119
  end
135
120
  end
121
+
@@ -1,3 +1,4 @@
1
1
  ## Dummy
2
2
 
3
3
  A dummy application used to test the Commontator engine.
4
+
@@ -4,3 +4,4 @@
4
4
  require File.expand_path('../config/application', __FILE__)
5
5
 
6
6
  Dummy::Application.load_tasks
7
+
@@ -13,3 +13,4 @@
13
13
  //= require jquery
14
14
  //= require jquery_ujs
15
15
  //= require_tree .
16
+
@@ -11,3 +11,4 @@
11
11
  *= require_self
12
12
  *= require_tree .
13
13
  */
14
+
@@ -1,3 +1,4 @@
1
1
  class ApplicationController < ActionController::Base
2
2
  protect_from_forgery
3
3
  end
4
+
@@ -27,3 +27,4 @@ class DummyModelsController < ActionController::Base
27
27
  @dummy_model = DummyModel.find(params[:id])
28
28
  end
29
29
  end
30
+
@@ -13,3 +13,4 @@ module ApplicationHelper
13
13
  @@user = nil
14
14
  end
15
15
  end
16
+
@@ -1,3 +1,4 @@
1
1
  class DummyModel < ActiveRecord::Base
2
2
  acts_as_commontable
3
3
  end
4
+
@@ -2,8 +2,13 @@ class DummyUser < ActiveRecord::Base
2
2
  acts_as_commontator
3
3
 
4
4
  attr_accessor :is_admin, :can_edit, :can_read
5
-
5
+
6
6
  def email
7
- 'user@example.com'
7
+ "dummy_user#{id}@example.com"
8
+ end
9
+
10
+ def name
11
+ "Dummy User ##{id}"
8
12
  end
9
13
  end
14
+
@@ -0,0 +1,16 @@
1
+ class DummyUser < ActiveRecord::Base
2
+ acts_as_commontator
3
+
4
+ attr_accessor :is_admin, :can_edit, :can_read
5
+
6
+ def email
7
+ "dummy_user#{id}@example.com"
8
+ end
9
+
10
+ def name
11
+ "Dummy User ##{id}"
12
+ end
13
+
14
+
15
+ end
16
+
@@ -1 +1,2 @@
1
1
  <%= commontator_thread(@dummy_model) %>
2
+
@@ -2,3 +2,4 @@
2
2
 
3
3
  require ::File.expand_path('../config/environment', __FILE__)
4
4
  run Rails.application
5
+
@@ -3,3 +3,4 @@ ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../../../Gemfile', __FILE__)
3
3
 
4
4
  require 'bundler/setup' if File.exists?(ENV['BUNDLE_GEMFILE'])
5
5
  $LOAD_PATH.unshift File.expand_path('../../../../lib', __FILE__)
6
+
@@ -23,3 +23,4 @@ production:
23
23
  database: db/production.sqlite3
24
24
  pool: 5
25
25
  timeout: 5000
26
+
@@ -3,3 +3,4 @@ require File.expand_path('../application', __FILE__)
3
3
 
4
4
  # Initialize the Rails application.
5
5
  Dummy::Application.initialize!
6
+
@@ -27,3 +27,4 @@ Dummy::Application.configure do
27
27
  # number of complex assets.
28
28
  config.assets.debug = true
29
29
  end
30
+
@@ -78,3 +78,4 @@ Dummy::Application.configure do
78
78
  # Use default logging formatter so that PID and timestamp are not suppressed.
79
79
  config.log_formatter = ::Logger::Formatter.new
80
80
  end
81
+
@@ -34,3 +34,4 @@ Dummy::Application.configure do
34
34
  # Print deprecation notices to the stderr.
35
35
  config.active_support.deprecation = :stderr
36
36
  end
37
+