puzzle 0.2.1 → 0.2.2
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.
- data/VERSION +1 -1
- data/lib/puzzle/company.rb +5 -1
- data/lib/puzzle/contact.rb +5 -1
- data/puzzle.gemspec +2 -2
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.2
|
data/lib/puzzle/company.rb
CHANGED
@@ -19,11 +19,15 @@ module Puzzle
|
|
19
19
|
# => View http://developer.jigsaw.com/documentation/search_and_get_api_guide/6_Data_Keys_and_Values for available search parameter
|
20
20
|
def self.find(options)
|
21
21
|
companies = []
|
22
|
+
results = {}
|
22
23
|
result = Puzzle::Request.get("/searchCompany", options)
|
23
24
|
result["companies"].each do |company|
|
24
25
|
companies << new(company)
|
25
26
|
end
|
26
|
-
|
27
|
+
results = {
|
28
|
+
:total => result["totalHits"],
|
29
|
+
:companies => companies
|
30
|
+
}
|
27
31
|
end
|
28
32
|
end
|
29
33
|
end
|
data/lib/puzzle/contact.rb
CHANGED
@@ -53,11 +53,15 @@ module Puzzle
|
|
53
53
|
# => View http://developer.jigsaw.com/documentation/search_and_get_api_guide/6_Data_Keys_and_Values for available search parameter
|
54
54
|
def self.find(options)
|
55
55
|
contacts = []
|
56
|
+
results = {}
|
56
57
|
result = Puzzle::Request.get("/searchContact", options)
|
57
58
|
result["contacts"].each do |contact|
|
58
59
|
contacts << new(contact)
|
59
60
|
end
|
60
|
-
|
61
|
+
results = {
|
62
|
+
:total => result["totalHits"],
|
63
|
+
:contacts => contacts
|
64
|
+
}
|
61
65
|
end
|
62
66
|
end
|
63
67
|
end
|
data/puzzle.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "puzzle"
|
8
|
-
s.version = "0.2.
|
8
|
+
s.version = "0.2.2"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Simon Gingras"]
|
12
|
-
s.date = "2011-12-
|
12
|
+
s.date = "2011-12-05"
|
13
13
|
s.description = "Puzzle makes it easy to acces the jigsaw REST api"
|
14
14
|
s.email = "thegingman@gmail.com"
|
15
15
|
s.extra_rdoc_files = [
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: puzzle
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.2.
|
5
|
+
version: 0.2.2
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Simon Gingras
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2011-12-
|
13
|
+
date: 2011-12-05 00:00:00 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: json
|
@@ -107,7 +107,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
107
107
|
requirements:
|
108
108
|
- - ">="
|
109
109
|
- !ruby/object:Gem::Version
|
110
|
-
hash:
|
110
|
+
hash: 1169810377787967225
|
111
111
|
segments:
|
112
112
|
- 0
|
113
113
|
version: "0"
|