my_forum 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (203) hide show
  1. checksums.yaml +4 -4
  2. data/README.rdoc +12 -1
  3. data/Rakefile +4 -3
  4. data/{test/dummy/public/favicon.ico → app/assets/javascripts/my_forum/admin/categories.js.coffee} +0 -0
  5. data/app/assets/javascripts/my_forum/admin/dashboard.js.coffee +0 -0
  6. data/app/assets/javascripts/my_forum/admin/forums.js.coffee +0 -0
  7. data/app/assets/javascripts/my_forum/admin/roles.js +2 -0
  8. data/app/assets/javascripts/my_forum/admin/users.js +2 -0
  9. data/app/assets/javascripts/my_forum/application.js +6 -0
  10. data/app/assets/javascripts/my_forum/forums.js.coffee +0 -0
  11. data/app/assets/javascripts/my_forum/jquery.scrollTo.min.js +7 -0
  12. data/app/assets/javascripts/my_forum/jquery.selection.js +354 -0
  13. data/app/assets/javascripts/my_forum/my_forum.js.coffee +118 -0
  14. data/app/assets/javascripts/my_forum/posts.js.coffee +20 -0
  15. data/app/assets/javascripts/my_forum/topics.js.coffee +0 -0
  16. data/app/assets/javascripts/my_forum/users.js.coffee +0 -0
  17. data/app/assets/javascripts/my_forum/welcome.js.coffee +0 -0
  18. data/app/assets/stylesheets/my_forum/admin/categories.css.scss +0 -0
  19. data/app/assets/stylesheets/my_forum/admin/dashboard.css.scss +3 -0
  20. data/app/assets/stylesheets/my_forum/admin/forums.css.scss +7 -0
  21. data/app/assets/stylesheets/my_forum/admin/roles.css +4 -0
  22. data/app/assets/stylesheets/my_forum/admin/users.css +4 -0
  23. data/app/assets/stylesheets/my_forum/application.css.scss +80 -0
  24. data/app/assets/stylesheets/my_forum/forums.css.scss +31 -0
  25. data/app/assets/stylesheets/my_forum/posts.css.scss +138 -0
  26. data/app/assets/stylesheets/my_forum/private_messages.css.scss +11 -0
  27. data/app/assets/stylesheets/my_forum/topics.css.scss +16 -0
  28. data/app/assets/stylesheets/my_forum/users.css.scss +3 -0
  29. data/app/assets/stylesheets/my_forum/welcome.css.scss +73 -0
  30. data/app/controllers/my_forum/admin/categories_controller.rb +36 -0
  31. data/app/controllers/my_forum/admin/dashboard_controller.rb +13 -0
  32. data/app/controllers/my_forum/admin/emoticons_controller.rb +65 -0
  33. data/app/controllers/my_forum/admin/forums_controller.rb +35 -0
  34. data/app/controllers/my_forum/admin/mail_controller.rb +31 -0
  35. data/app/controllers/my_forum/admin/roles_controller.rb +38 -0
  36. data/app/controllers/my_forum/admin/users_controller.rb +14 -0
  37. data/app/controllers/my_forum/application_controller.rb +81 -0
  38. data/app/controllers/my_forum/attachments_controller.rb +30 -0
  39. data/app/controllers/my_forum/forums_controller.rb +39 -0
  40. data/app/controllers/my_forum/images_controller.rb +7 -0
  41. data/app/controllers/my_forum/posts_controller.rb +96 -0
  42. data/app/controllers/my_forum/private_messages_controller.rb +73 -0
  43. data/app/controllers/my_forum/topics_controller.rb +96 -0
  44. data/app/controllers/my_forum/users_controller.rb +145 -0
  45. data/app/controllers/my_forum/welcome_controller.rb +30 -0
  46. data/app/helpers/my_forum/admin/dashboard_helper.rb +4 -0
  47. data/app/helpers/my_forum/admin/forums_helper.rb +4 -0
  48. data/app/helpers/my_forum/admin/roles_helper.rb +4 -0
  49. data/app/helpers/my_forum/admin/users_helper.rb +4 -0
  50. data/app/helpers/my_forum/application_helper.rb +43 -0
  51. data/app/helpers/my_forum/emoticons_helper.rb +7 -0
  52. data/app/helpers/my_forum/forums_helper.rb +44 -0
  53. data/app/helpers/my_forum/posts_helper.rb +76 -0
  54. data/app/helpers/my_forum/private_messages_helper.rb +25 -0
  55. data/app/helpers/my_forum/topics_helper.rb +18 -0
  56. data/app/helpers/my_forum/users_helper.rb +33 -0
  57. data/app/helpers/my_forum/welcome_helper.rb +4 -0
  58. data/app/mailers/application_mailer.rb +4 -0
  59. data/app/mailers/my_forum/user_mailer.rb +31 -0
  60. data/app/models/my_forum/attachment.rb +12 -0
  61. data/app/models/my_forum/avatar.rb +11 -0
  62. data/app/models/my_forum/category.rb +7 -0
  63. data/app/models/my_forum/category_permission.rb +6 -0
  64. data/app/models/my_forum/emoticon.rb +6 -0
  65. data/app/models/my_forum/forum.rb +50 -0
  66. data/app/models/my_forum/image.rb +5 -0
  67. data/app/models/my_forum/log_read_mark.rb +4 -0
  68. data/app/models/my_forum/post.rb +26 -0
  69. data/app/models/my_forum/private_message.rb +8 -0
  70. data/app/models/my_forum/role.rb +6 -0
  71. data/app/models/my_forum/topic.rb +41 -0
  72. data/app/models/my_forum/user.rb +71 -0
  73. data/app/models/my_forum/user_group.rb +13 -0
  74. data/app/models/my_forum/user_group_link.rb +6 -0
  75. data/app/models/my_forum/user_roles.rb +6 -0
  76. data/app/views/layouts/mailer.html.erb +5 -0
  77. data/app/views/layouts/mailer.text.erb +1 -0
  78. data/app/views/layouts/my_forum/_guest_navbar.html.haml +4 -0
  79. data/app/views/layouts/my_forum/_user_navbar.html.haml +19 -0
  80. data/app/views/layouts/my_forum/admin_application.haml +29 -0
  81. data/app/views/layouts/my_forum/application.haml +23 -0
  82. data/app/views/my_forum/admin/categories/edit.haml +9 -0
  83. data/app/views/my_forum/admin/categories/new.haml +5 -0
  84. data/app/views/my_forum/admin/dashboard/index.haml +0 -0
  85. data/app/views/my_forum/admin/emoticons/edit.haml +4 -0
  86. data/app/views/my_forum/admin/emoticons/index.haml +15 -0
  87. data/app/views/my_forum/admin/emoticons/new.haml +5 -0
  88. data/app/views/my_forum/admin/forums/index.haml +47 -0
  89. data/app/views/my_forum/admin/forums/new.haml +6 -0
  90. data/app/views/my_forum/admin/mail/index.haml +9 -0
  91. data/app/views/my_forum/admin/roles/index.haml +12 -0
  92. data/app/views/my_forum/admin/roles/new.haml +22 -0
  93. data/app/views/my_forum/admin/users/index.haml +10 -0
  94. data/app/views/my_forum/forums/_topic_subject.html.haml +16 -0
  95. data/app/views/my_forum/forums/show.haml +29 -0
  96. data/app/views/my_forum/posts/edit.html.haml +31 -0
  97. data/app/views/my_forum/private_messages/_sidebar.haml +10 -0
  98. data/app/views/my_forum/private_messages/inbox.haml +26 -0
  99. data/app/views/my_forum/private_messages/new.haml +21 -0
  100. data/app/views/my_forum/private_messages/show.haml +10 -0
  101. data/app/views/my_forum/shared/_post_preview.haml +15 -0
  102. data/app/views/my_forum/shared/_upload_photo.haml +45 -0
  103. data/app/views/my_forum/shared/post_preview.js.coffee +4 -0
  104. data/app/views/my_forum/topics/_post.haml +29 -0
  105. data/app/views/my_forum/topics/_profile_popover.haml +47 -0
  106. data/app/views/my_forum/topics/_quick_answer.haml +34 -0
  107. data/app/views/my_forum/topics/_topic_header.haml +4 -0
  108. data/app/views/my_forum/topics/_user_info.haml +9 -0
  109. data/app/views/my_forum/topics/new.haml +38 -0
  110. data/app/views/my_forum/topics/show.haml +60 -0
  111. data/app/views/my_forum/user_mailer/custom_email.text.erb +1 -0
  112. data/app/views/my_forum/user_mailer/ping_from_post.haml +8 -0
  113. data/app/views/my_forum/user_mailer/ping_from_post.text.erb +6 -0
  114. data/app/views/my_forum/user_mailer/pm_notification.text.erb +6 -0
  115. data/app/views/my_forum/user_mailer/reset_password_email.haml +1 -0
  116. data/app/views/my_forum/user_mailer/reset_password_email.text.erb +1 -0
  117. data/app/views/my_forum/users/edit.haml +36 -0
  118. data/app/views/my_forum/users/forgot_password.haml +10 -0
  119. data/app/views/my_forum/users/new.haml +14 -0
  120. data/app/views/my_forum/users/signin.haml +14 -0
  121. data/app/views/my_forum/users/signout.haml +0 -0
  122. data/app/views/my_forum/welcome/index.haml +37 -0
  123. data/config/initializers/will_paginate.rb +24 -0
  124. data/config/locales/en.yml +68 -0
  125. data/config/locales/ru.yml +198 -0
  126. data/config/routes.rb +48 -0
  127. data/db/migrate/20141117122725_create_my_forum_forums.rb +12 -0
  128. data/db/migrate/20141117122742_create_my_forum_topics.rb +17 -0
  129. data/db/migrate/20141117122751_create_my_forum_posts.rb +11 -0
  130. data/db/migrate/20141118081021_create_my_forum_categories.rb +8 -0
  131. data/db/migrate/20141118131215_create_my_forum_users.rb +34 -0
  132. data/db/migrate/20141222094522_create_my_forum_roles.rb +10 -0
  133. data/db/migrate/20141222094538_create_my_forum_user_roles.rb +9 -0
  134. data/db/migrate/20150202115250_create_my_forum_log_read_marks.rb +10 -0
  135. data/db/migrate/20150215200453_create_my_forum_user_groups.rb +15 -0
  136. data/db/migrate/20150215204852_create_my_forum_user_group_links.rb +9 -0
  137. data/db/migrate/20150215212443_create_my_forum_category_permissions.rb +9 -0
  138. data/db/migrate/20150227210814_create_my_forum_private_messages.rb +16 -0
  139. data/db/migrate/20151012095554_create_my_forum_images.rb +12 -0
  140. data/db/migrate/20151218135729_add_is_deleted.rb +6 -0
  141. data/db/migrate/20151220121140_create_my_forum_emoticons.rb +10 -0
  142. data/db/migrate/20151221203243_my_forum_rename_user_avatar.rb +5 -0
  143. data/db/migrate/20151221205045_my_forum_change_user_avatar.rb +5 -0
  144. data/db/migrate/20160122202142_add_latest_post_info_for_topic.rb +24 -0
  145. data/db/migrate/20160210130805_add_indexes_for_topics.rb +7 -0
  146. data/db/migrate/20160214085201_add_edited_by_for_post.rb +5 -0
  147. data/lib/my_forum/engine.rb +31 -0
  148. data/lib/my_forum/version.rb +1 -1
  149. data/lib/tasks/my_forum_tasks.rake +155 -4
  150. data/spec/controllers/my_forum/admin/emoticons_controller_spec.rb +7 -0
  151. data/spec/controllers/my_forum/admin/mail_controller_spec.rb +7 -0
  152. data/spec/controllers/my_forum/private_messages_controller_spec.rb +7 -0
  153. data/spec/controllers/my_forum/users_controller_spec.rb +76 -0
  154. data/{test → spec}/dummy/README.rdoc +0 -0
  155. data/{test → spec}/dummy/Rakefile +0 -0
  156. data/{test → spec}/dummy/app/assets/javascripts/application.js +1 -1
  157. data/{app/assets/stylesheets/my_forum → spec/dummy/app/assets/stylesheets}/application.css +1 -1
  158. data/{test → spec}/dummy/app/controllers/application_controller.rb +0 -0
  159. data/{test → spec}/dummy/app/helpers/application_helper.rb +0 -0
  160. data/{test → spec}/dummy/app/views/layouts/application.html.erb +0 -0
  161. data/{test → spec}/dummy/bin/bundle +0 -0
  162. data/{test → spec}/dummy/bin/rails +0 -0
  163. data/{test → spec}/dummy/bin/rake +0 -0
  164. data/{test → spec}/dummy/config/application.rb +0 -0
  165. data/{test → spec}/dummy/config/boot.rb +0 -0
  166. data/{test → spec}/dummy/config/database.yml +0 -0
  167. data/{test → spec}/dummy/config/environment.rb +0 -0
  168. data/{test → spec}/dummy/config/environments/development.rb +0 -0
  169. data/{test → spec}/dummy/config/environments/production.rb +1 -1
  170. data/{test → spec}/dummy/config/environments/test.rb +1 -1
  171. data/{test → spec}/dummy/config/initializers/assets.rb +0 -0
  172. data/{test → spec}/dummy/config/initializers/backtrace_silencers.rb +0 -0
  173. data/{test → spec}/dummy/config/initializers/cookies_serializer.rb +0 -0
  174. data/{test → spec}/dummy/config/initializers/filter_parameter_logging.rb +0 -0
  175. data/{test → spec}/dummy/config/initializers/inflections.rb +0 -0
  176. data/{test → spec}/dummy/config/initializers/mime_types.rb +0 -0
  177. data/{test → spec}/dummy/config/initializers/session_store.rb +0 -0
  178. data/{test → spec}/dummy/config/initializers/wrap_parameters.rb +0 -0
  179. data/{test → spec}/dummy/config/locales/en.yml +0 -0
  180. data/{test → spec}/dummy/config/routes.rb +0 -0
  181. data/{test → spec}/dummy/config/secrets.yml +0 -0
  182. data/{test → spec}/dummy/config.ru +0 -0
  183. data/spec/dummy/db/development.sqlite3 +0 -0
  184. data/spec/dummy/db/schema.rb +159 -0
  185. data/spec/dummy/db/test.sqlite3 +0 -0
  186. data/spec/dummy/log/development.log +12 -0
  187. data/{test → spec}/dummy/public/404.html +0 -0
  188. data/{test → spec}/dummy/public/422.html +0 -0
  189. data/{test → spec}/dummy/public/500.html +0 -0
  190. data/spec/dummy/public/favicon.ico +0 -0
  191. data/spec/helpers/my_forum/posts_helper_spec.rb +24 -0
  192. data/spec/helpers/my_forum/private_messages_helper_spec.rb +17 -0
  193. data/spec/models/my_forum/emoticon_spec.rb +7 -0
  194. data/spec/models/my_forum/private_message_spec.rb +7 -0
  195. data/spec/models/my_forum/user_spec.rb +13 -0
  196. data/spec/rails_helper.rb +52 -0
  197. data/spec/spec_helper.rb +87 -0
  198. metadata +356 -83
  199. data/app/views/layouts/my_forum/application.html.erb +0 -14
  200. data/test/dummy/app/assets/stylesheets/application.css +0 -15
  201. data/test/integration/navigation_test.rb +0 -10
  202. data/test/my_forum_test.rb +0 -7
  203. data/test/test_helper.rb +0 -15
