snov 0.1.0 → 0.1.1

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
  SHA256:
3
- metadata.gz: 66024313d2ed01c16ffeeaec3f536f93b00957250903c5d18e3d30458ba4e413
4
- data.tar.gz: e915c4231981bd3fad2d4fd6a7eb18dfcdcc2005058d97202a7374cc76df25a0
3
+ metadata.gz: 0e2c1f129ba398f54a6a910cdcdb3cbf13920abe6ae32651b5f137c8d324d2d8
4
+ data.tar.gz: ae1b8107f3904cebb48367c98213e49f0f78ff76a4661273af5a5bf656fbaed2
5
5
  SHA512:
6
- metadata.gz: ba368d2617e6b8ca49cb9bcde3c75ed8b43348dd187f7a1f60a459b596f9e1999b282eb940114dae99354330583cc33dcc90e95c8c0a1b13d2fe482daf713058
7
- data.tar.gz: eef471ba1b9bdcf927fa489addafaf3283f083a6067d7a7b3bba8b414dcbccbf31edc2769ad405fb4abc59cb3129753dee699ab86080faced65e1855435ee4d5
6
+ metadata.gz: 00c6f62c9d033943d244453672ba2951aea873e967359148d0411d4faeed1548fa2cf7cbc247b18b04e52e865b2c91658e4f0fa84ea351f66e150be50f7674fb
7
+ data.tar.gz: 82875dbb5bfdc6555d98866a6f9e96d2dd7b7bde9209c7d1fe90a2ff78378c17c1f2d1cd3bd201ef4991ae55f3d3c79e7b3c11022a244685ac2d56db9c6631fc
@@ -1,3 +1,8 @@
1
+ ## [0.1.1]
2
+
3
+ ### Fixed
4
+ * GetProspectsByEmail & GetProspectList to always return arrays when expecting one
5
+
1
6
  ## [0.1.0]
2
7
  * GetUserLists
3
8
  * GetProspectList
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2019 ShakaCode
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -60,7 +60,10 @@ module Snov
60
60
 
61
61
  attr_accessor :id, :name, :first_name, :last_name, :industry, :country, :locality, :success, :source
62
62
  attr_accessor :logo, :last_update_date, :message
63
- attr_reader :social, :current_jobs, :previous_jobs
63
+
64
+ def social
65
+ Array.wrap(@social)
66
+ end
64
67
 
65
68
  def social=(val)
66
69
  @social = Array.wrap(val).map do |rel|
@@ -68,12 +71,20 @@ module Snov
68
71
  end
69
72
  end
70
73
 
74
+ def current_jobs
75
+ Array.wrap(@current_jobs)
76
+ end
77
+
71
78
  def current_jobs=(val)
72
79
  @current_jobs = Array.wrap(val).map do |rel|
73
80
  Job.new(rel)
74
81
  end
75
82
  end
76
83
 
84
+ def previous_jobs
85
+ Array.wrap(@previous_jobs)
86
+ end
87
+
77
88
  def previous_jobs=(val)
78
89
  @previous_jobs = Array.wrap(val).map do |rel|
79
90
  Job.new(rel)
@@ -52,7 +52,11 @@ module Snov
52
52
  include ActiveModel::Model
53
53
 
54
54
  attr_accessor :id, :name, :first_name, :last_name, :industry, :country, :locality
55
- attr_reader :social, :current_job, :previous_job, :lists, :campaigns, :last_update_date
55
+ attr_reader :last_update_date
56
+
57
+ def social
58
+ Array.wrap(@social)
59
+ end
56
60
 
57
61
  def social=(val)
58
62
  @social = Array.wrap(val).map do |rel|
@@ -60,24 +64,40 @@ module Snov
60
64
  end
61
65
  end
62
66
 
67
+ def current_job
68
+ Array.wrap(@current_job)
69
+ end
70
+
63
71
  def current_job=(val)
64
72
  @current_job = Array.wrap(val).map do |rel|
65
73
  Job.new(rel)
66
74
  end
67
75
  end
68
76
 
77
+ def previous_job
78
+ Array.wrap(@previous_job)
79
+ end
80
+
69
81
  def previous_job=(val)
70
82
  @previous_job = Array.wrap(val).map do |rel|
71
83
  Job.new(rel)
72
84
  end
73
85
  end
74
86
 
87
+ def lists
88
+ Array.wrap(@lists)
89
+ end
90
+
75
91
  def lists=(val)
76
92
  @lists = Array.wrap(val).map do |rel|
77
93
  List.new(rel)
78
94
  end
79
95
  end
80
96
 
97
+ def campaigns
98
+ Array.wrap(@lists)
99
+ end
100
+
81
101
  def campaigns=(val)
82
102
  @campaigns = Array.wrap(val).map do |rel|
83
103
  OpenStruct.new(rel)
@@ -1,3 +1,3 @@
1
1
  module Snov
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
@@ -5,6 +5,7 @@ Gem::Specification.new do |spec|
5
5
  spec.version = Snov::VERSION
6
6
  spec.authors = ["Grant Petersen-Speelman"]
7
7
  spec.email = ["grantspeelman@gmail.com"]
8
+ spec.license = "MIT"
8
9
 
9
10
  spec.summary = %q{Snov client to interact with snov api}
10
11
  spec.description = %q{Snov client to interact with snov api}
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: snov
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Grant Petersen-Speelman
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-11-28 00:00:00.000000000 Z
11
+ date: 2020-11-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activemodel
@@ -78,6 +78,7 @@ files:
78
78
  - ".rubocop.yml"
79
79
  - ".travis.yml"
80
80
  - CHANGELOG.md
81
+ - LICENSE
81
82
  - README.md
82
83
  - Rakefile
83
84
  - bin/console
@@ -101,7 +102,8 @@ files:
101
102
  - lib/snov/version.rb
102
103
  - snov.gemspec
103
104
  homepage: https://github.com/NEXL-LTS/snov-ruby
104
- licenses: []
105
+ licenses:
106
+ - MIT
105
107
  metadata:
106
108
  homepage_uri: https://github.com/NEXL-LTS/snov-ruby
107
109
  source_code_uri: https://github.com/NEXL-LTS/snov-ruby