funky 0.1.0 → 0.1.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: 5cca92d30f4575bcf0dcccd62ace840b68b56b62
4
- data.tar.gz: d1a848502da15831b6f50a2a4077db0596f5c332
3
+ metadata.gz: 29d3fc3e6ab394df41e8aeb125c2f2f600123719
4
+ data.tar.gz: 0efbe2dcb42052fc35c25a7385a6c8550db25d41
5
5
  SHA512:
6
- metadata.gz: a2306ed173e47b236cbd4267ad95e23d3cf6a8fb7c345f65cd6cc2eba2d53752f9720dedad95048466c3e5701f16adb80c49211d302cbd662b492a1f855797b2
7
- data.tar.gz: 877b2d66b634a9924b79550d4483fd86dda43ce8e9c35116306df4a472501fad97d0633c98ec10473b74196bd276b2ea2f473c618db3b47f8ea0b50ed42833c4
6
+ metadata.gz: 82d8ddfb550c9b1799b082db00a61aecc9400e235347b49529db1f3402163343fa02d6d7d5cb1e3304b768c6e3b4fab96c5a84390d7dee1340e8875515b7ff5d
7
+ data.tar.gz: bc8bdbb7b880a1ec83e6f2ef3140cd6840ccd1e3d6cdea3ee6ef87035776985f81f91b255fe5501b33ce81a49b75bfd91c48428448f793d193188bae85ccead0
data/CHANGELOG.md CHANGED
@@ -6,6 +6,10 @@ For more information about changelogs, check
6
6
  [Keep a Changelog](http://keepachangelog.com) and
7
7
  [Vandamme](http://tech-angels.github.io/vandamme).
8
8
 
9
+ ## 0.1.1 - 2016/06/07
10
+
11
+ * [BUGFIX] Added support for scraping view count from the new cumulative views that Facebook recently started rolling out.
12
+
9
13
  ## 0.1.0 - 2016/05/26
10
14
 
11
15
  * [FEATURE] Added support for Facebook video data. Currently we can get the video id, length, description, created_time, picture, view_count, share_count, comment_count, and like_count.
data/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  [![Build Status](https://travis-ci.org/Fullscreen/funky.svg?branch=master)](https://travis-ci.org/Fullscreen/funky)
2
2
  [![Coverage Status](https://coveralls.io/repos/github/Fullscreen/funky/badge.svg?branch=master)](https://coveralls.io/github/Fullscreen/funky?branch=master)
3
+ [![Dependency Status](https://gemnasium.com/badges/github.com/Fullscreen/funky.svg)](https://gemnasium.com/github.com/Fullscreen/funky)
4
+ [![Gem Version](https://badge.fury.io/rb/funky.svg)](https://badge.fury.io/rb/funky)
3
5
 
4
6
  # Funky
5
7
 
@@ -15,7 +17,14 @@ Under the hood, Funky hits Facebook's APIs on some cases, while other cases it w
15
17
 
16
18
  This is still a very early version, and it currently can only retrieve certain Facebook video data.
17
19
 
18
- ### Configuring Funky
20
+ ### Installing and Configuring Funky
21
+
22
+ First, add funky to your Gemfile:
23
+
24
+ ```ruby
25
+ gem 'funky'
26
+ ```
27
+ Then run `bundle install`.
19
28
 
20
29
  Funky will require an App ID and an App Secret which you can obtain after registering as a developer on [Facebook for developers](https://developers.facebook.com/).
21
30
 
@@ -18,6 +18,7 @@ module Funky
18
18
 
19
19
  def extract_views_from(html)
20
20
  html.match(/<div><\/div><span class="fcg">(.*) Views<\/span>/)
21
+ html.match(/id="u_0_n">(.*?) Views/) if $1.nil?
21
22
  matched_count $1
22
23
  end
23
24
 
data/lib/funky/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Funky
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: funky
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Philip Nguyen
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-05-26 00:00:00.000000000 Z
11
+ date: 2016-06-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler