I'm getting the following error when trying to upload theme files to shopify using the gem:
C:\Users\will\workspace\theme\Timber>theme upload
[14:00:45] Uploading: assets/ajax-cart.js.liquidC:/Ruby21/lib/ruby/2.1.0/net/http.rb:923:in
`connect': SSL_connect SYSCALL returned=5 errno=0 state=SSLv2/v3 read server hello A (Ope
nSSL::SSL::SSLError)
from C:/Ruby21/lib/ruby/2.1.0/net/http.rb:923:in `block in connect'
from C:/Ruby21/lib/ruby/2.1.0/timeout.rb:76:in `timeout'
from C:/Ruby21/lib/ruby/2.1.0/net/http.rb:923:in `connect'
from C:/Ruby21/lib/ruby/2.1.0/net/http.rb:863:in `do_start'
from C:/Ruby21/lib/ruby/2.1.0/net/http.rb:852:in `start'
from C:/Ruby21/lib/ruby/2.1.0/net/http.rb:1375:in `request'
from C:/Ruby21/lib/ruby/gems/2.1.0/gems/httparty-0.13.5/lib/httparty/request.rb:101:in `perform'
from C:/Ruby21/lib/ruby/gems/2.1.0/gems/httparty-0.13.5/lib/httparty.rb:522:in `perform_request'
from C:/Ruby21/lib/ruby/gems/2.1.0/gems/httparty-0.13.5/lib/httparty.rb:486:in `put'
from C:/Ruby21/lib/ruby/gems/2.1.0/gems/shopify_theme-0.0.22/lib/shopify_theme.rb:71:in `send_asset'
from C:/Ruby21/lib/ruby/gems/2.1.0/gems/shopify_theme-0.0.22/lib/shopify_theme/cli.rb:234:in `block in send_asset'
from C:/Ruby21/lib/ruby/gems/2.1.0/gems/shopify_theme-0.0.22/lib/shopify_theme/cli.rb:297:in `show_during'
from C:/Ruby21/lib/ruby/gems/2.1.0/gems/shopify_theme-0.0.22/lib/shopify_theme/cli.rb:233:in `send_asset'
from C:/Ruby21/lib/ruby/gems/2.1.0/gems/shopify_theme-0.0.22/lib/shopify_theme/cli.rb:106:in `block in upload'
from C:/Ruby21/lib/ruby/gems/2.1.0/gems/shopify_theme-0.0.22/lib/shopify_theme/cli.rb:105:in `each'
from C:/Ruby21/lib/ruby/gems/2.1.0/gems/shopify_theme-0.0.22/lib/shopify_theme/cli.rb:105:in `upload'
from C:/Ruby21/lib/ruby/gems/2.1.0/gems/thor-0.19.1/lib/thor/command.rb:27:in `run'
from C:/Ruby21/lib/ruby/gems/2.1.0/gems/thor-0.19.1/lib/thor/invocation.rb:126:in `invoke_command'
from C:/Ruby21/lib/ruby/gems/2.1.0/gems/thor-0.19.1/lib/thor.rb:359:in `dispatch'
from C:/Ruby21/lib/ruby/gems/2.1.0/gems/thor-0.19.1/lib/thor/base.rb:440:in `start'
from C:/Ruby21/lib/ruby/gems/2.1.0/gems/shopify_theme-0.0.22/bin/theme:25:in `<top (required)>'
from C:/Ruby21/bin/theme:23:in `load'
from C:/Ruby21/bin/theme:23:in `<main>'
It seems to be an SSL error but I installed the SSL certificate and made the environment variable as per the instructions at http://shopify.github.io/shopify_theme/.
Related
My Rails app runs with nginx's www-data user and all disk write functions are owned by www-data and so all the app's related disk stored assets are owned by www-data. Sometimes I need to raise the Rails console and perform actions that touch or create stored assets and I do not want these touched/created assets to become owned by root or another admin user, I want them to remain owned by the www-data user. This worked fine under ruby 1.9.3 -> 2.6.x:
sudo -u www-data RAILS_MASTER_KEY=xxx RAILS_ENV=production bin/rails console
When I try this on ruby 2.7.x or 3.0.0, I get these errors:
Loading production environment (Rails 6.1.3)
/usr/lib/ruby/3.0.0/irb/ext/save-history.rb:98:in `stat': Permission denied # rb_file_s_stat - /root/.irb_history (Errno::EACCES)
from /usr/lib/ruby/3.0.0/irb/ext/save-history.rb:98:in `save_history'
from /usr/lib/ruby/3.0.0/irb/ext/save-history.rb:60:in `block in extended'
from /usr/lib/ruby/3.0.0/irb.rb:475:in `block in run'
from /usr/lib/ruby/3.0.0/irb.rb:475:in `each'
from /usr/lib/ruby/3.0.0/irb.rb:475:in `ensure in run'
from /usr/lib/ruby/3.0.0/irb.rb:475:in `run'
from /usr/lib/ruby/3.0.0/irb.rb:400:in `start'
from /apps/connect/shared/vendor_bundle/ruby/3.0.0/gems/railties-6.1.3/lib/rails/commands/console/console_command.rb:70:in `start'
from /apps/connect/shared/vendor_bundle/ruby/3.0.0/gems/railties-6.1.3/lib/rails/commands/console/console_command.rb:19:in `start'
from /apps/connect/shared/vendor_bundle/ruby/3.0.0/gems/railties-6.1.3/lib/rails/commands/console/console_command.rb:102:in `perform'
from /apps/connect/shared/vendor_bundle/ruby/3.0.0/gems/thor-1.1.0/lib/thor/command.rb:27:in `run'
from /apps/connect/shared/vendor_bundle/ruby/3.0.0/gems/thor-1.1.0/lib/thor/invocation.rb:127:in `invoke_command'
from /apps/connect/shared/vendor_bundle/ruby/3.0.0/gems/thor-1.1.0/lib/thor.rb:392:in `dispatch'
from /apps/connect/shared/vendor_bundle/ruby/3.0.0/gems/railties-6.1.3/lib/rails/command/base.rb:69:in `perform'
from /apps/connect/shared/vendor_bundle/ruby/3.0.0/gems/railties-6.1.3/lib/rails/command.rb:50:in `invoke'
from /apps/connect/shared/vendor_bundle/ruby/3.0.0/gems/railties-6.1.3/lib/rails/commands.rb:18:in `<top (required)>'
from bin/rails:4:in `require'
from bin/rails:4:in `<main>'
/usr/lib/ruby/3.0.0/reline/config.rb:124:in `readlines': Permission denied # rb_sysopen - /root/.inputrc (Errno::EACCES)
from /usr/lib/ruby/3.0.0/reline/config.rb:124:in `read'
from /usr/lib/ruby/3.0.0/reline.rb:232:in `inner_readline'
from /usr/lib/ruby/3.0.0/reline.rb:175:in `readmultiline'
from /usr/lib/ruby/3.0.0/forwardable.rb:238:in `readmultiline'
from /usr/lib/ruby/3.0.0/forwardable.rb:238:in `readmultiline'
from /usr/lib/ruby/3.0.0/irb/input-method.rb:302:in `gets'
from /usr/lib/ruby/3.0.0/irb.rb:519:in `block (2 levels) in eval_input'
from /usr/lib/ruby/3.0.0/irb.rb:721:in `signal_status'
from /usr/lib/ruby/3.0.0/irb.rb:518:in `block in eval_input'
from /usr/lib/ruby/3.0.0/irb/ruby-lex.rb:202:in `lex'
from /usr/lib/ruby/3.0.0/irb/ruby-lex.rb:174:in `block (2 levels) in each_top_level_statement'
from /usr/lib/ruby/3.0.0/irb/ruby-lex.rb:171:in `loop'
from /usr/lib/ruby/3.0.0/irb/ruby-lex.rb:171:in `block in each_top_level_statement'
from /usr/lib/ruby/3.0.0/irb/ruby-lex.rb:170:in `catch'
from /usr/lib/ruby/3.0.0/irb/ruby-lex.rb:170:in `each_top_level_statement'
from /usr/lib/ruby/3.0.0/irb.rb:537:in `eval_input'
from /usr/lib/ruby/3.0.0/irb.rb:472:in `block in run'
from /usr/lib/ruby/3.0.0/irb.rb:471:in `catch'
from /usr/lib/ruby/3.0.0/irb.rb:471:in `run'
from /usr/lib/ruby/3.0.0/irb.rb:400:in `start'
from /apps/connect/shared/vendor_bundle/ruby/3.0.0/gems/railties-6.1.3/lib/rails/commands/console/console_command.rb:70:in `start'
from /apps/connect/shared/vendor_bundle/ruby/3.0.0/gems/railties-6.1.3/lib/rails/commands/console/console_command.rb:19:in `start'
from /apps/connect/shared/vendor_bundle/ruby/3.0.0/gems/railties-6.1.3/lib/rails/commands/console/console_command.rb:102:in `perform'
from /apps/connect/shared/vendor_bundle/ruby/3.0.0/gems/thor-1.1.0/lib/thor/command.rb:27:in `run'
from /apps/connect/shared/vendor_bundle/ruby/3.0.0/gems/thor-1.1.0/lib/thor/invocation.rb:127:in `invoke_command'
from /apps/connect/shared/vendor_bundle/ruby/3.0.0/gems/thor-1.1.0/lib/thor.rb:392:in `dispatch'
from /apps/connect/shared/vendor_bundle/ruby/3.0.0/gems/railties-6.1.3/lib/rails/command/base.rb:69:in `perform'
from /apps/connect/shared/vendor_bundle/ruby/3.0.0/gems/railties-6.1.3/lib/rails/command.rb:50:in `invoke'
from /apps/connect/shared/vendor_bundle/ruby/3.0.0/gems/railties-6.1.3/lib/rails/commands.rb:18:in `<top (required)>'
from bin/rails:4:in `require'
from bin/rails:4:in `<main>'
I've tried creating a file at /root/.irb_history and given it world write permissions and I still get the same errors.
I'm compiling ruby from source on Ubuntu 18.04 and 20.04 with only the '--prefix=/usr' flag.
If I sudo su to an admin user account that is a full user with a home directory, etc, unlike the limited www-data user, or run as root I can raise the Rails console without errors (of course ownership of on disk assets is a problem).
If I run the sudo -u www-data bin/rails console command as a full admin user I can raise the console and only see errors once I exit the console like this:
irb(main):033:0> exit
/usr/lib/ruby/3.0.0/irb/ext/save-history.rb:108:in `initialize': Permission denied # rb_sysopen - /home/[username]/.irb_history (Errno::EACCES)
from /usr/lib/ruby/3.0.0/irb/ext/save-history.rb:108:in `open'
from /usr/lib/ruby/3.0.0/irb/ext/save-history.rb:108:in `save_history'
from /usr/lib/ruby/3.0.0/irb/ext/save-history.rb:60:in `block in extended'
from /usr/lib/ruby/3.0.0/irb.rb:475:in `block in run'
from /usr/lib/ruby/3.0.0/irb.rb:475:in `each'
from /usr/lib/ruby/3.0.0/irb.rb:475:in `run'
from /usr/lib/ruby/3.0.0/irb.rb:400:in `start'
from /apps/connect/shared/vendor_bundle/ruby/3.0.0/gems/railties-6.1.3/lib/rails/commands/console/console_command.rb:70:in `start'
from /apps/connect/shared/vendor_bundle/ruby/3.0.0/gems/railties-6.1.3/lib/rails/commands/console/console_command.rb:19:in `start'
from /apps/connect/shared/vendor_bundle/ruby/3.0.0/gems/railties-6.1.3/lib/rails/commands/console/console_command.rb:102:in `perform'
from /apps/connect/shared/vendor_bundle/ruby/3.0.0/gems/thor-1.1.0/lib/thor/command.rb:27:in `run'
from /apps/connect/shared/vendor_bundle/ruby/3.0.0/gems/thor-1.1.0/lib/thor/invocation.rb:127:in `invoke_command'
from /apps/connect/shared/vendor_bundle/ruby/3.0.0/gems/thor-1.1.0/lib/thor.rb:392:in `dispatch'
from /apps/connect/shared/vendor_bundle/ruby/3.0.0/gems/railties-6.1.3/lib/rails/command/base.rb:69:in `perform'
from /apps/connect/shared/vendor_bundle/ruby/3.0.0/gems/railties-6.1.3/lib/rails/command.rb:50:in `invoke'
from /apps/connect/shared/vendor_bundle/ruby/3.0.0/gems/railties-6.1.3/lib/rails/commands.rb:18:in `<top (required)>'
from bin/rails:4:in `require'
from bin/rails:4:in `<main>'
If I run it as root I get the errors above.
I believe all you have to do is configure the HOME variable to your command so it looks like:
sudo -u www-data HOME=/tmp RAILS_MASTER_KEY=xxx RAILS_ENV=production bin/rails console
I tried to execute an HTTPS request, and it fail in Emacs inf-ruby mode. But it works in bash command line.
irb(main):001:0> load ('./get-email-request.rb')
OpenSSL::SSL::SSLError: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed
from /usr/lib/ruby/1.9.1/net/http.rb:800:in `connect'
from /usr/lib/ruby/1.9.1/net/http.rb:800:in `block in connect'
from /usr/lib/ruby/1.9.1/timeout.rb:55:in `timeout'
from /usr/lib/ruby/1.9.1/timeout.rb:100:in `timeout'
from /usr/lib/ruby/1.9.1/net/http.rb:800:in `connect'
from /usr/lib/ruby/1.9.1/net/http.rb:756:in `do_start'
from /usr/lib/ruby/1.9.1/net/http.rb:745:in `start'
from /usr/lib/ruby/1.9.1/net/http.rb:1285:in `request'
from /home/jyuan/projects/opensources/eloqua-ruby-request/eloqua-ruby-request.rb:52:in `request'
from /home/jyuan/projects/opensources/eloqua-ruby-request/eloqua-ruby-request.rb:31:in `get'
from /home/jyuan/projects/opensources/eloqua-ruby-request/examples/get-email-request.rb:10:in `<top (required)>'
from (irb):9:in `load'
from (irb):9
from /usr/bin/irb:12:in `<main>'
The ruby configuration is https://github.com/bbatsov/prelude/blob/master/modules/prelude-ruby.el.
Anyone encountered this before?
It works well after adding This code. https://github.com/senny/rvm.el
Note, I'm running this on a Windows Environment.
I'm working behind a corporate proxy, and trying to get the vagrant-proxyconf plug-in working so the vagrant machines can be set up to work through a proxy. However, on executing vagrant plugin install vagrant-proxyconf I got the following error:
Bundler, the underlying system Vagrant uses to install plugins, reported an error. The error is shown below. These errors are usually caused by misconfigured plugin installations or transient network issues. The error from Bundler is:
Could not fetch specs from http://gems.hashicorp.com/
Retrying source fetch due to error (2/3): Bundler::HTTPError Could not fetch specs from http://gems.hashicorp.com/Retrying source fetch due to error (3/3): Bundler::HTTPError Could not fetch specs from http://gems.hashicorp.com/
Figuring it was probably a proxy issue, I tried setting my environment variable:
set HTTP_PROXY="http://username:password#proxy:port"
After re-executing the plug-in install command, I got a different error:
C:/Vagrant/embedded/lib/ruby/2.0.0/uri/common.rb:176:in `split': bad URI(is not
URI?): http://"http://username:password#proxy:port" (URI::InvalidURIError)
from C:/Vagrant/embedded/lib/ruby/2.0.0/uri/common.rb:211:in `parse'
from C:/Vagrant/embedded/lib/ruby/2.0.0/uri/common.rb:747:in `parse'
from C:/Vagrant/embedded/lib/ruby/2.0.0/uri/common.rb:996:in `URI'
from C:/Vagrant/embedded/gems/gems/bundler-1.6.6/lib/bundler/vendor/net/
http/persistent.rb:908:in `proxy_from_env'
from C:/Vagrant/embedded/gems/gems/bundler-1.6.6/lib/bundler/vendor/net/
http/persistent.rb:858:in `proxy='
from C:/Vagrant/embedded/gems/gems/bundler-1.6.6/lib/bundler/vendor/net/
http/persistent.rb:528:in `initialize'
from C:/Vagrant/embedded/gems/gems/bundler-1.6.6/lib/bundler/fetcher.rb:
113:in `new'
from C:/Vagrant/embedded/gems/gems/bundler-1.6.6/lib/bundler/fetcher.rb:
113:in `connection'
from C:/Vagrant/embedded/gems/gems/bundler-1.6.6/lib/bundler/fetcher.rb:
103:in `initialize'
from C:/Vagrant/embedded/gems/gems/bundler-1.6.6/lib/bundler/source/ruby
gems.rb:262:in `new'
from C:/Vagrant/embedded/gems/gems/bundler-1.6.6/lib/bundler/source/ruby
gems.rb:262:in `block in remote_specs'
from C:/Vagrant/embedded/gems/gems/bundler-1.6.6/lib/bundler/source/ruby
gems.rb:262:in `map'
from C:/Vagrant/embedded/gems/gems/bundler-1.6.6/lib/bundler/source/ruby
gems.rb:262:in `remote_specs'
from C:/Vagrant/embedded/gems/gems/bundler-1.6.6/lib/bundler/source/ruby
gems.rb:202:in `fetch_specs'
from C:/Vagrant/embedded/gems/gems/bundler-1.6.6/lib/bundler/source/ruby
gems.rb:66:in `specs'
from C:/Vagrant/embedded/gems/gems/bundler-1.6.6/lib/bundler/definition.
rb:216:in `block (2 levels) in index'
from C:/Vagrant/embedded/gems/gems/bundler-1.6.6/lib/bundler/definition.
rb:213:in `each'
from C:/Vagrant/embedded/gems/gems/bundler-1.6.6/lib/bundler/definition.
rb:213:in `block in index'
from C:/Vagrant/embedded/gems/gems/bundler-1.6.6/lib/bundler/index.rb:9:
in `build'
from C:/Vagrant/embedded/gems/gems/bundler-1.6.6/lib/bundler/definition.
rb:209:in `index'
from C:/Vagrant/embedded/gems/gems/bundler-1.6.6/lib/bundler/definition.
rb:203:in `resolve'
from C:/Vagrant/embedded/gems/gems/bundler-1.6.6/lib/bundler/definition.
rb:133:in `specs'
from C:/Vagrant/embedded/gems/gems/bundler-1.6.6/lib/bundler/definition.
rb:122:in `resolve_remotely!'
from C:/Vagrant/embedded/gems/gems/bundler-1.6.6/lib/bundler/installer.r
b:76:in `run'
from C:/Vagrant/embedded/gems/gems/bundler-1.6.6/lib/bundler/installer.r
b:15:in `install'
from C:/Vagrant/embedded/gems/gems/vagrant-1.6.5/lib/vagrant/bundler.rb:
226:in `block in internal_install'
from C:/Vagrant/embedded/gems/gems/vagrant-1.6.5/lib/vagrant/bundler.rb:
284:in `block in with_isolated_gem'
from C:/Vagrant/embedded/lib/ruby/2.0.0/rubygems/user_interaction.rb:40:
in `use_ui'
from C:/Vagrant/embedded/gems/gems/vagrant-1.6.5/lib/vagrant/bundler.rb:
283:in `with_isolated_gem'
from C:/Vagrant/embedded/gems/gems/vagrant-1.6.5/lib/vagrant/bundler.rb:
225:in `internal_install'
from C:/Vagrant/embedded/gems/gems/vagrant-1.6.5/lib/vagrant/bundler.rb:
92:in `install'
from C:/Vagrant/embedded/gems/gems/vagrant-1.6.5/lib/vagrant/plugin/mana
ger.rb:62:in `block in install_plugin'
from C:/Vagrant/embedded/gems/gems/vagrant-1.6.5/lib/vagrant/plugin/mana
ger.rb:72:in `call'
from C:/Vagrant/embedded/gems/gems/vagrant-1.6.5/lib/vagrant/plugin/mana
ger.rb:72:in `install_plugin'
from C:/Vagrant/embedded/gems/gems/vagrant-1.6.5/plugins/commands/plugin
/action/install_gem.rb:37:in `call'
from C:/Vagrant/embedded/gems/gems/vagrant-1.6.5/lib/vagrant/action/ward
en.rb:34:in `call'
from C:/Vagrant/embedded/gems/gems/vagrant-1.6.5/lib/vagrant/action/buil
der.rb:116:in `call'
from C:/Vagrant/embedded/gems/gems/vagrant-1.6.5/lib/vagrant/action/runn
er.rb:66:in `block in run'
from C:/Vagrant/embedded/gems/gems/vagrant-1.6.5/lib/vagrant/util/busy.r
b:19:in `busy'
from C:/Vagrant/embedded/gems/gems/vagrant-1.6.5/lib/vagrant/action/runn
er.rb:66:in `run'
from C:/Vagrant/embedded/gems/gems/vagrant-1.6.5/plugins/commands/plugin
/command/base.rb:14:in `action'
from C:/Vagrant/embedded/gems/gems/vagrant-1.6.5/plugins/commands/plugin
/command/install.rb:32:in `block in execute'
from C:/Vagrant/embedded/gems/gems/vagrant-1.6.5/plugins/commands/plugin
/command/install.rb:31:in `each'
from C:/Vagrant/embedded/gems/gems/vagrant-1.6.5/plugins/commands/plugin
/command/install.rb:31:in `execute'
from C:/Vagrant/embedded/gems/gems/vagrant-1.6.5/plugins/commands/plugin
/command/root.rb:56:in `execute'
from C:/Vagrant/embedded/gems/gems/vagrant-1.6.5/lib/vagrant/cli.rb:42:i
n `execute'
from C:/Vagrant/embedded/gems/gems/vagrant-1.6.5/lib/vagrant/environment
.rb:292:in `cli'
from C:/Vagrant/embedded/gems/gems/vagrant-1.6.5/bin/vagrant:174:in `<ma
in>'
Note the error:
C:/Vagrant/embedded/lib/ruby/2.0.0/uri/common.rb:176:in 'split': bad URI(is not URI?): http://"http://username:password#proxy:port" (URI::InvalidURIError) from C:/Vagrant/embedded/lib/ruby/2.0.0/uri/common.rb:211:in parse'
Seems it's interpreting the environment variable incorrectly and having issues interpreting it? Anyone know how to address this issue?
You don't probably even need the quotes (unless the password includes some funny characters). So you could just try:
set HTTP_PROXY=http://username:password#proxy:port
If you need the quotes, the correct form is:
set "HTTP_PROXY=http://username:password#proxy:port"
Hi I have a problem adding animation plugin in middleman and yes I'm pretty sure I installed animation plugin for compass and I see it on my gem lists.
if I add this on my config.rb
require 'animation'
It shows an error and this is the output
/cygdrive/d/Main/dot_proj/config.rb:7:in `require': cannot load such file -- animation (LoadError)
from /cygdrive/d/Main/dot_proj/config.rb:7:in `initialize'
from /usr/lib/ruby/gems/1.9.1/gems/middleman-core-3.0.11/lib/middleman-core/core_extensions/extensions.rb:137:in `instance_eval'
from /usr/lib/ruby/gems/1.9.1/gems/middleman-core-3.0.11/lib/middleman-core/core_extensions/extensions.rb:137:in `initialize'
from /usr/lib/ruby/gems/1.9.1/gems/middleman-core-3.0.11/lib/middleman-core/core_extensions/ruby_encoding.rb:22:in `initialize'
from /usr/lib/ruby/gems/1.9.1/gems/middleman-core-3.0.11/lib/middleman-core/core_extensions/data.rb:35:in `initialize'
from /usr/lib/ruby/gems/1.9.1/gems/middleman-core-3.0.11/lib/middleman-core/application.rb:188:in `initialize'
from /usr/lib/ruby/gems/1.9.1/gems/middleman-core-3.0.11/lib/middleman-core/core_extensions/request.rb:56:in `new'
from /usr/lib/ruby/gems/1.9.1/gems/middleman-core-3.0.11/lib/middleman-core/core_extensions/request.rb:56:in `inst'
from /usr/lib/ruby/gems/1.9.1/gems/middleman-core-3.0.11/lib/middleman-core/preview_server.rb:73:in `new_app'
from /usr/lib/ruby/gems/1.9.1/gems/middleman-core-3.0.11/lib/middleman-core/preview_server.rb:154:in `mount_instance'
from /usr/lib/ruby/gems/1.9.1/gems/middleman-core-3.0.11/lib/middleman-core/preview_server.rb:19:in `start'
from /usr/lib/ruby/gems/1.9.1/gems/middleman-core-3.0.11/lib/middleman-core/cli/server.rb:73:in `server'
from /usr/lib/ruby/gems/1.9.1/gems/thor-0.15.4/lib/thor/task.rb:27:in `run'
from /usr/lib/ruby/gems/1.9.1/gems/thor-0.15.4/lib/thor/invocation.rb:120:in `invoke_task'
from /usr/lib/ruby/gems/1.9.1/gems/thor-0.15.4/lib/thor.rb:275:in `dispatch'
from /usr/lib/ruby/gems/1.9.1/gems/thor-0.15.4/lib/thor/base.rb:425:in `start'
from /usr/lib/ruby/gems/1.9.1/gems/middleman-core-3.0.11/lib/middleman-core/cli.rb:77:in `method_missing'
from /usr/lib/ruby/gems/1.9.1/gems/thor-0.15.4/lib/thor/task.rb:29:in `run'
from /usr/lib/ruby/gems/1.9.1/gems/thor-0.15.4/lib/thor/task.rb:126:in `run'
from /usr/lib/ruby/gems/1.9.1/gems/thor-0.15.4/lib/thor/invocation.rb:120:in `invoke_task'
from /usr/lib/ruby/gems/1.9.1/gems/thor-0.15.4/lib/thor.rb:275:in `dispatch'
from /usr/lib/ruby/gems/1.9.1/gems/thor-0.15.4/lib/thor/base.rb:425:in `start'
from /usr/lib/ruby/gems/1.9.1/gems/middleman-core-3.0.11/lib/middleman-core/cli.rb:22:in `start'
from /usr/lib/ruby/gems/1.9.1/gems/middleman-core-3.0.11/bin/middleman:18:in `<top (required)>'
from /usr/bin/middleman:23:in `load'
from /usr/bin/middleman:23:in `<main>'
This is the link for the plugin
https://github.com/ericam/compass-animation
I'm guessing that my middleman doesn't have the plugin installed on the middleman core itself? If yes then how do I add a compass plugin to my middleman?
Good day,
I have a simply Rake file:
require 'mirage/client'
namespace :mock_server do
desc "Checks to see if the mock server is currently running"
task :running? do
puts Mirage::Client.new.running? ? 'Yep' : 'Nope'
end
end
If Mirage is running this works fine, however if Mirage is not it fails with:
$ rake --trace -f test.rb.txt mock_server:running?
** Invoke mock_server:running? (first_time)
** Execute mock_server:running?
rake aborted!
Operation not permitted - connect(2)
/usr/lib/ruby/1.8/net/http.rb:560:in `initialize'
/usr/lib/ruby/1.8/net/http.rb:560:in `open'
/usr/lib/ruby/1.8/net/http.rb:560:in `connect'
/usr/lib/ruby/1.8/timeout.rb:53:in `timeout'
/usr/lib/ruby/1.8/timeout.rb:93:in `timeout'
/usr/lib/ruby/1.8/net/http.rb:560:in `connect'
/usr/lib/ruby/1.8/net/http.rb:553:in `do_start'
/usr/lib/ruby/1.8/net/http.rb:542:in `start'
/usr/lib/ruby/1.8/net/http.rb:1035:in `request'
/usr/lib/ruby/gems/1.8/gems/mirage-2.0.16/lib/mirage/client/web.rb:36:in `http_get'
/usr/lib/ruby/gems/1.8/gems/mirage-2.0.16/lib/mirage/client.rb:135:in `running?'
/cygdrive/c/Code/SocialMedia/tests/features/test.rb.txt:6
/usr/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:205:in `call'
/usr/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:205:in `execute'
/usr/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:200:in `each'
/usr/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:200:in `execute'
/usr/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:158:in `invoke_with_call_chain'
/usr/lib/ruby/1.8/monitor.rb:242:in `synchronize'
/usr/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:151:in `invoke_with_call_chain'
/usr/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:144:in `invoke'
/usr/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:116:in `invoke_task'
/usr/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `top_level'
/usr/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `each'
/usr/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `top_level'
/usr/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling'
/usr/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:88:in `top_level'
/usr/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:66:in `run'
/usr/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling'
/usr/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:63:in `run'
/usr/lib/ruby/gems/1.8/gems/rake-0.9.2.2/bin/rake:33
/usr/bin/rake:19:in `load'
/usr/bin/rake:19
Tasks: TOP => mock_server:running?
I'm running ruby 1.8.7 installed using the Cygwin installer, mirage 2.0.16 via gem on Windows 7. Do you know of any reason why this is failing?
Cheers,
Mlk
It appears to be the version of Ruby. Tried with Ruby 1.9 and all is good with the world.