diff -Nru ruby-jekyll-coffeescript-1.0.1/debian/changelog ruby-jekyll-coffeescript-1.2.2/debian/changelog --- ruby-jekyll-coffeescript-1.0.1/debian/changelog 2015-11-10 15:04:25.000000000 +0000 +++ ruby-jekyll-coffeescript-1.2.2/debian/changelog 2019-07-18 00:59:12.000000000 +0000 @@ -1,3 +1,21 @@ +ruby-jekyll-coffeescript (1.2.2-1) unstable; urgency=medium + + * New upstream release. + * d/compat: Raised compat level to 12. + * d/control: Added Enhances field. + (Uploaders): Added myself. + (Build-Depends): Raised debhelper version. + (Standards-Version): Bumped to 4.4.0. + (Vcs-Git, Vcs-Browser): Updated for salsa.d.o. + * d/copyright: Updated. + * d/ruby-jekyll-coffeescript.docs: Removed. Readme.md not shipped with gem. + * d/rules (override_dh_installchangelogs): Removed for same reason. + * d/watch: Updated to use gemwatch.d.n. + * d/README.Debian: Dropped (no useful content). + * d/patches/: Dropped completely. + + -- Daniel Leidert Thu, 18 Jul 2019 02:59:12 +0200 + ruby-jekyll-coffeescript (1.0.1-2) unstable; urgency=medium * Bump Compat: 9 diff -Nru ruby-jekyll-coffeescript-1.0.1/debian/compat ruby-jekyll-coffeescript-1.2.2/debian/compat --- ruby-jekyll-coffeescript-1.0.1/debian/compat 2015-11-10 14:58:34.000000000 +0000 +++ ruby-jekyll-coffeescript-1.2.2/debian/compat 2019-07-18 00:59:12.000000000 +0000 @@ -1 +1 @@ -9 +12 diff -Nru ruby-jekyll-coffeescript-1.0.1/debian/control ruby-jekyll-coffeescript-1.2.2/debian/control --- ruby-jekyll-coffeescript-1.0.1/debian/control 2015-11-10 14:58:43.000000000 +0000 +++ ruby-jekyll-coffeescript-1.2.2/debian/control 2019-07-18 00:59:12.000000000 +0000 @@ -2,18 +2,23 @@ Section: ruby Priority: optional Maintainer: Debian Ruby Extras Maintainers -Uploaders: Youhei SASAKI -Build-Depends: debhelper (>= 9~), gem2deb (>= 0.7.5~) -Standards-Version: 3.9.6 -Vcs-Git: git://anonscm.debian.org/pkg-ruby-extras/ruby-jekyll-coffeescript.git -Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-ruby-extras/ruby-jekyll-coffeescript.git;a=summary +Uploaders: Youhei SASAKI , + Daniel Leidert +Build-Depends: debhelper (>= 12~), gem2deb +Standards-Version: 4.4.0 +Vcs-Git: https://salsa.debian.org/ruby-team/ruby-jekyll-coffeescript.git +Vcs-Browser: https://salsa.debian.org/ruby-team/ruby-jekyll-coffeescript Homepage: https://github.com/jekyll/jekyll-coffeescript XS-Ruby-Versions: all Package: ruby-jekyll-coffeescript Architecture: all XB-Ruby-Versions: ${ruby:Versions} -Depends: ${shlibs:Depends}, ${misc:Depends}, ruby | ruby-interpreter, ruby-coffee-script +Depends: ruby | ruby-interpreter, + ruby-coffee-script, + ${misc:Depends}, + ${shlibs:Depends} +Enhances: jekyll Description: CoffeeScript converter for Jekyll Jekyll::Coffeescript is a coffeeScript converter for Jekyll. In your Jekyll site, create CoffeeScript files that start with the diff -Nru ruby-jekyll-coffeescript-1.0.1/debian/copyright ruby-jekyll-coffeescript-1.2.2/debian/copyright --- ruby-jekyll-coffeescript-1.0.1/debian/copyright 2015-11-04 06:22:14.000000000 +0000 +++ ruby-jekyll-coffeescript-1.2.2/debian/copyright 2019-07-18 00:59:12.000000000 +0000 @@ -1,15 +1,17 @@ -Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: jekyll-coffeescript Source: https://github.com/jekyll/jekyll-coffeescript Files: * -Copyright: 2014 Parker Moore +Copyright: 2014-2019 Parker Moore License: Expat Files: debian/* Copyright: 2014 Youhei SASAKI + 2019 Daniel Leidert License: Expat -Comment: the Debian packaging is licensed under the same terms as the original package. +Comment: The Debian packaging is licensed under the same terms as the original + package. License: Expat Permission is hereby granted, free of charge, to any person obtaining diff -Nru ruby-jekyll-coffeescript-1.0.1/debian/patches/0001-Replace-gemspec-git-execution.patch ruby-jekyll-coffeescript-1.2.2/debian/patches/0001-Replace-gemspec-git-execution.patch --- ruby-jekyll-coffeescript-1.0.1/debian/patches/0001-Replace-gemspec-git-execution.patch 2015-11-10 15:01:03.000000000 +0000 +++ ruby-jekyll-coffeescript-1.2.2/debian/patches/0001-Replace-gemspec-git-execution.patch 1970-01-01 00:00:00.000000000 +0000 @@ -1,22 +0,0 @@ -From: Youhei SASAKI -Date: Wed, 11 Nov 2015 00:00:58 +0900 -Subject: Replace gemspec git execution - -Signed-off-by: Youhei SASAKI ---- - jekyll-coffeescript.gemspec | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/jekyll-coffeescript.gemspec b/jekyll-coffeescript.gemspec -index ee5348b..871678e 100644 ---- a/jekyll-coffeescript.gemspec -+++ b/jekyll-coffeescript.gemspec -@@ -12,7 +12,7 @@ Gem::Specification.new do |spec| - spec.homepage = "https://github.com/jekyll/jekyll-coffeescript" - spec.license = "MIT" - -- spec.files = `git ls-files`.split($/).grep(%r{(lib/)}) -+ spec.files = [".gitignore",".rspec",".travis.yml","Gemfile","History.markdown","LICENSE.txt","README.md","Rakefile","jekyll-coffeescript.gemspec","lib/jekyll-coffeescript.rb","lib/jekyll-coffeescript/version.rb","lib/jekyll/converters/coffeescript.rb","script/bootstrap","script/cibuild","script/rebund","script/release","spec/coffeescript_spec.rb","spec/spec_helper.rb"] - spec.require_paths = ["lib"] - - spec.add_runtime_dependency "coffee-script", "~> 2.2" diff -Nru ruby-jekyll-coffeescript-1.0.1/debian/patches/series ruby-jekyll-coffeescript-1.2.2/debian/patches/series --- ruby-jekyll-coffeescript-1.0.1/debian/patches/series 2015-11-10 15:01:03.000000000 +0000 +++ ruby-jekyll-coffeescript-1.2.2/debian/patches/series 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -0001-Replace-gemspec-git-execution.patch diff -Nru ruby-jekyll-coffeescript-1.0.1/debian/README.Debian ruby-jekyll-coffeescript-1.2.2/debian/README.Debian --- ruby-jekyll-coffeescript-1.0.1/debian/README.Debian 2015-11-04 06:22:14.000000000 +0000 +++ ruby-jekyll-coffeescript-1.2.2/debian/README.Debian 1970-01-01 00:00:00.000000000 +0000 @@ -1,6 +0,0 @@ -README.Debian -============= - -* Disabled all tests in order to avoid chain dependency - - -- Youhei SASAKI , Sat, 14 Jun 2014 13:24:20 +0900 diff -Nru ruby-jekyll-coffeescript-1.0.1/debian/ruby-jekyll-coffeescript.docs ruby-jekyll-coffeescript-1.2.2/debian/ruby-jekyll-coffeescript.docs --- ruby-jekyll-coffeescript-1.0.1/debian/ruby-jekyll-coffeescript.docs 2015-11-04 06:22:14.000000000 +0000 +++ ruby-jekyll-coffeescript-1.2.2/debian/ruby-jekyll-coffeescript.docs 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -README.md diff -Nru ruby-jekyll-coffeescript-1.0.1/debian/rules ruby-jekyll-coffeescript-1.2.2/debian/rules --- ruby-jekyll-coffeescript-1.0.1/debian/rules 2015-11-04 06:22:14.000000000 +0000 +++ ruby-jekyll-coffeescript-1.2.2/debian/rules 2019-07-18 00:59:12.000000000 +0000 @@ -13,6 +13,3 @@ %: dh $@ --buildsystem=ruby --with ruby - -override_dh_installchangelogs: - dh_installchangelogs History.markdown diff -Nru ruby-jekyll-coffeescript-1.0.1/debian/watch ruby-jekyll-coffeescript-1.2.2/debian/watch --- ruby-jekyll-coffeescript-1.0.1/debian/watch 2015-11-04 06:22:14.000000000 +0000 +++ ruby-jekyll-coffeescript-1.2.2/debian/watch 2019-07-18 00:59:12.000000000 +0000 @@ -1,3 +1,2 @@ -version=3 -opts=filenamemangle=s/.+\/v?(\d\S*)\.tar\.gz/jekyll-coffeescript-$1\.tar\.gz/ \ - https://github.com/jekyll/jekyll-coffeescript/tags .*/v?(\d\S*)\.tar\.gz +version=4 +https://gemwatch.debian.net/jekyll-coffeescript .*/jekyll-coffeescript-(.*).tar.gz diff -Nru ruby-jekyll-coffeescript-1.0.1/Gemfile ruby-jekyll-coffeescript-1.2.2/Gemfile --- ruby-jekyll-coffeescript-1.0.1/Gemfile 2014-08-31 21:21:14.000000000 +0000 +++ ruby-jekyll-coffeescript-1.2.2/Gemfile 1970-01-01 00:00:00.000000000 +0000 @@ -1,2 +0,0 @@ -source 'http://us.yarp.io' -gemspec diff -Nru ruby-jekyll-coffeescript-1.0.1/.gitignore ruby-jekyll-coffeescript-1.2.2/.gitignore --- ruby-jekyll-coffeescript-1.0.1/.gitignore 2014-08-31 21:21:14.000000000 +0000 +++ ruby-jekyll-coffeescript-1.2.2/.gitignore 1970-01-01 00:00:00.000000000 +0000 @@ -1,17 +0,0 @@ -*.gem -*.rbc -.bundle -.config -.yardoc -Gemfile.lock -InstalledFiles -_yardoc -coverage -doc/ -lib/bundler/man -pkg -rdoc -spec/reports -test/tmp -test/version_tmp -tmp diff -Nru ruby-jekyll-coffeescript-1.0.1/History.markdown ruby-jekyll-coffeescript-1.2.2/History.markdown --- ruby-jekyll-coffeescript-1.0.1/History.markdown 2014-08-31 21:21:14.000000000 +0000 +++ ruby-jekyll-coffeescript-1.2.2/History.markdown 1970-01-01 00:00:00.000000000 +0000 @@ -1,14 +0,0 @@ -## 1.0.1 / 2014-08-31 - -### Bug Fixes - - * `Converters::CoffeeScript#matches` should never return anything but `true` or `false` (#7) - -### Development Fixes - - * Fix up some docs (#2) - * Change CSS to JS in spec (#6) - -### 1.0.0 / 2014-01-25 - - * Birthday! diff -Nru ruby-jekyll-coffeescript-1.0.1/jekyll-coffeescript.gemspec ruby-jekyll-coffeescript-1.2.2/jekyll-coffeescript.gemspec --- ruby-jekyll-coffeescript-1.0.1/jekyll-coffeescript.gemspec 2014-08-31 21:21:14.000000000 +0000 +++ ruby-jekyll-coffeescript-1.2.2/jekyll-coffeescript.gemspec 2019-04-13 11:19:22.000000000 +0000 @@ -1,24 +1,52 @@ -# coding: utf-8 -lib = File.expand_path('../lib', __FILE__) -$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) -require 'jekyll-coffeescript/version' +######################################################### +# This file has been automatically generated by gem2tgz # +######################################################### +# -*- encoding: utf-8 -*- +# stub: jekyll-coffeescript 1.2.2 ruby lib -Gem::Specification.new do |spec| - spec.name = "jekyll-coffeescript" - spec.version = Jekyll::Coffeescript::VERSION - spec.authors = ["Parker Moore"] - spec.email = ["parkrmoore@gmail.com"] - spec.summary = %q{A CoffeeScript converter for Jekyll.} - spec.homepage = "https://github.com/jekyll/jekyll-coffeescript" - spec.license = "MIT" +Gem::Specification.new do |s| + s.name = "jekyll-coffeescript".freeze + s.version = "1.2.2" - spec.files = `git ls-files`.split($/).grep(%r{(lib/)}) - spec.require_paths = ["lib"] + s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version= + s.require_paths = ["lib".freeze] + s.authors = ["Parker Moore".freeze] + s.date = "2019-03-24" + s.email = ["parkrmoore@gmail.com".freeze] + s.files = ["lib/jekyll-coffeescript.rb".freeze, "lib/jekyll-coffeescript/version.rb".freeze, "lib/jekyll/converters/coffeescript.rb".freeze] + s.homepage = "https://github.com/jekyll/jekyll-coffeescript".freeze + s.licenses = ["MIT".freeze] + s.required_ruby_version = Gem::Requirement.new(">= 2.3.0".freeze) + s.rubygems_version = "2.5.2.1".freeze + s.summary = "A CoffeeScript converter for Jekyll.".freeze - spec.add_runtime_dependency "coffee-script", "~> 2.2" + if s.respond_to? :specification_version then + s.specification_version = 4 - spec.add_development_dependency "jekyll", "~> 2.0" - spec.add_development_dependency "bundler", "~> 1.5" - spec.add_development_dependency "rake" - spec.add_development_dependency "rspec" + if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then + s.add_development_dependency(%q.freeze, [">= 0"]) + s.add_runtime_dependency(%q.freeze, ["~> 2.2"]) + s.add_runtime_dependency(%q.freeze, ["~> 1.12"]) + s.add_development_dependency(%q.freeze, [">= 2.0"]) + s.add_development_dependency(%q.freeze, [">= 0"]) + s.add_development_dependency(%q.freeze, [">= 0"]) + s.add_development_dependency(%q.freeze, ["~> 0.5"]) + else + s.add_dependency(%q.freeze, [">= 0"]) + s.add_dependency(%q.freeze, ["~> 2.2"]) + s.add_dependency(%q.freeze, ["~> 1.12"]) + s.add_dependency(%q.freeze, [">= 2.0"]) + s.add_dependency(%q.freeze, [">= 0"]) + s.add_dependency(%q.freeze, [">= 0"]) + s.add_dependency(%q.freeze, ["~> 0.5"]) + end + else + s.add_dependency(%q.freeze, [">= 0"]) + s.add_dependency(%q.freeze, ["~> 2.2"]) + s.add_dependency(%q.freeze, ["~> 1.12"]) + s.add_dependency(%q.freeze, [">= 2.0"]) + s.add_dependency(%q.freeze, [">= 0"]) + s.add_dependency(%q.freeze, [">= 0"]) + s.add_dependency(%q.freeze, ["~> 0.5"]) + end end diff -Nru ruby-jekyll-coffeescript-1.0.1/lib/jekyll/converters/coffeescript.rb ruby-jekyll-coffeescript-1.2.2/lib/jekyll/converters/coffeescript.rb --- ruby-jekyll-coffeescript-1.0.1/lib/jekyll/converters/coffeescript.rb 2014-08-31 21:21:14.000000000 +0000 +++ ruby-jekyll-coffeescript-1.2.2/lib/jekyll/converters/coffeescript.rb 2019-04-13 11:19:22.000000000 +0000 @@ -1,20 +1,28 @@ -module Jekyll - module Converters - class CoffeeScript < Converter - safe true - priority :low - - def matches(ext) - ext.downcase == ".coffee" - end - - def output_ext(ext) - ".js" - end - - def convert(content) - ::CoffeeScript.compile(content) - end - end - end -end +# frozen_string_literal: true + +module Jekyll + module Converters + class CoffeeScript < Converter + safe true + priority :low + + def setup + require "coffee-script" + @setup = true + end + + def matches(ext) + ext.casecmp(".coffee").zero? + end + + def output_ext(_ext) + ".js" + end + + def convert(content) + setup unless @setup + ::CoffeeScript.compile(content) + end + end + end +end diff -Nru ruby-jekyll-coffeescript-1.0.1/lib/jekyll-coffeescript/version.rb ruby-jekyll-coffeescript-1.2.2/lib/jekyll-coffeescript/version.rb --- ruby-jekyll-coffeescript-1.0.1/lib/jekyll-coffeescript/version.rb 2014-08-31 21:21:14.000000000 +0000 +++ ruby-jekyll-coffeescript-1.2.2/lib/jekyll-coffeescript/version.rb 2019-04-13 11:19:22.000000000 +0000 @@ -1,5 +1,7 @@ -module Jekyll - module Coffeescript - VERSION = "1.0.1" - end -end +# frozen_string_literal: true + +module Jekyll + module Coffeescript + VERSION = "1.2.2" + end +end diff -Nru ruby-jekyll-coffeescript-1.0.1/lib/jekyll-coffeescript.rb ruby-jekyll-coffeescript-1.2.2/lib/jekyll-coffeescript.rb --- ruby-jekyll-coffeescript-1.0.1/lib/jekyll-coffeescript.rb 2014-08-31 21:21:14.000000000 +0000 +++ ruby-jekyll-coffeescript-1.2.2/lib/jekyll-coffeescript.rb 2019-04-13 11:19:22.000000000 +0000 @@ -1,9 +1,10 @@ -require "jekyll" -require "coffee-script" -require "jekyll-coffeescript/version" -require "jekyll/converters/coffeescript" - -module Jekyll - module Coffeescript - end -end +# frozen_string_literal: true + +require "jekyll" +require "jekyll-coffeescript/version" +require "jekyll/converters/coffeescript" + +module Jekyll + module Coffeescript + end +end diff -Nru ruby-jekyll-coffeescript-1.0.1/LICENSE.txt ruby-jekyll-coffeescript-1.2.2/LICENSE.txt --- ruby-jekyll-coffeescript-1.0.1/LICENSE.txt 2014-08-31 21:21:14.000000000 +0000 +++ ruby-jekyll-coffeescript-1.2.2/LICENSE.txt 1970-01-01 00:00:00.000000000 +0000 @@ -1,22 +0,0 @@ -Copyright (c) 2014 Parker Moore - -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. diff -Nru ruby-jekyll-coffeescript-1.0.1/Rakefile ruby-jekyll-coffeescript-1.2.2/Rakefile --- ruby-jekyll-coffeescript-1.0.1/Rakefile 2014-08-31 21:21:14.000000000 +0000 +++ ruby-jekyll-coffeescript-1.2.2/Rakefile 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -require "bundler/gem_tasks" diff -Nru ruby-jekyll-coffeescript-1.0.1/README.md ruby-jekyll-coffeescript-1.2.2/README.md --- ruby-jekyll-coffeescript-1.0.1/README.md 2014-08-31 21:21:14.000000000 +0000 +++ ruby-jekyll-coffeescript-1.2.2/README.md 1970-01-01 00:00:00.000000000 +0000 @@ -1,49 +0,0 @@ -# Jekyll::Coffeescript - -A CoffeeScript converter for Jekyll. - -[![Build Status](https://travis-ci.org/jekyll/jekyll-coffeescript.svg?branch=master)](https://travis-ci.org/jekyll/jekyll-coffeescript) - -## Installation - -Add this line to your application's Gemfile: - -```ruby -gem 'jekyll-coffeescript' -``` - -And then execute: - -```bash -$ bundle -``` - -Or install it yourself as: - -```bash -$ gem install jekyll-coffeescript -``` - -**Notes: `jekyll-coffeescript` requires Ruby 1.9.3 or greater. Additionally, the dependency on `execjs` means you must also have a [valid JavaScript runtime](https://github.com/sstephenson/execjs#execjs) available to your project** - -## Usage - -In your Jekyll site, create CoffeeScript files that start with the following -lines: - -``` ---- ---- -``` - -You need those three dashes in order for Jekyll to recognize it as -"convertible". They won't be included in the content passed to the CoffeeScript -compiler. - -## Contributing - -1. Fork it (`http://github.com/jekyll/jekyll-coffeescript/fork`) -2. Create your feature branch (`git checkout -b my-new-feature`) -3. Commit your changes (`git commit -am "Add some feature"`) -4. Push to the branch (`git push origin my-new-feature`) -5. Create new Pull Request diff -Nru ruby-jekyll-coffeescript-1.0.1/.rspec ruby-jekyll-coffeescript-1.2.2/.rspec --- ruby-jekyll-coffeescript-1.0.1/.rspec 2014-08-31 21:21:14.000000000 +0000 +++ ruby-jekyll-coffeescript-1.2.2/.rspec 1970-01-01 00:00:00.000000000 +0000 @@ -1,2 +0,0 @@ ---color ---format progress diff -Nru ruby-jekyll-coffeescript-1.0.1/script/bootstrap ruby-jekyll-coffeescript-1.2.2/script/bootstrap --- ruby-jekyll-coffeescript-1.0.1/script/bootstrap 2014-08-31 21:21:14.000000000 +0000 +++ ruby-jekyll-coffeescript-1.2.2/script/bootstrap 1970-01-01 00:00:00.000000000 +0000 @@ -1,3 +0,0 @@ -#! /bin/bash - -bundle install diff -Nru ruby-jekyll-coffeescript-1.0.1/script/cibuild ruby-jekyll-coffeescript-1.2.2/script/cibuild --- ruby-jekyll-coffeescript-1.0.1/script/cibuild 2014-08-31 21:21:14.000000000 +0000 +++ ruby-jekyll-coffeescript-1.2.2/script/cibuild 1970-01-01 00:00:00.000000000 +0000 @@ -1,3 +0,0 @@ -#! /bin/bash - -bundle exec rspec diff -Nru ruby-jekyll-coffeescript-1.0.1/script/rebund ruby-jekyll-coffeescript-1.2.2/script/rebund --- ruby-jekyll-coffeescript-1.0.1/script/rebund 2014-08-31 21:21:14.000000000 +0000 +++ ruby-jekyll-coffeescript-1.2.2/script/rebund 1970-01-01 00:00:00.000000000 +0000 @@ -1,140 +0,0 @@ -#!/bin/bash -# -# rebund(1) -# -# Author: Julien Letessier -# Homepage: https://github.com/mezis/rebund -# License: -# -# Copyright (c) 2014 HouseTrip Ltd -# -# 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. - - -# Configuration -: ${REBUND_CREDENTIALS:=user:secret} -: ${REBUND_ENDPOINT=http://keyfile-production.herokuapp.com} -: ${REBUND_TARBALL:=bundle.tbz} -: ${REBUND_BUNDLE_DIR:=vendor/bundle} - - - -log() { - echo "rebund: $*" > /dev/stderr -} - -die() { - echo "fatal: $*" > /dev/stderr - exit 1 -} - -success() { - log "$*" - exit 0 -} - -on_error() { - die 'unknown error.' -} - -get_ruby_version() { - bundle exec ruby --version -} - -get_gemfile() { - bundle exec sh -c 'echo $BUNDLE_GEMFILE' -} - -calculate_hash() { - (get_ruby_version ; cat $(get_gemfile)) | openssl sha256 | sed -e 's/.* //' -} - -build_tarball() { - test -e $REBUND_BUNDLE_DIR || die "cannot find bundle directory in ${REBUND_BUNDLE_DIR}" - test -e $REBUND_TARBALL && success 'bundle already uploaded' - tar jcf $REBUND_TARBALL $REBUND_BUNDLE_DIR -} - -upload_tarball() { - curl --fail \ - -F filedata=@${REBUND_TARBALL} \ - --digest --user $REBUND_CREDENTIALS \ - ${REBUND_ENDPOINT}/$(calculate_hash) \ - || success "could not upload bundle" -} - -expand_tarball() { - test -e $REBUND_TARBALL || success "no tarball" - tar jxf $REBUND_TARBALL -} - -download_tarball() { - curl --fail \ - --location \ - -o ${REBUND_TARBALL} \ - --digest --user $REBUND_CREDENTIALS \ - ${REBUND_ENDPOINT}/$(calculate_hash) \ - || success "could not download bundle" -} - -rebund_upload() { - build_tarball - upload_tarball -} - -rebund_download() { - download_tarball - expand_tarball -} - -rebund_usage() { - success "usage: $0 [-v] [upload|download]" -} - -# cath errors -trap on_error ERR - -# inherit the ERR trap in subprocesses -set -E - -while test $# -gt 0 ; do - case $1 in - -v) - set -x - ;; - upload) - rebund_upload - exit 0 - ;; - download) - rebund_download - exit 0 - ;; - *) - rebund_usage - exit 1 - ;; - esac - shift -done - -rebund_usage diff -Nru ruby-jekyll-coffeescript-1.0.1/script/release ruby-jekyll-coffeescript-1.2.2/script/release --- ruby-jekyll-coffeescript-1.0.1/script/release 2014-08-31 21:21:14.000000000 +0000 +++ ruby-jekyll-coffeescript-1.2.2/script/release 1970-01-01 00:00:00.000000000 +0000 @@ -1,3 +0,0 @@ -#! /bin/bash - -rake release diff -Nru ruby-jekyll-coffeescript-1.0.1/spec/coffeescript_spec.rb ruby-jekyll-coffeescript-1.2.2/spec/coffeescript_spec.rb --- ruby-jekyll-coffeescript-1.0.1/spec/coffeescript_spec.rb 2014-08-31 21:21:14.000000000 +0000 +++ ruby-jekyll-coffeescript-1.2.2/spec/coffeescript_spec.rb 1970-01-01 00:00:00.000000000 +0000 @@ -1,64 +0,0 @@ -require 'spec_helper' - -describe(Jekyll::Converters::CoffeeScript) do - let(:configuration) { Jekyll::Configuration::DEFAULTS } - let(:converter) do - Jekyll::Converters::CoffeeScript.new(configuration) - end - let(:coffeescript_content) do - <<-COFFEESCRIPT -# Functions: -square = (x) -> x * x - -# Arrays: -list = [1, 2, 3, 4, 5] - -# Objects: -math = - root: Math.sqrt - square: square - cube: (x) -> x * square x -COFFEESCRIPT - end - let(:js_content) do - <<-JS -(function() { - var list, math, square; - - square = function(x) { - return x * x; - }; - - list = [1, 2, 3, 4, 5]; - - math = { - root: Math.sqrt, - square: square, - cube: function(x) { - return x * square(x); - } - }; - -}).call(this); -JS - end - - context "matching file extensions" do - it "matches .coffee files" do - expect(converter.matches(".coffee")).to be(true) - end - end - - context "determining the output file extension" do - it "always outputs the .js file extension" do - expect(converter.output_ext(".always-js-dont-matter")).to eql(".js") - end - end - - context "converting CoffeeScript" do - it "produces JS" do - expect(converter.convert(coffeescript_content)).to eql(js_content) - end - end - -end diff -Nru ruby-jekyll-coffeescript-1.0.1/spec/spec_helper.rb ruby-jekyll-coffeescript-1.2.2/spec/spec_helper.rb --- ruby-jekyll-coffeescript-1.0.1/spec/spec_helper.rb 2014-08-31 21:21:14.000000000 +0000 +++ ruby-jekyll-coffeescript-1.2.2/spec/spec_helper.rb 1970-01-01 00:00:00.000000000 +0000 @@ -1,20 +0,0 @@ -# This file was generated by the `rspec --init` command. Conventionally, all -# specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`. -# Require this file using `require "spec_helper"` to ensure that it is only -# loaded once. -# -# See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration - -require 'jekyll' -require 'jekyll-coffeescript' - -RSpec.configure do |config| - config.run_all_when_everything_filtered = true - config.filter_run :focus - - # Run specs in random order to surface order dependencies. If you find an - # order dependency and want to debug it, you can fix the order by providing - # the seed, which is printed after each run. - # --seed 1234 - config.order = 'random' -end diff -Nru ruby-jekyll-coffeescript-1.0.1/.travis.yml ruby-jekyll-coffeescript-1.2.2/.travis.yml --- ruby-jekyll-coffeescript-1.0.1/.travis.yml 2014-08-31 21:21:14.000000000 +0000 +++ ruby-jekyll-coffeescript-1.2.2/.travis.yml 1970-01-01 00:00:00.000000000 +0000 @@ -1,27 +0,0 @@ -language: ruby -cache: bundler -install: -- script/rebund download -- bundle install --path vendor/bundle -rvm: -- 2.1.0 -- 2.0.0 -- 1.9.3 -script: script/cibuild -after_script: -- script/rebund upload -notifications: - irc: - on_success: change - on_failure: change - channels: - - irc.freenode.org#jekyll - template: - - '%{repository}#%{build_number} (%{branch}) %{message} %{build_url}' - email: - on_success: never - on_failure: never -env: - global: - - secure: c3L8fa91PLodwiKuNevq5/Froh2h3PPG22NMavTBnu2YLBeSnPHMc2yasEAbH9hBKkw0LqMCdqF13uaQWdulI0Ez5ylUvg2tUi1KPRjQkSBZgZZVurQkCwNvhbttRYLgwDbuDBLguVFkl1q4/eFTCcTPW/20p0tsCWKpddmjO0I= - - secure: H4CFVnFXtDcm6R3d6038RbYA9uV0yJ2fHb7GDwQmGJWIK8zB5FEzOykGT+C6/7hrVXy5fNK4fn+Zrt/WPRmxiMSirLWiMt+X7Cu+stFdMkdAwQq32/rFCSzbTszoCs+pCFGYEW2Iyj9rs2tgkxy8hKvG7ypDZ4keSKyxm8kBAMA=