Skip to content

Commit

Permalink
Merge pull request #15 from nickelser/relicense-to-lgpl
Browse files Browse the repository at this point in the history
Relicense to LGPL and add proper attribution for some code.
  • Loading branch information
nickelser committed Apr 13, 2017
2 parents 6c619d0 + 88c18f8 commit c799256
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 22 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.2.2

- Re-licensed as LGPL, as I lifted Sidekiq-web code to power Zhong web (thanks Mike Perham for the great gem and the code!)

## 0.2.1

- Fix manually specifying a Redis connection (thanks, Richard Adams!)
Expand Down
25 changes: 4 additions & 21 deletions LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,22 +1,5 @@
Copyright (c) 2015 Nick Elser
Copyright (c) Nick Elser

MIT License

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Zhong is an Open Source project licensed under the terms of
the LGPLv3 license. Please see <http://www.gnu.org/licenses/lgpl-3.0.html>
for license text.
2 changes: 1 addition & 1 deletion lib/zhong/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module Zhong
VERSION = "0.2.1".freeze
VERSION = "0.2.2".freeze
end
2 changes: 2 additions & 0 deletions lib/zhong/web.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
require "zhong/web_helpers"

module Zhong
# Most of the following helpers are copied from a previous version of the Sidekiq project
# available here: https://github.com/mperham/sidekiq/blob/2c9f7662fcdcb52d59b72ba0fe7dc5f963de4904/lib/sidekiq/web.rb
class Web < Sinatra::Base
enable :sessions
use ::Rack::Protection, use: :authenticity_token unless ENV["RACK_ENV"] == "test"
Expand Down
2 changes: 2 additions & 0 deletions lib/zhong/web_helpers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
require "uri"

module Zhong
# Most of the following helpers are copied from a previous version of the Sidekiq project
# available here: https://github.com/mperham/sidekiq/blob/2c9f7662fcdcb52d59b72ba0fe7dc5f963de4904/lib/sidekiq/web_helpers.rb
module WebHelpers
# Simple capture method for erb templates. The origin was
# capture method from sinatra-contrib library.
Expand Down
1 change: 1 addition & 0 deletions web/views/index.erb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<!DOCTYPE html>
<!-- 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 -->
<html>
<head>
<title><%= environment_title_prefix %>Zhong</title>
Expand Down

0 comments on commit c799256

Please sign in to comment.