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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bb9ab1ce96b39e521d36cf4affe642be937a30b3
4
- data.tar.gz: a517d0f704b84c88293cb944c7baa7d4061e3e50
3
+ metadata.gz: 81d9294dbbebe0cde178f07a3fcbd03201b13df4
4
+ data.tar.gz: 4fb2d954f64d9cd5ae03268ba6caeee9a319baad
5
5
  SHA512:
6
- metadata.gz: 928f9c6ffe3189ad8ca6a4a6dd81516835f975bac08017232d3fe8af175be48db0682c945683f1151b5925f1e78e102ef9525ea22fa36be371c3f635a3847a60
7
- data.tar.gz: 440927716a0dafdd0793e07532d59c466d14d3997dd90a3eb7e83e7d3fbeb4cb5a249cf8a571922c831572d2c7462523fe44f27217b14a8c7b695d7b086c2bed
6
+ metadata.gz: 644f3f05965f21cfd18d92c130bbb17734e368b150166ddaec53b0ae76b0f3cfb95b882ca8d54bf991be80b8c33f3a300f7426c7b1f798ff4f1104621002d844
7
+ data.tar.gz: c21398e6d6e085e06d813dc5d12ffc2cabf303b88e886360b0b37a33d0d9d77883ff4205bc9fe9f6a2d0ba817b45a073181c9eddd0392aad9318c1d608e0309c
@@ -1,3 +1,7 @@
1
+ ## 0.2.2
2
+
3
+ - Re-licensed as LGPL, as I lifted Sidekiq-web code to power Zhong web (thanks Mike Perham for the great gem and the code!)
4
+
1
5
  ## 0.2.1
2
6
 
3
7
  - Fix manually specifying a Redis connection (thanks, Richard Adams!)
@@ -1,22 +1,5 @@
1
- Copyright (c) 2015 Nick Elser
1
+ Copyright (c) Nick Elser
2
2
 
3
- MIT License
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining
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.
@@ -1,3 +1,3 @@
1
1
  module Zhong
2
- VERSION = "0.2.1".freeze
2
+ VERSION = "0.2.2".freeze
3
3
  end
@@ -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"
@@ -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.
@@ -1,4 +1,5 @@
1
1
  <!DOCTYPE html>
2
+ <!-- This view based on ankane/clockwork_web's interface https://github.com/ankane/clockwork_web/blob/master/app/views/clockwork_web/home/index.html.erb -->
2
3
  <html>
3
4
  <head>
4
5
  <title><%= environment_title_prefix %>Zhong</title>
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.1
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-01-14 00:00:00.000000000 Z
11
+ date: 2017-04-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: suo