twitter-vine 0.0.1 → 0.0.2

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,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- YWI3MjEzZmM0YjUyMjhiNTBlODMyNDdkOTA3NTJlMWM4ZmY4Nzk3Mw==
4
+ ZjkyNDEzNTI2ZjNhYmFlMmM1Mzg2NzMzYzZhMDBiZmEwMTM2ZjU3Yg==
5
5
  data.tar.gz: !binary |-
6
- MDQ2NDM2ZjcyNTEyMzExYjA1NGNmZDhjNDEyNjEyN2ZhZDZjNDdlMA==
6
+ ZTYzMDczMDg2NGVhMDljMjBhZmJkMTUzMjJjMWFkMjE3YTdiYTkzOQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MWRkZTRjNjNlMDdhMTRmODU5MGVhM2U5ZmZhMjEzNGNlMDdmYjZlYzlkOGEz
10
- YWE2ZTEyYzM5OGVlOTQxYTczY2U4N2M0MGRjNzYzM2QwNjhkYzgzNzI1Mzk1
11
- ZjNiYTc5YTdiZmNkMzczZGViNDRhOTQ1NTkxODZhZjQwNGU1N2I=
9
+ N2UzNmMyY2I2MzJlN2RlNGRjY2RmMjFmNTg5YzBlNWRhYmE4ZThlMTc4NjMx
10
+ OTlkMTZkYjFiMjJhM2RjNDViOGFiY2U0NmE2ZjUzYzIzNjAzMWI3MTlkY2Nj
11
+ ZmFmYzVhMDUxNjJjNTgxYzQ1ZjI5ZWMxNDM2Zjk2ZTBmY2Q4MWE=
12
12
  data.tar.gz: !binary |-
13
- MDAzZDdhNDNhNjE4YTc3YzRhNjU1MDI4Y2RlMTE5MWFlMDJkZjY4MDg1ODY5
14
- MTFiOTBiYWQ0ZjMxMjQwM2VjOWMzMTdlYmVkZWY4ZDY0MmY0MThjNGFmY2E1
15
- NzEzYmQ2YmI2MzlkOWRkMDcwYjIwYjlmMjE2NzM2MTM4YmZjOWU=
13
+ ZTk5MmU5MWZkODc2ZjNmOGMwMDIzYjVkNWM1MGRkNTMwYjdkNzM2MDUyNDMy
14
+ MjY2MWQ5NTJjZDczYWUxMThhZjA4YTNkYjIwYjMyY2IzMmRlMjNmNmFiNDMy
15
+ MWUwYTMyOGE2MjAwNGQ2YWE2N2I5MzgzY2M3ZjhhZWJhOWZhN2U=
data/Gemfile.lock CHANGED
@@ -1,9 +1,9 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- twitter-vine (0.0.1)
5
- nokogiri (>= 1.4.0)
6
- twitter (~> 5.0.0)
4
+ twitter-vine (0.0.2)
5
+ nokogiri (>= 1.6.0)
6
+ twitter (~> 5.1.1)
7
7
 
8
8
  GEM
9
9
  remote: http://rubygems.org/
@@ -37,7 +37,7 @@ GEM
37
37
  simple_oauth (0.2.0)
38
38
  thread_safe (0.1.3)
39
39
  atomic
40
- twitter (5.0.1)
40
+ twitter (5.1.1)
41
41
  addressable (~> 2.3)
42
42
  buftok (~> 0.2.0)
43
43
  descendants_tracker (~> 0.0.1)
@@ -53,5 +53,5 @@ PLATFORMS
53
53
  ruby
54
54
 
55
55
  DEPENDENCIES
56
- rspec (>= 2.7.0)
56
+ rspec (>= 2.14.1)
57
57
  twitter-vine!
data/README.md CHANGED
@@ -1,4 +1,7 @@
1
1
  twitter-vine
2
2
  ============
3
3
 
4
+ [![Build Status](https://travis-ci.org/deevis/twitter-vine.png?branch=master)](https://travis-ci.org/deevis/twitter-vine)
5
+ [![Gem Version](https://badge.fury.io/rb/twitter-vine.png)](http://badge.fury.io/rb/twitter-vine)
6
+
4
7
  A ruby based API to get information about Vines and allow searching.
@@ -24,7 +24,7 @@ module TwitterVine
24
24
  opts[:include_entities] = true
25
25
  opts[:lang] ||= "en"
26
26
  opts[:count] ||= 10
27
- vine_criteria = "\"vine.co/v/\" #{q}"
27
+ vine_criteria = "\"vine.co/v/\" #{q} -RT"
28
28
  puts "Using search criteria [#{vine_criteria}]" if DEBUG
29
29
  _normalize(tc.search(vine_criteria, opts))
30
30
  end
@@ -41,16 +41,15 @@ module TwitterVine
41
41
  doc = Nokogiri::HTML(open(vine_url))
42
42
  {
43
43
  time: r.created_at,
44
- # This is Vine-centric - leaving out the other parts of the tweet...
45
- # id: r.id,
46
- # url: r.url.to_s,
47
- # author_id: r.user.id,
48
- # author: r.user.name,
49
- # screenname: r.user.screen_name,
50
- # author_thumbnail: r.user.profile_image_url.to_s.gsub("normal","bigger"),
51
- # text: r.text,
52
- # friends_count: r.user.friends_count,
53
- # followers_count: r.user.followers_count,
44
+ id: r.id,
45
+ url: r.url.to_s,
46
+ author_id: r.user.id,
47
+ author: r.user.name,
48
+ screenname: r.user.screen_name,
49
+ author_thumbnail: r.user.profile_image_url.to_s.gsub("normal","bigger"),
50
+ text: r.text,
51
+ friends_count: r.user.friends_count,
52
+ followers_count: r.user.followers_count,
54
53
  # media: r.media.map{|m| m.media_uri.to_s},
55
54
  vine_url: vine_url,
56
55
  vine_author_thumbnail: doc.css(".avatar-container img").first[:src],
@@ -1,3 +1,3 @@
1
1
  module TwitterVine
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
data/twitter-vine.gemspec CHANGED
@@ -20,9 +20,9 @@ Gem::Specification.new do |s|
20
20
 
21
21
  # Gem dependencies
22
22
  #
23
- s.add_runtime_dependency('twitter', '~>5.0.0')
24
- s.add_runtime_dependency('nokogiri', '>= 1.4.0')
23
+ s.add_runtime_dependency('twitter', '~>5.1.1')
24
+ s.add_runtime_dependency('nokogiri', '>= 1.6.0')
25
25
 
26
26
  # Specs
27
- s.add_development_dependency('rspec', '>= 2.7.0')
27
+ s.add_development_dependency('rspec', '>= 2.14.1')
28
28
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: twitter-vine
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Darren Hicks
@@ -16,42 +16,42 @@ dependencies:
16
16
  requirements:
17
17
  - - ~>
18
18
  - !ruby/object:Gem::Version
19
- version: 5.0.0
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
- version: 5.0.0
26
+ version: 5.1.1
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: nokogiri
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - ! '>='
32
32
  - !ruby/object:Gem::Version
33
- version: 1.4.0
33
+ version: 1.6.0
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
- version: 1.4.0
40
+ version: 1.6.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rspec
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - ! '>='
46
46
  - !ruby/object:Gem::Version
47
- version: 2.7.0
47
+ version: 2.14.1
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - ! '>='
53
53
  - !ruby/object:Gem::Version
54
- version: 2.7.0
54
+ version: 2.14.1
55
55
  description: Uses the existing Twitter API and Nokogiri to get the job done
56
56
  email:
57
57
  - darren.hicks@gmail.com