dotloop 0.1.5 → 0.1.6

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d5405265975c768b88021bf52c92102e3c1b0534
4
- data.tar.gz: ed1b6902f65bf6fab9b4fdbe638aa746af1cb06b
3
+ metadata.gz: ced7091525bac81ce2127831cb13d042e49b5738
4
+ data.tar.gz: aa182e0a52c37d041125476d9b3ee358366bca65
5
5
  SHA512:
6
- metadata.gz: a209049f409af12fe4a804a00b896ca5b97c6f0ad999502f2719237d47bec39d2312e0d0f14b72a8a4ea1f13acbd585735a3b2ac01273bee98359fc5a3d12ba1
7
- data.tar.gz: 0137bc0580037802c8a9d12c9cfe0bb2a7f9bcf3edb0e77b57275d504b3dfd84a36a16ce79411886f25606d2ab3fd470df1ca44c9409d2549854cbc51af0c93d
6
+ metadata.gz: 8939b6429957c6e665eefda98de0ed86007424f8977276646bee977129a9cdbe2dad1e600be606495719d0428c93c03ac35b6640ae6dd1389f2482e2b1017258
7
+ data.tar.gz: af8a459632b6470526f4ae81cd4377f0735c97241de0a21b8f4c3d8d70614d1a0bdc785381c152795fbe05a10353272d63e8a6f0f90e56606710450377cb9290
checksums.yaml.gz.sig CHANGED
@@ -1 +1,2 @@
1
- 6f7���!�G�Ń� q&aC��I�@A�1zP޷�cG؞�f&$�|���g)�� .ea7*q4dɐ8�؆�=sW�������Mq�� �ގ�� p��+t����"q�=Q�I�2h��� I9�>\��<��~YP_mL�����v�#�|����+�no��L�k�Z\�����Wg��Y�#J�^i�Tgp�����iÉe��rIũ>�0��L�Щ���=���b���9=-�6x&
1
+ n�QB����Upmq��3r�P�e?�E2����SA$��޵���Z3R���Oo��z��+Fe�}ŷW
2
+ ��֐j�w�ڟ������}���O�dvd�$+C��V���CX\����#���'��_�Z�+~1�y��;i]�,�2�� ���τ��"�\m��s��WtY����~An�`֚�$~�7?M��n.�<a������ş�����A1 ��r�CڑwRrRe�F
data.tar.gz.sig CHANGED
@@ -1,2 +1 @@
1
- fay���b�#
2
- ������ ���u��G���� ���������0^� �������HNQ4�1X��)���3��s��c�X� ;��A��.+,'g�B��
1
+ �&�s~0��"�9o)Y�)3P[5+������ҋ[�]{Ԏ��dG�i4ҎBJ�JM�3�XJM�ږwuSu�S��{��][l�v{�Һ���(��^9�Q��r�
data/README.md CHANGED
@@ -35,7 +35,7 @@ Optional parameters are prefixed with a __'*'__'
35
35
  profile_id: '1234',
36
36
  *batch_number: 1,
37
37
  *batch_size: 50,
38
- *statusIds: '1,2,3'
38
+ *statuses: [:private_listing, :active_listing, :sold],
39
39
  *complianceStatusIds: '1,2,3'
40
40
  *tagIds: '1,2,3'
41
41
  *sortBy: 'email'
data/dotloop.gemspec CHANGED
@@ -15,6 +15,7 @@ Gem::Specification.new do |spec|
15
15
  spec.license = 'MIT'
16
16
  spec.cert_chain = ['certs/shanedavies.pem']
17
17
  spec.signing_key = File.expand_path('~/.ssh/dotloop-private_key.pem') if $PROGRAM_NAME.end_with?('gem')
18
+ spec.required_ruby_version = '~> 2.0'
18
19
 
19
20
  # Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
20
21
  # to allow pushing to a single host or delete this section to allow pushing to any host.
data/lib/dotloop/loop.rb CHANGED
@@ -3,6 +3,17 @@ module Dotloop
3
3
  include Dotloop::QueryParamHelpers
4
4
  attr_accessor :client
5
5
 
6
+ STATUS_MAP = {
7
+ private_listing: 1,
8
+ active_listing: 2,
9
+ under_contract: 3,
10
+ sold: 4,
11
+ leased: 5,
12
+ archived: 6,
13
+ pre_listing: 7,
14
+ pre_offer: 8
15
+ }.freeze
16
+
6
17
  def initialize(client:)
7
18
  @client = client
8
19
  end
@@ -42,6 +53,14 @@ module Dotloop
42
53
  Dotloop::Models::LoopDetail.new(loop_detail)
43
54
  end
44
55
 
56
+ def self.statuses
57
+ STATUS_MAP.keys
58
+ end
59
+
60
+ def statuses
61
+ self.class.statuses
62
+ end
63
+
45
64
  private
46
65
 
47
66
  def query_params(options)
@@ -41,7 +41,7 @@ module Dotloop
41
41
  end
42
42
 
43
43
  def status_ids(options)
44
- [options[:status_ids]].flatten.map(&:to_i).delete_if(&:zero?).compact
44
+ [options[:statuses]].flatten.map { |status| Dotloop::Loop::STATUS_MAP[status&.to_sym] }.compact
45
45
  end
46
46
 
47
47
  def compliance_status_ids(options)
@@ -1,3 +1,3 @@
1
1
  module Dotloop
2
- VERSION = '0.1.5'.freeze
2
+ VERSION = '0.1.6'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dotloop
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Loft47
@@ -30,7 +30,7 @@ cert_chain:
30
30
  L+ceZspJWVt3gj8EHk5CVnWGEh6Pk69eo8EuR38vWHXOExU+b14Umj8wjYGjDgmQ
31
31
  ULEgdaQHqkQV4C3edSFOUWTGehI=
32
32
  -----END CERTIFICATE-----
33
- date: 2016-12-09 00:00:00.000000000 Z
33
+ date: 2016-12-12 00:00:00.000000000 Z
34
34
  dependencies:
35
35
  - !ruby/object:Gem::Dependency
36
36
  name: simplecov
@@ -282,9 +282,9 @@ require_paths:
282
282
  - lib
283
283
  required_ruby_version: !ruby/object:Gem::Requirement
284
284
  requirements:
285
- - - ">="
285
+ - - "~>"
286
286
  - !ruby/object:Gem::Version
287
- version: '0'
287
+ version: '2.0'
288
288
  required_rubygems_version: !ruby/object:Gem::Requirement
289
289
  requirements:
290
290
  - - ">="
metadata.gz.sig CHANGED
Binary file