@@ -0,0 +1,52 @@
1
+ # This file is copied to spec/ when you run 'rails generate rspec:install'
2
+ ENV['RAILS_ENV'] ||= 'test'
3
+ require 'spec_helper'
4
+ #require 'my_forum/engine'
5
+ #require File.expand_path('../../config/environment', __FILE__)
6
+ require File.expand_path("../dummy/config/environment.rb", __FILE__)
7
+ require 'rspec/rails'
8
+ # Add additional requires below this line. Rails is not loaded until this point!
9
+
10
+ # Requires supporting ruby files with custom matchers and macros, etc, in
11
+ # spec/support/ and its subdirectories. Files matching `spec/**/*_spec.rb` are
12
+ # run as spec files by default. This means that files in spec/support that end
13
+ # in _spec.rb will both be required and run as specs, causing the specs to be
14
+ # run twice. It is recommended that you do not name files matching this glob to
15
+ # end with _spec.rb. You can configure this pattern with the --pattern
16
+ # option on the command line or in ~/.rspec, .rspec or `.rspec-local`.
17
+ #
18
+ # The following line is provided for convenience purposes. It has the downside
19
+ # of increasing the boot-up time by auto-requiring all files in the support
20
+ # directory. Alternatively, in the individual `*_spec.rb` files, manually
21
+ # require only the support files necessary.
22
+ #
23
+ # Dir[Rails.root.join('spec/support/**/*.rb')].each { |f| require f }
24
+
25
+ # Checks for pending migrations before tests are run.
26
+ # If you are not using ActiveRecord, you can remove this line.
27
+ ActiveRecord::Migration.maintain_test_schema!
28
+
29
+ RSpec.configure do |config|
30
+ # Remove this line if you're not using ActiveRecord or ActiveRecord fixtures
31
+ config.fixture_path = "#{::Rails.root}/spec/fixtures"
32
+
33
+ # If you're not using ActiveRecord, or you'd prefer not to run each of your
34
+ # examples within a transaction, remove the following line or assign false
35
+ # instead of true.
36
+ config.use_transactional_fixtures = true
37
+
38
+ # RSpec Rails can automatically mix in different behaviours to your tests
39
+ # based on their file location, for example enabling you to call `get` and
40
+ # `post` in specs under `spec/controllers`.
41
+ #
42
+ # You can disable this behaviour by removing the line below, and instead
43
+ # explicitly tag your specs with their type, e.g.:
44
+ #
45
+ # RSpec.describe UsersController, :type => :controller do
46
+ # # ...
47
+ # end
48
+ #
49
+ # The different available types are documented in the features, such as in
50
+ # https://relishapp.com/rspec/rspec-rails/docs
51
+ config.infer_spec_type_from_file_location!
52
+ end
@@ -0,0 +1,87 @@
1
+ # This file was generated by the `rails generate rspec:install` command. Conventionally, all
2
+ # specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
3
+ # The generated `.rspec` file contains `--require spec_helper` which will cause
4
+ # this file to always be loaded, without a need to explicitly require it in any
5
+ # files.
6
+ #
7
+ # Given that it is always loaded, you are encouraged to keep this file as
8
+ # light-weight as possible. Requiring heavyweight dependencies from this file
9
+ # will add to the boot time of your test suite on EVERY test run, even for an
10
+ # individual file that may not need all of that loaded. Instead, consider making
11
+ # a separate helper file that requires the additional dependencies and performs
12
+ # the additional setup, and require it from the spec files that actually need
13
+ # it.
14
+ #
15
+ # The `.rspec` file also contains a few flags that are not defaults but that
16
+ # users commonly want.
17
+ #
18
+ # See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
19
+ RSpec.configure do |config|
20
+ # rspec-expectations config goes here. You can use an alternate
21
+ # assertion/expectation library such as wrong or the stdlib/minitest
22
+ # assertions if you prefer.
23
+ config.expect_with :rspec do |expectations|
24
+ # This option will default to `true` in RSpec 4. It makes the `description`
25
+ # and `failure_message` of custom matchers include text for helper methods
26
+ # defined using `chain`, e.g.:
27
+ # be_bigger_than(2).and_smaller_than(4).description
28
+ # # => "be bigger than 2 and smaller than 4"
29
+ # ...rather than:
30
+ # # => "be bigger than 2"
31
+ expectations.include_chain_clauses_in_custom_matcher_descriptions = true
32
+ end
33
+
34
+ # rspec-mocks config goes here. You can use an alternate test double
35
+ # library (such as bogus or mocha) by changing the `mock_with` option here.
36
+ config.mock_with :rspec do |mocks|
37
+ # Prevents you from mocking or stubbing a method that does not exist on
38
+ # a real object. This is generally recommended, and will default to
39
+ # `true` in RSpec 4.
40
+ mocks.verify_partial_doubles = true
41
+ end
42
+
43
+ # The settings below are suggested to provide a good initial experience
44
+ # with RSpec, but feel free to customize to your heart's content.
45
+ =begin
46
+ # These two settings work together to allow you to limit a spec run
47
+ # to individual examples or groups you care about by tagging them with
48
+ # `:focus` metadata. When nothing is tagged with `:focus`, all examples
49
+ # get run.
50
+ config.filter_run :focus
51
+ config.run_all_when_everything_filtered = true
52
+
53
+ # Limits the available syntax to the non-monkey patched syntax that is
54
+ # recommended. For more details, see:
55
+ # - http://myronmars.to/n/dev-blog/2012/06/rspecs-new-expectation-syntax
56
+ # - http://teaisaweso.me/blog/2013/05/27/rspecs-new-message-expectation-syntax/
57
+ # - http://myronmars.to/n/dev-blog/2014/05/notable-changes-in-rspec-3#new__config_option_to_disable_rspeccore_monkey_patching
58
+ config.disable_monkey_patching!
59
+
60
+ # Many RSpec users commonly either run the entire suite or an individual
61
+ # file, and it's useful to allow more verbose output when running an
62
+ # individual spec file.
63
+ if config.files_to_run.one?
64
+ # Use the documentation formatter for detailed output,
65
+ # unless a formatter has already been configured
66
+ # (e.g. via a command-line flag).
67
+ config.default_formatter = 'doc'
68
+ end
69
+
70
+ # Print the 10 slowest examples and example groups at the
71
+ # end of the spec run, to help surface which specs are running
72
+ # particularly slow.
73
+ config.profile_examples = 10
74
+
75
+ # Run specs in random order to surface order dependencies. If you find an
76
+ # order dependency and want to debug it, you can fix the order by providing
77
+ # the seed, which is printed after each run.
78
+ # --seed 1234
79
+ config.order = :random
80
+
81
+ # Seed global randomization in this process using the `--seed` CLI option.
82
+ # Setting this allows you to use `--seed` to deterministically reproduce
83
+ # test failures related to randomization by passing the same `--seed` value
84
+ # as the one that triggered the failure.
85
+ Kernel.srand config.seed
86
+ =end
87
+ end
metadata CHANGED
@@ -1,29 +1,141 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: my_forum
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vitaly Omelchenko
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-11-17 00:00:00.000000000 Z
11
+ date: 2016-02-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 4.1.7
19
+ version: 4.2.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ~>
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 4.1.7
26
+ version: 4.2.0
27
+ - !ruby/object:Gem::Dependency
28
+ name: haml
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: coffee-rails
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: sass-rails
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: bootstrap-sass
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: jquery-rails
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :runtime
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: will_paginate
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: 3.0.6
104
+ type: :runtime
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "~>"
109
+ - !ruby/object:Gem::Version
110
+ version: 3.0.6
111
+ - !ruby/object:Gem::Dependency
112
+ name: font-awesome-sass
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :runtime
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
125
+ - !ruby/object:Gem::Dependency
126
+ name: sqlite3
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ">="
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
132
+ type: :runtime
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - ">="
137
+ - !ruby/object:Gem::Version
138
+ version: '0'
27
139
  description: Simple forum engine.
