Hello community,

here is the log from the commit of package rubygem-jekyll-watch for 
openSUSE:Factory checked in at 2018-02-12 10:13:05
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-jekyll-watch (Old)
 and      /work/SRC/openSUSE:Factory/.rubygem-jekyll-watch.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "rubygem-jekyll-watch"

Mon Feb 12 10:13:05 2018 rev:3 rq:548557 version:2.0.0

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/rubygem-jekyll-watch/rubygem-jekyll-watch.changes    
    2016-08-26 23:16:23.000000000 +0200
+++ 
/work/SRC/openSUSE:Factory/.rubygem-jekyll-watch.new/rubygem-jekyll-watch.changes
   2018-02-12 10:13:06.726052080 +0100
@@ -1,0 +2,6 @@
+Sun Dec  3 19:22:47 UTC 2017 - co...@suse.com
+
+- updated to version 2.0.0
+  no changelog found
+
+-------------------------------------------------------------------

Old:
----
  jekyll-watch-1.5.0.gem

New:
----
  jekyll-watch-2.0.0.gem

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ rubygem-jekyll-watch.spec ++++++
--- /var/tmp/diff_new_pack.bxv5H2/_old  2018-02-12 10:13:07.322030602 +0100
+++ /var/tmp/diff_new_pack.bxv5H2/_new  2018-02-12 10:13:07.322030602 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package rubygem-jekyll-watch
 #
-# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2017 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,16 +24,16 @@
 #
 
 Name:           rubygem-jekyll-watch
-Version:        1.5.0
+Version:        2.0.0
 Release:        0
 %define mod_name jekyll-watch
 %define mod_full_name %{mod_name}-%{version}
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
+BuildRequires:  %{ruby >= 2.1.0}
 BuildRequires:  %{rubygem gem2rpm}
-BuildRequires:  %{ruby}
 BuildRequires:  ruby-macros >= 5
 Url:            https://github.com/jekyll/jekyll-watch
-Source:         http://rubygems.org/gems/%{mod_full_name}.gem
+Source:         https://rubygems.org/gems/%{mod_full_name}.gem
 Source1:        gem2rpm.yml
 Summary:        Rebuild your Jekyll site when a file changes with the `--watch`
 License:        MIT

++++++ jekyll-watch-1.5.0.gem -> jekyll-watch-2.0.0.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    2016-07-20 21:29:07.000000000 +0200
+++ new/lib/jekyll/commands/watch.rb    2017-12-02 22:53:15.000000000 +0100
@@ -1,26 +1,17 @@
+# frozen_string_literal: true
+
 module Jekyll
   module Commands
     module Watch
       extend self
 
-      def init_with_program(prog)
-      end
+      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']
-        watch(site, options) if options['watch']
-      end
-
-      # Watch for file changes and rebuild the site.
-      #
-      # site - A Jekyll::Site instance
-      # options - A Hash of options passed to the command
-      #
-      # Returns nothing.
-      def watch(_site, options)
-        Jekyll::Watcher.watch(options)
+        Jekyll.logger.log_level = :error if options["quiet"]
+        Jekyll::Watcher.watch(options) if options["watch"]
       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   2016-07-20 21:29:07.000000000 +0200
+++ new/lib/jekyll/watcher.rb   2017-12-02 22:53:15.000000000 +0100
@@ -1,4 +1,6 @@
-require 'listen'
+# frozen_string_literal: true
+
+require "listen"
 
 module Jekyll
   module Watcher
@@ -17,7 +19,7 @@
     #
     # Returns nothing.
     def watch(options, site = nil)
-      ENV["LISTEN_GEM_DEBUGGING"] ||= "1" if options['verbose']
+      ENV["LISTEN_GEM_DEBUGGING"] ||= "1" if options["verbose"]
 
       site ||= Jekyll::Site.new(options)
       listener = build_listener(site, options)
