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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1f056ba620a7473d7f6aede7f5d8bb221af6c0ec783250b2121fbad05f650dc7
4
- data.tar.gz: baf9f163f55d8e2776efd03613545cc30f6db6d42241421f37c3c8a1453981b5
3
+ metadata.gz: 9d5ebb12b8e876664b0876cd413151df12d165010c9db0df8f1169e9a7e55dc8
4
+ data.tar.gz: 45eed24f3a68be641410f80254821b2f1d9aca28722eb35ab9e2df9013f7e5dd
5
5
  SHA512:
6
- metadata.gz: 0de90ecd2e40b4463c250628e9e954f7f4f260a0dc263203a2a06dbc176bb4fcd013ebf6eb5607b70f565c2f7fd75ba96fc8292755adae5c6079d3ac8ebeeb3e
7
- data.tar.gz: e9b176be5ae4f4b2cf6a259d7552489965f777815d5c2caae1daccd0973c08e6bdbf85d034ae3c41c2a3818b1926a2d47a5ed68d3f85a7b852a55050a14b9248
6
+ metadata.gz: 94195da518a28eaffb907b17e06ec7b7cfe035310579432df53c81505395fa3c2a5f583086c2ede940ec5f2d7a807696bdd9ddff8d8658abb71cecf14ea9dae7
7
+ data.tar.gz: 7fe5ff95c48c2925afbbddd868fe560e4099245c27d970a1f33b5f89a57e900e59a1d0a34a8a5012f864fd4a7efb0682bf3ef2b34e3e657f55b442761c531f28
@@ -4,7 +4,8 @@ module WiteiWebApi
4
4
  class Agent < Mechanize
5
5
  def initialize
6
6
  super('witei_web_api')
7
-
7
+
8
+ @agent.max_history = 0
8
9
  @agent.user_agent = "Witei Web Api (#{WiteiWebApi::VERSION})"
9
10
  @agent.open_timeout = 10
10
11
  @agent.read_timeout = 10
@@ -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-horizontal').first
8
+ form = page.forms_with(css: '.form').first
9
9
 
10
10
  contact = new
11
11
  contact.assign_attributes(
@@ -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/agencies/account_management/agency/user_update/#{id}/")
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
@@ -1,3 +1,3 @@
1
1
  module WiteiWebApi
2
- VERSION = '0.2.3'
2
+ VERSION = '0.2.8'
3
3
  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.3
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: 2019-06-13 00:00:00.000000000 Z
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
- rubyforge_project:
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