days 0.2.0 → 1.0.0.rc1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (45) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +21 -4
  3. data/app/javascripts/admin/bootstrap.min.js +7 -0
  4. data/app/javascripts/jquery-2.1.3.min.js +4 -0
  5. data/app/stylesheets/admin/bootstrap-theme.min.css +5 -0
  6. data/app/stylesheets/admin/bootstrap.min.css +5 -0
  7. data/app/stylesheets/admin/login.scss +3 -5
  8. data/app/stylesheets/admin.scss +4 -0
  9. data/app/views/admin/categories.haml +3 -3
  10. data/app/views/admin/entries/form.haml +22 -17
  11. data/app/views/admin/entries/index.haml +46 -28
  12. data/app/views/admin/login.haml +11 -8
  13. data/app/views/admin/setup.haml +16 -9
  14. data/app/views/admin.haml +31 -21
  15. data/days.gemspec +14 -11
  16. data/lib/days/app/admin/entries.rb +11 -5
  17. data/lib/days/app/entries.rb +24 -13
  18. data/lib/days/app.rb +2 -3
  19. data/lib/days/command.rb +1 -1
  20. data/lib/days/config.rb +18 -5
  21. data/lib/days/helpers.rb +13 -11
  22. data/lib/days/models/base.rb +11 -0
  23. data/lib/days/models/category.rb +2 -2
  24. data/lib/days/models/entry.rb +41 -8
  25. data/lib/days/models/user.rb +2 -2
  26. data/lib/days/version.rb +1 -1
  27. data/scripts/tumblr_export.rb +1 -1
  28. data/spec/controllers/admin/categories_spec.rb +22 -22
  29. data/spec/controllers/admin/entries_spec.rb +155 -44
  30. data/spec/controllers/admin/session_spec.rb +16 -25
  31. data/spec/controllers/admin/setup_spec.rb +22 -25
  32. data/spec/controllers/admin/users_spec.rb +39 -40
  33. data/spec/controllers/entries_spec.rb +71 -42
  34. data/spec/helpers_spec.rb +18 -29
  35. data/spec/models/entry_spec.rb +117 -47
  36. data/spec/shared/admin.rb +2 -2
  37. data/spec/spec_helper.rb +25 -25
  38. metadata +111 -86
  39. data/app/javascripts/bootstrap.js +0 -2159
  40. data/app/javascripts/bootstrap.min.js +0 -6
  41. data/app/javascripts/jquery-1.8.3.min.js +0 -2
  42. data/app/stylesheets/bootstrap-responsive.css +0 -1092
  43. data/app/stylesheets/bootstrap-responsive.min.css +0 -9
  44. data/app/stylesheets/bootstrap.css +0 -6039
  45. data/app/stylesheets/bootstrap.min.css +0 -9
metadata CHANGED
@@ -1,293 +1,321 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: days
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 1.0.0.rc1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shota Fukumori (sora_h)
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-10-11 00:00:00.000000000 Z
11
+ date: 2015-07-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sinatra
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 1.3.3
19
+ version: 1.4.5
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: 1.3.3
26
+ version: 1.4.5
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: thor
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ~>
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
33
  version: 0.16.0
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ~>
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: 0.16.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rack_csrf
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ~>
45
+ - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: 2.4.0
47
+ version: 2.5.0
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ~>
52
+ - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: 2.4.0
54
+ version: 2.5.0
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: settingslogic
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ~>
59
+ - - "~>"
60
60
  - !ruby/object:Gem::Version
61
61
  version: 2.0.9
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - ~>
66
+ - - "~>"
67
67
  - !ruby/object:Gem::Version
68
68
  version: 2.0.9
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: sprockets
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - ~>
73
+ - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: 2.2.2
75
+ version: 2.12.3
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - ~>
80
+ - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: 2.2.2
82
+ version: 2.12.3
83
83
  - !ruby/object:Gem::Dependency
84
- name: haml
84
+ name: faml
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - ~>
87
+ - - ">="
88
88
  - !ruby/object:Gem::Version