@@ -25,7 +27,7 @@
 
       Jekyll.logger.info "Auto-regeneration:", "enabled for 
'#{options["source"]}'"
 
-      unless options['serving']
+      unless options["serving"]
         trap("INT") do
           listener.stop
           puts "     Halting auto-regeneration."
@@ -38,49 +40,51 @@
       # You pressed Ctrl-C, oh my!
     end
 
-    # TODO: shouldn't be public API
+    private
     def build_listener(site, options)
       Listen.to(
-        options['source'],
-        :ignore => listen_ignore_paths(options),
-        :force_polling => options['force_polling'],
-        &(listen_handler(site))
+        options["source"],
+        :ignore        => listen_ignore_paths(options),
+        :force_polling => options["force_polling"],
+        &listen_handler(site)
       )
     end
 
+    private
     def listen_handler(site)
       proc do |modified, added, removed|
         t = Time.now
         c = modified + added + removed
         n = c.length
-        print Jekyll.logger.message("Regenerating:",
-          "#{n} file(s) changed at #{t.strftime("%Y-%m-%d %H:%M:%S")} ")
-        begin
-          site.process
-          puts "...done in #{Time.now - t} seconds."
-        rescue => e
-          puts "...error:"
-          Jekyll.logger.warn "Error:", e.message
-          Jekyll.logger.warn "Error:", "Run jekyll build --trace for more 
information."
+        Jekyll.logger.info "Regenerating:",
+          "#{n} file(s) changed at #{t.strftime("%Y-%m-%d %H:%M:%S")}"
+
+        c.map { |path| path.sub("#{site.source}/", "") }.each do |file|
+          Jekyll.logger.info "", file
         end
+
+        process(site, t)
       end
     end
 
+    private
     def custom_excludes(options)
-      Array(options['exclude']).map { |e| 
Jekyll.sanitized_path(options['source'], e) }
+      Array(options["exclude"]).map { |e| 
Jekyll.sanitized_path(options["source"], e) }
     end
 
+    private
     def config_files(options)
       %w(yml yaml toml).map do |ext|
-        Jekyll.sanitized_path(options['source'], "_config.#{ext}")
+        Jekyll.sanitized_path(options["source"], "_config.#{ext}")
       end
     end
 
+    private
     def to_exclude(options)
       [
         config_files(options),
-        options['destination'],
-        custom_excludes(options)
+        options["destination"],
+        custom_excludes(options),
       ].flatten
     end
 
@@ -89,8 +93,9 @@
     # options - A Hash of options passed to the command
     #
     # Returns a list of relative paths from source that should be ignored
+    private
     def listen_ignore_paths(options)
-      source       = Pathname.new(options['source']).expand_path
+      source       = Pathname.new(options["source"]).expand_path
       paths        = to_exclude(options)
 
       paths.map do |p|
@@ -98,7 +103,7 @@
         next unless absolute_path.exist?
         begin
           relative_path = absolute_path.relative_path_from(source).to_s
-          unless relative_path.start_with?('../')
+          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
@@ -106,11 +111,24 @@
         rescue ArgumentError
           # Could not find a relative path
         end
-      end.compact + [/\.jekyll\-metadata/]
+      end.compact + [%r!\.jekyll\-metadata!]
     end
 
+    private
     def sleep_forever
       loop { sleep 1000 }
     end
+
+    private
+    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
+      puts ""
+    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     1970-01-01 01:00:00.000000000 +0100
+++ new/lib/jekyll-watch/version.rb     2017-12-02 22:53:15.000000000 +0100
@@ -0,0 +1,7 @@
+# frozen_string_literal: true
+
+module Jekyll
+  module Watch
+    VERSION = "2.0.0".freeze
+  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     2016-07-20 21:29:07.000000000 +0200
+++ new/lib/jekyll-watch.rb     2017-12-02 22:53:15.000000000 +0100
@@ -1,2 +1,5 @@
+# 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        2016-07-20 21:29:07.000000000 +0200
+++ new/metadata        2017-12-02 22:53:15.000000000 +0100
@@ -1,14 +1,14 @@
 --- !ruby/object:Gem::Specification
 name: jekyll-watch
 version: !ruby/object:Gem::Version