28
140
  email:
29
141
  - prosto.vint@gmail.com
@@ -34,52 +146,201 @@ files:
34
146
  - MIT-LICENSE
35
147
  - README.rdoc
36
148
  - Rakefile
149
+ - app/assets/javascripts/my_forum/admin/categories.js.coffee
150
+ - app/assets/javascripts/my_forum/admin/dashboard.js.coffee
151
+ - app/assets/javascripts/my_forum/admin/forums.js.coffee
152
+ - app/assets/javascripts/my_forum/admin/roles.js
153
+ - app/assets/javascripts/my_forum/admin/users.js
37
154
  - app/assets/javascripts/my_forum/application.js
38
- - app/assets/stylesheets/my_forum/application.css
155
+ - app/assets/javascripts/my_forum/forums.js.coffee
156
+ - app/assets/javascripts/my_forum/jquery.scrollTo.min.js
157
+ - app/assets/javascripts/my_forum/jquery.selection.js
158
+ - app/assets/javascripts/my_forum/my_forum.js.coffee
159
+ - app/assets/javascripts/my_forum/posts.js.coffee
160
+ - app/assets/javascripts/my_forum/topics.js.coffee
161
+ - app/assets/javascripts/my_forum/users.js.coffee
162
+ - app/assets/javascripts/my_forum/welcome.js.coffee
163
+ - app/assets/stylesheets/my_forum/admin/categories.css.scss
164
+ - app/assets/stylesheets/my_forum/admin/dashboard.css.scss
165
+ - app/assets/stylesheets/my_forum/admin/forums.css.scss
166
+ - app/assets/stylesheets/my_forum/admin/roles.css
167
+ - app/assets/stylesheets/my_forum/admin/users.css
168
+ - app/assets/stylesheets/my_forum/application.css.scss
169
+ - app/assets/stylesheets/my_forum/forums.css.scss
170
+ - app/assets/stylesheets/my_forum/posts.css.scss
171
+ - app/assets/stylesheets/my_forum/private_messages.css.scss
172
+ - app/assets/stylesheets/my_forum/topics.css.scss
173
+ - app/assets/stylesheets/my_forum/users.css.scss
174
+ - app/assets/stylesheets/my_forum/welcome.css.scss
175
+ - app/controllers/my_forum/admin/categories_controller.rb
176
+ - app/controllers/my_forum/admin/dashboard_controller.rb
177
+ - app/controllers/my_forum/admin/emoticons_controller.rb
178
+ - app/controllers/my_forum/admin/forums_controller.rb
179
+ - app/controllers/my_forum/admin/mail_controller.rb
180
+ - app/controllers/my_forum/admin/roles_controller.rb
181
+ - app/controllers/my_forum/admin/users_controller.rb
39
182
  - app/controllers/my_forum/application_controller.rb
