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
| require "minitest/autorun" | |
| require "date" | |
| class Person | |
| attr_reader :birthday | |
| def initialize(attributes={}) | |
| @birthday = attributes.fetch(:birthday) | |
| 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
| require "minitest/autorun" | |
| require "date" | |
| class Person | |
| attr_reader :birthday | |
| attr_accessor :today | |
| def initialize(attributes={}) | |
| @birthday = attributes.fetch(:birthday) | |
| @today = Date.today |
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
| require "minitest/autorun" | |
| require "date" | |
| class Person | |
| attr_reader :birthday, :today | |
| def initialize(attributes={}) | |
| @birthday = attributes.fetch(:birthday) | |
| @today = attributes.fetch(:today){ Date.today } | |
| 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
| require "minitest/autorun" | |
| require "date" | |
| class Person | |
| attr_reader :birthday | |
| def initialize(attributes={}) | |
| @birthday = attributes.fetch(:birthday) | |
| 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
| require "minitest/autorun" | |
| require "date" | |
| class Person | |
| attr_reader :birthday | |
| def initialize(attributes={}) | |
| @birthday = attributes.fetch(:birthday) | |
| 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
| require "minitest/autorun" | |
| require "date" | |
| class Person | |
| attr_reader :birthday | |
| def initialize(attributes={}) | |
| @birthday = attributes.fetch(:birthday) | |
| 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
| class FriendlyGuid | |
| attr_reader :mask | |
| def initialize(mask) | |
| @mask = mask | |
| end | |
| def guid(id) | |
| ((id.to_i ^ mask) << 64).to_s(36) | |
| 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
| class FriendlyGuid | |
| attr_reader :mask | |
| def initialize(mask) | |
| @mask = mask | |
| end | |
| def guid(id) | |
| (id.to_i ^ mask).to_s(36) | |
| 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
| "hi HitLine ctermbg=Cyan guibg=Cyan | |
| "hi MissLine ctermbg=Magenta guibg=Magenta | |
| hi HitSign ctermfg=Green cterm=bold gui=bold guifg=Green | |
| hi MissSign ctermfg=Red cterm=bold gui=bold guifg=Red | |
| sign define hit linehl=HitLine texthl=HitSign text=>> | |
| sign define miss linehl=MissLine texthl=MissSign text=:( | |
| "Generated by simplecov-vim | |
| let s:coverage = {'flue.rb': [[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13],[]], 'flue/basefile.rb': [[1, 2, 4, 5, 6, 8, 9, 10, 13, 14, 17, 18, 21, 22, 25, 26, 29, 30, 33, 34, 37, 38, 41, 42, 45, 46, 47, 51, 52, 53, 56, 57, 60, 61, 64, 66, 69, 71, 73, 74],[]], 'flue/benchmark.rb': [[1, 3, 4, 5, 6, 7, 8, 10, 11, 13],[]], 'flue/filter_register.rb': [[1, 2, 4, 5, 8, 9, 12, 13, 14, 15, 16, 21, 22, 23, 24, 27, 28, 29, 30, 31, 34, 35, 36, 37, 40],[]], 'flue/filters/code.rb': [[1, 2, 4, 5, 6, 7, 8, 9, 10, 12],[]], 'flue/filters/coffee_script.rb': [[1, 3, 4, 5, 6, 7, 8, 10, 12],[]], 'flue/filters/emoji.rb': [[1, 2, 4, 5, 6, 7, 8, 9, 10, 11, 13],[]], 'flue/filters/erb.rb': [[1, 3, 4, 5, 6, 8, |
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
| require 'simplecov-vim/formatter' | |
| SimpleCov.start 'rails' do | |
| formatter SimpleCov::Formatter::MultiFormatter[ | |
| SimpleCov::Formatter::HTMLFormatter, | |
| SimpleCov::Formatter::VimFormatter | |
| ] | |
| end |