-  version: 1.5.0
+  version: 2.0.0
 platform: ruby
 authors:
 - Parker Moore
 autorequire: 
 bindir: bin
 cert_chain: []
-date: 2016-07-20 00:00:00.000000000 Z
+date: 2017-12-02 00:00:00.000000000 Z
 dependencies:
 - !ruby/object:Gem::Dependency
   name: listen
@@ -17,9 +17,6 @@
     - - "~>"
       - !ruby/object:Gem::Version
         version: '3.0'
-    - - "<"
-      - !ruby/object:Gem::Version
-        version: '3.1'
   type: :runtime
   prerelease: false
   version_requirements: !ruby/object:Gem::Requirement
@@ -27,37 +24,34 @@
     - - "~>"
       - !ruby/object:Gem::Version
         version: '3.0'
-    - - "<"
-      - !ruby/object:Gem::Version
-        version: '3.1'
 - !ruby/object:Gem::Dependency
   name: bundler
   requirement: !ruby/object:Gem::Requirement
     requirements:
     - - "~>"
       - !ruby/object:Gem::Version
-        version: '1.6'
+        version: '1.15'
   type: :development
   prerelease: false
   version_requirements: !ruby/object:Gem::Requirement
     requirements:
     - - "~>"
       - !ruby/object:Gem::Version
-        version: '1.6'
+        version: '1.15'
 - !ruby/object:Gem::Dependency
-  name: rubocop
+  name: jekyll
   requirement: !ruby/object:Gem::Requirement
     requirements:
     - - "~>"
       - !ruby/object:Gem::Version
-        version: 0.35.1
+        version: '3.6'
   type: :development
   prerelease: false
   version_requirements: !ruby/object:Gem::Requirement
     requirements:
     - - "~>"
       - !ruby/object:Gem::Version
-        version: 0.35.1
+        version: '3.6'
 - !ruby/object:Gem::Dependency
   name: rake
   requirement: !ruby/object:Gem::Requirement
@@ -87,19 +81,19 @@
       - !ruby/object:Gem::Version
         version: '3.0'
 - !ruby/object:Gem::Dependency
-  name: jekyll
+  name: rubocop
   requirement: !ruby/object:Gem::Requirement
     requirements:
-    - - ">="
+    - - "~>"
       - !ruby/object:Gem::Version
-        version: '2.0'
+        version: '0.51'
   type: :development
   prerelease: false
   version_requirements: !ruby/object:Gem::Requirement
     requirements:
-    - - ">="
+    - - "~>"
       - !ruby/object:Gem::Version
-        version: '2.0'
+        version: '0.51'
 description: 
 email:
 - parkrmo...@gmail.com
@@ -108,6 +102,7 @@
 extra_rdoc_files: []
 files:
 - lib/jekyll-watch.rb
+- lib/jekyll-watch/version.rb
 - lib/jekyll/commands/watch.rb
 - lib/jekyll/watcher.rb
 homepage: https://github.com/jekyll/jekyll-watch
@@ -122,7 +117,7 @@
   requirements:
   - - ">="
     - !ruby/object:Gem::Version
-      version: '0'
+      version: 2.1.0
 required_rubygems_version: !ruby/object:Gem::Requirement
   requirements:
   - - ">="
@@ -130,7 +125,7 @@
       version: '0'
 requirements: []
 rubyforge_project: 
-rubygems_version: 2.5.1
+rubygems_version: 2.7.1
 signing_key: 
 specification_version: 4
 summary: Rebuild your Jekyll site when a file changes with the `--watch` 
switch.


Reply via email to