carraway 0.2.0 → 0.2.1

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9d8e34bdc6fe36b91e4f9832faeafca92c41cb1767f3395978fae1d6c4e906ec
4
- data.tar.gz: e874ee4468fe8d2702430d10214dfd13651a22cb31a2e5a6c58f61a7e5f965ef
3
+ metadata.gz: 35663f69d3c3df5b55e4126389a996dd61ee12960d16253a7809fa994ea97121
4
+ data.tar.gz: bd7a4c26317395e1a0ed6c0b62325d9134f32371bd1b6cd11390fce48e3850a7
5
5
  SHA512:
6
- metadata.gz: 73e0198dd612d5274164b0093fffc586a82d96423f64a8445076028c0977e88cfc693304e365348cf34ecfc377a019257b272104ff3022b40bba07b48df15400
7
- data.tar.gz: a4cf3ab6db898c0268808bd22d782965438b404917ced1cfd599e60059f269a22f35eaa02a7b6b49296c05868b1309281c610419dc3f65d65aa4cc609d5551ac
6
+ metadata.gz: 8d20f1e709f63db268c34be452673b348495fae3c6f0fbe85909bda12e90d56cd737c13dccc926f33b2bcbbab4098803a4a05a7e7eadb9a2745aa45fc53b338c
7
+ data.tar.gz: ec450f3fb95ff93c4c90620b1376d257c59c84ccfbf3ee30e38d044f02cc84398b869cad3a06995356af502720e1e039397687e491121629db037826e99e8c9a
@@ -10,10 +10,10 @@ module Carraway
10
10
  use Rack::Flash
11
11
 
12
12
  get '/' do
13
- redirect '/carraway'
13
+ redirect '/carraway/'
14
14
  end
15
15
 
16
- get '/carraway' do
16
+ get '/carraway/' do
17
17
  @categories = Category.all
18
18
  @category_posts = Post.all.group_by {|post| post.category.key }
19
19
  erb :top
@@ -47,7 +47,7 @@ module Carraway
47
47
  redirect "http://localhost:8000#{@post.path}"
48
48
  end
49
49
 
50
- post '/carraway' do
50
+ post '/carraway/' do
51
51
  @post = Post.create(
52
52
  title: params[:title],
53
53
  path: params[:path],
@@ -1,3 +1,3 @@
1
1
  module Carraway
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
@@ -12,7 +12,7 @@
12
12
  <div class="nav-wrapper">
13
13
  <a href="/carraway" class="brand-logo">Carraway</a>
14
14
  <ul id="nav-mobile" class="right hide-on-med-and-down">
15
- <li><a href="/carraway">記事一覧</a></li>
15
+ <li><a href="/carraway/">記事一覧</a></li>
16
16
  <li><a href="/carraway/new">新規作成</a></li>
17
17
  </ul>
18
18
  </div>
@@ -1,5 +1,5 @@
1
1
  <div class="row">
2
- <form action="/carraway" method="POST" class="col s12">
2
+ <form action="/carraway/" method="POST" class="col s12">
3
3
  <div class="row">
4
4
  <label>記事カテゴリー</label>
5
5
  <select name="category" class="browser-default">
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: carraway
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - adorechic
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-08-30 00:00:00.000000000 Z
11
+ date: 2018-08-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor