mini_blog 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (64) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/README.md +34 -0
  4. data/Rakefile +36 -0
  5. data/app/assets/config/mini_blog_manifest.js +2 -0
  6. data/app/assets/javascripts/mini_blog/application.js +27 -0
  7. data/app/assets/stylesheets/mini_blog/application.scss +30 -0
  8. data/app/controllers/mini_blog/application_controller.rb +5 -0
  9. data/app/controllers/mini_blog/articles_controller.rb +56 -0
  10. data/app/controllers/mini_blog/users/confirmations_controller.rb +34 -0
  11. data/app/controllers/mini_blog/users/omniauth_callbacks_controller.rb +34 -0
  12. data/app/controllers/mini_blog/users/passwords_controller.rb +39 -0
  13. data/app/controllers/mini_blog/users/registrations_controller.rb +66 -0
  14. data/app/controllers/mini_blog/users/sessions_controller.rb +32 -0
  15. data/app/controllers/mini_blog/users/unlocks_controller.rb +34 -0
  16. data/app/helpers/mini_blog/application_helper.rb +4 -0
  17. data/app/jobs/mini_blog/application_job.rb +4 -0
  18. data/app/mailers/mini_blog/application_mailer.rb +6 -0
  19. data/app/models/mini_blog/application_record.rb +5 -0
  20. data/app/models/mini_blog/article.rb +10 -0
  21. data/app/models/mini_blog/article_tag_relation.rb +9 -0
  22. data/app/models/mini_blog/image.rb +6 -0
  23. data/app/models/mini_blog/tag.rb +8 -0
  24. data/app/models/mini_blog/user.rb +10 -0
  25. data/app/uploaders/mini_blog/image_content_uploader.rb +49 -0
  26. data/app/views/kaminari/bootstrap4/_first_page.html.slim +2 -0
  27. data/app/views/kaminari/bootstrap4/_gap.html.slim +2 -0
  28. data/app/views/kaminari/bootstrap4/_last_page.html.slim +2 -0
  29. data/app/views/kaminari/bootstrap4/_next_page.html.slim +2 -0
  30. data/app/views/kaminari/bootstrap4/_page.html.slim +6 -0
  31. data/app/views/kaminari/bootstrap4/_paginator.html.slim +12 -0
  32. data/app/views/kaminari/bootstrap4/_prev_page.html.slim +2 -0
  33. data/app/views/layouts/mini_blog/application.html.slim +28 -0
  34. data/app/views/mini_blog/articles/_form.html.slim +9 -0
  35. data/app/views/mini_blog/articles/edit.html.slim +1 -0
  36. data/app/views/mini_blog/articles/index.html.slim +14 -0
  37. data/app/views/mini_blog/articles/new.html.slim +1 -0
  38. data/app/views/mini_blog/articles/show.json.ruby +3 -0
  39. data/app/views/mini_blog/users/confirmations/new.html.erb +16 -0
  40. data/app/views/mini_blog/users/mailer/confirmation_instructions.html.erb +5 -0
  41. data/app/views/mini_blog/users/mailer/email_changed.html.erb +7 -0
  42. data/app/views/mini_blog/users/mailer/password_change.html.erb +3 -0
  43. data/app/views/mini_blog/users/mailer/reset_password_instructions.html.erb +8 -0
  44. data/app/views/mini_blog/users/mailer/unlock_instructions.html.erb +7 -0
  45. data/app/views/mini_blog/users/passwords/edit.html.slim +22 -0
  46. data/app/views/mini_blog/users/passwords/new.html.slim +10 -0
  47. data/app/views/mini_blog/users/registrations/edit.html.erb +43 -0
  48. data/app/views/mini_blog/users/registrations/new.html.erb +29 -0
  49. data/app/views/mini_blog/users/sessions/new.html.slim +17 -0
  50. data/app/views/mini_blog/users/shared/_links.html.erb +25 -0
  51. data/app/views/mini_blog/users/unlocks/new.html.erb +16 -0
  52. data/config/initializers/devise.rb +279 -0
  53. data/config/locales/devise.en.yml +64 -0
  54. data/config/routes.rb +7 -0
  55. data/db/migrate/20180224022923_create_mini_blog_articles.rb +12 -0
  56. data/db/migrate/20180224025140_create_mini_blog_images.rb +9 -0
  57. data/db/migrate/20180224090210_devise_create_mini_blog_users.rb +45 -0
  58. data/db/migrate/20180224112101_create_mini_blog_tags.rb +9 -0
  59. data/db/migrate/20180224113006_create_mini_blog_article_tag_relations.rb +12 -0
  60. data/lib/mini_blog.rb +11 -0
  61. data/lib/mini_blog/engine.rb +5 -0
  62. data/lib/mini_blog/version.rb +3 -0
  63. data/lib/tasks/mini_blog_tasks.rake +4 -0
  64. metadata +260 -0