183
+ - app/controllers/my_forum/attachments_controller.rb
184
+ - app/controllers/my_forum/forums_controller.rb
185
+ - app/controllers/my_forum/images_controller.rb
186
+ - app/controllers/my_forum/posts_controller.rb
187
+ - app/controllers/my_forum/private_messages_controller.rb
188
+ - app/controllers/my_forum/topics_controller.rb
189
+ - app/controllers/my_forum/users_controller.rb
190
+ - app/controllers/my_forum/welcome_controller.rb
191
+ - app/helpers/my_forum/admin/dashboard_helper.rb
192
+ - app/helpers/my_forum/admin/forums_helper.rb
193
+ - app/helpers/my_forum/admin/roles_helper.rb
194
+ - app/helpers/my_forum/admin/users_helper.rb
40
195
  - app/helpers/my_forum/application_helper.rb
41
- - app/views/layouts/my_forum/application.html.erb
196
+ - app/helpers/my_forum/emoticons_helper.rb
197
+ - app/helpers/my_forum/forums_helper.rb
198
+ - app/helpers/my_forum/posts_helper.rb
199
+ - app/helpers/my_forum/private_messages_helper.rb
200
+ - app/helpers/my_forum/topics_helper.rb
201
+ - app/helpers/my_forum/users_helper.rb
202
+ - app/helpers/my_forum/welcome_helper.rb
203
+ - app/mailers/application_mailer.rb
204
+ - app/mailers/my_forum/user_mailer.rb
205
+ - app/models/my_forum/attachment.rb
206
+ - app/models/my_forum/avatar.rb
207
+ - app/models/my_forum/category.rb
208
+ - app/models/my_forum/category_permission.rb
209
+ - app/models/my_forum/emoticon.rb
210
+ - app/models/my_forum/forum.rb
211
+ - app/models/my_forum/image.rb
212
+ - app/models/my_forum/log_read_mark.rb
213
+ - app/models/my_forum/post.rb
214
+ - app/models/my_forum/private_message.rb
215
+ - app/models/my_forum/role.rb
216
+ - app/models/my_forum/topic.rb
217
+ - app/models/my_forum/user.rb
218
+ - app/models/my_forum/user_group.rb
219
+ - app/models/my_forum/user_group_link.rb
220
+ - app/models/my_forum/user_roles.rb
221
+ - app/views/layouts/mailer.html.erb
222
+ - app/views/layouts/mailer.text.erb
223
+ - app/views/layouts/my_forum/_guest_navbar.html.haml
224
+ - app/views/layouts/my_forum/_user_navbar.html.haml
225
+ - app/views/layouts/my_forum/admin_application.haml
226
+ - app/views/layouts/my_forum/application.haml
227
+ - app/views/my_forum/admin/categories/edit.haml
228
+ - app/views/my_forum/admin/categories/new.haml
229
+ - app/views/my_forum/admin/dashboard/index.haml
230
+ - app/views/my_forum/admin/emoticons/edit.haml
231
+ - app/views/my_forum/admin/emoticons/index.haml
232
+ - app/views/my_forum/admin/emoticons/new.haml
233
+ - app/views/my_forum/admin/forums/index.haml
234
+ - app/views/my_forum/admin/forums/new.haml
235
+ - app/views/my_forum/admin/mail/index.haml
236
+ - app/views/my_forum/admin/roles/index.haml
237
+ - app/views/my_forum/admin/roles/new.haml
238
+ - app/views/my_forum/admin/users/index.haml
239
+ - app/views/my_forum/forums/_topic_subject.html.haml
240
+ - app/views/my_forum/forums/show.haml
241
+ - app/views/my_forum/posts/edit.html.haml
242
+ - app/views/my_forum/private_messages/_sidebar.haml
243
+ - app/views/my_forum/private_messages/inbox.haml
244
+ - app/views/my_forum/private_messages/new.haml
245
+ - app/views/my_forum/private_messages/show.haml
246
+ - app/views/my_forum/shared/_post_preview.haml
247
+ - app/views/my_forum/shared/_upload_photo.haml
248
+ - app/views/my_forum/shared/post_preview.js.coffee
249
+ - app/views/my_forum/topics/_post.haml
250
+ - app/views/my_forum/topics/_profile_popover.haml
251
+ - app/views/my_forum/topics/_quick_answer.haml
252
+ - app/views/my_forum/topics/_topic_header.haml
253
+ - app/views/my_forum/topics/_user_info.haml
254
+ - app/views/my_forum/topics/new.haml
255
+ - app/views/my_forum/topics/show.haml
256
+ - app/views/my_forum/user_mailer/custom_email.text.erb
257
+ - app/views/my_forum/user_mailer/ping_from_post.haml
258
+ - app/views/my_forum/user_mailer/ping_from_post.text.erb
259
+ - app/views/my_forum/user_mailer/pm_notification.text.erb
260
+ - app/views/my_forum/user_mailer/reset_password_email.haml
261
+ - app/views/my_forum/user_mailer/reset_password_email.text.erb
262
+ - app/views/my_forum/users/edit.haml
263
+ - app/views/my_forum/users/forgot_password.haml
264
+ - app/views/my_forum/users/new.haml
265
+ - app/views/my_forum/users/signin.haml
266
+ - app/views/my_forum/users/signout.haml
267
+ - app/views/my_forum/welcome/index.haml
268
+ - config/initializers/will_paginate.rb
269
+ - config/locales/en.yml
270
+ - config/locales/ru.yml
42
271
  - config/routes.rb
