Package Details: gnome-screenruler 0.9.6-6

Git Clone URL: https://aur.archlinux.org/gnome-screenruler.git (read-only)
Package Base: gnome-screenruler
Description: ScreenRuler lets you measure objects on your screen using six different metrics.
Upstream URL: https://launchpad.net/screenruler
Licenses: GPL
Submitter: gborzi
Maintainer: kylesferrazza
Last Packager: kylesferrazza
Votes: 34
Popularity: 0.000555
First Submitted: 2010-02-19 23:50
Last Updated: 2018-11-05 07:24

Latest Comments

1 2 3 Next › Last »

spearthistle commented on 2019-08-28 15:45

I have been trying to install this AUR for a while now. It started working after I installed the repository "ruby-cairo-gobject".

dviktor commented on 2019-02-12 09:55

With the update of ruby-gettext gnome-screenruler needs ruby-locale now. Please add this dependency

Rogach commented on 2018-10-21 11:21

@somepaulo gnome-screenruler creates a helper method Kernel.loop (with 2 arguments), overriding system-wide Kernel.loop (with 0 arguments), and that system-wide method is used when loading gems - which results in this error. Renaming the helper fixes the issue. Here's the PKGBUILD diff that I applied:

--- PKGBUILD.orig   2018-10-21 14:10:05.210931908 +0300
+++ PKGBUILD    2018-10-21 14:13:59.740510883 +0300
@@ -26,6 +26,10 @@

   # Fix path
   patch -Np0 -i $srcdir/path_patch.diff
+
+  # Fix Kernel.loop shadowing issue
+  sed -i 's/loop/screenruler_loop/' $srcdir/screenruler/utils/addons_ruby.rb
+  sed -i 's/loop/screenruler_loop/' $srcdir/screenruler/ruler_window.rb
 }

 package() {

somepaulo commented on 2018-04-04 22:34

On the latest and greatest Gnome 3.28 I get this:

~>$ screenruler
Loading libraries...
/usr/share/screenruler/utils/addons_ruby.rb:42: warning: constant ::Fixnum is deprecated
Traceback (most recent call last):
    17: from /usr/bin/screenruler:51:in <main>'
    16: from /usr/share/screenruler/utils/addons_ruby.rb:59:inrequire'
    15: from /usr/share/screenruler/utils/addons_ruby.rb:59:in each'
    14: from /usr/share/screenruler/utils/addons_ruby.rb:59:inblock in require'
    13: from /usr/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:39:in require'
    12: from /usr/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:128:inrescue in require'
    11: from /usr/lib/ruby/2.5.0/rubygems.rb:213:in try_activate'
    10: from /usr/lib/ruby/2.5.0/rubygems/specification.rb:1063:infind_by_path'
     9: from /usr/lib/ruby/2.5.0/rubygems/specification.rb:1063:in find'
     8: from /usr/lib/ruby/2.5.0/rubygems/specification.rb:1063:ineach'
     7: from /usr/lib/ruby/2.5.0/rubygems/specification.rb:1064:in block in find_by_path'
     6: from /usr/lib/ruby/2.5.0/rubygems/bundler_version_finder.rb:46:incompatible?'
     5: from /usr/lib/ruby/2.5.0/rubygems/bundler_version_finder.rb:12:in bundler_version'
     4: from /usr/lib/ruby/2.5.0/rubygems/bundler_version_finder.rb:29:inbundler_version_with_reason'
     3: from /usr/lib/ruby/2.5.0/rubygems/bundler_version_finder.rb:81:in lockfile_version'
     2: from /usr/lib/ruby/2.5.0/rubygems/bundler_version_finder.rb:93:inlockfile_contents'
     1: from /usr/lib/ruby/2.5.0/rubygems/util.rb:116:in traverse_parents'
/usr/share/screenruler/utils/addons_ruby.rb:62:inloop': wrong number of arguments (given 0, expected 2..3) (ArgumentError)

Thank you for looking into this.

kylesferrazza commented on 2017-07-07 04:34

@paulodiovani
Please remove the pacgem version of cairo-gobject and let me know if gnome-screenruler works with just a "pacaur -S ruby-cairo-gobject"

paulodiovani commented on 2017-07-04 19:18

There are some missing dependencies. I was able to install with:

pacaur -Sy pacgem
pacgem native-package-installer cairo-gobject
pacaur -Sy gnome-screenruler

drxspace commented on 2017-05-23 17:13

Loading libraries...
/usr/share/screenruler/utils/addons_ruby.rb:42: warning: constant ::Fixnum is deprecated
/usr/lib/ruby/2.4.0/rubygems/dependency.rb:308:in `to_specs': Could not find 'native-package-installer' (>= 0) among 25 total gem(s) (Gem::MissingSpecError)
Checked in 'GEM_PATH=/home/jag/.gem/ruby/2.4.0:/usr/lib/ruby/gems/2.4.0', execute `gem env` for more information
from /usr/lib/ruby/2.4.0/rubygems/specification.rb:1442:in `block in activate_dependencies'
from /usr/lib/ruby/2.4.0/rubygems/specification.rb:1431:in `each'
from /usr/lib/ruby/2.4.0/rubygems/specification.rb:1431:in `activate_dependencies'
from /usr/lib/ruby/2.4.0/rubygems/specification.rb:1413:in `activate'
from /usr/lib/ruby/2.4.0/rubygems/specification.rb:1445:in `block in activate_dependencies'
from /usr/lib/ruby/2.4.0/rubygems/specification.rb:1431:in `each'
from /usr/lib/ruby/2.4.0/rubygems/specification.rb:1431:in `activate_dependencies'
from /usr/lib/ruby/2.4.0/rubygems/specification.rb:1413:in `activate'
from /usr/lib/ruby/2.4.0/rubygems/specification.rb:1445:in `block in activate_dependencies'
from /usr/lib/ruby/2.4.0/rubygems/specification.rb:1431:in `each'
from /usr/lib/ruby/2.4.0/rubygems/specification.rb:1431:in `activate_dependencies'
from /usr/lib/ruby/2.4.0/rubygems/specification.rb:1413:in `activate'
from /usr/lib/ruby/2.4.0/rubygems.rb:220:in `rescue in try_activate'
from /usr/lib/ruby/2.4.0/rubygems.rb:213:in `try_activate'
from /usr/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:126:in `rescue in require'
from /usr/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:40:in `require'
from /usr/share/screenruler/utils/addons_ruby.rb:59:in `block in require'
from /usr/share/screenruler/utils/addons_ruby.rb:59:in `each'
from /usr/share/screenruler/utils/addons_ruby.rb:59:in `require'
from /usr/bin/screenruler:51:in `<main>'
--

Thank you for your attention to this matter

balwierz commented on 2017-05-22 17:58

Should depend on ruby-cairo-gobject

bahodir commented on 2016-08-06 08:53

@tomaszgasior, uninstalling and re-installing gnome-screenruler fixes the problem.

lilydjwg commented on 2016-01-10 02:05

tomaszgasior: ruby has been updated. ls /usr/lib/ruby/gems/2.2.0/gems and reinstall all ones shown.