This file contains hidden or 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
    
  
  
    
  | # frozen_string_literal: true | |
| ruby '2.5.1' | |
| source "https://rubygems.org" | |
| git_source(:github) {|repo_name| "https://github.com/#{repo_name}" } | |
| gem "rspec" | 
  
    
      This file contains hidden or 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
    
  
  
    
  | # application.rb | |
| class ApplicationDSL | |
| attr_accessor :applications | |
| def initialize | |
| self.applications = [] | |
| end | |
| def application(name, &block) | |
| application = Application.new(name) | 
  
    
      This file contains hidden or 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
    
  
  
    
  | ActiveRecord::Schema.define(:version => 20120620132905) do | |
| create_table "tasks", :force => true do |t| | |
| t.string "name" | |
| t.integer "sender_id" | |
| t.integer "receiver_id" | |
| end | |
| create_table "users", :force => true do |t| | |
| t.string "name" | |
| end | 
  
    
      This file contains hidden or 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
    
  
  
    
  | def is_it_true? | |
| # calculate the result | |
| not result | |
| end | |
| def is_it_true? | |
| # calculate the result | |
| !result | |
| end | 
  
    
      This file contains hidden or 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
    
  
  
    
  | def update_main_artist | |
| artist = artists.first | |
| if rovi_artist | |
| artist = Artist.create(:name => rovi_artist.name) | |
| end | |
| update_attribute :main_artist_id, artist.id | |
| end | |
| def update_main_artist | 
  
    
      This file contains hidden or 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
    
  
  
    
  | class Foo | |
| def public_function | |
| # do stuff | |
| end | |
| def private_function | |
| # do stuff | |
| end | |
| private :private_function | 
  
    
      This file contains hidden or 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
    
  
  
    
  | set wildmenu " allow tab to cycle through found options | |
| set wildmode=list:longest | 
  
    
      This file contains hidden or 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
    
  
  
    
  | hcd dotmatrix | |
| git fetch | |
| git co -t origin/testify | |
| ./bin/hlink | |
| . ~/.hashrc | |
| hcd <project> | |
| SAYIT=loud testify # => and then save a test! | 
  
    
      This file contains hidden or 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
    
  
  
    
  | # ~/.bashrc.local | |
| alias watch="watchr ~/.watchr.rb" | |
| # ~/.watchr.rb | |
| if File.exists?(".rspec") | |
| @spec = 'rspec' | |
| else | |
| @spec = 'spec' | |
| end | 
  
    
      This file contains hidden or 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
    
  
  
    
  | describe "something else" do | |
| let(:dealer) { Fabricate(:dealer) } | |
| it { p dealer.id } #=> 38 | |
| it { p dealer.id } #=> 39 | |
| end | 
NewerOlder