rehearsal 1.0.1 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4,7 +4,7 @@ module Rehearsal
4
4
 
5
5
  def initialize
6
6
  @env ||= :staging
7
- @enabled = true if @enabled.nil?
7
+ @enabled = false if @enabled.nil?
8
8
  end
9
9
  end
10
10
  end
@@ -1,3 +1,3 @@
1
1
  module Rehearsal
2
- VERSION = "1.0.1"
2
+ VERSION = "1.1.0"
3
3
  end
data/lib/rehearsal.rb CHANGED
@@ -9,16 +9,18 @@ module Rehearsal
9
9
  end
10
10
 
11
11
  module ClassMethods
12
- def rehearse_with(options = {})
12
+ def rehearse_with(username, password)
13
13
  class_eval do
14
14
  define_method(:username) do
15
- options[:username]
15
+ username
16
16
  end
17
17
 
18
18
  define_method(:password) do
19
- options[:password]
19
+ password
20
20
  end
21
21
  end
22
+
23
+ Rehearsal.config.enabled = true
22
24
  end
23
25
  end
24
26
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rehearsal
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.1.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-12-27 00:00:00.000000000 Z
12
+ date: 2013-01-13 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails