twitter-vine 0.1.7 → 0.1.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- NDAwNWM1Yjg4MmRlMzMxMzYwN2FmYjI4ZDlkMjc1ODRiMGY1NzUxMw==
5
- data.tar.gz: !binary |-
6
- NzJiOThlNjNiZWQwYjQxMzFiOTY0ZDFlMDM1ZjQ3YTRmYzVhMWFkMA==
2
+ SHA1:
3
+ metadata.gz: ac7da22d2fa356580d54d100278bfeaa95c51b2e
4
+ data.tar.gz: 14b0525adcadbd20d2c7204223733f653c7049ec
7
5
  SHA512:
8
- metadata.gz: !binary |-
9
- OWNmNjZhOTI2ZTMwM2RkMjhkN2MxOTcxYTIyNzg4ODllYTUxMDE2YTViMjI3
10
- ZjlhOTBiZTNmZDVjMWE0NWNiOWUwNmIwZDE5ZmIwMTViODBlY2ZmOWI0NjZl
11
- NjRhNGRhNjg0ODEzOTU0MDJlNTdmZjExNThhY2VhMDJlM2NhN2M=
12
- data.tar.gz: !binary |-
13
- MWE4MzI5YjA2NTI0ZTFlYzBiNGVjNDRkM2QxOThlMjYxYjYzNjUyOTNkODkz
14
- N2Y4ZjhlMjJiYTk3NmYzYzczYWZlMjM5NmFmNGE2YjU4MjllY2Q2NDk3MDc5
15
- ZDRmMjRkNmNkYTJlNGFkY2I3NzYxMzdjZjk2NTc3NDc4NjRiZWM=
6
+ metadata.gz: 81529d295fb84bb6034ddf852e48641809cdf4d89b9ef85f94c473eb79d1dd7f41d0ac716eafc554eddcfa0fdcea9fc36a99fb375287300c1f506b7c04874971
7
+ data.tar.gz: 6661cfb7bd923df6e96750691b364e30d7783e95bbb0d5557bacbee44276b0bd5cf72a5d317be277f3a748fd1edc4174cf8e12705f2a96df230a2320c0225a3c
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- twitter-vine (0.1.7)
4
+ twitter-vine (0.1.8)
5
5
  faraday (~> 0.8.9)
6
6
  nokogiri (>= 1.6.0)
7
7
  twitter (~> 5.1.1)
@@ -9,33 +9,37 @@ PATH
9
9
  GEM
10
10
  remote: http://rubygems.org/
11
11
  specs:
12
- addressable (2.3.5)
13
- atomic (1.1.14)
12
+ addressable (2.3.6)
13
+ atomic (1.1.16)
14
14
  buftok (0.2.0)
15
15
  descendants_tracker (0.0.3)
16
16
  diff-lcs (1.2.5)
17
17
  equalizer (0.0.9)
18
18
  faraday (0.8.9)
19
19
  multipart-post (~> 1.2.0)
20
- http (0.5.0)
20
+ http (0.5.1)
21
21
  http_parser.rb
22
22
  http_parser.rb (0.5.3)
23
23
  json (1.8.1)
24
24
  memoizable (0.2.0)
25
25
  thread_safe (~> 0.1.3)
26
- mini_portile (0.5.2)
26
+ mini_portile (0.6.0)
27
27
  multipart-post (1.2.0)