272
+ - db/migrate/20141117122725_create_my_forum_forums.rb
273
+ - db/migrate/20141117122742_create_my_forum_topics.rb
274
+ - db/migrate/20141117122751_create_my_forum_posts.rb
275
+ - db/migrate/20141118081021_create_my_forum_categories.rb
276
+ - db/migrate/20141118131215_create_my_forum_users.rb
277
+ - db/migrate/20141222094522_create_my_forum_roles.rb
278
+ - db/migrate/20141222094538_create_my_forum_user_roles.rb
279
+ - db/migrate/20150202115250_create_my_forum_log_read_marks.rb
280
+ - db/migrate/20150215200453_create_my_forum_user_groups.rb
281
+ - db/migrate/20150215204852_create_my_forum_user_group_links.rb
282
+ - db/migrate/20150215212443_create_my_forum_category_permissions.rb
283
+ - db/migrate/20150227210814_create_my_forum_private_messages.rb
284
+ - db/migrate/20151012095554_create_my_forum_images.rb
285
+ - db/migrate/20151218135729_add_is_deleted.rb
286
+ - db/migrate/20151220121140_create_my_forum_emoticons.rb
287
+ - db/migrate/20151221203243_my_forum_rename_user_avatar.rb
288
+ - db/migrate/20151221205045_my_forum_change_user_avatar.rb
289
+ - db/migrate/20160122202142_add_latest_post_info_for_topic.rb
290
+ - db/migrate/20160210130805_add_indexes_for_topics.rb
291
+ - db/migrate/20160214085201_add_edited_by_for_post.rb
43
292
  - lib/my_forum.rb