@@ -0,0 +1,9 @@
1
+ class CreateMiniBlogTags < ActiveRecord::Migration[5.1]
2
+ def change
3
+ create_table :mini_blog_tags do |t|
4
+ t.string :name, null: false
5
+
6
+ t.timestamps
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,12 @@
1
+ class CreateMiniBlogArticleTagRelations < ActiveRecord::Migration[5.1]
2
+ def change
3
+ create_table :mini_blog_article_tag_relations do |t|
4
+ t.integer :article_id, null: false, index: true, limit: 8
5
+ t.foreign_key :mini_blog_articles, column: :article_id
6
+ t.integer :tag_id, null: false, index: true, limit: 8
7
+ t.foreign_key :mini_blog_tags, column: :tag_id
8
+
9
+ t.timestamps
10
+ end
11
+ end
12
+ end
data/lib/mini_blog.rb ADDED
@@ -0,0 +1,11 @@
1
+ require 'mini_blog/engine'
2
+ require 'devise'
3
+ require 'carrierwave'
4
+ require 'slim-rails'
5
+ require 'kaminari'
6
+ require 'jquery-rails'
7
+ require 'bootstrap'
8
+
9
+ module MiniBlog
10
+ # Your code goes here...
11
+ end
@@ -0,0 +1,5 @@
1
+ module MiniBlog
2
+ class Engine < ::Rails::Engine
3
+ isolate_namespace MiniBlog
4
+ end
5
+ end
@@ -0,0 +1,3 @@
1
+ module MiniBlog
2
+ VERSION = '0.1.0'
3
+ end
@@ -0,0 +1,4 @@
1
+ # desc "Explaining what the task does"
2
+ # task :mini_blog do
3
+ # # Task goes here
4
+ # end
metadata ADDED
@@ -0,0 +1,260 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: mini_blog
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Takumu Uyama
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2018-02-27 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: 5.1.5
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: 5.1.5
27
+ - !ruby/object:Gem::Dependency
28
+ name: carrierwave
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: devise
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: slim-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: kaminari
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: bootstrap
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: 4.0.0
104
+ type: :runtime
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "~>"
109
+ - !ruby/object:Gem::Version
110
+ version: 4.0.0
111
+ - !ruby/object:Gem::Dependency
112
+ name: mysql2
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :development
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: rspec-rails
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ">="
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - ">="
137
+ - !ruby/object:Gem::Version
138
+ version: '0'
139
+ - !ruby/object:Gem::Dependency
140
+ name: shoulda-matchers
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - ">="
144
+ - !ruby/object:Gem::Version
145
+ version: '0'
146
+ type: :development
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - ">="
151
+ - !ruby/object:Gem::Version
152
+ version: '0'
153
+ - !ruby/object:Gem::Dependency
154
+ name: factory_bot_rails
155
+ requirement: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - ">="
158
+ - !ruby/object:Gem::Version
159
+ version: '0'
160
+ type: :development
161
+ prerelease: false
162
+ version_requirements: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - ">="
165
+ - !ruby/object:Gem::Version
166
+ version: '0'
167
+ description: Markdown Blog/Memo.
168
+ email:
169
+ - sasurai.usagi3@gmail.com
170
+ executables: []
171
+ extensions: []
172
+ extra_rdoc_files: []
173
+ files:
174
+ - MIT-LICENSE
175
+ - README.md
176
+ - Rakefile
177
+ - app/assets/config/mini_blog_manifest.js
178
+ - app/assets/javascripts/mini_blog/application.js
179
+ - app/assets/stylesheets/mini_blog/application.scss
180
+ - app/controllers/mini_blog/application_controller.rb
181
+ - app/controllers/mini_blog/articles_controller.rb
182
+ - app/controllers/mini_blog/users/confirmations_controller.rb
183
+ - app/controllers/mini_blog/users/omniauth_callbacks_controller.rb
184
+ - app/controllers/mini_blog/users/passwords_controller.rb
185
+ - app/controllers/mini_blog/users/registrations_controller.rb
186
+ - app/controllers/mini_blog/users/sessions_controller.rb
187
+ - app/controllers/mini_blog/users/unlocks_controller.rb
188
+ - app/helpers/mini_blog/application_helper.rb
189
+ - app/jobs/mini_blog/application_job.rb
190
+ - app/mailers/mini_blog/application_mailer.rb
191
+ - app/models/mini_blog/application_record.rb
192
+ - app/models/mini_blog/article.rb
193
+ - app/models/mini_blog/article_tag_relation.rb
194
+ - app/models/mini_blog/image.rb
195
+ - app/models/mini_blog/tag.rb
196
+ - app/models/mini_blog/user.rb
197
+ - app/uploaders/mini_blog/image_content_uploader.rb
198
+ - app/views/kaminari/bootstrap4/_first_page.html.slim
199
+ - app/views/kaminari/bootstrap4/_gap.html.slim
200
+ - app/views/kaminari/bootstrap4/_last_page.html.slim
201
+ - app/views/kaminari/bootstrap4/_next_page.html.slim
202
+ - app/views/kaminari/bootstrap4/_page.html.slim
203
+ - app/views/kaminari/bootstrap4/_paginator.html.slim
204
+ - app/views/kaminari/bootstrap4/_prev_page.html.slim
205
+ - app/views/layouts/mini_blog/application.html.slim
206
+ - app/views/mini_blog/articles/_form.html.slim
207
+ - app/views/mini_blog/articles/edit.html.slim
208
+ - app/views/mini_blog/articles/index.html.slim
209
+ - app/views/mini_blog/articles/new.html.slim
210
+ - app/views/mini_blog/articles/show.json.ruby
211
+ - app/views/mini_blog/users/confirmations/new.html.erb
212
+ - app/views/mini_blog/users/mailer/confirmation_instructions.html.erb
213
+ - app/views/mini_blog/users/mailer/email_changed.html.erb
214
+ - app/views/mini_blog/users/mailer/password_change.html.erb
215
+ - app/views/mini_blog/users/mailer/reset_password_instructions.html.erb
216
+ - app/views/mini_blog/users/mailer/unlock_instructions.html.erb
217
+ - app/views/mini_blog/users/passwords/edit.html.slim
218
+ - app/views/mini_blog/users/passwords/new.html.slim
219
+ - app/views/mini_blog/users/registrations/edit.html.erb
220
+ - app/views/mini_blog/users/registrations/new.html.erb
221
+ - app/views/mini_blog/users/sessions/new.html.slim
222
+ - app/views/mini_blog/users/shared/_links.html.erb
223
+ - app/views/mini_blog/users/unlocks/new.html.erb
224
+ - config/initializers/devise.rb
225
+ - config/locales/devise.en.yml
226
+ - config/routes.rb
227
+ - db/migrate/20180224022923_create_mini_blog_articles.rb
228
+ - db/migrate/20180224025140_create_mini_blog_images.rb
229
+ - db/migrate/20180224090210_devise_create_mini_blog_users.rb
230
+ - db/migrate/20180224112101_create_mini_blog_tags.rb
231
+ - db/migrate/20180224113006_create_mini_blog_article_tag_relations.rb
232
+ - lib/mini_blog.rb
233
+ - lib/mini_blog/engine.rb
234
+ - lib/mini_blog/version.rb
235
+ - lib/tasks/mini_blog_tasks.rake
236
+ homepage: https://github.com/sasurai-usagi3/mini_blog
237
+ licenses:
238
+ - MIT
239
+ metadata: {}
240
+ post_install_message:
241
+ rdoc_options: []
242
+ require_paths:
243
+ - lib
244
+ required_ruby_version: !ruby/object:Gem::Requirement
245
+ requirements:
246
+ - - ">="
247
+ - !ruby/object:Gem::Version
248
+ version: '0'
249
+ required_rubygems_version: !ruby/object:Gem::Requirement
250
+ requirements:
251
+ - - ">="
252
+ - !ruby/object:Gem::Version
253
+ version: '0'
254
+ requirements: []
255
+ rubyforge_project:
256
+ rubygems_version: 2.6.8
257
+ signing_key:
258
+ specification_version: 4
259
+ summary: Markdown Blog/Memo
260
+ test_files: []