28
- nokogiri (1.6.1)
29
- mini_portile (~> 0.5.0)
30
- rake (10.1.1)
31
- rspec (2.14.1)
32
- rspec-core (~> 2.14.0)
33
- rspec-expectations (~> 2.14.0)
34
- rspec-mocks (~> 2.14.0)
35
- rspec-core (2.14.7)
36
- rspec-expectations (2.14.4)
37
- diff-lcs (>= 1.1.3, < 2.0)
38
- rspec-mocks (2.14.4)
28
+ nokogiri (1.6.3.1)
29
+ mini_portile (= 0.6.0)
30
+ rake (10.3.2)
31
+ rspec (3.1.0)
32
+ rspec-core (~> 3.1.0)
33
+ rspec-expectations (~> 3.1.0)
34
+ rspec-mocks (~> 3.1.0)
35
+ rspec-core (3.1.7)
36
+ rspec-support (~> 3.1.0)
37
+ rspec-expectations (3.1.2)
38
+ diff-lcs (>= 1.2.0, < 2.0)
39
+ rspec-support (~> 3.1.0)
40
+ rspec-mocks (3.1.3)
41
+ rspec-support (~> 3.1.0)
42
+ rspec-support (3.1.2)
39
43
  simple_oauth (0.2.0)
40
44
  thread_safe (0.1.3)
41
45
  atomic
@@ -1,3 +1,3 @@
1
1
  module TwitterVine
2
- VERSION = "0.1.7"
2
+ VERSION = "0.1.8"
3
3
  end
data/lib/twitter-vine.rb CHANGED
@@ -14,11 +14,11 @@ module TwitterVine
14
14
  vine_id: vine_url.match(/.*\/(.*)/)[1],
15
15
  vine_url: vine_url,
16
16
  vine_thumbnail: doc.xpath("//meta[@property='og:image']").first[:content],
17
- vine_author_thumbnail: doc.css(".avatar-container img").first[:src],
18
- vine_author: doc.css("p.username").text,
19
- vine_description: doc.css("p.description").text.gsub(/\s+/," ").strip,
20
- vine_src: doc.css("video source").first[:src],
21
- vine_type: doc.css("video source").first[:type]
17
+ vine_author_thumbnail: doc.css("article.post a img").first["src"],
18
+ vine_author: doc.css("article.post a span[itemprop=author]").text,
19
+ vine_description: doc.xpath("//meta[@property='og:description']").first[:content],
20
+ vine_src: doc.xpath("//meta[@property='twitter:player:stream']").first[:content],
21
+ vine_type: doc.xpath("//meta[@property='twitter:player:stream:content_type']").first[:content].split(";").first
22
22
  }
23
23
  end
24
24
  end
metadata CHANGED
@@ -1,69 +1,69 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: twitter-vine
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Darren Hicks
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-02-01 00:00:00.000000000 Z
11
+ date: 2014-10-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: twitter
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
19
  version: 5.1.1
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ~>
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: 5.1.1
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: faraday
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ~>
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
33
  version: 0.8.9
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ~>
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: 0.8.9
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: nokogiri
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ! '>='
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
47
  version: 1.6.0
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ! '>='
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: 1.6.0
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rspec
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ! '>='
59
+ - - ">="
60
60
  - !ruby/object:Gem::Version
61
61
  version: 2.14.1
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - ! '>='
66
+ - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: 2.14.1
69
69
  description: Uses the existing Twitter API and Nokogiri to get the job done
@@ -73,8 +73,8 @@ executables: []
73
73
  extensions: []
74
74
  extra_rdoc_files: []
75
75
  files:
76
- - .gitignore
77
- - .travis.yml
76
+ - ".gitignore"
77
+ - ".travis.yml"
78
78
  - Gemfile
79
79
  - Gemfile.lock
80
80
  - LICENSE
@@ -95,17 +95,17 @@ require_paths:
95
95
  - lib
96
96
  required_ruby_version: !ruby/object:Gem::Requirement
97
97
  requirements:
98
- - - ! '>='
98
+ - - ">="
99
99
  - !ruby/object:Gem::Version
100
100
  version: '0'
101
101
  required_rubygems_version: !ruby/object:Gem::Requirement
102
102
  requirements:
103
- - - ! '>='
103
+ - - ">="
104
104
  - !ruby/object:Gem::Version
105
105
  version: '0'
106
106
  requirements: []
107
107
  rubyforge_project:
108
- rubygems_version: 2.1.11
108
+ rubygems_version: 2.2.2
109
109
  signing_key:
110
110
  specification_version: 4
111
111
  summary: A simple API to search and retrieve information about Vines