44
293
  - lib/my_forum/engine.rb
45
294
  - lib/my_forum/version.rb
46
295
  - lib/tasks/my_forum_tasks.rake
47
- - test/dummy/README.rdoc
48
- - test/dummy/Rakefile
49
- - test/dummy/app/assets/javascripts/application.js
50
- - test/dummy/app/assets/stylesheets/application.css
51
- - test/dummy/app/controllers/application_controller.rb
52
- - test/dummy/app/helpers/application_helper.rb
53
- - test/dummy/app/views/layouts/application.html.erb
54
- - test/dummy/bin/bundle
55
- - test/dummy/bin/rails
56
- - test/dummy/bin/rake
57
- - test/dummy/config.ru
58
- - test/dummy/config/application.rb
59
- - test/dummy/config/boot.rb
60
- - test/dummy/config/database.yml
61
- - test/dummy/config/environment.rb
62
- - test/dummy/config/environments/development.rb
63
- - test/dummy/config/environments/production.rb
64
- - test/dummy/config/environments/test.rb
65
- - test/dummy/config/initializers/assets.rb
66
- - test/dummy/config/initializers/backtrace_silencers.rb
67
- - test/dummy/config/initializers/cookies_serializer.rb
68
- - test/dummy/config/initializers/filter_parameter_logging.rb
69
- - test/dummy/config/initializers/inflections.rb
70
- - test/dummy/config/initializers/mime_types.rb
71
- - test/dummy/config/initializers/session_store.rb
72
- - test/dummy/config/initializers/wrap_parameters.rb
73
- - test/dummy/config/locales/en.yml
74
- - test/dummy/config/routes.rb
75
- - test/dummy/config/secrets.yml
76
- - test/dummy/public/404.html
77
- - test/dummy/public/422.html
78
- - test/dummy/public/500.html
79
- - test/dummy/public/favicon.ico
80
- - test/integration/navigation_test.rb
81
- - test/my_forum_test.rb
82
- - test/test_helper.rb
296
+ - spec/controllers/my_forum/admin/emoticons_controller_spec.rb
297
+ - spec/controllers/my_forum/admin/mail_controller_spec.rb
298
+ - spec/controllers/my_forum/private_messages_controller_spec.rb
299
+ - spec/controllers/my_forum/users_controller_spec.rb
300
+ - spec/dummy/README.rdoc
301
+ - spec/dummy/Rakefile
302
+ - spec/dummy/app/assets/javascripts/application.js
303
+ - spec/dummy/app/assets/stylesheets/application.css
304
+ - spec/dummy/app/controllers/application_controller.rb
305
+ - spec/dummy/app/helpers/application_helper.rb
306
+ - spec/dummy/app/views/layouts/application.html.erb
307
+ - spec/dummy/bin/bundle
308
+ - spec/dummy/bin/rails
309
+ - spec/dummy/bin/rake
310
+ - spec/dummy/config.ru
311
+ - spec/dummy/config/application.rb
312
+ - spec/dummy/config/boot.rb
313
+ - spec/dummy/config/database.yml
314
+ - spec/dummy/config/environment.rb
315
+ - spec/dummy/config/environments/development.rb
316
+ - spec/dummy/config/environments/production.rb
317
+ - spec/dummy/config/environments/test.rb
318
+ - spec/dummy/config/initializers/assets.rb
319
+ - spec/dummy/config/initializers/backtrace_silencers.rb
320
+ - spec/dummy/config/initializers/cookies_serializer.rb
321
+ - spec/dummy/config/initializers/filter_parameter_logging.rb
322
+ - spec/dummy/config/initializers/inflections.rb
323
+ - spec/dummy/config/initializers/mime_types.rb
324
+ - spec/dummy/config/initializers/session_store.rb
325
+ - spec/dummy/config/initializers/wrap_parameters.rb
326
+ - spec/dummy/config/locales/en.yml
327
+ - spec/dummy/config/routes.rb
328
+ - spec/dummy/config/secrets.yml
329
+ - spec/dummy/db/development.sqlite3
330
+ - spec/dummy/db/schema.rb
331
+ - spec/dummy/db/test.sqlite3
332
+ - spec/dummy/log/development.log
333
+ - spec/dummy/public/404.html
334
+ - spec/dummy/public/422.html
335
+ - spec/dummy/public/500.html
336
+ - spec/dummy/public/favicon.ico
337
+ - spec/helpers/my_forum/posts_helper_spec.rb
338
+ - spec/helpers/my_forum/private_messages_helper_spec.rb
339
+ - spec/models/my_forum/emoticon_spec.rb
340
+ - spec/models/my_forum/private_message_spec.rb
341
+ - spec/models/my_forum/user_spec.rb
342
+ - spec/rails_helper.rb
343
+ - spec/spec_helper.rb
83
344
  homepage: https://github.com/vintyara/my_forum
