social_media_parser 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -0
- data/lib/social_media_parser/provider/base.rb +1 -1
- data/lib/social_media_parser/version.rb +1 -1
- data/social_media_parser.gemspec +2 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b438643f35acabf0b7efa7700ea1ce2f9e83c05d
|
4
|
+
data.tar.gz: eb99ed30ed8c0aabe572f658aa8494504248de29
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 38a6927addffccee9bd2558f9db78140e60a81223042c6cd2ad816940a8242c0d1c14ac323327b618f8be72a285d98ce7965e1607a4d1be022ad59e961e77e3a
|
7
|
+
data.tar.gz: 9861874fdf116f75f3c95dffb0e7f36c4e80e80917e233cd460ad946f27e6c72f286f482ba03afe22b3c05032032f79fa15502488842e8b56a3f86a061c61719
|
data/README.md
CHANGED
@@ -67,6 +67,10 @@ link.url
|
|
67
67
|
|
68
68
|
The `url` method will always return a clean url, prepending http schema if needed and validating the top domain, using [public_suffix](https://github.com/weppos/publicsuffix-ruby).
|
69
69
|
|
70
|
+
## Why?
|
71
|
+
|
72
|
+
We use this gem to provide a unified way to **describe a social media object, from any given input**. Most notably, if you're working with [Traackr Api](http://api.docs.traackr.com/traackr_1_0), you'll know they don't provide a url to a social media profile, whereas input directly from a user will likely only have a url.
|
73
|
+
|
70
74
|
## Requirements
|
71
75
|
|
72
76
|
Ruby > 1.9
|
@@ -44,7 +44,7 @@ module SocialMediaParser
|
|
44
44
|
# Does a file name lookup in the providers/ folder and outputs all file
|
45
45
|
# names, except for this base file
|
46
46
|
def self.providers
|
47
|
-
@providers ||= Dir.entries(
|
47
|
+
@providers ||= Dir.entries(__dir__)
|
48
48
|
.reject{|f| File.directory? f }.map{|s| s.gsub(".rb", "")} - ["base"]
|
49
49
|
end
|
50
50
|
end
|
data/social_media_parser.gemspec
CHANGED
@@ -17,6 +17,8 @@ Gem::Specification.new do |spec|
|
|
17
17
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
18
18
|
spec.require_paths = ["lib"]
|
19
19
|
|
20
|
+
spec.required_ruby_version = ">= 1.9"
|
21
|
+
|
20
22
|
spec.add_dependency "public_suffix", "~> 1.4"
|
21
23
|
|
22
24
|
spec.add_development_dependency "rspec", "~> 3.0"
|
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
|
+
version: 0.1.4
|
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-
|
13
|
+
date: 2015-02-18 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: public_suffix
|
@@ -102,7 +102,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
102
102
|
requirements:
|
103
103
|
- - ">="
|
104
104
|
- !ruby/object:Gem::Version
|
105
|
-
version: '
|
105
|
+
version: '1.9'
|
106
106
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
108
|
- - ">="
|