immoscout 1.6.5 → 1.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.github/workflows/test.yml +2 -2
- data/.rubocop.yml +1 -1
- data/.yardopts +1 -0
- data/Appraisals +0 -4
- data/CHANGELOG.md +22 -14
- data/Gemfile +1 -1
- data/gemfiles/rails_6.1.gemfile +1 -1
- data/gemfiles/rails_7.1.gemfile +1 -1
- data/immoscout.gemspec +5 -4
- data/lib/immoscout/api/client.rb +0 -4
- data/lib/immoscout/api/connection.rb +0 -3
- data/lib/immoscout/models/actions/attachment.rb +0 -3
- data/lib/immoscout/models/actions/contact.rb +0 -3
- data/lib/immoscout/models/actions/publish.rb +0 -3
- data/lib/immoscout/models/actions/real_estate.rb +0 -3
- data/lib/immoscout/models/apartment_buy.rb +0 -10
- data/lib/immoscout/models/concerns/modelable.rb +0 -2
- data/lib/immoscout/models/concerns/renderable.rb +0 -2
- data/lib/immoscout/models/contact.rb +0 -5
- data/lib/immoscout/models/document.rb +0 -4
- data/lib/immoscout/models/house_buy.rb +0 -12
- data/lib/immoscout/models/parts/address.rb +0 -7
- data/lib/immoscout/models/parts/api_search_data.rb +0 -4
- data/lib/immoscout/models/parts/contact.rb +0 -4
- data/lib/immoscout/models/parts/coordinate.rb +0 -4
- data/lib/immoscout/models/parts/courtage.rb +0 -4
- data/lib/immoscout/models/parts/energy_certificate.rb +0 -4
- data/lib/immoscout/models/parts/energy_source.rb +0 -4
- data/lib/immoscout/models/parts/firing_type.rb +0 -4
- data/lib/immoscout/models/parts/geo_code.rb +0 -4
- data/lib/immoscout/models/parts/geo_hierarchy.rb +0 -5
- data/lib/immoscout/models/parts/international_country_region.rb +0 -4
- data/lib/immoscout/models/parts/price.rb +0 -4
- data/lib/immoscout/models/parts/publish_channel.rb +0 -4
- data/lib/immoscout/models/parts/real_estate.rb +0 -4
- data/lib/immoscout/models/parts/url.rb +0 -4
- data/lib/immoscout/models/parts/urls.rb +0 -5
- data/lib/immoscout/models/picture.rb +0 -5
- data/lib/immoscout/models/publish.rb +0 -6
- data/lib/immoscout/version.rb +1 -1
- data/lib/immoscout.rb +23 -13
- metadata +18 -6
- data/gemfiles/rails_5.2.gemfile +0 -27
- data/lib/immoscout/models.rb +0 -10
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a85b9bb5e881e4722f1fbbf6b1e2d80253aa1521c8893e7426e2bf542a12e59d
|
|
4
|
+
data.tar.gz: edb78cdd6d64932dd8df1c333c39d05095fdd763738204f9caa0b627e1216991
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a2940398bc19114e297666a978e46fbb3f8c77da3f1a330bd18ed657a542f38de69283ccdc2f7051e09998d5f5ee697d715b118f0badd6b25185c25105265c05
|
|
7
|
+
data.tar.gz: 016a658b8b420c92a80adb8074c4002578d7a24e17bc5cb65c0871be081a40d067c583eef423dc907bf3f588e0bc7dc80f2208138be2d13625555c55876af40a
|
data/.github/workflows/test.yml
CHANGED
data/.rubocop.yml
CHANGED
data/.yardopts
CHANGED
data/Appraisals
CHANGED
data/CHANGELOG.md
CHANGED
|
@@ -2,36 +2,44 @@
|
|
|
2
2
|
|
|
3
3
|
* TODO: Replace this bullet point with an actual description of a change.
|
|
4
4
|
|
|
5
|
-
### 1.
|
|
5
|
+
### 1.8.0 (12 January 2025)
|
|
6
|
+
|
|
7
|
+
* Switched to Zeitwerk as autoloader (#15)
|
|
8
|
+
|
|
9
|
+
### 1.7.0 (3 January 2025)
|
|
10
|
+
|
|
11
|
+
* Raised minimum supported Ruby/Rails version to 2.7/6.1 (#14)
|
|
12
|
+
|
|
13
|
+
### 1.6.5 (15 August 2024)
|
|
6
14
|
|
|
7
15
|
* Just a retag of 1.6.1
|
|
8
16
|
|
|
9
|
-
### 1.6.4
|
|
17
|
+
### 1.6.4 (15 August 2024)
|
|
10
18
|
|
|
11
19
|
* Just a retag of 1.6.1
|
|
12
20
|
|
|
13
|
-
### 1.6.3
|
|
21
|
+
### 1.6.3 (15 August 2024)
|
|
14
22
|
|
|
15
23
|
* Just a retag of 1.6.1
|
|
16
24
|
|
|
17
|
-
### 1.6.2
|
|
25
|
+
### 1.6.2 (9 August 2024)
|
|
18
26
|
|
|
19
27
|
* Just a retag of 1.6.1
|
|
20
28
|
|
|
21
|
-
### 1.6.1
|
|
29
|
+
### 1.6.1 (9 August 2024)
|
|
22
30
|
|
|
23
31
|
* Added API docs building to continuous integration (#13)
|
|
24
32
|
|
|
25
|
-
### 1.6.0
|
|
33
|
+
### 1.6.0 (8 July 2024)
|
|
26
34
|
|
|
27
35
|
* Moved the development dependencies from the gemspec to the Gemfile (#11)
|
|
28
36
|
* Dropped support for Ruby <2.7 (#12)
|
|
29
37
|
|
|
30
|
-
### 1.5.0
|
|
38
|
+
### 1.5.0 (24 February 2023)
|
|
31
39
|
|
|
32
40
|
* Added support for Gem release automation
|
|
33
41
|
|
|
34
|
-
### 1.4.0
|
|
42
|
+
### 1.4.0 (18 January 2023)
|
|
35
43
|
|
|
36
44
|
* Bundler >= 2.3 is from now on required as minimal version (#10)
|
|
37
45
|
* Dropped support for Ruby < 2.5 (#10)
|
|
@@ -39,23 +47,23 @@
|
|
|
39
47
|
* Updated all development/runtime gems to their latest
|
|
40
48
|
Ruby 2.5 compatible version (#10)
|
|
41
49
|
|
|
42
|
-
### 1.3.2
|
|
50
|
+
### 1.3.2 (15 October 2021)
|
|
43
51
|
|
|
44
52
|
* Migrated to Github Actions
|
|
45
53
|
* Migrated to our own coverage reporting
|
|
46
54
|
* Added the code statistics to the test process
|
|
47
55
|
|
|
48
|
-
### 1.3.1
|
|
56
|
+
### 1.3.1 (12 May 2021)
|
|
49
57
|
|
|
50
58
|
* Corrected the GNU Make release target
|
|
51
59
|
|
|
52
|
-
### 1.3.0
|
|
60
|
+
### 1.3.0 (9 September 2020)
|
|
53
61
|
|
|
54
62
|
* Dropped support for Rails <5.2 (#9)
|
|
55
63
|
* Dropped support for Ruby <2.5 (#9)
|
|
56
64
|
* Updated the faraday gem spec to `~> 1.0` (#9)
|
|
57
65
|
|
|
58
|
-
### 1.2.0
|
|
66
|
+
### 1.2.0 (6 March 2019)
|
|
59
67
|
|
|
60
68
|
* Added a changelog file to track changes for library users
|
|
61
69
|
* Allow newer version of faraday/faraday-middleware. (#7)
|
|
@@ -64,11 +72,11 @@
|
|
|
64
72
|
* Dropped support for EOL Ruby 2.2
|
|
65
73
|
* Added support for Ruby 2.6
|
|
66
74
|
|
|
67
|
-
### 1.1.0
|
|
75
|
+
### 1.1.0 (6 September 2018)
|
|
68
76
|
|
|
69
77
|
* Add support for property `international_country_region` in address
|
|
70
78
|
|
|
71
|
-
### 1.0.0
|
|
79
|
+
### 1.0.0 (9 May 2018)
|
|
72
80
|
|
|
73
81
|
* The first stable release
|
|
74
82
|
* All initial Immoscout models are mapped
|
data/Gemfile
CHANGED
data/gemfiles/rails_6.1.gemfile
CHANGED
data/gemfiles/rails_7.1.gemfile
CHANGED
data/immoscout.gemspec
CHANGED
|
@@ -32,8 +32,9 @@ Gem::Specification.new do |spec|
|
|
|
32
32
|
|
|
33
33
|
spec.required_ruby_version = '>= 2.7'
|
|
34
34
|
|
|
35
|
-
spec.
|
|
36
|
-
spec.
|
|
37
|
-
spec.
|
|
38
|
-
spec.
|
|
35
|
+
spec.add_dependency 'activesupport', '>= 6.1'
|
|
36
|
+
spec.add_dependency 'faraday', '~> 1.10'
|
|
37
|
+
spec.add_dependency 'faraday_middleware', '~> 1.2'
|
|
38
|
+
spec.add_dependency 'simple_oauth', '>= 0.3'
|
|
39
|
+
spec.add_dependency 'zeitwerk', '~> 2.6'
|
|
39
40
|
end
|
data/lib/immoscout/api/client.rb
CHANGED
|
@@ -1,15 +1,5 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
require_relative 'concerns/renderable'
|
|
4
|
-
require_relative 'concerns/propertiable'
|
|
5
|
-
require_relative 'actions/real_estate'
|
|
6
|
-
require_relative 'parts/api_search_data'
|
|
7
|
-
require_relative 'parts/address'
|
|
8
|
-
require_relative 'parts/contact'
|
|
9
|
-
require_relative 'parts/price'
|
|
10
|
-
require_relative 'parts/courtage'
|
|
11
|
-
require_relative 'parts/energy_source'
|
|
12
|
-
|
|
13
3
|
module Immoscout
|
|
14
4
|
module Models
|
|
15
5
|
# Real Estate. (selling an apartment)
|
|
@@ -1,17 +1,5 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
require_relative 'concerns/renderable'
|
|
4
|
-
require_relative 'concerns/propertiable'
|
|
5
|
-
require_relative 'actions/real_estate'
|
|
6
|
-
require_relative 'parts/api_search_data'
|
|
7
|
-
require_relative 'parts/address'
|
|
8
|
-
require_relative 'parts/contact'
|
|
9
|
-
require_relative 'parts/price'
|
|
10
|
-
require_relative 'parts/courtage'
|
|
11
|
-
require_relative 'parts/energy_source'
|
|
12
|
-
require_relative 'parts/energy_certificate'
|
|
13
|
-
require_relative 'parts/firing_type'
|
|
14
|
-
|
|
15
3
|
module Immoscout
|
|
16
4
|
module Models
|
|
17
5
|
# Real Estate. (selling a house)
|
|
@@ -1,12 +1,5 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
require_relative '../base'
|
|
4
|
-
require_relative '../parts/coordinate'
|
|
5
|
-
require_relative '../parts/geo_hierarchy'
|
|
6
|
-
require_relative '../parts/international_country_region'
|
|
7
|
-
require_relative '../concerns/propertiable'
|
|
8
|
-
require_relative '../concerns/renderable'
|
|
9
|
-
|
|
10
3
|
module Immoscout
|
|
11
4
|
module Models
|
|
12
5
|
module Parts
|
|
@@ -1,10 +1,5 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
require_relative 'concerns/renderable'
|
|
4
|
-
require_relative 'concerns/propertiable'
|
|
5
|
-
require_relative 'parts/urls'
|
|
6
|
-
require_relative 'actions/attachment'
|
|
7
|
-
|
|
8
3
|
module Immoscout
|
|
9
4
|
module Models
|
|
10
5
|
# Attachment (picture) of a Real Estate.
|
|
@@ -1,11 +1,5 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
require_relative 'concerns/renderable'
|
|
4
|
-
require_relative 'concerns/propertiable'
|
|
5
|
-
require_relative 'actions/publish'
|
|
6
|
-
require_relative 'parts/real_estate'
|
|
7
|
-
require_relative 'parts/publish_channel'
|
|
8
|
-
|
|
9
3
|
module Immoscout
|
|
10
4
|
module Models
|
|
11
5
|
# The Publish (object) of a Real Estate.
|
data/lib/immoscout/version.rb
CHANGED
data/lib/immoscout.rb
CHANGED
|
@@ -1,29 +1,39 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
+
require 'zeitwerk'
|
|
3
4
|
require 'active_support/concern'
|
|
4
5
|
require 'active_support/configurable'
|
|
5
6
|
require 'active_support/core_ext/hash'
|
|
6
7
|
require 'active_support/core_ext/module'
|
|
7
|
-
|
|
8
|
-
require '
|
|
9
|
-
require '
|
|
10
|
-
require '
|
|
8
|
+
require 'singleton'
|
|
9
|
+
require 'faraday'
|
|
10
|
+
require 'faraday_middleware'
|
|
11
|
+
require 'json'
|
|
11
12
|
|
|
12
13
|
# The top-namespace of the +immoscout+ gem.
|
|
13
14
|
module Immoscout
|
|
15
|
+
# Setup a Zeitwerk autoloader instance and configure it
|
|
16
|
+
loader = Zeitwerk::Loader.for_gem
|
|
17
|
+
|
|
18
|
+
# Finish the auto loader configuration
|
|
19
|
+
loader.setup
|
|
20
|
+
|
|
21
|
+
# Make sure to eager load all constants
|
|
22
|
+
loader.eager_load
|
|
23
|
+
|
|
14
24
|
class << self
|
|
15
25
|
attr_writer :configuration
|
|
16
|
-
end
|
|
17
26
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
27
|
+
def configuration
|
|
28
|
+
@configuration ||= Configuration.new
|
|
29
|
+
end
|
|
21
30
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
31
|
+
def configure
|
|
32
|
+
yield(configuration)
|
|
33
|
+
end
|
|
25
34
|
|
|
26
|
-
|
|
27
|
-
|
|
35
|
+
def reset_configuration!
|
|
36
|
+
self.configuration = Configuration.new
|
|
37
|
+
end
|
|
28
38
|
end
|
|
29
39
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: immoscout
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.8.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Marcus Geissler
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2025-01-12 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activesupport
|
|
@@ -16,14 +16,14 @@ dependencies:
|
|
|
16
16
|
requirements:
|
|
17
17
|
- - ">="
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
|
-
version: '
|
|
19
|
+
version: '6.1'
|
|
20
20
|
type: :runtime
|
|
21
21
|
prerelease: false
|
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
23
|
requirements:
|
|
24
24
|
- - ">="
|
|
25
25
|
- !ruby/object:Gem::Version
|
|
26
|
-
version: '
|
|
26
|
+
version: '6.1'
|
|
27
27
|
- !ruby/object:Gem::Dependency
|
|
28
28
|
name: faraday
|
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -66,6 +66,20 @@ dependencies:
|
|
|
66
66
|
- - ">="
|
|
67
67
|
- !ruby/object:Gem::Version
|
|
68
68
|
version: '0.3'
|
|
69
|
+
- !ruby/object:Gem::Dependency
|
|
70
|
+
name: zeitwerk
|
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
|
72
|
+
requirements:
|
|
73
|
+
- - "~>"
|
|
74
|
+
- !ruby/object:Gem::Version
|
|
75
|
+
version: '2.6'
|
|
76
|
+
type: :runtime
|
|
77
|
+
prerelease: false
|
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
79
|
+
requirements:
|
|
80
|
+
- - "~>"
|
|
81
|
+
- !ruby/object:Gem::Version
|
|
82
|
+
version: '2.6'
|
|
69
83
|
description:
|
|
70
84
|
email:
|
|
71
85
|
- marcus3006@gmail.com
|
|
@@ -100,7 +114,6 @@ files:
|
|
|
100
114
|
- config/docker/.inputrc
|
|
101
115
|
- doc/assets/project.svg
|
|
102
116
|
- docker-compose.yml
|
|
103
|
-
- gemfiles/rails_5.2.gemfile
|
|
104
117
|
- gemfiles/rails_6.1.gemfile
|
|
105
118
|
- gemfiles/rails_7.1.gemfile
|
|
106
119
|
- immoscout.gemspec
|
|
@@ -110,7 +123,6 @@ files:
|
|
|
110
123
|
- lib/immoscout/api/request.rb
|
|
111
124
|
- lib/immoscout/configuration.rb
|
|
112
125
|
- lib/immoscout/errors/failed.rb
|
|
113
|
-
- lib/immoscout/models.rb
|
|
114
126
|
- lib/immoscout/models/actions/attachment.rb
|
|
115
127
|
- lib/immoscout/models/actions/contact.rb
|
|
116
128
|
- lib/immoscout/models/actions/publish.rb
|
data/gemfiles/rails_5.2.gemfile
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
# This file was generated by Appraisal
|
|
2
|
-
|
|
3
|
-
source "https://rubygems.org"
|
|
4
|
-
|
|
5
|
-
gem "appraisal", "~> 2.4"
|
|
6
|
-
gem "bundler", "~> 2.3"
|
|
7
|
-
gem "countless", "~> 1.1"
|
|
8
|
-
gem "factory_bot", "~> 6.2"
|
|
9
|
-
gem "guard-rspec", "~> 4.7"
|
|
10
|
-
gem "railties", ">= 5.2"
|
|
11
|
-
gem "rake", "~> 13.0"
|
|
12
|
-
gem "redcarpet", "~> 3.5"
|
|
13
|
-
gem "rspec", "~> 3.12"
|
|
14
|
-
gem "rspec-json_expectations", "~> 2.2"
|
|
15
|
-
gem "rubocop", "~> 1.28"
|
|
16
|
-
gem "rubocop-rails", "~> 2.14"
|
|
17
|
-
gem "rubocop-rspec", "~> 2.10"
|
|
18
|
-
gem "simplecov", ">= 0.22"
|
|
19
|
-
gem "terminal-table", "~> 3.0"
|
|
20
|
-
gem "timecop", ">= 0.9.6"
|
|
21
|
-
gem "vcr", "~> 6.0"
|
|
22
|
-
gem "webmock", "~> 3.18"
|
|
23
|
-
gem "yard", ">= 0.9.28"
|
|
24
|
-
gem "yard-activesupport-concern", ">= 0.0.1"
|
|
25
|
-
gem "activesupport", "~> 5.2.0"
|
|
26
|
-
|
|
27
|
-
gemspec path: "../"
|
data/lib/immoscout/models.rb
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
require_relative 'errors/failed'
|
|
4
|
-
require_relative 'api/client'
|
|
5
|
-
require_relative 'models/house_buy'
|
|
6
|
-
require_relative 'models/apartment_buy'
|
|
7
|
-
require_relative 'models/contact'
|
|
8
|
-
require_relative 'models/publish'
|
|
9
|
-
require_relative 'models/picture'
|
|
10
|
-
require_relative 'models/document'
|