witei_web_api 0.2.3 → 0.2.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/witei_web_api/agent.rb +2 -1
- data/lib/witei_web_api/contact.rb +1 -1
- data/lib/witei_web_api/house.rb +4 -2
- data/lib/witei_web_api/office_user.rb +3 -4
- data/lib/witei_web_api/version.rb +1 -1
- metadata +21 -22
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9d5ebb12b8e876664b0876cd413151df12d165010c9db0df8f1169e9a7e55dc8
|
4
|
+
data.tar.gz: 45eed24f3a68be641410f80254821b2f1d9aca28722eb35ab9e2df9013f7e5dd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 94195da518a28eaffb907b17e06ec7b7cfe035310579432df53c81505395fa3c2a5f583086c2ede940ec5f2d7a807696bdd9ddff8d8658abb71cecf14ea9dae7
|
7
|
+
data.tar.gz: 7fe5ff95c48c2925afbbddd868fe560e4099245c27d970a1f33b5f89a57e900e59a1d0a34a8a5012f864fd4a7efb0682bf3ef2b34e3e657f55b442761c531f28
|
data/lib/witei_web_api/agent.rb
CHANGED
@@ -5,7 +5,7 @@ class WiteiWebApi::Contact < WiteiWebApi::Base
|
|
5
5
|
|
6
6
|
def self.find(id)
|
7
7
|
page = get("/pro/agencies/contact/#{id}/update/")
|
8
|
-
form = page.forms_with(css: '.form
|
8
|
+
form = page.forms_with(css: '.form').first
|
9
9
|
|
10
10
|
contact = new
|
11
11
|
contact.assign_attributes(
|
data/lib/witei_web_api/house.rb
CHANGED
@@ -25,7 +25,8 @@ class WiteiWebApi::House < WiteiWebApi::Base
|
|
25
25
|
:block,
|
26
26
|
:doorway,
|
27
27
|
:door,
|
28
|
-
:floor
|
28
|
+
:floor,
|
29
|
+
:building_floors
|
29
30
|
|
30
31
|
has_one(:owner) { WiteiWebApi::Contact }
|
31
32
|
has_one(:partner) { WiteiWebApi::Contact }
|
@@ -67,7 +68,8 @@ class WiteiWebApi::House < WiteiWebApi::Base
|
|
67
68
|
block: form['block'],
|
68
69
|
doorway: form['doorway'],
|
69
70
|
door: form['door'],
|
70
|
-
floor: form['floor']
|
71
|
+
floor: form['floor'],
|
72
|
+
building_floors: form['building_floors']
|
71
73
|
)
|
72
74
|
house
|
73
75
|
end
|
@@ -2,9 +2,8 @@ class WiteiWebApi::OfficeUser < WiteiWebApi::Base
|
|
2
2
|
attr_accessor :id, :name, :email, :phone
|
3
3
|
|
4
4
|
def self.find(id)
|
5
|
-
page = get("/pro/
|
6
|
-
|
7
|
-
form = page.forms_with(css: '.form-horizontal').first
|
5
|
+
page = get("/pro/accounts/user/#{id}/manage/")
|
6
|
+
form = page.forms_with(css: '#user_form').first
|
8
7
|
|
9
8
|
office_user = new
|
10
9
|
office_user.assign_attributes(
|
@@ -15,4 +14,4 @@ class WiteiWebApi::OfficeUser < WiteiWebApi::Base
|
|
15
14
|
)
|
16
15
|
office_user
|
17
16
|
end
|
18
|
-
end
|
17
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: witei_web_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dmitry Polushkin
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-06-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -34,62 +34,62 @@ dependencies:
|
|
34
34
|
name: rake
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
36
36
|
requirements:
|
37
|
-
- - "~>"
|
38
|
-
- !ruby/object:Gem::Version
|
39
|
-
version: '12.1'
|
40
37
|
- - ">="
|
41
38
|
- !ruby/object:Gem::Version
|
42
39
|
version: 12.1.0
|
40
|
+
- - "~>"
|
41
|
+
- !ruby/object:Gem::Version
|
42
|
+
version: '12.1'
|
43
43
|
type: :development
|
44
44
|
prerelease: false
|
45
45
|
version_requirements: !ruby/object:Gem::Requirement
|
46
46
|
requirements:
|
47
|
-
- - "~>"
|
48
|
-
- !ruby/object:Gem::Version
|
49
|
-
version: '12.1'
|
50
47
|
- - ">="
|
51
48
|
- !ruby/object:Gem::Version
|
52
49
|
version: 12.1.0
|
50
|
+
- - "~>"
|
51
|
+
- !ruby/object:Gem::Version
|
52
|
+
version: '12.1'
|
53
53
|
- !ruby/object:Gem::Dependency
|
54
54
|
name: minitest-proveit
|
55
55
|
requirement: !ruby/object:Gem::Requirement
|
56
56
|
requirements:
|
57
|
-
- - "~>"
|
58
|
-
- !ruby/object:Gem::Version
|
59
|
-
version: '1.0'
|
60
57
|
- - ">="
|
61
58
|
- !ruby/object:Gem::Version
|
62
59
|
version: 1.0.0
|
60
|
+
- - "~>"
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
version: '1.0'
|
63
63
|
type: :development
|
64
64
|
prerelease: false
|
65
65
|
version_requirements: !ruby/object:Gem::Requirement
|
66
66
|
requirements:
|
67
|
-
- - "~>"
|
68
|
-
- !ruby/object:Gem::Version
|
69
|
-
version: '1.0'
|
70
67
|
- - ">="
|
71
68
|
- !ruby/object:Gem::Version
|
72
69
|
version: 1.0.0
|
70
|
+
- - "~>"
|
71
|
+
- !ruby/object:Gem::Version
|
72
|
+
version: '1.0'
|
73
73
|
- !ruby/object:Gem::Dependency
|
74
74
|
name: minitest
|
75
75
|
requirement: !ruby/object:Gem::Requirement
|
76
76
|
requirements:
|
77
|
-
- - "~>"
|
78
|
-
- !ruby/object:Gem::Version
|
79
|
-
version: '5.9'
|
80
77
|
- - ">="
|
81
78
|
- !ruby/object:Gem::Version
|
82
79
|
version: 5.9.0
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '5.9'
|
83
83
|
type: :development
|
84
84
|
prerelease: false
|
85
85
|
version_requirements: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
|
-
- - "~>"
|
88
|
-
- !ruby/object:Gem::Version
|
89
|
-
version: '5.9'
|
90
87
|
- - ">="
|
91
88
|
- !ruby/object:Gem::Version
|
92
89
|
version: 5.9.0
|
90
|
+
- - "~>"
|
91
|
+
- !ruby/object:Gem::Version
|
92
|
+
version: '5.9'
|
93
93
|
- !ruby/object:Gem::Dependency
|
94
94
|
name: minitest-line
|
95
95
|
requirement: !ruby/object:Gem::Requirement
|
@@ -257,8 +257,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
257
257
|
- !ruby/object:Gem::Version
|
258
258
|
version: '0'
|
259
259
|
requirements: []
|
260
|
-
|
261
|
-
rubygems_version: 2.7.6
|
260
|
+
rubygems_version: 3.0.2
|
262
261
|
signing_key:
|
263
262
|
specification_version: 4
|
264
263
|
summary: Witei Web API
|