crunchbase_v2 1.1.5 → 1.1.6
Sign up to get free protection for your applications and to get access to all the features.
@@ -12,9 +12,9 @@ module Crunchbase
|
|
12
12
|
@announced_on = hash["announced_on"] && DateTime.parse(hash["announced_on"])
|
13
13
|
@name = hash["name"]
|
14
14
|
@path = hash["path"]
|
15
|
-
@permalink = hash["path"] && hash["path"].split(
|
16
|
-
@created_at = hash[
|
17
|
-
@updated_at = hash[
|
15
|
+
@permalink = hash["path"] && hash["path"].split("/").last
|
16
|
+
@created_at = hash["created_at"] && (hash["created_at"].kind_of?(String) ? DateTime.parse(hash["created_at"]) : Time.at(hash["created_at"]).utc)
|
17
|
+
@updated_at = hash["updated_at"] && (hash["updated_at"].kind_of?(String) ? DateTime.parse(hash["updated_at"]) : Time.at(hash["updated_at"]).utc)
|
18
18
|
end
|
19
19
|
|
20
20
|
end
|
data/lib/crunchbase/version.rb
CHANGED
@@ -26,10 +26,16 @@ module Crunchbase
|
|
26
26
|
its(:new_items_total_items) { should eq(3118) }
|
27
27
|
its(:board_members_and_advisors_total_items) { should eq(12) }
|
28
28
|
|
29
|
-
describe '
|
29
|
+
describe 'search by domain' do
|
30
30
|
subject { Organization.search({ domain_name: "facebook.com", organization_types: 'company' }) }
|
31
31
|
|
32
32
|
it_has_behavior 'pagination'
|
33
33
|
end
|
34
|
+
|
35
|
+
describe 'search by query' do
|
36
|
+
subject { Organization.search({ query: "youtube" }) }
|
37
|
+
|
38
|
+
it_has_behavior 'pagination'
|
39
|
+
end
|
34
40
|
end
|
35
41
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: crunchbase_v2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.6
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2015-
|
14
|
+
date: 2015-07-02 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: bundler
|
@@ -208,7 +208,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
208
208
|
version: '0'
|
209
209
|
segments:
|
210
210
|
- 0
|
211
|
-
hash: -
|
211
|
+
hash: -539557244033367672
|
212
212
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
213
213
|
none: false
|
214
214
|
requirements:
|
@@ -217,7 +217,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
217
217
|
version: '0'
|
218
218
|
segments:
|
219
219
|
- 0
|
220
|
-
hash: -
|
220
|
+
hash: -539557244033367672
|
221
221
|
requirements: []
|
222
222
|
rubyforge_project:
|
223
223
|
rubygems_version: 1.8.23.2
|