89
- version: 3.1.7
89
+ version: 0.2.4
90
90
  type: :runtime
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - ~>
94
+ - - ">="
95
95
  - !ruby/object:Gem::Version
96
- version: 3.1.7
96
+ version: 0.2.4
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: sass
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - ~>
101
+ - - "~>"
102
102
  - !ruby/object:Gem::Version
103
103
  version: 3.2.5
104
104
  type: :runtime
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
- - - ~>
108
+ - - "~>"
109
109
  - !ruby/object:Gem::Version
110
110
  version: 3.2.5
111
111
  - !ruby/object:Gem::Dependency
112
- name: redcarpet
112
+ name: builder
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
- - - ~>
115
+ - - "~>"
116
116
  - !ruby/object:Gem::Version
117
- version: 2.2.2
117
+ version: '3.1'
118
118
  type: :runtime
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
- - - ~>
122
+ - - "~>"
123
123
  - !ruby/object:Gem::Version
124
- version: 2.2.2
124
+ version: '3.1'
125
125
  - !ruby/object:Gem::Dependency
126
- name: builder
126
+ name: activerecord
127
127
  requirement: !ruby/object:Gem::Requirement
128
128
  requirements:
129
- - - ~>
129
+ - - "~>"
130
130
  - !ruby/object:Gem::Version
131
- version: 3.0.0
131
+ version: 4.2.0
132
132
  type: :runtime
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
- - - ~>
136
+ - - "~>"
137
137
  - !ruby/object:Gem::Version
138
- version: 3.0.0
138
+ version: 4.2.0
139
139
  - !ruby/object:Gem::Dependency
140
- name: activerecord
140
+ name: protected_attributes
141
141
  requirement: !ruby/object:Gem::Requirement
142
142
  requirements:
143
- - - ~>
143
+ - - ">="
144
144
  - !ruby/object:Gem::Version
145
- version: 3.2.14
145
+ version: '0'
146
146
  type: :runtime
147
147
  prerelease: false
148
148
  version_requirements: !ruby/object:Gem::Requirement
149
149
  requirements:
150
- - - ~>
150
+ - - ">="
151
151
  - !ruby/object:Gem::Version
152
- version: 3.2.14
152
+ version: '0'
153
153
  - !ruby/object:Gem::Dependency
154
154
  name: kaminari
155
155
  requirement: !ruby/object:Gem::Requirement
156
156
  requirements:
157
- - - ~>
157
+ - - "~>"
158
158
  - !ruby/object:Gem::Version
159
- version: '0.13'
159
+ version: 0.16.1
160
160
  type: :runtime
161
161
  prerelease: false
162
162
  version_requirements: !ruby/object:Gem::Requirement
163
163
  requirements:
164
- - - ~>
164
+ - - "~>"
165
165
  - !ruby/object:Gem::Version
166
- version: '0.13'
166
+ version: 0.16.1
167
167
  - !ruby/object:Gem::Dependency
168
168
  name: padrino-helpers
169
169
  requirement: !ruby/object:Gem::Requirement
170
170
  requirements:
171
- - - ~>
171
+ - - "~>"
172
172
  - !ruby/object:Gem::Version
173
173
  version: 0.9.21
174
174
  type: :runtime
175
175
  prerelease: false
176
176
  version_requirements: !ruby/object:Gem::Requirement
177
177
  requirements:
178
- - - ~>
178
+ - - "~>"
179
179
  - !ruby/object:Gem::Version
180
180
  version: 0.9.21
181
181
  - !ruby/object:Gem::Dependency
182
182
  name: stringex
183
183
  requirement: !ruby/object:Gem::Requirement
184
184
  requirements:
185
- - - ~>
185
+ - - "~>"
186
186
  - !ruby/object:Gem::Version
187
187
  version: 1.5.1
188
188
  type: :runtime
189
189
  prerelease: false
190
190
  version_requirements: !ruby/object:Gem::Requirement
191
191
  requirements:
192
- - - ~>
192
+ - - "~>"
193
193
  - !ruby/object:Gem::Version
194
194
  version: 1.5.1
195
195
  - !ruby/object:Gem::Dependency
