ashbb / green_shoes

Green Shoes is one of the colorful Shoes written in pure Ruby.
Other
204 stars 37 forks source link

failed to require green_shows on Windows 10 #98

Open ogaida opened 4 years ago

ogaida commented 4 years ago

Environment:

Installation

I have installed the gem:

gem install green_shoes
Fetching pkg-config-1.4.0.gem
Fetching cairo-gobject-3.4.1.gem
Fetching cairo-1.16.4.gem
Fetching gobject-introspection-3.4.1.gem
Fetching glib2-3.4.1.gem
Fetching pango-3.4.1.gem
Fetching native-package-installer-1.0.8.gem
Fetching atk-3.4.1.gem
Fetching green_shoes-1.1.374.gem
Fetching gio2-3.4.1.gem
Fetching gdk_pixbuf2-3.4.1.gem
Fetching gtk2-3.4.1.gem
Installing required msys2 packages: mingw-w64-x86_64-pkg-config
Warnung: mingw-w64-x86_64-pkg-config-0.29.2-1 ist aktuell -- Überspringe
Successfully installed pkg-config-1.4.0
Successfully installed native-package-installer-1.0.8
Temporarily enhancing PATH for MSYS/MINGW...
Installing required msys2 packages: mingw-w64-x86_64-glib2
Building native extensions. This could take a while...
Successfully installed glib2-3.4.1
Installing required msys2 packages: mingw-w64-x86_64-atk
Building native extensions. This could take a while...
Successfully installed atk-3.4.1
Installing required msys2 packages: mingw-w64-x86_64-cairo
Warnung: Abhängigkeits-Zyklus entdeckt:
Warnung: mingw-w64-x86_64-harfbuzz wird vor seiner Abhängigkeit mingw-w64-x86_64-freetype installiert werden
Building native extensions. This could take a while...
Successfully installed cairo-1.16.4
Building native extensions. This could take a while...
Successfully installed cairo-gobject-3.4.1
Installing required msys2 packages: mingw-w64-x86_64-gobject-introspection
Building native extensions. This could take a while...
Successfully installed gobject-introspection-3.4.1
Installing required msys2 packages: mingw-w64-x86_64-pango
Building native extensions. This could take a while...
Successfully installed pango-3.4.1
Installing required msys2 packages: mingw-w64-x86_64-glib-networking
Building native extensions. This could take a while...
Successfully installed gio2-3.4.1
Installing required msys2 packages: mingw-w64-x86_64-gdk-pixbuf2
Building native extensions. This could take a while...
Successfully installed gdk_pixbuf2-3.4.1
Installing required msys2 packages: mingw-w64-x86_64-gtk2
Building native extensions. This could take a while...
Successfully installed gtk2-3.4.1
Successfully installed green_shoes-1.1.374
Parsing documentation for pkg-config-1.4.0
Installing ri documentation for pkg-config-1.4.0
Parsing documentation for native-package-installer-1.0.8
Installing ri documentation for native-package-installer-1.0.8
Parsing documentation for glib2-3.4.1
Installing ri documentation for glib2-3.4.1
Parsing documentation for atk-3.4.1
Installing ri documentation for atk-3.4.1
Parsing documentation for cairo-1.16.4
Installing ri documentation for cairo-1.16.4
Parsing documentation for cairo-gobject-3.4.1
Installing ri documentation for cairo-gobject-3.4.1
Parsing documentation for gobject-introspection-3.4.1
Installing ri documentation for gobject-introspection-3.4.1
Parsing documentation for pango-3.4.1
Installing ri documentation for pango-3.4.1
Parsing documentation for gio2-3.4.1
Installing ri documentation for gio2-3.4.1
Parsing documentation for gdk_pixbuf2-3.4.1
Installing ri documentation for gdk_pixbuf2-3.4.1
Parsing documentation for gtk2-3.4.1
Installing ri documentation for gtk2-3.4.1
Parsing documentation for green_shoes-1.1.374
Installing ri documentation for green_shoes-1.1.374
Done installing documentation for pkg-config, native-package-installer, glib2, atk, cairo, cairo-gobject, gobject-introspection, pango, gio2, gdk_pixbuf2, gtk2, green_shoes after 12 seconds
12 gems installed

Problem:

Then i start irb an require the gem:

irb(main):001:0> require "green_shoes"
C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/green_shoes-1.1.374/lib/green_shoes.rb:22:in `<module:Shoes>': 'Gdk::Pixbuf' has been deprecated. Use 'GdkPixbuf::Pixbuf'.
C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/green_shoes-1.1.374/lib/green_shoes.rb:22:in `<module:Shoes>': 'GdkPixbuf::Pixbuf::ROTATE_NONE' has been deprecated. Use 'GdkPixbuf::PixbufRotation::NONE' or ':none'.
C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/green_shoes-1.1.374/lib/green_shoes.rb:22:in `<module:Shoes>': 'GdkPixbuf::Pixbuf::ROTATE_CLOCKWISE' has been deprecated. Use 'GdkPixbuf::PixbufRotation::CLOCKWISE' or ':clockwise'.
C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/green_shoes-1.1.374/lib/green_shoes.rb:22:in `<module:Shoes>': 'GdkPixbuf::Pixbuf::ROTATE_UPSIDEDOWN' has been deprecated. Use 'GdkPixbuf::PixbufRotation::UPSIDEDOWN' or ':upsidedown'.
C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/green_shoes-1.1.374/lib/green_shoes.rb:22:in `<module:Shoes>': 'GdkPixbuf::Pixbuf::ROTATE_COUNTERCLOCKWISE' has been deprecated. Use 'GdkPixbuf::PixbufRotation::COUNTERCLOCKWISE' or ':counterclockwise'.
C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/green_shoes-1.1.374/lib/green_shoes.rb:33:in `<module:Shoes>': 'Pango::WRAP_WORD' has been deprecated. Use 'Pango::WrapMode::WORD' or ':word'.
C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/green_shoes-1.1.374/lib/green_shoes.rb:33:in `<module:Shoes>': 'Pango::WRAP_CHAR' has been deprecated. Use 'Pango::WrapMode::CHAR' or ':char'.
C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/green_shoes-1.1.374/lib/green_shoes.rb:33:in `<module:Shoes>': 'Pango::ELLIPSIZE_END' has been deprecated. Use 'Pango::EllipsizeMode::END' or ':end'.
Traceback (most recent call last):
       11: from C:/Ruby26-x64/bin/irb.cmd:31:in `<main>'
       10: from C:/Ruby26-x64/bin/irb.cmd:31:in `load'
        9: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/irb-1.0.0/exe/irb:11:in `<top (required)>'
        8: from (irb):1
        7: from C:/Ruby26-x64/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:34:in `require'
        6: from C:/Ruby26-x64/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:130:in `rescue in require'
        5: from C:/Ruby26-x64/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:130:in `require'
        4: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/green_shoes-1.1.374/lib/green_shoes.rb:59:in `<top (required)>'
        3: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/green_shoes-1.1.374/lib/green_shoes.rb:59:in `require_relative'
        2: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/green_shoes-1.1.374/lib/shoes/shy.rb:11:in `<top (required)>'
        1: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/green_shoes-1.1.374/lib/shoes/shy.rb:16:in `<class:Shy>'
NoMethodError (undefined method `yaml_as' for Shy:Class)
Did you mean?  yaml_tag
irb(main):002:0>

Any ideas?