witei_web_api 0.1.1 → 0.1.2

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: 0fe972466d027173a26383203659c6abe127ff7ccbc1df554552139a29519219
4
- data.tar.gz: ec17b712765629da405be767d06dcff35e62cb4cd7dade13e56fe29810c4bc6c
3
+ metadata.gz: ff86af65124a22f14b2a6c047eba2dfd8a326fd61e44cc46b7e2b68173dc1886
4
+ data.tar.gz: d0090260665754d8d95ae9c51b2e11dd8be4d09ff8f06e1db33bf3d97a90fc26
5
5
  SHA512:
6
- metadata.gz: 9bec3ede1f29cb6666484e38ab587aee7df85590194c1483983f9c851d64bef8c6f1afcdfe6cb4f2305cb278c2e0879304f59e50f8850bc2755a417eec5fff72
7
- data.tar.gz: 8567e141b94b3fc01436ebd19e8b09ff2dc55c4b142ccd6259b5162f700ff7bad4ed31e64b93d8290d9916b8ea12bc7324bf931b1da4f7420036e8ce3a2656cb
6
+ metadata.gz: 1e70f5a774f33a57a3326f1c73d4048bc0f9d1d3e5fab51c72c2f652031f007d735e87070d8b9100d65fd6373748a1fde5d0b9d18c7402b809707a75bf6a59d6
7
+ data.tar.gz: ce07c85a6c082e61f181db5d0a4b61573ac25e060ffd52fb4b45ffac10332943dde6deda7dbdd947be4a8d3217664b520284394955dca0655bbee48722aa8ffe
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- witei_web_api (0.1.1)
4
+ witei_web_api (0.1.2)
5
5
  activemodel (~> 5.0)
6
6
  mechanize (~> 2.7)
7
7
 
@@ -51,7 +51,7 @@ GEM
51
51
  net-http-digest_auth (1.4.1)
52
52
  net-http-persistent (3.0.0)
53
53
  connection_pool (~> 2.2)
54
- nokogiri (1.8.3)
54
+ nokogiri (1.8.4)
55
55
  mini_portile2 (~> 2.3.0)
56
56
  ntlm-http (0.1.1)
57
57
  public_suffix (3.0.2)
@@ -92,4 +92,4 @@ DEPENDENCIES
92
92
  yard (~> 0.9, >= 0.9.11)
93
93
 
94
94
  BUNDLED WITH
95
- 1.16.1
95
+ 1.16.4
@@ -1,3 +1,5 @@
1
+ require 'thread'
2
+
1
3
  module WiteiWebApi
2
4
  class Base
3
5
  include ActiveModel::AttributeAssignment
@@ -5,7 +7,7 @@ module WiteiWebApi
5
7
  private
6
8
 
7
9
  def self.agent
8
- @agent ||= begin
10
+ Thread.current[:witei_web_api_agent] ||= begin
9
11
  agent = WiteiWebApi::Agent.new
10
12
  login!(agent)
11
13
  agent
@@ -10,6 +10,7 @@ class WiteiWebApi::House < WiteiWebApi::Base
10
10
  def self.find(identifier)
11
11
  page = agent.get "https://witei.com/pro/agencies/houses/list/?_hidden__action_identifier_bcd32c=unacc_eq&_hidden_identifier_bcd32c=#{identifier}&listView=block"
12
12
  id = page.css('#id_houses_0').first['value']
13
+ p id
13
14
 
14
15
  page = agent.get "https://witei.com/pro/house/update/#{id}/"
15
16
 
@@ -25,4 +26,4 @@ class WiteiWebApi::House < WiteiWebApi::Base
25
26
  )
26
27
  house
27
28
  end
28
- end
29
+ end
@@ -1,3 +1,3 @@
1
1
  module WiteiWebApi
2
- VERSION = '0.1.1'
2
+ VERSION = '0.1.2'
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.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dmitry Polushkin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-06-19 00:00:00.000000000 Z
11
+ date: 2018-08-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler