myengine 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (74) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/README.rdoc +3 -0
  4. data/Rakefile +40 -0
  5. data/app/assets/javascripts/myengine/application.js +15 -0
  6. data/app/assets/javascripts/myengine/comments.js +2 -0
  7. data/app/assets/javascripts/myengine/posts.js +2 -0
  8. data/app/assets/stylesheets/myengine/application.css +13 -0
  9. data/app/assets/stylesheets/myengine/comments.css +4 -0
  10. data/app/assets/stylesheets/myengine/posts.css +4 -0
  11. data/app/assets/stylesheets/scaffold.css +56 -0
  12. data/app/controllers/myengine/application_controller.rb +4 -0
  13. data/app/controllers/myengine/comments_controller.rb +12 -0
  14. data/app/controllers/myengine/posts_controller.rb +87 -0
  15. data/app/helpers/myengine/application_helper.rb +4 -0
  16. data/app/helpers/myengine/comments_helper.rb +4 -0
  17. data/app/helpers/myengine/posts_helper.rb +4 -0
  18. data/app/models/myengine/comment.rb +5 -0
  19. data/app/models/myengine/post.rb +6 -0
  20. data/app/views/layouts/myengine/application.html.erb +14 -0
  21. data/app/views/myengine/comments/_comment.html.erb +1 -0
  22. data/app/views/myengine/comments/_form.html.erb +8 -0
  23. data/app/views/myengine/posts/_form.html.erb +25 -0
  24. data/app/views/myengine/posts/edit.html.erb +6 -0
  25. data/app/views/myengine/posts/index.html.erb +25 -0
  26. data/app/views/myengine/posts/new.html.erb +5 -0
  27. data/app/views/myengine/posts/show.html.erb +18 -0
  28. data/config/routes.rb +7 -0
  29. data/db/migrate/20130529033013_create_myengine_posts.rb +10 -0
  30. data/db/migrate/20130529033206_create_myengine_comments.rb +10 -0
  31. data/lib/myengine.rb +4 -0
  32. data/lib/myengine/engine.rb +5 -0
  33. data/lib/myengine/version.rb +3 -0
  34. data/lib/tasks/myengine_tasks.rake +4 -0
  35. data/test/dummy/README.rdoc +261 -0
  36. data/test/dummy/Rakefile +7 -0
  37. data/test/dummy/app/assets/javascripts/application.js +15 -0
  38. data/test/dummy/app/assets/stylesheets/application.css +13 -0
  39. data/test/dummy/app/controllers/application_controller.rb +3 -0
  40. data/test/dummy/app/helpers/application_helper.rb +2 -0
  41. data/test/dummy/app/views/layouts/application.html.erb +14 -0
  42. data/test/dummy/config.ru +4 -0
  43. data/test/dummy/config/application.rb +59 -0
  44. data/test/dummy/config/boot.rb +10 -0
  45. data/test/dummy/config/database.yml +25 -0
  46. data/test/dummy/config/environment.rb +5 -0
  47. data/test/dummy/config/environments/development.rb +37 -0
  48. data/test/dummy/config/environments/production.rb +67 -0
  49. data/test/dummy/config/environments/test.rb +37 -0
  50. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  51. data/test/dummy/config/initializers/inflections.rb +15 -0
  52. data/test/dummy/config/initializers/mime_types.rb +5 -0
  53. data/test/dummy/config/initializers/secret_token.rb +7 -0
  54. data/test/dummy/config/initializers/session_store.rb +8 -0
  55. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  56. data/test/dummy/config/locales/en.yml +5 -0
  57. data/test/dummy/config/routes.rb +4 -0
  58. data/test/dummy/public/404.html +26 -0
  59. data/test/dummy/public/422.html +26 -0
  60. data/test/dummy/public/500.html +25 -0
  61. data/test/dummy/public/favicon.ico +0 -0
  62. data/test/dummy/script/rails +6 -0
  63. data/test/fixtures/myengine/comments.yml +9 -0
  64. data/test/fixtures/myengine/posts.yml +9 -0
  65. data/test/functional/myengine/comments_controller_test.rb +9 -0
  66. data/test/functional/myengine/posts_controller_test.rb +51 -0
  67. data/test/integration/navigation_test.rb +10 -0
  68. data/test/myengine_test.rb +7 -0
  69. data/test/test_helper.rb +15 -0
  70. data/test/unit/helpers/myengine/comments_helper_test.rb +6 -0
  71. data/test/unit/helpers/myengine/posts_helper_test.rb +6 -0
  72. data/test/unit/myengine/comment_test.rb +9 -0
  73. data/test/unit/myengine/post_test.rb +9 -0
  74. metadata +182 -0
@@ -0,0 +1,10 @@
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
+
@@ -0,0 +1,7 @@
1
+ require 'test_helper'
2
+
3
+ class MyengineTest < ActiveSupport::TestCase
4
+ test "truth" do
5
+ assert_kind_of Module, Myengine
6
+ end
7
+ end
@@ -0,0 +1,15 @@
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
@@ -0,0 +1,6 @@
1
+ require 'test_helper'
2
+
3
+ module Myengine
4
+ class CommentsHelperTest < ActionView::TestCase
5
+ end
6
+ end
@@ -0,0 +1,6 @@
1
+ require 'test_helper'
2
+
3
+ module Myengine
4
+ class PostsHelperTest < ActionView::TestCase
5
+ end
6
+ end
@@ -0,0 +1,9 @@
1
+ require 'test_helper'
2
+
3
+ module Myengine
4
+ class CommentTest < ActiveSupport::TestCase
5
+ # test "the truth" do
6
+ # assert true
7
+ # end
8
+ end
9
+ end
@@ -0,0 +1,9 @@
1
+ require 'test_helper'
2
+
3
+ module Myengine
4
+ class PostTest < ActiveSupport::TestCase
5
+ # test "the truth" do
6
+ # assert true
7
+ # end
8
+ end
9
+ end
metadata ADDED
@@ -0,0 +1,182 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: myengine
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - peterfei
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2013-05-29 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rails
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ~>
18
+ - !ruby/object:Gem::Version
19
+ version: 3.2.13
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ~>
25
+ - !ruby/object:Gem::Version
26
+ version: 3.2.13
27
+ - !ruby/object:Gem::Dependency
28
+ name: sqlite3
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - '>='
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - '>='
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ description: Myengine.
42
+ email:
43
+ - peterfeispaces@gmail.com
44
+ executables: []
45
+ extensions: []
46
+ extra_rdoc_files: []
47
+ files:
48
+ - app/helpers/myengine/posts_helper.rb
49
+ - app/helpers/myengine/application_helper.rb
50
+ - app/helpers/myengine/comments_helper.rb
51
+ - app/controllers/myengine/application_controller.rb
52
+ - app/controllers/myengine/comments_controller.rb
53
+ - app/controllers/myengine/posts_controller.rb
54
+ - app/views/myengine/posts/edit.html.erb
55
+ - app/views/myengine/posts/new.html.erb
56
+ - app/views/myengine/posts/index.html.erb
57
+ - app/views/myengine/posts/_form.html.erb
58
+ - app/views/myengine/posts/show.html.erb
59
+ - app/views/myengine/comments/_form.html.erb
60
+ - app/views/myengine/comments/_comment.html.erb
61
+ - app/views/layouts/myengine/application.html.erb
62
+ - app/models/myengine/post.rb
63
+ - app/models/myengine/comment.rb
64
+ - app/assets/javascripts/myengine/application.js
65
+ - app/assets/javascripts/myengine/comments.js
66
+ - app/assets/javascripts/myengine/posts.js
67
+ - app/assets/stylesheets/myengine/application.css
68
+ - app/assets/stylesheets/myengine/posts.css
69
+ - app/assets/stylesheets/myengine/comments.css
70
+ - app/assets/stylesheets/scaffold.css
71
+ - config/routes.rb
72
+ - db/migrate/20130529033206_create_myengine_comments.rb
73
+ - db/migrate/20130529033013_create_myengine_posts.rb
74
+ - lib/myengine.rb
75
+ - lib/tasks/myengine_tasks.rake
76
+ - lib/myengine/engine.rb
77
+ - lib/myengine/version.rb
78
+ - MIT-LICENSE
79
+ - Rakefile
80
+ - README.rdoc
81
+ - test/integration/navigation_test.rb
82
+ - test/dummy/README.rdoc
83
+ - test/dummy/script/rails
84
+ - test/dummy/config/locales/en.yml
85
+ - test/dummy/config/initializers/secret_token.rb
86
+ - test/dummy/config/initializers/mime_types.rb
87
+ - test/dummy/config/initializers/wrap_parameters.rb
88
+ - test/dummy/config/initializers/inflections.rb
89
+ - test/dummy/config/initializers/session_store.rb
90
+ - test/dummy/config/initializers/backtrace_silencers.rb
91
+ - test/dummy/config/environment.rb
92
+ - test/dummy/config/environments/test.rb
93
+ - test/dummy/config/environments/production.rb
94
+ - test/dummy/config/environments/development.rb
95
+ - test/dummy/config/boot.rb
96
+ - test/dummy/config/routes.rb
97
+ - test/dummy/config/database.yml
98
+ - test/dummy/config/application.rb
99
+ - test/dummy/public/500.html
100
+ - test/dummy/public/favicon.ico
101
+ - test/dummy/public/422.html
102
+ - test/dummy/public/404.html
103
+ - test/dummy/app/helpers/application_helper.rb
104
+ - test/dummy/app/controllers/application_controller.rb
105
+ - test/dummy/app/views/layouts/application.html.erb
106
+ - test/dummy/app/assets/javascripts/application.js
107
+ - test/dummy/app/assets/stylesheets/application.css
108
+ - test/dummy/Rakefile
109
+ - test/dummy/config.ru
110
+ - test/fixtures/myengine/comments.yml
111
+ - test/fixtures/myengine/posts.yml
112
+ - test/functional/myengine/comments_controller_test.rb
113
+ - test/functional/myengine/posts_controller_test.rb
114
+ - test/test_helper.rb
115
+ - test/unit/helpers/myengine/comments_helper_test.rb
116
+ - test/unit/helpers/myengine/posts_helper_test.rb
117
+ - test/unit/myengine/comment_test.rb
118
+ - test/unit/myengine/post_test.rb
119
+ - test/myengine_test.rb
120
+ homepage: http://peterfei.com
121
+ licenses: []
122
+ metadata: {}
123
+ post_install_message:
124
+ rdoc_options: []
125
+ require_paths:
126
+ - lib
127
+ required_ruby_version: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - '>='
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
132
+ required_rubygems_version: !ruby/object:Gem::Requirement
133
+ requirements:
134
+ - - '>='
135
+ - !ruby/object:Gem::Version
136
+ version: '0'
137
+ requirements: []
138
+ rubyforge_project:
139
+ rubygems_version: 2.0.0.rc.2
140
+ signing_key:
141
+ specification_version: 4
142
+ summary: Myengine.
143
+ test_files:
144
+ - test/integration/navigation_test.rb
145
+ - test/dummy/README.rdoc
146
+ - test/dummy/script/rails
147
+ - test/dummy/config/locales/en.yml
148
+ - test/dummy/config/initializers/secret_token.rb
149
+ - test/dummy/config/initializers/mime_types.rb
150
+ - test/dummy/config/initializers/wrap_parameters.rb
151
+ - test/dummy/config/initializers/inflections.rb
152
+ - test/dummy/config/initializers/session_store.rb
153
+ - test/dummy/config/initializers/backtrace_silencers.rb
154
+ - test/dummy/config/environment.rb
155
+ - test/dummy/config/environments/test.rb
156
+ - test/dummy/config/environments/production.rb
157
+ - test/dummy/config/environments/development.rb
158
+ - test/dummy/config/boot.rb
159
+ - test/dummy/config/routes.rb
160
+ - test/dummy/config/database.yml
161
+ - test/dummy/config/application.rb
162
+ - test/dummy/public/500.html
163
+ - test/dummy/public/favicon.ico
164
+ - test/dummy/public/422.html
165
+ - test/dummy/public/404.html
166
+ - test/dummy/app/helpers/application_helper.rb
167
+ - test/dummy/app/controllers/application_controller.rb
168
+ - test/dummy/app/views/layouts/application.html.erb
169
+ - test/dummy/app/assets/javascripts/application.js
170
+ - test/dummy/app/assets/stylesheets/application.css
171
+ - test/dummy/Rakefile
172
+ - test/dummy/config.ru
173
+ - test/fixtures/myengine/comments.yml
174
+ - test/fixtures/myengine/posts.yml
175
+ - test/functional/myengine/comments_controller_test.rb
176
+ - test/functional/myengine/posts_controller_test.rb
177
+ - test/test_helper.rb
178
+ - test/unit/helpers/myengine/comments_helper_test.rb
179
+ - test/unit/helpers/myengine/posts_helper_test.rb
180
+ - test/unit/myengine/comment_test.rb
181
+ - test/unit/myengine/post_test.rb
182
+ - test/myengine_test.rb