zhong 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/LICENSE.txt +4 -21
- data/lib/zhong/version.rb +1 -1
- data/lib/zhong/web.rb +2 -0
- data/lib/zhong/web_helpers.rb +2 -0
- data/web/views/index.erb +1 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 81d9294dbbebe0cde178f07a3fcbd03201b13df4
|
4
|
+
data.tar.gz: 4fb2d954f64d9cd5ae03268ba6caeee9a319baad
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 644f3f05965f21cfd18d92c130bbb17734e368b150166ddaec53b0ae76b0f3cfb95b882ca8d54bf991be80b8c33f3a300f7426c7b1f798ff4f1104621002d844
|
7
|
+
data.tar.gz: c21398e6d6e085e06d813dc5d12ffc2cabf303b88e886360b0b37a33d0d9d77883ff4205bc9fe9f6a2d0ba817b45a073181c9eddd0392aad9318c1d608e0309c
|
data/CHANGELOG.md
CHANGED
data/LICENSE.txt
CHANGED
@@ -1,22 +1,5 @@
|
|
1
|
-
Copyright (c)
|
1
|
+
Copyright (c) Nick Elser
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
a copy of this software and associated documentation files (the
|
7
|
-
"Software"), to deal in the Software without restriction, including
|
8
|
-
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
-
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
-
permit persons to whom the Software is furnished to do so, subject to
|
11
|
-
the following conditions:
|
12
|
-
|
13
|
-
The above copyright notice and this permission notice shall be
|
14
|
-
included in all copies or substantial portions of the Software.
|
15
|
-
|
16
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
-
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
-
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
-
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
-
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
3
|
+
Zhong is an Open Source project licensed under the terms of
|
4
|
+
the LGPLv3 license. Please see <http://www.gnu.org/licenses/lgpl-3.0.html>
|
5
|
+
for license text.
|
data/lib/zhong/version.rb
CHANGED
data/lib/zhong/web.rb
CHANGED
@@ -6,6 +6,8 @@ require "zhong"
|
|
6
6
|
require "zhong/web_helpers"
|
7
7
|
|
8
8
|
module Zhong
|
9
|
+
# Most of the following helpers are copied from a previous version of the Sidekiq project
|
10
|
+
# available here: https://github.com/mperham/sidekiq/blob/2c9f7662fcdcb52d59b72ba0fe7dc5f963de4904/lib/sidekiq/web.rb
|
9
11
|
class Web < Sinatra::Base
|
10
12
|
enable :sessions
|
11
13
|
use ::Rack::Protection, use: :authenticity_token unless ENV["RACK_ENV"] == "test"
|
data/lib/zhong/web_helpers.rb
CHANGED
@@ -2,6 +2,8 @@
|
|
2
2
|
require "uri"
|
3
3
|
|
4
4
|
module Zhong
|
5
|
+
# Most of the following helpers are copied from a previous version of the Sidekiq project
|
6
|
+
# available here: https://github.com/mperham/sidekiq/blob/2c9f7662fcdcb52d59b72ba0fe7dc5f963de4904/lib/sidekiq/web_helpers.rb
|
5
7
|
module WebHelpers
|
6
8
|
# Simple capture method for erb templates. The origin was
|
7
9
|
# capture method from sinatra-contrib library.
|
data/web/views/index.erb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: zhong
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nick Elser
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-04-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: suo
|