Permalink
Browse files

Rename client to dsl.

  • Loading branch information...
1 parent 4676209 commit 34b6872f775f6b45395fd270efffa6aff18c6084 @jnunemaker committed Aug 2, 2012
Showing with 9 additions and 6 deletions.
  1. +5 −2 lib/flipper.rb
  2. +1 −1 lib/flipper/{client.rb → dsl.rb}
  3. +3 −3 spec/flipper/{client_spec.rb → dsl_spec.rb}
View
7 lib/flipper.rb
@@ -1,7 +1,10 @@
+require 'flipper/dsl'
+require 'flipper/errors'
require 'flipper/feature'
+require 'flipper/gate'
require 'flipper/registry'
-require 'flipper/types/group'
-require 'flipper/adapters/memory'
+require 'flipper/toggle'
+require 'flipper/type'
module Flipper
def groups
View
2 lib/flipper/client.rb → lib/flipper/dsl.rb
@@ -1,5 +1,5 @@
module Flipper
- class Client
+ class DSL
def initialize(adapter)
@adapter = adapter
end
View
6 spec/flipper/client_spec.rb → spec/flipper/dsl_spec.rb
@@ -1,8 +1,8 @@
require 'helper'
-require 'flipper/client'
+require 'flipper/dsl'
-describe Flipper::Client do
- subject { Flipper::Client.new(adapter) }
+describe Flipper::DSL do
+ subject { Flipper::DSL.new(adapter) }
let(:source) { {} }
let(:adapter) { Flipper::Adapters::Memory.new(source) }

0 comments on commit 34b6872

Please sign in to comment.