commit rubygem-listen for openSUSE:Factory
Hello community, here is the log from the commit of package rubygem-listen for openSUSE:Factory checked in at 2015-03-16 07:00:36 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/rubygem-listen (Old) and /work/SRC/openSUSE:Factory/.rubygem-listen.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "rubygem-listen" Changes: -------- --- /work/SRC/openSUSE:Factory/rubygem-listen/rubygem-listen.changes 2015-03-12 16:38:48.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.rubygem-listen.new/rubygem-listen.changes 2015-03-16 07:00:59.000000000 +0100 @@ -1,0 +2,5 @@ +Fri Mar 13 05:31:23 UTC 2015 - coolo@suse.com + +- updated to version 2.9.0 + +------------------------------------------------------------------- Old: ---- listen-2.8.6.gem New: ---- listen-2.9.0.gem ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ rubygem-listen.spec ++++++ --- /var/tmp/diff_new_pack.4t7eeo/_old 2015-03-16 07:01:00.000000000 +0100 +++ /var/tmp/diff_new_pack.4t7eeo/_new 2015-03-16 07:01:00.000000000 +0100 @@ -24,7 +24,7 @@ # Name: rubygem-listen -Version: 2.8.6 +Version: 2.9.0 Release: 0 %define mod_name listen %define mod_full_name %{mod_name}-%{version} ++++++ listen-2.8.6.gem -> listen-2.9.0.gem ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/README.md new/README.md --- old/README.md 2015-03-09 11:39:06.000000000 +0100 +++ new/README.md 2015-03-10 18:54:56.000000000 +0100 @@ -163,6 +163,9 @@ force_polling: true # Force the use of the polling adapter # default: none +relative: false # Whether changes should be relative to current dir or not + # default: false + debug: true # Enable Celluloid logger # default: false Files old/checksums.yaml.gz and new/checksums.yaml.gz differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/listen/cli.rb new/lib/listen/cli.rb --- old/lib/listen/cli.rb 2015-03-09 11:39:06.000000000 +0100 +++ new/lib/listen/cli.rb 2015-03-10 18:54:56.000000000 +0100 @@ -26,6 +26,12 @@ aliases: '-d', banner: 'The directory to listen to' + class_option :relative, + type: :boolean, + default: false, + aliases: '-r', + banner: 'Convert paths relative to current directory' + def start Listen::Forwarder.new(options).start end @@ -44,6 +50,7 @@ logger.info 'Starting listen...' address = @options[:forward] directory = @options[:directory] + relative = @options[:relative] callback = proc do |modified, added, removed| if @options[:verbose] logger.info "+ #{added}" unless added.empty? @@ -52,7 +59,12 @@ end end - listener = Listen.to directory, forward_to: address, &callback + listener = Listen.to( + directory, + forward_to: address, + relative: relative, + &callback) + listener.start sleep 0.5 while listener.listen? diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/listen/listener.rb new/lib/listen/listener.rb --- old/lib/listen/listener.rb 2015-03-09 11:39:06.000000000 +0100 +++ new/lib/listen/listener.rb 2015-03-10 18:54:56.000000000 +0100 @@ -164,6 +164,14 @@ fail "Invalid type: #{type.inspect}" unless [:dir, :file].include? type fail "Invalid change: #{change.inspect}" unless change.is_a?(Symbol) fail "Invalid path: #{path.inspect}" unless path.is_a?(String) + if @options[:relative] + dir = begin + cwd = Pathname.pwd + dir.relative_path_from(cwd) + rescue ArgumentError + dir + end + end @queue << [type, change, dir, path, options] @last_queue_event_time = Time.now.to_f @@ -184,6 +192,7 @@ latency: nil, wait_for_delay: 0.1, force_polling: false, + relative: false, polling_fallback_message: nil }.merge(options) end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/listen/version.rb new/lib/listen/version.rb --- old/lib/listen/version.rb 2015-03-09 11:39:06.000000000 +0100 +++ new/lib/listen/version.rb 2015-03-10 18:54:56.000000000 +0100 @@ -1,3 +1,3 @@ module Listen - VERSION = '2.8.6' + VERSION = '2.9.0' end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/metadata new/metadata --- old/metadata 2015-03-09 11:39:06.000000000 +0100 +++ new/metadata 2015-03-10 18:54:56.000000000 +0100 @@ -1,14 +1,14 @@ --- !ruby/object:Gem::Specification name: listen version: !ruby/object:Gem::Version - version: 2.8.6 + version: 2.9.0 platform: ruby authors: - Thibaud Guillaume-Gentil autorequire: bindir: bin cert_chain: [] -date: 2015-03-09 00:00:00.000000000 Z +date: 2015-03-10 00:00:00.000000000 Z dependencies: - !ruby/object:Gem::Dependency name: celluloid -- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org
participants (1)
-
root@hilbert.suse.de