Skip to content

Instantly share code, notes, and snippets.

@albaer
albaer / 0.2.1-boggle_class_from_methods.rb
Last active August 29, 2015 13:56 — forked from dbc-challenges/0.2.1-boggle_class_from_methods.rb
phase 0 unit 2 week 1boggle class challenge
class BoggleBoard
attr_reader :board
def initialize(board)
@board = board
end
def create_word(*coords)
coords.map { |coord| @board[coord.first][coord.last]}.join("")
end
class DateTimeValidator < ActiveModel::EachValidator
CHECKS = {
after: :>,
before: :<,
after_or_equal_to: :>=,
before_or_equal_to: :<=
}
def check_validity!
keys = CHECKS.keys
<?xml version="1.0" encoding="UTF-8"?>
<Envelope>
<Header>
<MessageID>99</MessageID>
<MessageType>SetOrderStatus</MessageType>
<SourceID>viget</SourceID>
<TimeStamp>2017-02-14 14:52:45</TimeStamp>
<EchoData/>
<SystemFields/>
</Header>

The table below contains what ZP and I discussed regarding the launch plan. We tried to fit that into the existing timeline with tasks we'll need to complete below that. The numbered steps represent deployments/environment changes/config changes for any of the services. The bullets are general action items and tasks. The horizontal lines separate tasks that can happen after the numbered step above them from tasks that must happen before the numbered step below them.

Step Date CMS API eGalaxy Chase Convio
1 June 19 ecomm ecomm staging sandbox staging
2 June 29 ecomm ecomm production sandbox staging
3 July 6 production (0%) production production production production
4 July 10 production (10%) production production production production

0. Outstanding questions that might affect timeline

### 1. What is Rubocop?
https://github.com/bbatsov/rubocop
### 2. Using Rubocop locally
* rubocop.yml
* bundle exec rubocop
* configured to run with rspec