turl 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: edc78b86ab00971907c4135b49e0aa815fbf50f8ca0c51331811a528c2ba0733
4
- data.tar.gz: 84c27498e752a7bd98ec9e944d0b446bfad8c249b66ce29d01405f6f9403db3e
3
+ metadata.gz: 534464af56414d45cdb2c0d535eb45da7f8878bdcd98e8dd4fb81ebfeba9dbd3
4
+ data.tar.gz: c1913e8632b4996e952ce616b526c10ef4393b95feb2522536c2df8c4bc4e7ba
5
5
  SHA512:
6
- metadata.gz: d43560abcea1393bf44d5f18cedd04ec7c433eb83553f256f5d86dc73193d25153a226c7b8221e0339387223f8cc1880f169a5cc2652a691e8c1e80e5f81db70
7
- data.tar.gz: 111723347b196e5bbd810ae14948524149e34011611d2abd99bb0c90a6d8d6d828766a0f10b59d42e2a31be02b7521b826e286a90d90155aa19065d60df37aae
6
+ metadata.gz: 6db83b8851174ffc6badd24e96e53e961c6c8ab1065f646629fc1d397ffe0c46850720c1e91619642b3621ca3c61f7a187b9e916eccb5b45adc00e62b3e73dc7
7
+ data.tar.gz: eb446982abe04f241da90c73d862e9f5bb54b0f516cb784cb9d55644c5caff7a26312f7311e8dc99eb5076c7e1a0105fa88293cf69c4a8bf7086ccbad2b78d1f
data/.gitignore CHANGED
@@ -7,3 +7,4 @@
7
7
  /spec/reports/
8
8
  /tmp/
9
9
  /Gemfile.lock
10
+ /.sass-cache/
@@ -1,3 +1,3 @@
1
1
  module Turl
2
- VERSION = "0.1.0"
2
+ VERSION = "0.2.0"
3
3
  end
@@ -0,0 +1,15 @@
1
+ body {
2
+ display: flex;
3
+ justify-content: center;
4
+ }
5
+
6
+ .links {
7
+ list-style-type: none;
8
+
9
+ &-item {
10
+ display: block;
11
+ width: 800px;
12
+ border: 1px solid #999;
13
+ margin-top: 10px;
14
+ }
15
+ }
@@ -0,0 +1,5 @@
1
+ <link rel="stylesheet" href="app.css">
2
+
3
+ <body>
4
+ <%== yield %>
5
+ </body>
@@ -1,8 +1,8 @@
1
- <ul>
1
+ <ul class="links">
2
2
  <% links.each do |link| %>
3
- <li>
3
+ <li class="links-item">
4
4
  <a href="<%= link.normalized_url %>">
5
- <%= link.title %>
5
+ <h3><%= link.title %></h3>
6
6
  <br />
7
7
  <small><%= link.normalized_url %></small>
8
8
  </li>
@@ -16,7 +16,11 @@ module Turl
16
16
 
17
17
  get '/' do
18
18
  links = Link.where('updated_at > ?', 1.week.ago).order(updated_at: :desc)
19
- erb :'root.html', locals: { links: links }
19
+ erb :'root.html', locals: { links: links }, layout: :'layout.html'
20
+ end
21
+
22
+ get '/app.css' do
23
+ scss :app
20
24
  end
21
25
  end
22
26
  end
@@ -30,4 +30,5 @@ Gem::Specification.new do |spec|
30
30
  spec.add_runtime_dependency 'nokogiri'
31
31
  spec.add_runtime_dependency 'sinatra'
32
32
  spec.add_runtime_dependency 'erubi'
33
+ spec.add_runtime_dependency 'sassc'
33
34
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: turl
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Masataka Pocke Kuwabara
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-04-29 00:00:00.000000000 Z
11
+ date: 2020-05-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: twitter
@@ -94,6 +94,20 @@ dependencies:
94
94
  - - ">="
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: sassc
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :runtime
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
97
111
  description: ''
98
112
  email:
99
113
  - kuwabara@pocke.me
@@ -121,6 +135,8 @@ files:
121
135
  - lib/turl/twitter_user.rb
122
136
  - lib/turl/url_normalization.rb
123
137
  - lib/turl/version.rb
138
+ - lib/turl/views/app.scss
139
+ - lib/turl/views/layout.html.erb
124
140
  - lib/turl/views/root.html.erb
125
141
  - lib/turl/web.rb
126
142
  - turl.gemspec
@@ -144,7 +160,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
144
160
  - !ruby/object:Gem::Version
145
161
  version: '0'
146
162
  requirements: []
147
- rubygems_version: 3.1.2
163
+ rubygems_version: 3.2.0.pre1
148
164
  signing_key:
149
165
  specification_version: 4
150
166
  summary: ''