First install the required gems:
gem install octokit awesomeprint rainbow
Then run it to extract all of your open GitHub issues into files (with comments).
ruby my-gh-issues.rb
# add this to your spec helper | |
RSpec.configure do |config| | |
config.treat_symbols_as_metadata_keys_with_true_values = true | |
config.filter_run :focus => true | |
config.run_all_when_everything_filtered = true | |
end | |
# and then use the :focus tag in your specs | |
it "does something awesome", :focus do |
$ rvm_archflags="-arch i386 -arch x86_64" ARCHFLAGS="-arch i386 -arch x86_64" CFLAGS='-arch i386 -arch x86_64' LDFLAGS='-arch i386 -arch x86_64' rvm pkg install zlib | |
Fetching zlib-1.2.5.tar.gz to /Users/rbates/.rvm/archives | |
Extracting zlib-1.2.5.tar.gz to /Users/rbates/.rvm/src | |
Configuring zlib in /Users/rbates/.rvm/src/zlib-1.2.5. | |
Compiling zlib in /Users/rbates/.rvm/src/zlib-1.2.5. | |
ERROR: Error running '/usr/bin/make ', please read /Users/rbates/.rvm/log/zlib/make.log | |
Installing zlib to /Users/rbates/.rvm/usr | |
ERROR: Error running '/usr/bin/make install', please read /Users/rbates/.rvm/log/zlib/make.install.log | |
$ cat /Users/rbates/.rvm/log/zlib/make.log |
$ rake rails:update | |
Generating app/assets directory and content. (same as 3.1 app generator) | |
Do you want to move all public/stylesheets into app/assets/stylesheets? (recommended) [y] | |
Moving public/stylesheets into app/assets/stylesheets... | |
Existing application.css, merging content to the end of app/assets/stylesheets/application.css. |
namespace :deploy do | |
desc "Make sure there is something to deploy" | |
task :check_revision, :roles => :web do | |
unless `git rev-parse HEAD` == `git rev-parse origin/master` | |
puts "WARNING: HEAD is not the same as origin/master" | |
puts "Run `git push` to sync changes." | |
exit | |
end | |
end | |
end |
001-caching-with-instance-variables | |
002-dynamic-find-by-methods | |
003-find-through-association | |
004-move-find-into-model | |
005-using-with-scope | |
006-shortcut-blocks-with-symbol-to-proc | |
007-all-about-layouts | |
008-layouts-and-content-for | |
009-filtering-sensitive-logs | |
010-refactoring-user-name-part-1 |
First install the required gems:
gem install octokit awesomeprint rainbow
Then run it to extract all of your open GitHub issues into files (with comments).
ruby my-gh-issues.rb
The new rake task assets:clean removes precompiled assets. [fxn]
Application and plugin generation run bundle install unless --skip-gemfile
or --skip-bundle
. [fxn]
Fixed database tasks for jdbc* adapters #jruby [Rashmi Yadav]
Template generation for jdbcpostgresql #jruby [Vishnu Atrai]
Different services I can suggest when a non-tech friend or family member asks me how they can cheaply make a website and possibly use it to sell stuff online.
Website Hosting
These are some of my (Ryan Bates) favorite gems to use for various tasks:
<!-- layout file --> | |
<% if current_user %> | |
Welcome <%= current_user.username %>. Not you? <%= link_to "Log out", logout_path %> | |
<% else %> | |
<%= link_to "Sign up", signup_path %> or <%= link_to "log in", login_path %>. | |
<% end %> |