Skip to content

Commit 68ba200

Browse files
committed
Do not use demo key by default
1 parent 2ee2c94 commit 68ba200

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

lib/detect_language/configuration.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class Configuration
4141
alias_method :secure?, :secure
4242

4343
def initialize
44-
@api_key = "demo"
44+
@api_key = nil
4545
@api_version = "0.2"
4646
@host = "ws.detectlanguage.com"
4747
@user_agent = "Detect Language API ruby gem"

lib/detect_language/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module DetectLanguage
2-
VERSION = "1.0.0"
2+
VERSION = "1.0.1"
33
end

spec/detect_language_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
context "configuration" do
88
it "should have default configuration values" do
9-
subject.configuration.api_key.should == 'demo'
9+
subject.configuration.api_key.should be_nil
1010
subject.configuration.api_version.should == '0.2'
1111
subject.configuration.host.should == 'ws.detectlanguage.com'
1212
subject.configuration.user_agent.should == 'Detect Language API ruby gem'

0 commit comments

Comments
 (0)