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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 687546e59538c94db3004a13e5387bb4cbc8e1d1
4
- data.tar.gz: 5473d30a7cd613c66724bab5a1121135a1479484
3
+ metadata.gz: b438643f35acabf0b7efa7700ea1ce2f9e83c05d
4
+ data.tar.gz: eb99ed30ed8c0aabe572f658aa8494504248de29
5
5
  SHA512:
6
- metadata.gz: c500399a21c4c3db56b4d219f5661bd7104eae77176c70ef7d3bd6e8a08405c8e18c9d1a6057efc51be085d39134807b573d8ddc8c03f157d4748a7526736427
7
- data.tar.gz: 0d482a6656c9bf1caf46b68f23c4e4aaec937654fb2040af8da70dccaebff88b9b3b4886f99ce3905df520bce5753b16fcf6aac8ef2281dabf18f41ce141d9a0
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("lib/social_media_parser/provider/")
47
+ @providers ||= Dir.entries(__dir__)
48
48
  .reject{|f| File.directory? f }.map{|s| s.gsub(".rb", "")} - ["base"]
49
49
  end
50
50
  end
@@ -1,3 +1,3 @@
1
1
  module SocialMediaParser
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
3
3
  end
@@ -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.3
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-03 00:00:00.000000000 Z
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: '0'
105
+ version: '1.9'
106
106
  required_rubygems_version: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - ">="