View gist:ebcd5d467dcc4b68806f
1 2 3 4 5 6 7 8 9 10
> player.test_runner.runner()
core.cljs:116
Testing player.view-test
core.cljs:116
FAIL in (fg-color-test) (at http:21956:204)
core.cljs:116 expected: (= (v/fg-color 1 false) 111)
core.cljs:116 actual: (not (= 1 111))
core.cljs:116
Ran 6 tests containing 34 assertions.
core.cljs:116 1 failures, 0 errors.
View test-runner.cljs
1 2 3 4 5 6 7 8 9
Running ClojureScript test: test
Loading URL: env/test/unit-test.html
Running test.
 
Testing player.view-test
 
FAIL in (fg-color-test) (:)
expected: (= (v/fg-color 1 false) 111)
actual: (not (= 1 111))
View gist:f48cb171c5019beece5e
1 2 3 4 5 6 7
~ % brew info asciinema
asciinema: stable 1.0.0 (bottled), HEAD
https://asciinema.org/
Not installed
From: https://github.com/Homebrew/homebrew/blob/master/Library/Formula/asciinema.rb
==> Dependencies
Build: go ✘
View convert.rb
1 2 3 4 5 6 7 8 9 10
require 'json'
require 'open3'
 
class Hash
def slice *keys
select{|k| keys.member?(k)}
end
end
 
class Stdout
View Dockerfile
1 2 3 4 5 6 7 8 9 10
FROM ubuntu:14.04
 
RUN apt-get -y update
RUN apt-get -y install nginx
ADD example.conf /etc/nginx/conf.d/example.conf
RUN echo "daemon off;" >>/etc/nginx/nginx.conf
 
EXPOSE 3000
 
CMD ["/usr/sbin/nginx"]
View how-to-install-ruby-2.1
1 2 3 4 5 6 7 8 9 10
Install ansible on your laptop, then:
 
ansible-playbook -i production site.yml
After running this confirm ruby version on the server:
 
ubuntu@srv-blah:~$ which ruby
/usr/bin/ruby
ubuntu@srv-blah:~$ ruby -v
ruby 2.1.0p0 (2013-12-25 revision 44422) [x86_64-linux-gnu]
View Gemfile
1 2 3 4
# A sample Gemfile
source "https://rubygems.org"
 
gem 'rugged', :git => 'https://github.com/libgit2/rugged.git', :branch => 'development', :submodules => true, :ref => 'fb28f860679f3a4bb29a9d1579f3b13754d81374'
View gist:9937627
1 2 3 4 5 6 7 8 9 10
# Running tests:
 
...........EF..................FFFFFFFFFF
 
Finished tests in 42.043389s, 0.9752 tests/s, 2.1406 assertions/s.
 
Error:
test: MergeRequestsShow should display watch/unwatch for signed in user. (MergeRequestsShowTest):
Capybara::ElementNotFound: Unable to find field "Email or login"
/srv/gitorious/app/vendor/bundle/ruby/1.9.1/gems/capybara-2.1.0/lib/capybara/node/finders.rb:41:in `block in find'
View gist:9911522
1 2 3 4 5 6 7 8 9 10
>>> Compiling ruby 2.1.0 ...
CC = gcc
LD = ld
LDSHARED = gcc -shared
CFLAGS = -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration -ansi -std=iso9899:199409
XCFLAGS = -D_FORTIFY_SOURCE=2 -fstack-protector -fno-strict-overflow -fvisibility=hidden -DRUBY_EXPORT -fPIE
CPPFLAGS = -I. -I.ext/include/x86_64-linux -I./include -I.
DLDFLAGS = -fstack-protector -pie
SOLIBS =
Using built-in specs.
Something went wrong with that request. Please try again.