immobilienscout24 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- data/.travis.yml +10 -0
- data/README.md +3 -0
- data/immobilienscout24.gemspec +3 -3
- data/lib/immobilienscout24/api/attachment.rb +2 -2
- data/lib/immobilienscout24/api/request/base.rb +2 -0
- data/lib/immobilienscout24/helper/attachment.rb +3 -3
- data/spec/support/auth.yml.tmpl +2 -3
- data/spec/support/shared_request_strategy.rb +44 -0
- data/spec/unit/immobilienscout24/api/attachment_spec.rb +87 -1
- data/spec/unit/immobilienscout24/api/contact_spec.rb +75 -0
- data/spec/unit/immobilienscout24/api/publication_spec.rb +19 -0
- data/spec/unit/immobilienscout24/api/real_estate_spec.rb +32 -0
- data/spec/unit/immobilienscout24/api/request/json_spec.rb +17 -0
- data/spec/unit/immobilienscout24/api/request/xml_spec.rb +17 -0
- metadata +36 -11
- checksums.yaml +0 -15
data/.travis.yml
ADDED
data/README.md
CHANGED
@@ -1,5 +1,8 @@
|
|
1
1
|
# Immobilienscout24
|
2
2
|
|
3
|
+
[![Build Status](https://travis-ci.org/converate-consulting-group/immobilienscout24.svg?branch=master)](https://travis-ci.org/converate-consulting-group/immobilienscout24)
|
4
|
+
[![Gem Version](https://badge.fury.io/rb/immobilienscout24.svg)](http://badge.fury.io/rb/immobilienscout24)
|
5
|
+
|
3
6
|
A Ruby wrapper for the Immobilienscout24 REST API. This wrapper has all the important parts for the import and export of real estates from and to Immobilienscout24.
|
4
7
|
|
5
8
|
Complete API's:
|
data/immobilienscout24.gemspec
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |spec|
|
4
4
|
spec.name = "immobilienscout24"
|
5
|
-
spec.version = "0.1.
|
5
|
+
spec.version = "0.1.3"
|
6
6
|
spec.author = ["Converate Consulting Group GmbH"]
|
7
7
|
spec.email = ["info@converate.com"]
|
8
8
|
spec.description = %q{A Ruby wrapper for the Immobilienscout24 REST API}
|
@@ -14,12 +14,12 @@ Gem::Specification.new do |spec|
|
|
14
14
|
spec.test_files = spec.files.grep(%r{^spec/})
|
15
15
|
spec.require_paths = ["lib"]
|
16
16
|
|
17
|
-
spec.add_runtime_dependency "faraday", "
|
17
|
+
spec.add_runtime_dependency "faraday", "~> 0.8.9"
|
18
18
|
spec.add_runtime_dependency "faraday_middleware", ">= 0.9.0"
|
19
19
|
spec.add_runtime_dependency "multi_xml", ">= 0"
|
20
20
|
spec.add_runtime_dependency "hashie", ">= 0"
|
21
21
|
spec.add_runtime_dependency "simple_oauth", ">= 0"
|
22
22
|
|
23
|
-
spec.add_development_dependency "bundler", "~> 1.
|
23
|
+
spec.add_development_dependency "bundler", "~> 1.5"
|
24
24
|
spec.add_development_dependency "rake"
|
25
25
|
end
|
@@ -51,8 +51,8 @@ module Immobilienscout24
|
|
51
51
|
# @example
|
52
52
|
# client.create_attachment(matadata, 'path/to/attachment.jpg', estate: 62412598)
|
53
53
|
def create_attachment(metadata, attachment, options = {})
|
54
|
-
attachment = ::Immobilienscout24::Helper::Attachment.new(attachment)
|
55
|
-
multipart = {metadata: metadata, attachment:
|
54
|
+
attachment = ::Immobilienscout24::Helper::Attachment.new(attachment)
|
55
|
+
multipart = {metadata: metadata, attachment: attachment.build}
|
56
56
|
|
57
57
|
with_request_options(multipart: true) do |client|
|
58
58
|
client.post attachment_endpoint("/attachment", options), multipart
|
@@ -38,13 +38,13 @@ module Immobilienscout24
|
|
38
38
|
@file = attachment.path
|
39
39
|
when Immobilienscout24::Helper::Attachment
|
40
40
|
helper = attachment
|
41
|
-
@file, @content_type
|
42
|
-
@file_extension = helper.file_extension
|
41
|
+
@file, @content_type = helper.file, helper.content_type
|
42
|
+
@filename, @file_extension = helper.filename, helper.file_extension
|
43
43
|
end
|
44
44
|
end
|
45
45
|
|
46
46
|
def build
|
47
|
-
|
47
|
+
Faraday::UploadIO.new(file, content_type, filename)
|
48
48
|
end
|
49
49
|
|
50
50
|
def file_extension
|
data/spec/support/auth.yml.tmpl
CHANGED
@@ -1,11 +1,10 @@
|
|
1
|
-
# Can be generated from playground...
|
2
|
-
#
|
3
1
|
# You need to ask Immobilienscout24 for a valid
|
4
2
|
# sandbox consumer_key and secret (with all permissions)
|
5
3
|
#
|
6
4
|
# You can still run all tests without valid credentials as
|
7
5
|
# as long as you don't add new requests.
|
8
|
-
|
6
|
+
#
|
7
|
+
# The token and the token_secret can be generated from the playground.
|
9
8
|
consumer_key: your_consumer_key
|
10
9
|
consumer_secret: your_consumer_secret
|
11
10
|
token: your_oauth_token
|
@@ -0,0 +1,44 @@
|
|
1
|
+
shared_examples :requests do
|
2
|
+
let(:request) { double(:request) }
|
3
|
+
subject { described_class.new(request) }
|
4
|
+
|
5
|
+
describe "#configure" do
|
6
|
+
let(:result) { double(:result) }
|
7
|
+
|
8
|
+
context "when multipart" do
|
9
|
+
it "should configure the request" do
|
10
|
+
expect(subject).to receive(:set_accept_header)
|
11
|
+
expect(subject).to receive(:multipart?).and_return(true)
|
12
|
+
expect(subject).not_to receive(:set_content_type)
|
13
|
+
expect(subject).to receive(:configure_multipart_request).and_return(result)
|
14
|
+
|
15
|
+
expect(subject.configure).to eq result
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
19
|
+
context "when get" do
|
20
|
+
it "should configure the request" do
|
21
|
+
expect(subject).to receive(:set_accept_header)
|
22
|
+
expect(subject).to receive(:multipart?).and_return(false)
|
23
|
+
expect(subject).to receive(:set_content_type)
|
24
|
+
expect(subject).to receive(:get?).and_return(true)
|
25
|
+
expect(subject).to receive(:configure_get_request).and_return(result)
|
26
|
+
|
27
|
+
expect(subject.configure).to eq result
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
31
|
+
context "when post" do
|
32
|
+
it "should configure the request" do
|
33
|
+
expect(subject).to receive(:set_accept_header)
|
34
|
+
expect(subject).to receive(:multipart?).and_return(false)
|
35
|
+
expect(subject).to receive(:set_content_type)
|
36
|
+
expect(subject).to receive(:get?).and_return(false)
|
37
|
+
expect(subject).to receive(:configure_post_request).and_return(result)
|
38
|
+
|
39
|
+
expect(subject.configure).to eq result
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
43
|
+
|
44
|
+
end
|
@@ -1,7 +1,93 @@
|
|
1
1
|
require 'spec_helper'
|
2
2
|
|
3
3
|
describe Immobilienscout24::Api::Attachment do
|
4
|
+
subject { Class.new.send(:include, described_class).new }
|
5
|
+
let(:endpoint) { double(:endpoint) }
|
6
|
+
let(:response) { double(:response) }
|
4
7
|
|
5
|
-
#
|
8
|
+
describe "#attachments" do
|
9
|
+
it "should return a response" do
|
10
|
+
expect(subject).to receive(:attachment_endpoint).with("/attachment", {}).and_return(endpoint)
|
11
|
+
expect(subject).to receive(:get).with(endpoint).and_return(response)
|
12
|
+
|
13
|
+
expect(subject.attachments).to eq response
|
14
|
+
end
|
15
|
+
end
|
16
|
+
|
17
|
+
describe "#attachment" do
|
18
|
+
let(:attachment_id) { 1 }
|
19
|
+
it "should return a response" do
|
20
|
+
expect(subject).to receive(:attachment_endpoint).with("/attachment/#{attachment_id}", {}).and_return(endpoint)
|
21
|
+
expect(subject).to receive(:get).with(endpoint).and_return(response)
|
22
|
+
|
23
|
+
expect(subject.attachment(attachment_id)).to eq response
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
27
|
+
describe "#create_attachment" do
|
28
|
+
let(:metadata) { double(:metadata) }
|
29
|
+
let(:attachment) { double(:attachment) }
|
30
|
+
let(:helper) { double(:helper) }
|
31
|
+
let(:fileio) { double(:fileio) }
|
32
|
+
|
33
|
+
it "should return a response" do
|
34
|
+
expect(Immobilienscout24::Helper::Attachment).to receive(:new).
|
35
|
+
with(attachment).and_return(helper)
|
36
|
+
expect(helper).to receive(:build).and_return(fileio)
|
37
|
+
expect(subject).to receive(:with_request_options).with(multipart: true).
|
38
|
+
and_return(response)
|
39
|
+
|
40
|
+
multipart = {metadata: metadata, attachment: attachment}
|
41
|
+
expect(subject.create_attachment(metadata, attachment)).to eq response
|
42
|
+
end
|
43
|
+
end
|
44
|
+
|
45
|
+
describe "#update_attachment" do
|
46
|
+
let(:attachment_id) { 1 }
|
47
|
+
let(:attachment) { double(:attachment) }
|
48
|
+
|
49
|
+
it "should return a response" do
|
50
|
+
expect(subject).to receive(:attachment_endpoint).with("/attachment/#{attachment_id}", {}).and_return(endpoint)
|
51
|
+
expect(subject).to receive(:put).with(endpoint, attachment).and_return(response)
|
52
|
+
expect(subject.update_attachment(attachment_id, attachment)).to eq response
|
53
|
+
end
|
54
|
+
end
|
55
|
+
|
56
|
+
describe "#delete_attachment" do
|
57
|
+
let(:attachment_id) { 1 }
|
58
|
+
|
59
|
+
it "should return a response" do
|
60
|
+
expect(subject).to receive(:attachment_endpoint).with("/attachment/#{attachment_id}", {}).and_return(endpoint)
|
61
|
+
expect(subject).to receive(:delete).with(endpoint).and_return(response)
|
62
|
+
expect(subject.delete_attachment(attachment_id)).to eq response
|
63
|
+
end
|
64
|
+
end
|
65
|
+
|
66
|
+
describe "#attachment_endpoint" do
|
67
|
+
let(:options) { double(:options) }
|
68
|
+
let(:estate) { double(:estate) }
|
69
|
+
let(:resource) { double(:resource) }
|
70
|
+
|
71
|
+
it "should return the endpoint" do
|
72
|
+
expect(options).to receive(:fetch).with(:estate).and_return(estate)
|
73
|
+
expect(subject).to receive(:estate_attachment_endpoint).with(estate, resource, options).and_return(endpoint)
|
74
|
+
expect(subject.attachment_endpoint(resource, options)).to eq endpoint
|
75
|
+
end
|
76
|
+
end
|
77
|
+
|
78
|
+
describe "#estate_attachment_endpoint" do
|
79
|
+
let(:estate_endpoint) { "estate_endpoint" }
|
80
|
+
let(:resource) { "/resource" }
|
81
|
+
let(:endpoint) { [estate_endpoint, resource].join }
|
82
|
+
let(:estate) { double(:estate) }
|
83
|
+
|
84
|
+
it "should return the endpoint" do
|
85
|
+
expect(subject).to receive(:real_estate_endpoint).
|
86
|
+
with("/realestate/#{estate}", {}).and_return(estate_endpoint)
|
87
|
+
|
88
|
+
expect(subject.estate_attachment_endpoint(estate, resource)).to eq endpoint
|
89
|
+
end
|
90
|
+
|
91
|
+
end
|
6
92
|
|
7
93
|
end
|
@@ -0,0 +1,75 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe Immobilienscout24::Api::Contact do
|
4
|
+
subject { Class.new.send(:include, described_class).new }
|
5
|
+
let(:endpoint) { double(:endpoint) }
|
6
|
+
let(:response) { double(:response) }
|
7
|
+
|
8
|
+
describe "#contacts" do
|
9
|
+
it "should return a response" do
|
10
|
+
expect(subject).to receive(:contact_endpoint).with("/contact", {}).and_return(endpoint)
|
11
|
+
expect(subject).to receive(:get).with(endpoint).and_return(response)
|
12
|
+
|
13
|
+
expect(subject.contacts).to eq response
|
14
|
+
end
|
15
|
+
end
|
16
|
+
|
17
|
+
describe "#contact" do
|
18
|
+
let(:contact_id) { 1 }
|
19
|
+
it "should return a response" do
|
20
|
+
expect(subject).to receive(:contact_endpoint).with("/contact/#{contact_id}", {}).and_return(endpoint)
|
21
|
+
expect(subject).to receive(:get).with(endpoint).and_return(response)
|
22
|
+
|
23
|
+
expect(subject.contact(contact_id)).to eq response
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
27
|
+
describe "#create_contact" do
|
28
|
+
let(:contact) { double(:contact) }
|
29
|
+
|
30
|
+
it "should return a response" do
|
31
|
+
expect(subject).to receive(:contact_endpoint).with("/contact", {}).and_return(endpoint)
|
32
|
+
expect(subject).to receive(:post).with(endpoint, contact).and_return(response)
|
33
|
+
|
34
|
+
expect(subject.create_contact(contact)).to eq response
|
35
|
+
end
|
36
|
+
end
|
37
|
+
|
38
|
+
describe "#update_contact" do
|
39
|
+
let(:contact_id) { 1 }
|
40
|
+
let(:contact) { double(:contact) }
|
41
|
+
|
42
|
+
it "should return a response" do
|
43
|
+
expect(subject).to receive(:contact_endpoint).with("/contact/#{contact_id}", {}).and_return(endpoint)
|
44
|
+
expect(subject).to receive(:put).with(endpoint, contact).and_return(response)
|
45
|
+
|
46
|
+
expect(subject.update_contact(contact_id, contact)).to eq response
|
47
|
+
end
|
48
|
+
end
|
49
|
+
|
50
|
+
describe "#contact_endpoint" do
|
51
|
+
let(:options) { {} }
|
52
|
+
let(:resource) { double(:resource) }
|
53
|
+
|
54
|
+
it "should return the endpoint" do
|
55
|
+
expect(subject).to receive(:user_contact_endpoint).with("me", resource, {user: "me"}).and_return(endpoint)
|
56
|
+
expect(subject.contact_endpoint(resource, options)).to eq endpoint
|
57
|
+
end
|
58
|
+
end
|
59
|
+
|
60
|
+
describe "#user_contact_endpoint" do
|
61
|
+
let(:user) { "me" }
|
62
|
+
let(:resource) { "resource" }
|
63
|
+
let(:user_endpoint) { "/user" }
|
64
|
+
let(:endpoint) { [user_endpoint, resource].join }
|
65
|
+
|
66
|
+
it "should return the endpoint" do
|
67
|
+
expect(subject).to receive(:user_endpoint).with("/user/#{user}").and_return(user_endpoint)
|
68
|
+
|
69
|
+
|
70
|
+
expect(subject.user_contact_endpoint(user, resource)).to eq endpoint
|
71
|
+
end
|
72
|
+
|
73
|
+
end
|
74
|
+
|
75
|
+
end
|
@@ -5,6 +5,25 @@ describe Immobilienscout24::Api::Publish do
|
|
5
5
|
let(:endpoint) { double(:endpoint) }
|
6
6
|
let(:response) { double(:response) }
|
7
7
|
|
8
|
+
describe "#publications" do
|
9
|
+
let(:estate) { double(:estate) }
|
10
|
+
it "should return a response" do
|
11
|
+
expect(subject).to receive(:publish_endpoint).with("/publish").and_return(endpoint)
|
12
|
+
expect(subject).to receive(:get).with(endpoint, {realestate: estate}).and_return(response)
|
13
|
+
expect(subject.publications(estate)).to eq response
|
14
|
+
end
|
15
|
+
end
|
16
|
+
|
17
|
+
describe "#publication" do
|
18
|
+
let(:publication) { 1 }
|
19
|
+
it "should return a response" do
|
20
|
+
expect(subject).to receive(:publish_endpoint).with("/publish/#{publication}").and_return(endpoint)
|
21
|
+
expect(subject).to receive(:get).with(endpoint).and_return(response)
|
22
|
+
|
23
|
+
expect(subject.publication(publication)).to eq response
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
8
27
|
describe "#create_publications" do
|
9
28
|
let(:publications) { double(:publications) }
|
10
29
|
|
@@ -5,6 +5,24 @@ describe Immobilienscout24::Api::RealEstate do
|
|
5
5
|
let(:endpoint) { double(:endpoint) }
|
6
6
|
let(:response) { double(:response) }
|
7
7
|
|
8
|
+
describe "#real_estates" do
|
9
|
+
it "should return a response" do
|
10
|
+
expect(subject).to receive(:real_estate_endpoint).with("/realestate", {}).and_return(endpoint)
|
11
|
+
expect(subject).to receive(:get).with(endpoint).and_return(response)
|
12
|
+
|
13
|
+
expect(subject.real_estates).to eq response
|
14
|
+
end
|
15
|
+
end
|
16
|
+
|
17
|
+
describe "#real_estate" do
|
18
|
+
let(:estate) { 1 }
|
19
|
+
it "should return a response" do
|
20
|
+
expect(subject).to receive(:real_estate_endpoint).with("/realestate/#{estate}", {}).and_return(endpoint)
|
21
|
+
expect(subject).to receive(:get).with(endpoint).and_return(response)
|
22
|
+
|
23
|
+
expect(subject.real_estate(estate)).to eq response
|
24
|
+
end
|
25
|
+
end
|
8
26
|
|
9
27
|
describe "#create_real_estate" do
|
10
28
|
let(:estate) { double(:estate) }
|
@@ -53,4 +71,18 @@ describe Immobilienscout24::Api::RealEstate do
|
|
53
71
|
end
|
54
72
|
end
|
55
73
|
|
74
|
+
describe "#user_real_estate_endpoint" do
|
75
|
+
let(:user) { "me" }
|
76
|
+
let(:resource) { "resource" }
|
77
|
+
let(:user_endpoint) { "/user" }
|
78
|
+
let(:endpoint) { [user_endpoint, resource].join }
|
79
|
+
|
80
|
+
it "should return the endpoint" do
|
81
|
+
expect(subject).to receive(:user_endpoint).with("/user/#{user}").and_return(user_endpoint)
|
82
|
+
|
83
|
+
|
84
|
+
expect(subject.user_real_estate_endpoint(user, resource)).to eq endpoint
|
85
|
+
end
|
86
|
+
|
87
|
+
end
|
56
88
|
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe Immobilienscout24::Api::Request::Json do
|
4
|
+
include_examples :requests
|
5
|
+
|
6
|
+
its(:content_type) { should eq "application/json" }
|
7
|
+
its(:extension) { should eq :json }
|
8
|
+
|
9
|
+
describe "#serialized_data" do
|
10
|
+
let(:data) { double(:data) }
|
11
|
+
let(:json) { double(:json) }
|
12
|
+
it "should call to_json" do
|
13
|
+
expect(data).to receive(:to_json).and_return(json)
|
14
|
+
expect(subject.serialized_data(data)).to eq json
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe Immobilienscout24::Api::Request::Xml do
|
4
|
+
include_examples :requests
|
5
|
+
|
6
|
+
its(:content_type) { should eq "application/xml" }
|
7
|
+
its(:extension) { should eq :xml }
|
8
|
+
|
9
|
+
describe "#serialized_data" do
|
10
|
+
let(:data) { double(:data) }
|
11
|
+
let(:xml) { double(:xml) }
|
12
|
+
it "should call to_json" do
|
13
|
+
expect(data).to receive(:to_xml).and_return(xml)
|
14
|
+
expect(subject.serialized_data(data)).to eq xml
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
metadata
CHANGED
@@ -1,32 +1,36 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: immobilienscout24
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
|
+
prerelease:
|
5
6
|
platform: ruby
|
6
7
|
authors:
|
7
8
|
- Converate Consulting Group GmbH
|
8
9
|
autorequire:
|
9
10
|
bindir: bin
|
10
11
|
cert_chain: []
|
11
|
-
date: 2014-04-
|
12
|
+
date: 2014-04-22 00:00:00.000000000 Z
|
12
13
|
dependencies:
|
13
14
|
- !ruby/object:Gem::Dependency
|
14
15
|
name: faraday
|
15
16
|
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
16
18
|
requirements:
|
17
|
-
- -
|
19
|
+
- - ~>
|
18
20
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.9
|
21
|
+
version: 0.8.9
|
20
22
|
type: :runtime
|
21
23
|
prerelease: false
|
22
24
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
23
26
|
requirements:
|
24
|
-
- -
|
27
|
+
- - ~>
|
25
28
|
- !ruby/object:Gem::Version
|
26
|
-
version: 0.9
|
29
|
+
version: 0.8.9
|
27
30
|
- !ruby/object:Gem::Dependency
|
28
31
|
name: faraday_middleware
|
29
32
|
requirement: !ruby/object:Gem::Requirement
|
33
|
+
none: false
|
30
34
|
requirements:
|
31
35
|
- - ! '>='
|
32
36
|
- !ruby/object:Gem::Version
|
@@ -34,6 +38,7 @@ dependencies:
|
|
34
38
|
type: :runtime
|
35
39
|
prerelease: false
|
36
40
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
37
42
|
requirements:
|
38
43
|
- - ! '>='
|
39
44
|
- !ruby/object:Gem::Version
|
@@ -41,6 +46,7 @@ dependencies:
|
|
41
46
|
- !ruby/object:Gem::Dependency
|
42
47
|
name: multi_xml
|
43
48
|
requirement: !ruby/object:Gem::Requirement
|
49
|
+
none: false
|
44
50
|
requirements:
|
45
51
|
- - ! '>='
|
46
52
|
- !ruby/object:Gem::Version
|
@@ -48,6 +54,7 @@ dependencies:
|
|
48
54
|
type: :runtime
|
49
55
|
prerelease: false
|
50
56
|
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
51
58
|
requirements:
|
52
59
|
- - ! '>='
|
53
60
|
- !ruby/object:Gem::Version
|
@@ -55,6 +62,7 @@ dependencies:
|
|
55
62
|
- !ruby/object:Gem::Dependency
|
56
63
|
name: hashie
|
57
64
|
requirement: !ruby/object:Gem::Requirement
|
65
|
+
none: false
|
58
66
|
requirements:
|
59
67
|
- - ! '>='
|
60
68
|
- !ruby/object:Gem::Version
|
@@ -62,6 +70,7 @@ dependencies:
|
|
62
70
|
type: :runtime
|
63
71
|
prerelease: false
|
64
72
|
version_requirements: !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
65
74
|
requirements:
|
66
75
|
- - ! '>='
|
67
76
|
- !ruby/object:Gem::Version
|
@@ -69,6 +78,7 @@ dependencies:
|
|
69
78
|
- !ruby/object:Gem::Dependency
|
70
79
|
name: simple_oauth
|
71
80
|
requirement: !ruby/object:Gem::Requirement
|
81
|
+
none: false
|
72
82
|
requirements:
|
73
83
|
- - ! '>='
|
74
84
|
- !ruby/object:Gem::Version
|
@@ -76,6 +86,7 @@ dependencies:
|
|
76
86
|
type: :runtime
|
77
87
|
prerelease: false
|
78
88
|
version_requirements: !ruby/object:Gem::Requirement
|
89
|
+
none: false
|
79
90
|
requirements:
|
80
91
|
- - ! '>='
|
81
92
|
- !ruby/object:Gem::Version
|
@@ -83,20 +94,23 @@ dependencies:
|
|
83
94
|
- !ruby/object:Gem::Dependency
|
84
95
|
name: bundler
|
85
96
|
requirement: !ruby/object:Gem::Requirement
|
97
|
+
none: false
|
86
98
|
requirements:
|
87
99
|
- - ~>
|
88
100
|
- !ruby/object:Gem::Version
|
89
|
-
version: '1.
|
101
|
+
version: '1.5'
|
90
102
|
type: :development
|
91
103
|
prerelease: false
|
92
104
|
version_requirements: !ruby/object:Gem::Requirement
|
105
|
+
none: false
|
93
106
|
requirements:
|
94
107
|
- - ~>
|
95
108
|
- !ruby/object:Gem::Version
|
96
|
-
version: '1.
|
109
|
+
version: '1.5'
|
97
110
|
- !ruby/object:Gem::Dependency
|
98
111
|
name: rake
|
99
112
|
requirement: !ruby/object:Gem::Requirement
|
113
|
+
none: false
|
100
114
|
requirements:
|
101
115
|
- - ! '>='
|
102
116
|
- !ruby/object:Gem::Version
|
@@ -104,6 +118,7 @@ dependencies:
|
|
104
118
|
type: :development
|
105
119
|
prerelease: false
|
106
120
|
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
none: false
|
107
122
|
requirements:
|
108
123
|
- - ! '>='
|
109
124
|
- !ruby/object:Gem::Version
|
@@ -118,6 +133,7 @@ files:
|
|
118
133
|
- .gitignore
|
119
134
|
- .ruby-gemset
|
120
135
|
- .ruby-version
|
136
|
+
- .travis.yml
|
121
137
|
- Gemfile
|
122
138
|
- LICENSE.txt
|
123
139
|
- README.md
|
@@ -178,11 +194,15 @@ files:
|
|
178
194
|
- spec/support/auth.yml.tmpl
|
179
195
|
- spec/support/estate_support.rb
|
180
196
|
- spec/support/integration_support.rb
|
197
|
+
- spec/support/shared_request_strategy.rb
|
181
198
|
- spec/support/vcr.rb
|
182
199
|
- spec/unit/immobilienscout24/api/attachment_spec.rb
|
183
200
|
- spec/unit/immobilienscout24/api/connection_spec.rb
|
201
|
+
- spec/unit/immobilienscout24/api/contact_spec.rb
|
184
202
|
- spec/unit/immobilienscout24/api/publication_spec.rb
|
185
203
|
- spec/unit/immobilienscout24/api/real_estate_spec.rb
|
204
|
+
- spec/unit/immobilienscout24/api/request/json_spec.rb
|
205
|
+
- spec/unit/immobilienscout24/api/request/xml_spec.rb
|
186
206
|
- spec/unit/immobilienscout24/api/request_spec.rb
|
187
207
|
- spec/unit/immobilienscout24/api/search_spec.rb
|
188
208
|
- spec/unit/immobilienscout24/api/user_spec.rb
|
@@ -192,26 +212,27 @@ files:
|
|
192
212
|
homepage: https://github.com/converate-consulting-group/immobilienscout24
|
193
213
|
licenses:
|
194
214
|
- MIT
|
195
|
-
metadata: {}
|
196
215
|
post_install_message:
|
197
216
|
rdoc_options: []
|
198
217
|
require_paths:
|
199
218
|
- lib
|
200
219
|
required_ruby_version: !ruby/object:Gem::Requirement
|
220
|
+
none: false
|
201
221
|
requirements:
|
202
222
|
- - ! '>='
|
203
223
|
- !ruby/object:Gem::Version
|
204
224
|
version: '0'
|
205
225
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
226
|
+
none: false
|
206
227
|
requirements:
|
207
228
|
- - ! '>='
|
208
229
|
- !ruby/object:Gem::Version
|
209
230
|
version: '0'
|
210
231
|
requirements: []
|
211
232
|
rubyforge_project:
|
212
|
-
rubygems_version:
|
233
|
+
rubygems_version: 1.8.25
|
213
234
|
signing_key:
|
214
|
-
specification_version:
|
235
|
+
specification_version: 3
|
215
236
|
summary: A Ruby wrapper for the Immobilienscout24 REST API
|
216
237
|
test_files:
|
217
238
|
- spec/fixtures/estate.jpg
|
@@ -253,11 +274,15 @@ test_files:
|
|
253
274
|
- spec/support/auth.yml.tmpl
|
254
275
|
- spec/support/estate_support.rb
|
255
276
|
- spec/support/integration_support.rb
|
277
|
+
- spec/support/shared_request_strategy.rb
|
256
278
|
- spec/support/vcr.rb
|
257
279
|
- spec/unit/immobilienscout24/api/attachment_spec.rb
|
258
280
|
- spec/unit/immobilienscout24/api/connection_spec.rb
|
281
|
+
- spec/unit/immobilienscout24/api/contact_spec.rb
|
259
282
|
- spec/unit/immobilienscout24/api/publication_spec.rb
|
260
283
|
- spec/unit/immobilienscout24/api/real_estate_spec.rb
|
284
|
+
- spec/unit/immobilienscout24/api/request/json_spec.rb
|
285
|
+
- spec/unit/immobilienscout24/api/request/xml_spec.rb
|
261
286
|
- spec/unit/immobilienscout24/api/request_spec.rb
|
262
287
|
- spec/unit/immobilienscout24/api/search_spec.rb
|
263
288
|
- spec/unit/immobilienscout24/api/user_spec.rb
|
checksums.yaml
DELETED
@@ -1,15 +0,0 @@
|
|
1
|
-
---
|
2
|
-
!binary "U0hBMQ==":
|
3
|
-
metadata.gz: !binary |-
|
4
|
-
M2U2NTE0NTQxOWRiODYyZDE3M2I0YTE1M2MxNGRiNzE0NjM1NjMzNQ==
|
5
|
-
data.tar.gz: !binary |-
|
6
|
-
MWUyMjQ1ZWY1MGM3OTAzZWVjODEyMTNiYmEyZTYzMGI0OWViMmE1MA==
|
7
|
-
SHA512:
|
8
|
-
metadata.gz: !binary |-
|
9
|
-
NDRlMzcyZTYyZjQ5MmRiNTY2MjQzMDIxZDZmZTRmYzk1ZjFmMzI3ZGQyODFk
|
10
|
-
NDdhYmJiZGVjMjE4YzgyNjdkOGEyZjc3Nzc0MzNmNjEzMmNjNmZkZWZmMDdl
|
11
|
-
ZDBmMGY0ZjBhMGEwNGRlMTk3M2U2NTZiZWUyMzUzYzQ4ZDA3NmM=
|
12
|
-
data.tar.gz: !binary |-
|
13
|
-
ODY4NDUzYjFhM2U3Mzc2ZjI5ZjM5NmNhYWRmY2I3YThkOWY2Zjc5MzMzM2U5
|
14
|
-
Y2ZiMDdkNTA4ZGE1ODFmYWFkMmIzODYzMmM4ODJlMjk4NjA5MTUzNDVjMzRk
|
15
|
-
YzMyYTFhZGExZWRiYTY1MzgzOGIyODk1YWE2YjMzYzYxNjc2ZGY=
|