196
- name: bcrypt-ruby
196
+ name: bcrypt
197
+ requirement: !ruby/object:Gem::Requirement
198
+ requirements:
199
+ - - "~>"
200
+ - !ruby/object:Gem::Version
201
+ version: 3.1.9
202
+ type: :runtime
203
+ prerelease: false
204
+ version_requirements: !ruby/object:Gem::Requirement
205
+ requirements:
206
+ - - "~>"
207
+ - !ruby/object:Gem::Version
208
+ version: 3.1.9
209
+ - !ruby/object:Gem::Dependency
210
+ name: html-pipeline
197
211
  requirement: !ruby/object:Gem::Requirement
198
212
  requirements:
199
- - - ~>
213
+ - - ">="
200
214
  - !ruby/object:Gem::Version
201
- version: 3.0.1
215
+ version: 1.11.0
202
216
  type: :runtime
203
217
  prerelease: false
204
218
  version_requirements: !ruby/object:Gem::Requirement
205
219
  requirements:
206
- - - ~>
220
+ - - ">="
207
221
  - !ruby/object:Gem::Version
208
- version: 3.0.1
222
+ version: 1.11.0
223
+ - !ruby/object:Gem::Dependency
224
+ name: github-markdown
225
+ requirement: !ruby/object:Gem::Requirement
226
+ requirements:
227
+ - - ">="
228
+ - !ruby/object:Gem::Version
229
+ version: '0'
230
+ type: :runtime
231
+ prerelease: false
232
+ version_requirements: !ruby/object:Gem::Requirement
233
+ requirements:
234
+ - - ">="
235
+ - !ruby/object:Gem::Version
236
+ version: '0'
209
237
  - !ruby/object:Gem::Dependency
210
238
  name: sqlite3
211
239
  requirement: !ruby/object:Gem::Requirement
212
240
  requirements:
213
- - - '>='
241
+ - - ">="
214
242
  - !ruby/object:Gem::Version
215
243
  version: '0'
216
244
  type: :development
217
245
  prerelease: false
218
246
  version_requirements: !ruby/object:Gem::Requirement
219
247
  requirements:
220
- - - '>='
248
+ - - ">="
221
249
  - !ruby/object:Gem::Version
222
250
  version: '0'
223
251
  - !ruby/object:Gem::Dependency
224
252
  name: rspec
225
253
  requirement: !ruby/object:Gem::Requirement
226
254
  requirements:
227
- - - '>='
255
+ - - "~>"
228
256
  - !ruby/object:Gem::Version
229
- version: '0'
257
+ version: 3.2.0
230
258
  type: :development
231
259
  prerelease: false
232
260
  version_requirements: !ruby/object:Gem::Requirement
233
261
  requirements:
234
- - - '>='
262
+ - - "~>"
235
263
  - !ruby/object:Gem::Version
236
- version: '0'
264
+ version: 3.2.0
237
265
  - !ruby/object:Gem::Dependency
238
266
  name: rack-test
239
267
  requirement: !ruby/object:Gem::Requirement
240
268
  requirements:
241
- - - '>='
269
+ - - ">="
242
270
  - !ruby/object:Gem::Version
243
271
  version: '0'
244
272
  type: :development
245
273
  prerelease: false
246
274
  version_requirements: !ruby/object:Gem::Requirement
247
275
  requirements:
248
- - - '>='
276
+ - - ">="
249
277
  - !ruby/object:Gem::Version
250
278
  version: '0'
251
279
  - !ruby/object:Gem::Dependency
252
280
  name: fuubar
253
281
  requirement: !ruby/object:Gem::Requirement
254
282
  requirements:
255
- - - '>='
283
+ - - ">="
256
284
  - !ruby/object:Gem::Version
257
285
  version: '0'
258
286
  type: :development
259
287
  prerelease: false
260
288
  version_requirements: !ruby/object:Gem::Requirement
261
289
  requirements:
262
- - - '>='
290
+ - - ">="
263
291
  - !ruby/object:Gem::Version
264
292
  version: '0'
265
293
  - !ruby/object:Gem::Dependency
