serpscan 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/serpscan.rb +1 -0
- data/lib/serpscan/serpscan_child_object.rb +3 -1
- data/lib/serpscan/serpscan_object.rb +5 -0
- data/lib/serpscan/version.rb +1 -1
- data/spec/lib/serpscan/website_spec.rb +1 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 81052b0479b6d7e0502592206e3317c75df57b4b
|
4
|
+
data.tar.gz: 1a8e30767f104a101be79c2c838c307f8a532f29
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a78d51affc97650eb75eb7e824ec381836e82026c59e65b2f6423df3174fa979ebde680e32725911694038027c03e2c0d7bbaad431463ac851444ea66fe96bb1
|
7
|
+
data.tar.gz: 8cb634145192dc928265eb182186624cc0b2fc6bca49a2436bc5789ad12c47acfc78765ea8f58b5665eda2f5d93a1565c0024d0176e488f220950f9305b33b88
|
data/lib/serpscan.rb
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
module Serpscan
|
2
2
|
class SerpscanObject
|
3
3
|
def initialize(options = {})
|
4
|
+
@raw_json ||= options
|
4
5
|
assign_attributes(options)
|
5
6
|
end
|
6
7
|
|
@@ -17,6 +18,10 @@ module Serpscan
|
|
17
18
|
true
|
18
19
|
end
|
19
20
|
|
21
|
+
def to_json
|
22
|
+
@raw_json.to_json
|
23
|
+
end
|
24
|
+
|
20
25
|
class << self
|
21
26
|
def api_path(object = self)
|
22
27
|
"/#{Serpscan::Utilities.object_to_string(object)}s"
|
data/lib/serpscan/version.rb
CHANGED
@@ -23,6 +23,7 @@ describe Serpscan::Website, vcr: true do
|
|
23
23
|
it 'should return a keyword object' do
|
24
24
|
website = subject.class.find(1)
|
25
25
|
keyword = website.create_keyword(phrase)
|
26
|
+
|
26
27
|
expect(keyword.class).to eq Serpscan::Keyword
|
27
28
|
expect(keyword.website).to eq website
|
28
29
|
expect(keyword.phrase).to eq phrase
|
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.
|
4
|
+
version: 0.1.1
|
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-04-
|
11
|
+
date: 2015-04-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|