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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ea74e63be37e986a7c2b24fa2e0ac4d03611e95b2e45666f0a90ffa400f713e7
4
- data.tar.gz: 23e5c0cceee26d6a91208ba0c888734b0a808df363dcb38b81bec88a09f2d9c9
3
+ metadata.gz: 2604a02ba87de49a6b4c354c95dbc589d27fd864ffffe890e1ce8396a74f8974
4
+ data.tar.gz: 53e4625a213c0ba33283b08906c4d5f82300af059fc6c9efb391208f3524dee8
5
5
  SHA512:
6
- metadata.gz: e045c3f240e770bdf84f2bfecad84e4c72aba84c9144c63d4c9a42f32038ee0472bc9fbb181b2259f77c61c58c4cd0f984b74757b7934a8a7b1831df73832add
7
- data.tar.gz: 32002a44687a09ecddce0d703dda8d2830e3705aa5062482bfae7ffe57c160d6aea9cd25ecd37e987721620adaef8459f6bea8e16daf351acf5ae443cfd3d944
6
+ metadata.gz: 17af3680ed0db2487ad66aba2c0da4967f67fa83ae4a05df9f36a4371060478bd575dfa28ca45604ec93b539ae2bfd86d23cb0efa5eba46c7bdfb8ad9b5a3285
7
+ data.tar.gz: d38265e8c9e61a35dda9bcc6d8641d4cb30f1dc578f54af293f97b03552e292285c41753f0b9442746c66a134295d33739a7af66e5e64916f6baf5aa85223e84
data/README.md CHANGED
@@ -1,3 +1,5 @@
1
+ [![Gem Version](https://badge.fury.io/rb/punk.svg)](https://badge.fury.io/rb/punk)
2
+
1
3
  # Punk!
2
4
 
3
5
  Punk! is an omakase web framework for rapid prototyping.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.1
1
+ 0.0.2
@@ -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,
@@ -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.1 ruby lib
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.1"
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-07"
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.1
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-07 00:00:00.000000000 Z
11
+ date: 2021-01-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bootsnap