social_media_parser 0.1.4 → 0.1.5

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: b438643f35acabf0b7efa7700ea1ce2f9e83c05d
4
- data.tar.gz: eb99ed30ed8c0aabe572f658aa8494504248de29
3
+ metadata.gz: 4316d98ba9de8b7b91b53dc24e6a587776b908e2
4
+ data.tar.gz: e2c12e56af485cf282f2cc1663c75b78892a9cdc
5
5
  SHA512:
6
- metadata.gz: 38a6927addffccee9bd2558f9db78140e60a81223042c6cd2ad816940a8242c0d1c14ac323327b618f8be72a285d98ce7965e1607a4d1be022ad59e961e77e3a
7
- data.tar.gz: 9861874fdf116f75f3c95dffb0e7f36c4e80e80917e233cd460ad946f27e6c72f286f482ba03afe22b3c05032032f79fa15502488842e8b56a3f86a061c61719
6
+ metadata.gz: 9da63632bf66faea39e9d8f0ad159e555466df0c688460b1409076dbde0585a53d9b16d93e41971042465e94a7649d19b7a261fbdbdece507674eb0cd6951193
7
+ data.tar.gz: f557c2603b7e1a30f5d92f13477f2566d7e36376f6e6b888c322124cc58fac4ce2e668b9563b3910524a67c16eb413d675b096e63fd89c3ee45c9d601d9ccd75
@@ -6,7 +6,7 @@ module SocialMediaParser
6
6
  class Base < ::SocialMediaParser::Link
7
7
  def self.parse(attributes)
8
8
  providers.map do |provider|
9
- eval("SocialMediaParser::Provider::#{provider.capitalize}").new(attributes)
9
+ SocialMediaParser::Provider.const_get(provider.capitalize).new(attributes)
10
10
  end.find(&:valid?) or ::SocialMediaParser::Link.new(attributes)
11
11
  end
12
12
 
@@ -1,3 +1,3 @@
1
1
  module SocialMediaParser
2
- VERSION = "0.1.4"
2
+ VERSION = "0.1.5"
3
3
  end
@@ -19,7 +19,7 @@ Gem::Specification.new do |spec|
19
19
 
20
20
  spec.required_ruby_version = ">= 1.9"
21
21
 
22
- spec.add_dependency "public_suffix", "~> 1.4"
22
+ spec.add_dependency "public_suffix", "~> 1.5"
23
23
 
24
24
  spec.add_development_dependency "rspec", "~> 3.0"
25
25
  spec.add_development_dependency "pry", "~> 0.10"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: social_media_parser
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Markus Nordin
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2015-02-18 00:00:00.000000000 Z
13
+ date: 2015-07-24 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: public_suffix
@@ -18,14 +18,14 @@ dependencies:
18
18
  requirements:
19
19
  - - "~>"
20
20
  - !ruby/object:Gem::Version
21
- version: '1.4'
21
+ version: '1.5'
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
25
25
  requirements:
26
26
  - - "~>"
27
27
  - !ruby/object:Gem::Version
28
- version: '1.4'
28
+ version: '1.5'
29
29
  - !ruby/object:Gem::Dependency
30
30
  name: rspec
31
31
  requirement: !ruby/object:Gem::Requirement