266
- name: pry
294
+ name: database_rewinder
267
295
  requirement: !ruby/object:Gem::Requirement
268
296
  requirements:
269
- - - '>='
297
+ - - ">="
270
298
  - !ruby/object:Gem::Version
271
299
  version: '0'
272
- type: :runtime
300
+ type: :development
273
301
  prerelease: false
274
302
  version_requirements: !ruby/object:Gem::Requirement
275
303
  requirements:
276
- - - '>='
304
+ - - ">="
277
305
  - !ruby/object:Gem::Version
278
306
  version: '0'
279
307
  - !ruby/object:Gem::Dependency
280
- name: pry-nav
308
+ name: pry
281
309
  requirement: !ruby/object:Gem::Requirement
282
310
  requirements:
283
- - - '>='
311
+ - - ">="
284
312
  - !ruby/object:Gem::Version
285
313
  version: '0'
286
- type: :development
314
+ type: :runtime
287
315
  prerelease: false
288
316
  version_requirements: !ruby/object:Gem::Requirement
289
317
  requirements:
290
- - - '>='
318
+ - - ">="
291
319
  - !ruby/object:Gem::Version
292
320
  version: '0'
293
321
  description: Simple blog system built up with Sinatra.
@@ -298,24 +326,21 @@ executables:
298
326
  extensions: []
299
327
  extra_rdoc_files: []
300
328
  files:
301
- - .gitignore
302
- - .rspec
303
- - .travis.yml
329
+ - ".gitignore"
330
+ - ".rspec"
331
+ - ".travis.yml"
304
332
  - Gemfile
305
333
  - LICENSE.txt
306
334
  - README.md
307
335
  - Rakefile
308
336
  - app/images/glyphicons-halflings-white.png
309
337
  - app/images/glyphicons-halflings.png
310
- - app/javascripts/bootstrap.js
311
- - app/javascripts/bootstrap.min.js
312
- - app/javascripts/jquery-1.8.3.min.js
338
+ - app/javascripts/admin/bootstrap.min.js
339
+ - app/javascripts/jquery-2.1.3.min.js
313
340
  - app/stylesheets/admin.scss
341
+ - app/stylesheets/admin/bootstrap-theme.min.css
342
+ - app/stylesheets/admin/bootstrap.min.css
314
343
  - app/stylesheets/admin/login.scss
315
- - app/stylesheets/bootstrap-responsive.css
316
- - app/stylesheets/bootstrap-responsive.min.css
317
- - app/stylesheets/bootstrap.css
318
- - app/stylesheets/bootstrap.min.css
319
344
  - app/stylesheets/style.scss
320
345
  - app/views/admin.haml
321
346
  - app/views/admin/categories.haml
@@ -350,6 +375,7 @@ files:
350
375
  - lib/days/migrate/20131012011500_add_old_path_to_entries.rb
351
376
  - lib/days/migrator.rb
352
377
  - lib/days/models.rb
378
+ - lib/days/models/base.rb
353
379
  - lib/days/models/category.rb
354
380
  - lib/days/models/entry.rb
355
381
  - lib/days/models/user.rb
@@ -387,17 +413,17 @@ require_paths:
387
413
  - lib
388
414
  required_ruby_version: !ruby/object:Gem::Requirement
389
415
  requirements:
390
- - - '>='
416
+ - - ">="
391
417
  - !ruby/object:Gem::Version
392
418
  version: '0'
393
419
  required_rubygems_version: !ruby/object:Gem::Requirement
394
420
  requirements:
395
- - - '>='
421
+ - - ">"
396
422
  - !ruby/object:Gem::Version
397
- version: '0'
423
+ version: 1.3.1
398
424
  requirements: []
399
425
  rubyforge_project:
400
- rubygems_version: 2.0.3
426
+ rubygems_version: 2.4.5
401
427
  signing_key:
402
428
  specification_version: 4
403
429
  summary: Simple blog system built up with Sinatra.
@@ -419,4 +445,3 @@ test_files:
419
445
  - spec/models/entry_spec.rb
420
446
  - spec/shared/admin.rb
421
447
  - spec/spec_helper.rb
422
- has_rdoc: