linkedin2 0.0.14 → 0.0.15

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
  SHA1:
3
- metadata.gz: f1aea99913577ebbafd1a9f3eb9847372694a75a
4
- data.tar.gz: 379bde12e9a1a22b9fa78d47f2dfc7ff4af6c2d1
3
+ metadata.gz: 7ed0d9964504808f9ad92a224be57910bf2fec5e
4
+ data.tar.gz: ad1944da598335b45a0319ca1fe6173142723dc9
5
5
  SHA512:
6
- metadata.gz: 239f629f4d689d614f569a2fb1f578838ea41e5aafd354abe0a0a4bd735db3320c2a22f6b7923ada06c48df292d83cc6149e8ffdad30f97210db1addab31fd6a
7
- data.tar.gz: 4fc120b83dc38378fbff4eaa64171da89246d81a31d569be0b6209dc3dbe0d1f3e67f2c0e0157fcb3b418b76818a222cfcbb46f9a3f272c50293ac46c442db11
6
+ metadata.gz: 39a36402e07ecba9482274b71e007e9b23e5f387f3fae62595a484ee6674b7daacf3d879b907e8eb715024b3119b531af45b74ca4de25dad4975c138598ad36d
7
+ data.tar.gz: 5300575a1d637e30e7663be02d83024d4f43050af73e3c5df17c62b3ef06df293b5cb913a0720685e497dc7ab5fb74eab1ea8b0fd2aeaf207a5230c43cc6e452
@@ -2,9 +2,9 @@ module LinkedIn
2
2
  ADDRESS_FIELDS = [ 'street1', 'street2', 'city', 'state', 'postal-code', 'country-code', 'region-code' ]
3
3
  CONTACT_INFO_FIELDS = [ 'phone1', 'phone2', 'fax' ]
4
4
  COMPANY_LOCATIONS_FIELDS = ['description', 'is-headquarters', 'is-active', { 'address' => ADDRESS_FIELDS }, { 'contact-info' => CONTACT_INFO_FIELDS } ]
5
- COMPANY_BASE_FIELDS = [ 'id', 'name', 'universal-name', 'email-domains', 'company-type', 'ticker', 'website-url',
6
- 'industries', 'status', 'logo-url', 'square-logo-url', 'blog-rss-url', 'twitter-id', 'employee-count-range',
7
- 'specialties', { 'locations' => COMPANY_LOCATIONS_FIELDS }, 'description', 'stock-exchange', 'founded-year',
5
+ COMPANY_BASE_FIELDS = [ 'id', 'name', 'universal-name', 'email-domains', 'company-type', 'ticker', 'website-url',
6
+ 'industries', 'status', 'logo-url', 'square-logo-url', 'blog-rss-url', 'twitter-id', 'employee-count-range',
7
+ 'specialties', { 'locations' => COMPANY_LOCATIONS_FIELDS }, 'description', 'stock-exchange', 'founded-year',
8
8
  'end-year', 'num-followers' ]
9
9
 
10
10
  class Company < Base
@@ -3,8 +3,9 @@ module LinkedIn
3
3
  require 'linkedin/faraday_middleware/linkedin_format_request'
4
4
  require 'linkedin/faraday_middleware/linkedin_error_response'
5
5
 
6
- Faraday.register_middleware :request, linkedin_format: lambda { LinkedinFormatRequest }
7
-
8
- Faraday.register_middleware :response, linkedin_errors: lambda { LinkedinErrorResponse }
6
+ if Faraday::Middleware.respond_to? :register_middleware
7
+ Faraday::Request.register_middleware linkedin_format: lambda { LinkedinFormatRequest }
8
+ Faraday::Response.register_middleware linkedin_errors: lambda { LinkedinErrorResponse }
9
+ end
9
10
  end
10
11
  end
@@ -1,3 +1,3 @@
1
1
  module LinkedIn
2
- VERSION = '0.0.14'
2
+ VERSION = '0.0.15'
3
3
  end
@@ -19,10 +19,9 @@ Gem::Specification.new do |spec|
19
19
  spec.require_paths = ['lib']
20
20
 
21
21
  spec.add_dependency 'oauth2', '~> 0.9'
22
- spec.add_dependency 'hashie', '~> 2.0.5'
22
+ spec.add_dependency 'hashie', '~> 2.1.1'
23
23
  spec.add_dependency 'activesupport', '>= 3.2'
24
- spec.add_dependency 'faraday_middleware', '~> 0.9'
25
- spec.add_dependency 'faraday', '~> 0.8.9'
24
+ spec.add_dependency 'faraday_middleware', '~> 0.9.1'
26
25
 
27
26
  spec.add_development_dependency 'bundler', '~> 1.3'
28
27
  spec.add_development_dependency 'rake'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: linkedin2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.14
4
+ version: 0.0.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bob Breznak
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-05-22 00:00:00.000000000 Z
12
+ date: 2014-05-28 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: oauth2
@@ -31,14 +31,14 @@ dependencies:
31
31
  requirements:
32
32
  - - "~>"
33
33
  - !ruby/object:Gem::Version
34
- version: 2.0.5
34
+ version: 2.1.1
35
35
  type: :runtime
36
36
  prerelease: false
37
37
  version_requirements: !ruby/object:Gem::Requirement
38
38
  requirements:
39
39
  - - "~>"
40
40
  - !ruby/object:Gem::Version
41
- version: 2.0.5
41
+ version: 2.1.1
42
42
  - !ruby/object:Gem::Dependency
43
43
  name: activesupport
44
44
  requirement: !ruby/object:Gem::Requirement
@@ -59,28 +59,14 @@ dependencies:
59
59
  requirements:
60
60
  - - "~>"
61
61
  - !ruby/object:Gem::Version
62
- version: '0.9'
63
- type: :runtime
64
- prerelease: false
65
- version_requirements: !ruby/object:Gem::Requirement
66
- requirements:
67
- - - "~>"
68
- - !ruby/object:Gem::Version
69
- version: '0.9'
70
- - !ruby/object:Gem::Dependency
71
- name: faraday
72
- requirement: !ruby/object:Gem::Requirement
73
- requirements:
74
- - - "~>"
75
- - !ruby/object:Gem::Version
76
- version: 0.8.9
62
+ version: 0.9.1
77
63
  type: :runtime
78
64
  prerelease: false
79
65
  version_requirements: !ruby/object:Gem::Requirement
80
66
  requirements:
81
67
  - - "~>"
82
68
  - !ruby/object:Gem::Version
83
- version: 0.8.9
69
+ version: 0.9.1
84
70
  - !ruby/object:Gem::Dependency
85
71
  name: bundler
86
72
  requirement: !ruby/object:Gem::Requirement