Linked content

Using rubyzip dependent gem like 'axlsx' leads to LoadError (cannot load such file -- zip/zip)

The 'axlsx' gem (https://github.com/randym/axlsx) depends on rubyzip. After the bundle command the error require': cannot load such file -- zip/zip (LoadError) appeared by starting the rails server.

Possible solution: Add gem 'zip-zip' to your Gemfile and it works.

Linked content

Fixing "SocketError: getaddrinfo: Name or service not known" with Ruby's resolv-replace.rb

we had the same error and google helped us find the linked solution.

Just require "resolv-replace.rb" during app startup and all should be good.

Further information:

  • https://www.omniref.com/ruby/2.1.1/symbols/Resolv
  • https://rubygems.org/gems/rubysl-resolv

Format Cucumber Tables in Sublime Text 2 (ST2)

  • install https://github.com/drewda/cucumber-sublime2-bundle for general cucumber support in ST2
  • follow instructions on https://github.com/mishu91/Sublime-Text-2-Table-Cleaner

Adjust key binding: { "keys": ["super+alt+7"], "command": "table_cleaner"}

Adjust settings:

Linked content


User Rails-Api for Projects without Views to interact with apis

How to use cucumber together with Sublime Text 2 Editor

Sublime Text 2 doesn't have out of the box support for cucumber and package control doesn't provide anything.

Adding support to run tests from within sublime text 2: RubyText Package

Add syntax highlighting for Cucumber (Gherkin): Cucumber Syntax

Maybe you'll run into broken test output. Check out this (tmp.) solution until the next …

This website uses cookies to improve usability and analyze traffic.
Accept or learn more