defender 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
data/lib/defender.rb CHANGED
@@ -2,6 +2,12 @@ require 'defender/version'
2
2
  require 'defender/document'
3
3
 
4
4
  module Defender
5
+ ##
6
+ # Set this to your Defensio API key. Get one at http://defensio.com.
7
+ def self.api_key=(api_key)
8
+ @api_key = api_key.to_s
9
+ end
10
+
5
11
  ##
6
12
  # You most probably don't need to set this. It is used to replace the backend
7
13
  # when running the tests. If you for any reason need to use another backend
@@ -19,7 +25,7 @@ module Defender
19
25
  def self.defensio
20
26
  return @defensio if defined?(@defensio)
21
27
  require 'defensio'
22
- @defensio ||= Defensio.new(Defender.api_key, "Defender | #{VERSION} | Henrik Hodne | dvyjones@binaryhex.com")
28
+ @defensio ||= Defensio.new(@api_key, "Defender | #{VERSION} | Henrik Hodne | dvyjones@binaryhex.com")
23
29
  end
24
30
 
25
31
  ##
@@ -1,3 +1,3 @@
1
1
  module Defender
2
- VERSION = '1.0.0'
2
+ VERSION = '1.0.1'
3
3
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 1
7
7
  - 0
8
- - 0
9
- version: 1.0.0
8
+ - 1
9
+ version: 1.0.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - Henrik Hodne
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-04-13 00:00:00 +02:00
17
+ date: 2010-04-14 00:00:00 +02:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency