blogue 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (53) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE +20 -0
  3. data/README.md +99 -0
  4. data/Rakefile +32 -0
  5. data/app/models/blogue/post.rb +105 -0
  6. data/lib/blogue/engine.rb +18 -0
  7. data/lib/blogue/version.rb +3 -0
  8. data/lib/blogue.rb +34 -0
  9. data/lib/kramdown/converter/blogue.rb +13 -0
  10. data/lib/tasks/blogue_tasks.rake +4 -0
  11. data/test/dummy/README.rdoc +28 -0
  12. data/test/dummy/Rakefile +6 -0
  13. data/test/dummy/app/controllers/application_controller.rb +5 -0
  14. data/test/dummy/app/controllers/posts_controller.rb +9 -0
  15. data/test/dummy/app/models/post.rb +2 -0
  16. data/test/dummy/app/views/layouts/application.html.erb +14 -0
  17. data/test/dummy/app/views/posts/show.html.erb +9 -0
  18. data/test/dummy/bin/bundle +3 -0
  19. data/test/dummy/bin/rails +4 -0
  20. data/test/dummy/bin/rake +4 -0
  21. data/test/dummy/config/application.rb +31 -0
  22. data/test/dummy/config/boot.rb +5 -0
  23. data/test/dummy/config/environment.rb +5 -0
  24. data/test/dummy/config/environments/development.rb +27 -0
  25. data/test/dummy/config/environments/production.rb +80 -0
  26. data/test/dummy/config/environments/test.rb +36 -0
  27. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  28. data/test/dummy/config/initializers/blogue.rb +1 -0
  29. data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  30. data/test/dummy/config/initializers/inflections.rb +16 -0
  31. data/test/dummy/config/initializers/mime_types.rb +5 -0
  32. data/test/dummy/config/initializers/secret_token.rb +12 -0
  33. data/test/dummy/config/initializers/session_store.rb +3 -0
  34. data/test/dummy/config/initializers/wrap_parameters.rb +9 -0
  35. data/test/dummy/config/locales/en.yml +23 -0
  36. data/test/dummy/config/routes.rb +5 -0
  37. data/test/dummy/config.ru +4 -0
  38. data/test/dummy/log/test.log +3728 -0
  39. data/test/dummy/public/404.html +58 -0
  40. data/test/dummy/public/422.html +58 -0
  41. data/test/dummy/public/500.html +57 -0
  42. data/test/dummy/public/favicon.ico +0 -0
  43. data/test/dummy/tmp/cache/assets/test/sprockets/88c7acce0f27ad4785c977981dcffdbd +0 -0
  44. data/test/dummy/tmp/cache/assets/test/sprockets/f59336706d1f8f55cfacfc5e139dfd9a +0 -0
  45. data/test/fixtures/posts/assets/dogue.jpg +0 -0
  46. data/test/fixtures/posts/code-block.md +7 -0
  47. data/test/fixtures/posts/header-title.md +9 -0
  48. data/test/fixtures/posts/meta.md +14 -0
  49. data/test/fixtures/posts/minimal-post.md +10 -0
  50. data/test/integration/configuration_test.rb +18 -0
  51. data/test/models/blogue/post_test.rb +51 -0
  52. data/test/test_helper.rb +10 -0
  53. metadata +192 -0
@@ -0,0 +1,5 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Add new mime types for use in respond_to blocks:
4
+ # Mime::Type.register "text/richtext", :rtf
5
+ # Mime::Type.register_alias "text/html", :iphone
@@ -0,0 +1,12 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Your secret key is used for verifying the integrity of signed cookies.
4
+ # If you change this key, all old signed cookies will become invalid!
5
+
6
+ # Make sure the secret is at least 30 characters and all random,
7
+ # no regular words or you'll be exposed to dictionary attacks.
8
+ # You can use `rake secret` to generate a secure secret key.
9
+
10
+ # Make sure your secret_key_base is kept private
11
+ # if you're sharing your code publicly.
12
+ Dummy::Application.config.secret_key_base = '38069852b15e7be37523dd89a76e573c00584e539bf1df99ebf2d892ca8f3181a8ca5541d6e33a54f9d663af624f147955525aedbd12e6d5a2b82221ef69f957'
@@ -0,0 +1,3 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ Dummy::Application.config.session_store :cookie_store, key: '_dummy_session'
@@ -0,0 +1,9 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # This file contains settings for ActionController::ParamsWrapper which
4
+ # is enabled by default.
5
+
6
+ # Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
7
+ ActiveSupport.on_load(:action_controller) do
8
+ wrap_parameters format: [:json] if respond_to?(:wrap_parameters)
9
+ end
@@ -0,0 +1,23 @@
1
+ # Files in the config/locales directory are used for internationalization
2
+ # and are automatically loaded by Rails. If you want to use locales other
3
+ # than English, add the necessary files in this directory.
4
+ #
5
+ # To use the locales, use `I18n.t`:
6
+ #
7
+ # I18n.t 'hello'
8
+ #
9
+ # In views, this is aliased to just `t`:
10
+ #
11
+ # <%= t('hello') %>
12
+ #
13
+ # To use a different locale, set it with `I18n.locale`:
14
+ #
15
+ # I18n.locale = :es
16
+ #
17
+ # This would use the information in config/locales/es.yml.
18
+ #
19
+ # To learn more, please read the Rails Internationalization guide
20
+ # available at http://guides.rubyonrails.org/i18n.html.
21
+
22
+ en:
23
+ hello: "Hello world"
@@ -0,0 +1,5 @@
1
+ Dummy::Application.routes.draw do
2
+ root to: 'posts#index'
3
+
4
+ Post.all.each { |post| get "/#{post.id}", to: 'posts#show', id: post.id }
5
+ end
@@ -0,0 +1,4 @@
1
+ # This file is used by Rack-based servers to start the application.
2
+
3
+ require ::File.expand_path('../config/environment', __FILE__)
4
+ run Rails.application