guyifeng 0.1.6 → 0.1.7

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
  SHA1:
3
- metadata.gz: 90c4cf2e70181571f44f83c611c2f15513160e05
4
- data.tar.gz: 44beac03481de7630f991cf2c19ef9e67a5fcbdf
3
+ metadata.gz: f2e6e820a3b861213d0e3d140027431a2a1f8ae7
4
+ data.tar.gz: c8eca910ad67585c5cab9c002d7d68908d30d3fd
5
5
  SHA512:
6
- metadata.gz: 1217b82687fb6a0b4552cdd8824149496d54023eaceceea4abc11992b70543f3b64990957910cbb68a30ac799df40829b869cc52f5b07c7abea2a7dc4d601b08
7
- data.tar.gz: 3556b199c28d74df7a4ed0b94fa33b27324eeb172fc1b8547115c803cf33a03710091d30dfd4a684edbedb14ab40ee7f28be3a3675c2f37d2c84b99d370869d7
6
+ metadata.gz: 0acfa1aefed4febcef0889858a7f3e0b65b0b37176b5991e867fbfcb548a68be5278b5dab2b8edf7fce48c48f2c08caab8f08305676bd31f0d179f3d35600bee
7
+ data.tar.gz: 4e448f89c5dad138cd533e9852b21e31b16da0a5579def9a84808b23d03cbc3489fb46783494dd937a66cea4d83de8e2e7687a504dde1df124134de0249020d1
@@ -18,11 +18,11 @@ gem 'slim'
18
18
 
19
19
  gem 'zbatery'
20
20
 
21
+ gem 'puma'
22
+
21
23
  gem 'redis-sinatra'
22
24
 
23
25
  group :development do
24
-
25
- # 报错调试
26
26
  gem 'better_errors'
27
27
  gem 'binding_of_caller'
28
28
  end
@@ -1,5 +1,4 @@
1
+ require "sinatra/activerecord"
1
2
  require "sinatra/activerecord/rake"
2
3
 
3
- Dir["./lib/tasks/*.rake"].sort.each { |ext| load ext }
4
-
5
- require './application'
4
+ Dir["./lib/tasks/*.rake"].sort.each { |ext| load ext }
@@ -0,0 +1,12 @@
1
+ pidfile "log/mixture.pid"
2
+ state_path "log/mixture.state"
3
+ daemonize true
4
+ workers 0
5
+ threads 0,32
6
+ bind 'tcp://0.0.0.0:8080'
7
+ environment 'production'
8
+ on_restart do
9
+ puts 'On restart...'
10
+ end
11
+
12
+ preload_app!
@@ -1,6 +1,4 @@
1
1
  helpers do
2
-
3
- # <%= h scary_output %>
4
2
  def h(text)
5
3
  Rack::Utils.escape_html(text)
6
4
  end
@@ -1,3 +1,3 @@
1
1
  module Guyifeng
2
- VERSION = "0.1.6"
2
+ VERSION = "0.1.7"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: guyifeng
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - guyifeng
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-12-04 00:00:00.000000000 Z
11
+ date: 2014-12-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -86,6 +86,7 @@ files:
86
86
  - lib/guyifeng/template/config.ru.tt
87
87
  - lib/guyifeng/template/config/application.yml
88
88
  - lib/guyifeng/template/config/database.yml
89
+ - lib/guyifeng/template/config/puma.rb
89
90
  - lib/guyifeng/template/config/zbatery.rb.tt
90
91
  - lib/guyifeng/template/db/migrate/20141128021338_users.rb
91
92
  - lib/guyifeng/template/helpers/.gitkeep