84
345
  licenses:
85
346
  - MIT
@@ -90,54 +351,66 @@ require_paths:
90
351
  - lib
91
352
  required_ruby_version: !ruby/object:Gem::Requirement
92
353
  requirements:
93
- - - '>='
354
+ - - ">="
94
355
  - !ruby/object:Gem::Version
95
356
  version: '0'
96
357
  required_rubygems_version: !ruby/object:Gem::Requirement
97
358
  requirements:
98
- - - '>='
359
+ - - ">="
99
360
  - !ruby/object:Gem::Version
100
361
  version: '0'
101
362
  requirements: []
102
363
  rubyforge_project:
103
- rubygems_version: 2.2.2
364
+ rubygems_version: 2.4.6
104
365
  signing_key:
105
366
  specification_version: 4
106
367
  summary: Simple Forum
107
368
  test_files:
108
- - test/integration/navigation_test.rb
109
- - test/test_helper.rb
110
- - test/my_forum_test.rb
111
- - test/dummy/README.rdoc
112
- - test/dummy/config.ru
113
- - test/dummy/bin/rake
114
- - test/dummy/bin/bundle
115
- - test/dummy/bin/rails
116
- - test/dummy/config/secrets.yml
117
- - test/dummy/config/environments/production.rb
118
- - test/dummy/config/environments/test.rb
119
- - test/dummy/config/environments/development.rb
120
- - test/dummy/config/database.yml
121
- - test/dummy/config/application.rb
122
- - test/dummy/config/routes.rb
123
- - test/dummy/config/environment.rb
124
- - test/dummy/config/initializers/assets.rb
125
- - test/dummy/config/initializers/mime_types.rb
126
- - test/dummy/config/initializers/backtrace_silencers.rb
127
- - test/dummy/config/initializers/session_store.rb
128
- - test/dummy/config/initializers/inflections.rb
129
- - test/dummy/config/initializers/wrap_parameters.rb
130
- - test/dummy/config/initializers/cookies_serializer.rb
131
- - test/dummy/config/initializers/filter_parameter_logging.rb
132
- - test/dummy/config/boot.rb
133
- - test/dummy/config/locales/en.yml
134
- - test/dummy/public/422.html
135
- - test/dummy/public/500.html
136
- - test/dummy/public/404.html
137
- - test/dummy/public/favicon.ico
138
- - test/dummy/Rakefile
139
- - test/dummy/app/assets/stylesheets/application.css
140
- - test/dummy/app/assets/javascripts/application.js
141
- - test/dummy/app/helpers/application_helper.rb
142
- - test/dummy/app/controllers/application_controller.rb
143
- - test/dummy/app/views/layouts/application.html.erb
369
+ - spec/controllers/my_forum/admin/emoticons_controller_spec.rb
370
+ - spec/controllers/my_forum/admin/mail_controller_spec.rb
371
+ - spec/controllers/my_forum/private_messages_controller_spec.rb
372
+ - spec/controllers/my_forum/users_controller_spec.rb
373
+ - spec/dummy/app/assets/javascripts/application.js
374
+ - spec/dummy/app/assets/stylesheets/application.css
375
+ - spec/dummy/app/controllers/application_controller.rb
376
+ - spec/dummy/app/helpers/application_helper.rb
377
+ - spec/dummy/app/views/layouts/application.html.erb
378
+ - spec/dummy/bin/bundle
379
+ - spec/dummy/bin/rails
380
+ - spec/dummy/bin/rake
381
+ - spec/dummy/config/application.rb
382
+ - spec/dummy/config/boot.rb
383
+ - spec/dummy/config/database.yml
384
+ - spec/dummy/config/environment.rb
385
+ - spec/dummy/config/environments/development.rb
386
+ - spec/dummy/config/environments/production.rb
387
+ - spec/dummy/config/environments/test.rb
388
+ - spec/dummy/config/initializers/assets.rb
389
+ - spec/dummy/config/initializers/backtrace_silencers.rb
390
+ - spec/dummy/config/initializers/cookies_serializer.rb
391
+ - spec/dummy/config/initializers/filter_parameter_logging.rb
392
+ - spec/dummy/config/initializers/inflections.rb
393
+ - spec/dummy/config/initializers/mime_types.rb
394
+ - spec/dummy/config/initializers/session_store.rb
395
+ - spec/dummy/config/initializers/wrap_parameters.rb
396
+ - spec/dummy/config/locales/en.yml
397
+ - spec/dummy/config/routes.rb
398
+ - spec/dummy/config/secrets.yml
399
+ - spec/dummy/config.ru
400
+ - spec/dummy/db/development.sqlite3
401
+ - spec/dummy/db/schema.rb
402
+ - spec/dummy/db/test.sqlite3
403
+ - spec/dummy/log/development.log
404
+ - spec/dummy/public/404.html
405
+ - spec/dummy/public/422.html
406
+ - spec/dummy/public/500.html
407
+ - spec/dummy/public/favicon.ico
408
+ - spec/dummy/Rakefile
409
+ - spec/dummy/README.rdoc
410
+ - spec/helpers/my_forum/posts_helper_spec.rb
411
+ - spec/helpers/my_forum/private_messages_helper_spec.rb
412
+ - spec/models/my_forum/emoticon_spec.rb
413
+ - spec/models/my_forum/private_message_spec.rb
414
+ - spec/models/my_forum/user_spec.rb
415
+ - spec/rails_helper.rb
416
+ - spec/spec_helper.rb
@@ -1,14 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <title>MyForum</title>
5
- <%= stylesheet_link_tag "my_forum/application", media: "all" %>
6
- <%= javascript_include_tag "my_forum/application" %>
7
- <%= csrf_meta_tags %>
8
- </head>
9
- <body>
10
-
11
- <%= yield %>
12
-
13
- </body>
14
- </html>