form_create 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (84) hide show
  1. checksums.yaml +4 -4
  2. data/MIT-LICENSE +1 -1
  3. data/README.md +28 -0
  4. data/Rakefile +5 -7
  5. data/app/assets/config/example_manifest.js +2 -0
  6. data/{test/dummy/app/assets/javascripts → app/assets/javascripts/example}/application.js +5 -3
  7. data/app/assets/javascripts/{form_create → example}/posts.js +0 -0
  8. data/{test/dummy/app/assets/stylesheets → app/assets/stylesheets/example}/application.css +4 -4
  9. data/app/assets/stylesheets/{form_create → example}/posts.css +0 -0
  10. data/app/controllers/{form_create → example}/application_controller.rb +2 -1
  11. data/app/controllers/{form_create → example}/posts_controller.rb +5 -6
  12. data/app/helpers/{form_create → example}/application_helper.rb +1 -1
  13. data/app/helpers/{form_create → example}/posts_helper.rb +1 -1
  14. data/app/jobs/example/application_job.rb +4 -0
  15. data/app/mailers/example/application_mailer.rb +6 -0
  16. data/app/models/example/application_record.rb +5 -0
  17. data/app/models/example/post.rb +4 -0
  18. data/app/views/example/posts/create.html.erb +2 -0
  19. data/app/views/example/posts/destroy.html.erb +2 -0
  20. data/app/views/{form_create/posts/update.html.erb → example/posts/edit.html.erb} +1 -1
  21. data/app/views/example/posts/index.html.erb +30 -0
  22. data/app/views/{form_create → example}/posts/new.html.erb +1 -1
  23. data/app/views/example/posts/show.html.erb +2 -0
  24. data/app/views/example/posts/update.html.erb +2 -0
  25. data/app/views/layouts/example/application.html.erb +16 -0
  26. data/config/routes.rb +2 -2
  27. data/db/migrate/{20191011114453_create_form_create_posts.rb → 20191012052014_create_example_posts.rb} +1 -1
  28. data/lib/example/engine.rb +5 -0
  29. data/lib/example/version.rb +3 -0
  30. data/lib/example.rb +5 -0
  31. data/lib/tasks/{form_create_tasks.rake → example_tasks.rake} +1 -1
  32. metadata +36 -114
  33. data/README.rdoc +0 -3
  34. data/app/assets/javascripts/form_create/application.js +0 -13
  35. data/app/assets/stylesheets/form_create/application.css +0 -15
  36. data/app/models/form_create/post.rb +0 -4
  37. data/app/views/form_create/posts/create.html.erb +0 -2
  38. data/app/views/form_create/posts/destroy.html.erb +0 -2
  39. data/app/views/form_create/posts/edit.html.erb +0 -2
  40. data/app/views/form_create/posts/index.html.erb +0 -30
  41. data/app/views/form_create/posts/show.html.erb +0 -2
  42. data/app/views/layouts/form_create/application.html.erb +0 -14
  43. data/lib/form_create/engine.rb +0 -5
  44. data/lib/form_create/version.rb +0 -3
  45. data/lib/form_create.rb +0 -4
  46. data/test/controllers/form_create/posts_controller_test.rb +0 -41
  47. data/test/dummy/README.rdoc +0 -28
  48. data/test/dummy/Rakefile +0 -6
  49. data/test/dummy/app/controllers/application_controller.rb +0 -5
  50. data/test/dummy/app/helpers/application_helper.rb +0 -2
  51. data/test/dummy/app/views/layouts/application.html.erb +0 -14
  52. data/test/dummy/bin/bundle +0 -3
  53. data/test/dummy/bin/rails +0 -4
  54. data/test/dummy/bin/rake +0 -4
  55. data/test/dummy/config/application.rb +0 -23
  56. data/test/dummy/config/boot.rb +0 -5
  57. data/test/dummy/config/database.yml +0 -25
  58. data/test/dummy/config/environment.rb +0 -5
  59. data/test/dummy/config/environments/development.rb +0 -37
  60. data/test/dummy/config/environments/production.rb +0 -78
  61. data/test/dummy/config/environments/test.rb +0 -39
  62. data/test/dummy/config/initializers/assets.rb +0 -8
  63. data/test/dummy/config/initializers/backtrace_silencers.rb +0 -7
  64. data/test/dummy/config/initializers/cookies_serializer.rb +0 -3
  65. data/test/dummy/config/initializers/filter_parameter_logging.rb +0 -4
  66. data/test/dummy/config/initializers/inflections.rb +0 -16
  67. data/test/dummy/config/initializers/mime_types.rb +0 -4
  68. data/test/dummy/config/initializers/session_store.rb +0 -3
  69. data/test/dummy/config/initializers/wrap_parameters.rb +0 -14
  70. data/test/dummy/config/locales/en.yml +0 -23
  71. data/test/dummy/config/routes.rb +0 -4
  72. data/test/dummy/config/secrets.yml +0 -22
  73. data/test/dummy/config.ru +0 -4
  74. data/test/dummy/log/development.log +0 -0
  75. data/test/dummy/public/404.html +0 -67
  76. data/test/dummy/public/422.html +0 -67
  77. data/test/dummy/public/500.html +0 -66
  78. data/test/dummy/public/favicon.ico +0 -0
  79. data/test/fixtures/form_create/posts.yml +0 -11
  80. data/test/form_create_test.rb +0 -7
  81. data/test/helpers/form_create/posts_helper_test.rb +0 -6
  82. data/test/integration/navigation_test.rb +0 -10
  83. data/test/models/form_create/post_test.rb +0 -9
  84. data/test/test_helper.rb +0 -15
