serpscan 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 69a7cf0bfc2814b5e108c5883635a7226fb0f0a1
4
- data.tar.gz: 35091f331922d0520e91ba6d864141e826d264e0
3
+ metadata.gz: 64caaa4a34f1602e0b168432424a23c478690cb4
4
+ data.tar.gz: 3aabf4b7e02237d19c6d7b0b0db874127926d7b2
5
5
  SHA512:
6
- metadata.gz: fadd54f903e2061c7ceada457a2ae500e6fede2b5dedd8033d7083723a5cd0c1bf926486fc6feda0cee3441ac6ca7fa89c4894ee71a15005226bd64909b41216
7
- data.tar.gz: 6ad84ef0e4a455b38f62ff897dc9e0b6ae3ed5786bc52e5b3b2e595c6e1562f47d486191e0b2540cabdb43c3bb17afdc1eee82238675f28a9822f9e1374597dd
6
+ metadata.gz: c1d9363fb73c62fd135ed7cecc72f14cc1078b9bece1e34870c67f4f8533632e5f83b5a2d66e5aefcf4b119e22ed2c723e01eb6f3f50bd52f0771b7151346e40
7
+ data.tar.gz: ad6ac3820209b650dec2b08fa9a03de5e8b9b14928200322c910136be6ebbb62e3a2590961c57e9a26fb6fc1217edc2d9b4dddb2e388afb146b3f0434f33de8a
data/lib/serpscan.rb CHANGED
@@ -13,6 +13,12 @@ require 'json'
13
13
 
14
14
  module Serpscan
15
15
  class << self
16
- attr_accessor :api_key
16
+ def api_key
17
+ @api_key || ENV['SERPSCAN_API_KEY']
18
+ end
19
+
20
+ def api_key=(key)
21
+ @api_key = key
22
+ end
17
23
  end
18
24
  end
@@ -1,3 +1,3 @@
1
1
  module Serpscan
2
- VERSION = '0.1.3'
2
+ VERSION = '0.1.4'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: serpscan
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dylan Montgomery
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-05-08 00:00:00.000000000 Z
11
+ date: 2015-05-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler