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
guard 'rspec' do | |
watch(%r{^(app|config|lib|spec/support)/}) do | |
`git diff --name-only master`.split("\n").select do |path| | |
path =~ %r{spec/.*_spec.rb} | |
end | |
end | |
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 "observer" | |
require 'attr_extras' | |
module WeatherMonitoringApp | |
module HeatIndex | |
# rubocop:disable Metrics/AbcSize | |
def self.calculate(t, rh) | |
( | |
16.923 + | |
(0.185212 * t) + |
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 'attr_extras' | |
module StarbuzzCoffee | |
class Beverage | |
attr_reader :description | |
def initialize | |
@description = "Unknown Beverage" | |
end |
OlderNewer