metapage 0.2.0 → 0.2.1

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: 840338d16496a43238591046aefc0a503e272a3b
4
- data.tar.gz: 83ae64c6920ee76d32fb63953c47bf820a95f992
3
+ metadata.gz: 1e864cae0626afd75c19e1887743f5909532b658
4
+ data.tar.gz: 44cd6928669d3af624ac8362ff426d3021419df2
5
5
  SHA512:
6
- metadata.gz: ba8dad8ccd4478ea90ea72e7b5bcb5ee253f1b9bd9c3dffd6e293840bcd325260f603db97d8a79fabbaf9896ce85029fd02afe31943b1937019826f0bb1997c1
7
- data.tar.gz: 21813f6a22cc4bdf4d6c9a5c09c9dfc3584437956e0b342b03d8d11fbafd92093fc2c84b0061e4d2c734bf117bc29485420780fd2e1270528e0b622a61f2d56c
6
+ metadata.gz: 73606a697e7c6adc7448d71f3b2daa9b92c960360401aadaa757aeb30610896c66d2f22c5bf19a9727b264da58d40a3b0d0e8ec0f684d3dd5786cc41089b4f3d
7
+ data.tar.gz: 08deeda370fa63dbb25b0f1ce74273b41b9e616eafea6411c24a8d3dd04f6a87a50e569f4c32401f95c35e044aae8df343a0b72630c272c8bbf863f30ef9ae82
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## v0.2.1, 2015-11-05
2
+
3
+ * Github repo url changed, empty release to ship this metainfo to rubygems
4
+
1
5
  ## v0.2.0, 2015-11-05
2
6
 
3
7
  * Adds handling for urls that return an image (as detected by mimemagic gem) and gracefully
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Metapage
2
2
 
3
- [![Build Status](https://travis-ci.org/colszowka/metapage.svg)](https://travis-ci.org/colszowka/metapage)
3
+ [![Build Status](https://travis-ci.org/protonet/metapage.svg)](https://travis-ci.org/protonet/metapage)
4
4
 
5
5
  A tiny class for extracting title, description and some further information from given urls using [open graph](http://www.ogp.me) and regular meta tags.
6
6
 
@@ -22,14 +22,15 @@ Add `gem 'metapage'` to your `Gemfile` or `gem install metapage` on your command
22
22
 
23
23
  Fetch a specific URL. Returns `nil` if the content is not html or an image or loading fails due to invalid url, http response or timeout.
24
24
 
25
- pp Metapage.fetch("https://github.com/colszowka/metapage").to_h
26
- {:id=>"9fa08a8cef7450e558723a53c8a122a096599709",
27
- :title=>"colszowka/metapage",
25
+ pp Metapage.fetch("https://github.com/protonet/metapage").to_h
26
+
27
+ {:id=>"58329eab7cf73bb0b29123a63ae150cc59dcf2e3",
28
+ :title=>"protonet/metapage",
28
29
  :description=>
29
30
  "metapage - A tiny class for extracting title, description and some further information from given urls",
30
- :image_url=>"https://avatars0.githubusercontent.com/u/13972?v=3&s=400",
31
+ :image_url=>"https://avatars1.githubusercontent.com/u/375656?v=3&s=400",
31
32
  :type=>"object",
32
- :canonical_url=>"https://github.com/colszowka/metapage",
33
+ :canonical_url=>"https://github.com/protonet/metapage",
33
34
  :site_name=>"GitHub",
34
35
  :media_type=>"text",
35
36
  :content_type=>"text/html"}
@@ -37,6 +38,7 @@ Fetch a specific URL. Returns `nil` if the content is not html or an image or lo
37
38
  For images, the resulting content is much more minimal:
38
39
 
39
40
  pp Metapage.fetch("https://s-media-cache-ak0.pinimg.com/736x/e3/ce/b3/e3ceb3fe3224e104ad0f019117b8e1f0.jpg").to_h
41
+
40
42
  {:id=>"7bd710044d61b55c63d1d0089632a6417f370f53",
41
43
  :title=>nil,
42
44
  :description=>nil,
@@ -67,7 +69,7 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
67
69
 
68
70
  ## Contributing
69
71
 
70
- 1. Fork it ( https://github.com/colszowka/metapage/fork )
72
+ 1. Fork it ( https://github.com/protonet/metapage/fork )
71
73
  2. Create your feature branch (`git checkout -b my-new-feature`)
72
74
  3. Commit your changes (`git commit -am 'Add some feature'`)
73
75
  4. Push to the branch (`git push origin my-new-feature`)
data/Rakefile CHANGED
@@ -14,7 +14,7 @@ task examples: :env do
14
14
  require 'pp'
15
15
 
16
16
  [
17
- 'https://github.com/colszowka/metapage',
17
+ 'https://github.com/protonet/metapage',
18
18
  'https://s-media-cache-ak0.pinimg.com/736x/e3/ce/b3/e3ceb3fe3224e104ad0f019117b8e1f0.jpg'
19
19
  ].each do |url|
20
20
 
@@ -1,3 +1,3 @@
1
1
  module Metapage
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
data/metapage.gemspec CHANGED
@@ -11,7 +11,7 @@ Gem::Specification.new do |spec|
11
11
 
12
12
  spec.summary = %q{Extract metadata about a given HTML url from open graph and regular meta tags}
13
13
  spec.description = spec.summary
14
- spec.homepage = "https://github.com/colszowka/metapage"
14
+ spec.homepage = "https://github.com/protonet/metapage"
15
15
 
16
16
  spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
17
17
  spec.bindir = "exe"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metapage
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christoph Olszowka
@@ -157,7 +157,7 @@ files:
157
157
  - lib/metapage.rb
158
158
  - lib/metapage/version.rb
159
159
  - metapage.gemspec
160
- homepage: https://github.com/colszowka/metapage
160
+ homepage: https://github.com/protonet/metapage
161
161
  licenses: []
162
162
  metadata: {}
163
163
  post_install_message: