punk 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -0
- data/VERSION +1 -1
- data/lib/punk/core/app.rb +19 -2
- data/punk.gemspec +3 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2604a02ba87de49a6b4c354c95dbc589d27fd864ffffe890e1ce8396a74f8974
|
4
|
+
data.tar.gz: 53e4625a213c0ba33283b08906c4d5f82300af059fc6c9efb391208f3524dee8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 17af3680ed0db2487ad66aba2c0da4967f67fa83ae4a05df9f36a4371060478bd575dfa28ca45604ec93b539ae2bfd86d23cb0efa5eba46c7bdfb8ad9b5a3285
|
7
|
+
data.tar.gz: d38265e8c9e61a35dda9bcc6d8641d4cb30f1dc578f54af293f97b03552e292285c41753f0b9442746c66a134295d33739a7af66e5e64916f6baf5aa85223e84
|
data/README.md
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.2
|
data/lib/punk/core/app.rb
CHANGED
@@ -29,9 +29,26 @@ module PUNK
|
|
29
29
|
class App < Roda
|
30
30
|
include Loggable
|
31
31
|
|
32
|
-
PUBLIC = File.join(PUNK.get.app.path, '..', 'www')
|
33
|
-
INDEX = File.read(File.join(PUBLIC, 'index.html'))
|
34
32
|
REMOTE = PUNK.env.staging? || PUNK.env.production?
|
33
|
+
PUBLIC = File.join(PUNK.get.app.path, '..', 'www')
|
34
|
+
index_path = File.join(PUBLIC, 'index.html')
|
35
|
+
INDEX =
|
36
|
+
if File.exist?(index_path)
|
37
|
+
File.read(index_path)
|
38
|
+
else
|
39
|
+
<<~EOF
|
40
|
+
<!DOCTYPE html>
|
41
|
+
<html>
|
42
|
+
<head>
|
43
|
+
<title>Let's Punk!</title>
|
44
|
+
</head>
|
45
|
+
<body>
|
46
|
+
<h1>Let's Punk!</h1>
|
47
|
+
<p>Are you <a href="https://github.com/kranzky/lets-punk">ready</a> to rock?</p>
|
48
|
+
</body>
|
49
|
+
</html>
|
50
|
+
EOF
|
51
|
+
end
|
35
52
|
|
36
53
|
plugin :sessions, secret: [PUNK.get.cookie.secret].pack('H*'),
|
37
54
|
key: PUNK.get.cookie.key,
|
data/punk.gemspec
CHANGED
@@ -2,16 +2,16 @@
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
3
|
# Instead, edit Juwelier::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
|
-
# stub: punk 0.0.
|
5
|
+
# stub: punk 0.0.2 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "punk".freeze
|
9
|
-
s.version = "0.0.
|
9
|
+
s.version = "0.0.2"
|
10
10
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
|
12
12
|
s.require_paths = ["lib".freeze]
|
13
13
|
s.authors = ["Lloyd Kranzky".freeze]
|
14
|
-
s.date = "2021-01-
|
14
|
+
s.date = "2021-01-08"
|
15
15
|
s.description = "".freeze
|
16
16
|
s.email = "lloyd@kranzky.com".freeze
|
17
17
|
s.executables = ["punk".freeze]
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: punk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lloyd Kranzky
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-01-
|
11
|
+
date: 2021-01-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bootsnap
|