This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ rvm use 1.9.3-p547 --default | |
ruby-1.9.3-p547 - #gemset created /home/gomezn/.rvm/gems/ruby-1.9.3-p547 | |
Creating alias current for ruby-1.9.3-p547.. | |
Error running 'alias_create_exceute', | |
showing last 15 lines of /usr/local/rvm/log/1415851770_ruby-1.9.3-p547/alias_create.log | |
GEM_PATH=/home/gomezn/.rvm/gems/ruby-1.9.3-p547:/home/gomezn/.rvm/gems/ruby-1.9.3-p547@global | |
command(1): alias_create_exceute | |
+ for _path in '"$rvm_rubies_path"' '"$rvm_environments_path"' '"$rvm_wrappers_path"' | |
+ [[ -L /usr/local/rvm/rubies/current ]] | |
+ command rm -fv /usr/local/rvm/rubies/current |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ rvm info | |
ruby-2.1.4: | |
system: | |
uname: "Linux uswa-tapp-smdm1.amgen.com 2.6.18-398.el5 #1 SMP Tue Aug 12 06:26:17 EDT 2014 x86_64 x86_64 x86_64 GNU/Linux" | |
system: "redhat/5/x86_64" | |
bash: "/bin/bash => GNU bash, version 3.2.25(1)-release (x86_64-redhat-linux-gnu)" | |
zsh: "/bin/zsh => zsh 4.2.6 (x86_64-redhat-linux-gnu)" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ rvm use 2.1.4 --debug --default | |
Using /usr/local/rvm/gems/ruby-2.1.4 | |
Running /usr/local/rvm/hooks/after_use_current | |
Running /usr/local/rvm/hooks/after_use_rbx_opts | |
Running /usr/local/rvm/hooks/after_use_home_bin | |
Running /usr/local/rvm/hooks/after_use_maglev | |
Running /usr/local/rvm/hooks/after_use_jruby_opts | |
Running /usr/local/rvm/hooks/after_use_textmate | |
__rvm_rm_rf already gone: /usr/local/rvm/tmp/12114* | |
Regenerating ruby-2.1.4 wrappers........ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Global reset rules. | |
// For more specific resets, use the reset mixins provided below | |
=global-reset | |
html, body, div, span, applet, object, iframe, | |
h1, h2, h3, h4, h5, h6, p, blockquote, pre, | |
a, abbr, acronym, address, big, cite, code, | |
del, dfn, em, font, img, ins, kbd, q, s, samp, | |
small, strike, strong, sub, sup, tt, var, | |
dl, dt, dd, ol, ul, li, | |
fieldset, form, label, legend, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Download all images from a stock exchange lightbox | |
require 'rubygems' | |
require 'mechanize' | |
require 'logger' | |
agent = Mechanize.new { |a| a.log = Logger.new("mech.log") } | |
agent.user_agent_alias = 'Mac Safari' | |
page = agent.get("http://www.sxc.hu/") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@items = MyModel.all | |
@columns = MyModel.column_names | |
respond_to do |format| | |
format.csv do | |
my_csv = FasterCSV.generate do |csv| | |
# header row | |
csv << @columns | |
# data rows |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*** LOCAL GEMS *** | |
abstract (1.0.0) | |
actionmailer (3.1.0.rc1, 3.0.7, 3.0.7.rc2) | |
actionpack (3.1.0.rc1, 3.0.7, 3.0.7.rc2) | |
activemodel (3.1.0.rc1, 3.0.7, 3.0.7.rc2) | |
activerecord (3.1.0.rc1, 3.0.7, 3.0.7.rc2) | |
activeresource (3.1.0.rc1, 3.0.7, 3.0.7.rc2) | |
activesupport (3.1.0.rc1, 3.0.7, 3.0.7.rc2) | |
ansi (1.2.5) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('#user_button').toggle(function () { | |
$("#user_button").css({borderBottomLeftRadius: "0px"}); | |
}, function () { | |
$("#user_button").css({borderBottomLeftRadius: "5px"}); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Failures: | |
1) User should not allow for multiple users with the same username | |
Failure/Error: Factory(:user, :username=>"gomezn") | |
ActiveRecord::RecordInvalid: | |
Validation failed: Name has already been taken | |
# ./spec/models/user_spec.rb:6 | |
# ./spec/models/user_spec.rb:35 | |
2) User should have ldap |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'factory_girl' | |
Factory.define :role do |r| | |
r.name 'SuperAdmin' | |
end | |
Factory.define :user do |u| | |
u.username "gomezn" | |
u.association :roles, :factory => :role | |
end |
OlderNewer