@@ -1,66 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <title>We're sorry, but something went wrong (500)</title>
5
- <meta name="viewport" content="width=device-width,initial-scale=1">
6
- <style>
7
- body {
8
- background-color: #EFEFEF;
9
- color: #2E2F30;
10
- text-align: center;
11
- font-family: arial, sans-serif;
12
- margin: 0;
13
- }
14
-
15
- div.dialog {
16
- width: 95%;
17
- max-width: 33em;
18
- margin: 4em auto 0;
19
- }
20
-
21
- div.dialog > div {
22
- border: 1px solid #CCC;
23
- border-right-color: #999;
24
- border-left-color: #999;
25
- border-bottom-color: #BBB;
26
- border-top: #B00100 solid 4px;
27
- border-top-left-radius: 9px;
28
- border-top-right-radius: 9px;
29
- background-color: white;
30
- padding: 7px 12% 0;
31
- box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
32
- }
33
-
34
- h1 {
35
- font-size: 100%;
36
- color: #730E15;
37
- line-height: 1.5em;
38
- }
39
-
40
- div.dialog > p {
41
- margin: 0 0 1em;
42
- padding: 1em;
43
- background-color: #F7F7F7;
44
- border: 1px solid #CCC;
45
- border-right-color: #999;
46
- border-left-color: #999;
47
- border-bottom-color: #999;
48
- border-bottom-left-radius: 4px;
49
- border-bottom-right-radius: 4px;
50
- border-top-color: #DADADA;
51
- color: #666;
52
- box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
53
- }
54
- </style>
55
- </head>
56
-
57
- <body>
58
- <!-- This file lives in public/500.html -->
59
- <div class="dialog">
60
- <div>
61
- <h1>We're sorry, but something went wrong.</h1>
62
- </div>
63
- <p>If you are the application owner check the logs for more information.</p>
64
- </div>
65
- </body>
66
- </html>
File without changes
@@ -1,11 +0,0 @@
1
- # Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
2
-
3
- one:
4
- title: MyString
5
- description: MyText
6
- created_by: MyString
7
-
8
- two:
9
- title: MyString
10
- description: MyText
11
- created_by: MyString
@@ -1,7 +0,0 @@
1
- require 'test_helper'
2
-
3
- class FormCreateTest < ActiveSupport::TestCase
4
- test "truth" do
5
- assert_kind_of Module, FormCreate
6
- end
7
- end
@@ -1,6 +0,0 @@
1
- require 'test_helper'
2
-
3
- module FormCreate
4
- class PostsHelperTest < ActionView::TestCase
5
- end
6
- end
@@ -1,10 +0,0 @@
1
- require 'test_helper'
2
-
3
- class NavigationTest < ActionDispatch::IntegrationTest
4
- fixtures :all
5
-
6
- # test "the truth" do
7
- # assert true
8
- # end
9
- end
10
-
@@ -1,9 +0,0 @@
1
- require 'test_helper'
2
-
3
- module FormCreate
4
- class PostTest < ActiveSupport::TestCase
5
- # test "the truth" do
6
- # assert true
7
- # end
8
- end
9
- end
data/test/test_helper.rb DELETED
@@ -1,15 +0,0 @@
1
- # Configure Rails Environment
2
- ENV["RAILS_ENV"] = "test"
3
-
4
- require File.expand_path("../dummy/config/environment.rb", __FILE__)
5
- require "rails/test_help"
6
-
7
- Rails.backtrace_cleaner.remove_silencers!
8
-
9
- # Load support files
10
- Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
11
-
12
- # Load fixtures from the engine
13
- if ActiveSupport::TestCase.method_defined?(:fixture_path=)
14
- ActiveSupport::TestCase.fixture_path = File.expand_path("../fixtures", __FILE__)
15
- end