Hello community,
here is the log from the commit of package rubygem-jekyll-watch for openSUSE:Factory checked in at 2019-04-01 12:36:51
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-jekyll-watch (Old)
and /work/SRC/openSUSE:Factory/.rubygem-jekyll-watch.new.25356 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rubygem-jekyll-watch"
Mon Apr 1 12:36:51 2019 rev:5 rq:689706 version:2.2.1
Changes:
--------
--- /work/SRC/openSUSE:Factory/rubygem-jekyll-watch/rubygem-jekyll-watch.changes 2018-11-26 10:34:26.328737500 +0100
+++ /work/SRC/openSUSE:Factory/.rubygem-jekyll-watch.new.25356/rubygem-jekyll-watch.changes 2019-04-01 12:36:54.333872211 +0200
@@ -1,0 +2,6 @@
+Fri Mar 29 06:05:22 UTC 2019 - Stephan Kulow
+
+- updated to version 2.2.1
+ no changelog found
+
+-------------------------------------------------------------------
Old:
----
jekyll-watch-2.1.2.gem
New:
----
jekyll-watch-2.2.1.gem
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ rubygem-jekyll-watch.spec ++++++
--- /var/tmp/diff_new_pack.1KUlCt/_old 2019-04-01 12:36:55.417872742 +0200
+++ /var/tmp/diff_new_pack.1KUlCt/_new 2019-04-01 12:36:55.421872744 +0200
@@ -1,7 +1,7 @@
#
# spec file for package rubygem-jekyll-watch
#
-# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -24,7 +24,7 @@
#
Name: rubygem-jekyll-watch
-Version: 2.1.2
+Version: 2.2.1
Release: 0
%define mod_name jekyll-watch
%define mod_full_name %{mod_name}-%{version}
++++++ jekyll-watch-2.1.2.gem -> jekyll-watch-2.2.1.gem ++++++
Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/jekyll/commands/watch.rb new/lib/jekyll/commands/watch.rb
--- old/lib/jekyll/commands/watch.rb 2018-10-17 17:11:03.000000000 +0200
+++ new/lib/jekyll/commands/watch.rb 2019-03-22 19:28:52.000000000 +0100
@@ -1,18 +1,18 @@
-# frozen_string_literal: true
-
-module Jekyll
- module Commands
- module Watch
- extend self
-
- def init_with_program(prog); end
-
- # Build your jekyll site
- # Continuously watch if `watch` is set to true in the config.
- def process(options)
- Jekyll.logger.log_level = :error if options["quiet"]
- Jekyll::Watcher.watch(options) if options["watch"]
- end
- end
- end
-end
+# frozen_string_literal: true
+
+module Jekyll
+ module Commands
+ module Watch
+ extend self
+
+ def init_with_program(prog); end
+
+ # Build your jekyll site
+ # Continuously watch if `watch` is set to true in the config.
+ def process(options)
+ Jekyll.logger.log_level = :error if options["quiet"]
+ Jekyll::Watcher.watch(options) if options["watch"]
+ end
+ end
+ end
+end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/jekyll/watcher.rb new/lib/jekyll/watcher.rb
--- old/lib/jekyll/watcher.rb 2018-10-17 17:11:04.000000000 +0200
+++ new/lib/jekyll/watcher.rb 2019-03-22 19:28:52.000000000 +0100
@@ -1,127 +1,137 @@
-# frozen_string_literal: true
-
-require "listen"
-
-module Jekyll
- module Watcher
- extend self
-
- # Public: Continuously watch for file changes and rebuild the site
- # whenever a change is detected.
- #
- # If the optional site argument is populated, that site instance will be
- # reused and the options Hash ignored. Otherwise, a new site instance will
- # be instantiated from the options Hash and used.
- #
- # options - A Hash containing the site configuration
- # site - The current site instance (populated starting with Jekyll 3.2)
- # (optional, default: nil)
- #
- # Returns nothing.
- def watch(options, site = nil)
- ENV["LISTEN_GEM_DEBUGGING"] ||= "1" if options["verbose"]
-
- site ||= Jekyll::Site.new(options)
- listener = build_listener(site, options)
- listener.start
-
- Jekyll.logger.info "Auto-regeneration:", "enabled for '#{options["source"]}'"
-
- unless options["serving"]
- trap("INT") do
- listener.stop
- Jekyll.logger.info "", "Halting auto-regeneration."
- exit 0
- end
-
- sleep_forever
- end
- rescue ThreadError
- # You pressed Ctrl-C, oh my!
- end
-
- private
-
- def build_listener(site, options)
- Listen.to(
- options["source"],
- :ignore => listen_ignore_paths(options),
- :force_polling => options["force_polling"],
- &listen_handler(site)
- )
- end
-
- def listen_handler(site)
- proc do |modified, added, removed|
- t = Time.now
- c = modified + added + removed
- n = c.length
-
- Jekyll.logger.info "Regenerating:",
- "#{n} file(s) changed at #{t.strftime("%Y-%m-%d %H:%M:%S")}"
-
- c.each { |path| Jekyll.logger.info "", path["#{site.source}/".length..-1] }
- process(site, t)
- end
- end
-
- def custom_excludes(options)
- Array(options["exclude"]).map { |e| Jekyll.sanitized_path(options["source"], e) }
- end
-
- def config_files(options)
- %w(yml yaml toml).map do |ext|
- Jekyll.sanitized_path(options["source"], "_config.#{ext}")
- end
- end
-
- def to_exclude(options)
- [
- config_files(options),
- options["destination"],
- custom_excludes(options),
- ].flatten
- end
-
- # Paths to ignore for the watch option
- #
- # options - A Hash of options passed to the command
- #
- # Returns a list of relative paths from source that should be ignored
- def listen_ignore_paths(options)
- source = Pathname.new(options["source"]).expand_path
- paths = to_exclude(options)
-
- paths.map do |p|
- absolute_path = Pathname.new(p).expand_path
- next unless absolute_path.exist?
-
- begin
- relative_path = absolute_path.relative_path_from(source).to_s
- unless relative_path.start_with?("../")
- path_to_ignore = Regexp.new(Regexp.escape(relative_path))
- Jekyll.logger.debug "Watcher:", "Ignoring #{path_to_ignore}"
- path_to_ignore
- end
- rescue ArgumentError
- # Could not find a relative path
- end
- end.compact + [%r!\.jekyll\-metadata!]
- end
-
- def sleep_forever
- loop { sleep 1000 }
- end
-
- def process(site, time)
- begin
- site.process
- Jekyll.logger.info "", "...done in #{Time.now - time} seconds."
- rescue => e
- Jekyll.logger.warn "Error:", e.message
- Jekyll.logger.warn "Error:", "Run jekyll build --trace for more information."
- end
- Jekyll.logger.info ""
- end
- end
-end
+# frozen_string_literal: true
+
+require "listen"
+
+module Jekyll
+ module Watcher
+ extend self
+
+ # Public: Continuously watch for file changes and rebuild the site
+ # whenever a change is detected.
+ #
+ # If the optional site argument is populated, that site instance will be
+ # reused and the options Hash ignored. Otherwise, a new site instance will
+ # be instantiated from the options Hash and used.
+ #
+ # options - A Hash containing the site configuration
+ # site - The current site instance (populated starting with Jekyll 3.2)
+ # (optional, default: nil)
+ #
+ # Returns nothing.
+ def watch(options, site = nil)
+ ENV["LISTEN_GEM_DEBUGGING"] ||= "1" if options["verbose"]
+
+ site ||= Jekyll::Site.new(options)
+ listener = build_listener(site, options)
+ listener.start
+
+ Jekyll.logger.info "Auto-regeneration:", "enabled for '#{options["source"]}'"
+
+ unless options["serving"]
+ trap("INT") do
+ listener.stop
+ Jekyll.logger.info "", "Halting auto-regeneration."
+ exit 0
+ end
+
+ sleep_forever
+ end
+ rescue ThreadError
+ # You pressed Ctrl-C, oh my!
+ end
+
+ private
+
+ def build_listener(site, options)
+ Listen.to(
+ options["source"],
+ :ignore => listen_ignore_paths(options),
+ :force_polling => options["force_polling"],
+ &listen_handler(site)
+ )
+ end
+
+ def listen_handler(site)
+ proc do |modified, added, removed|
+ t = Time.now
+ c = modified + added + removed
+ n = c.length
+
+ Jekyll.logger.info "Regenerating:",
+ "#{n} file(s) changed at #{t.strftime("%Y-%m-%d %H:%M:%S")}"
+
+ c.each { |path| Jekyll.logger.info "", path["#{site.source}/".length..-1] }
+ process(site, t)
+ end
+ end
+
+ def normalize_encoding(obj, desired_encoding)
+ case obj
+ when Array
+ obj.map { |entry| entry.encode!(desired_encoding, entry.encoding) }
+ when String
+ obj.encode!(desired_encoding, obj.encoding)
+ end
+ end
+
+ def custom_excludes(options)
+ Array(options["exclude"]).map { |e| Jekyll.sanitized_path(options["source"], e) }
+ end
+
+ def config_files(options)
+ %w(yml yaml toml).map do |ext|
+ Jekyll.sanitized_path(options["source"], "_config.#{ext}")
+ end
+ end
+
+ def to_exclude(options)
+ [
+ config_files(options),
+ options["destination"],
+ custom_excludes(options),
+ ].flatten
+ end
+
+ # Paths to ignore for the watch option
+ #
+ # options - A Hash of options passed to the command
+ #
+ # Returns a list of relative paths from source that should be ignored
+ def listen_ignore_paths(options)
+ source = Pathname.new(options["source"]).expand_path
+ paths = to_exclude(options)
+
+ paths.map do |p|
+ absolute_path = Pathname.new(normalize_encoding(p, options["source"].encoding)).expand_path
+ next unless absolute_path.exist?
+
+ begin
+ relative_path = absolute_path.relative_path_from(source).to_s
+ relative_path = File.join(relative_path, "") if absolute_path.directory?
+ unless relative_path.start_with?("../")
+ path_to_ignore = %r!^#{Regexp.escape(relative_path)}!
+ Jekyll.logger.debug "Watcher:", "Ignoring #{path_to_ignore}"
+ path_to_ignore
+ end
+ rescue ArgumentError
+ # Could not find a relative path
+ end
+ end.compact + [%r!^\.jekyll\-metadata!]
+ end
+
+ def sleep_forever
+ loop { sleep 1000 }
+ end
+
+ def process(site, time)
+ begin
+ site.process
+ Jekyll.logger.info "", "...done in #{Time.now - time} seconds."
+ rescue StandardError => e
+ Jekyll.logger.warn "Error:", e.message
+ Jekyll.logger.warn "Error:", "Run jekyll build --trace for more information."
+ end
+ Jekyll.logger.info ""
+ end
+ end
+end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/jekyll-watch/version.rb new/lib/jekyll-watch/version.rb
--- old/lib/jekyll-watch/version.rb 2018-10-17 17:11:03.000000000 +0200
+++ new/lib/jekyll-watch/version.rb 2019-03-22 19:28:52.000000000 +0100
@@ -1,7 +1,7 @@
-# frozen_string_literal: true
-
-module Jekyll
- module Watch
- VERSION = "2.1.2"
- end
-end
+# frozen_string_literal: true
+
+module Jekyll
+ module Watch
+ VERSION = "2.2.1"
+ end
+end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/jekyll-watch.rb new/lib/jekyll-watch.rb
--- old/lib/jekyll-watch.rb 2018-10-17 17:11:03.000000000 +0200
+++ new/lib/jekyll-watch.rb 2019-03-22 19:28:52.000000000 +0100
@@ -1,5 +1,5 @@
-# frozen_string_literal: true
-
-require "jekyll-watch/version"
-require_relative "jekyll/watcher"
-require_relative "jekyll/commands/watch"
+# frozen_string_literal: true
+
+require "jekyll-watch/version"
+require_relative "jekyll/watcher"
+require_relative "jekyll/commands/watch"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/metadata new/metadata
--- old/metadata 2018-10-17 17:11:03.000000000 +0200
+++ new/metadata 2019-03-22 19:28:52.000000000 +0100
@@ -1,14 +1,14 @@
--- !ruby/object:Gem::Specification
name: jekyll-watch
version: !ruby/object:Gem::Version
- version: 2.1.2
+ version: 2.2.1
platform: ruby
authors:
- Parker Moore
autorequire:
bindir: bin
cert_chain: []
-date: 2018-10-17 00:00:00.000000000 Z
+date: 2019-03-22 00:00:00.000000000 Z
dependencies:
- !ruby/object:Gem::Dependency
name: listen
@@ -28,30 +28,36 @@
name: bundler
requirement: !ruby/object:Gem::Requirement
requirements:
- - - "~>"
+ - - ">="
- !ruby/object:Gem::Version
- version: '1.15'
+ version: '0'
type: :development
prerelease: false
version_requirements: !ruby/object:Gem::Requirement
requirements:
- - - "~>"
+ - - ">="
- !ruby/object:Gem::Version
- version: '1.15'
+ version: '0'
- !ruby/object:Gem::Dependency
name: jekyll
requirement: !ruby/object:Gem::Requirement
requirements:
- - - "~>"
+ - - ">="
- !ruby/object:Gem::Version
version: '3.6'
+ - - "<"
+ - !ruby/object:Gem::Version
+ version: '5.0'
type: :development
prerelease: false
version_requirements: !ruby/object:Gem::Requirement
requirements:
- - - "~>"
+ - - ">="
- !ruby/object:Gem::Version
version: '3.6'
+ - - "<"
+ - !ruby/object:Gem::Version
+ version: '5.0'
- !ruby/object:Gem::Dependency
name: rake
requirement: !ruby/object:Gem::Requirement
@@ -86,14 +92,14 @@
requirements:
- - "~>"
- !ruby/object:Gem::Version
- version: '0.2'
+ version: '0.5'
type: :development
prerelease: false
version_requirements: !ruby/object:Gem::Requirement
requirements:
- - "~>"
- !ruby/object:Gem::Version
- version: '0.2'
+ version: '0.5'
description:
email:
- parkrmoore@gmail.com
@@ -125,7 +131,7 @@
version: '0'
requirements: []
rubyforge_project:
-rubygems_version: 2.7.7
+rubygems_version: 2.7.9
signing_key:
specification_version: 4
summary: Rebuild your Jekyll site when a file changes with the `--watch` switch.