gnip_api 0.0.3 → 0.0.4

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,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 30453afea5af2169290ebd12fea604202c5b6a6a
4
- data.tar.gz: b08163b715a94d679ea8e91e71de2de46b77de9e
3
+ metadata.gz: 934f7c386beafd72012565bdf098cf5aeffd02cc
4
+ data.tar.gz: d8c9cb19d9be2588c2a4e778e6404fa0beefd70d
5
5
  SHA512:
6
- metadata.gz: 5c0917aee021bedecdb4e7757e10d9d6e9d98d091b6c360be6b6f7c708c8f0ddccee460f4695ac596f51973f6e7d348de3868fd60b3dcbc24093dc00e5887024
7
- data.tar.gz: 2dec8144d33e7e366c5dacc865ebb71d98cf4a88e5ead30d7c308060e7e79a795098acf652f928cae5e4719fe01f2790462d7c90c050680710d3bb528c41bc9c
6
+ metadata.gz: d7b13598a821df13c084e8eff061b758eaaed773cd7839efac4a08c193fecc271f77fff06873659d594a11079fa918293624e824aa333d7925aefab086541a26
7
+ data.tar.gz: d2466cfe6c98b44e2f7efdcfe69b422e439671bbcd9d411145ca414ac8b5bd4240fb8e96be19968e4986c818d09fdb568b536d4dcfeddc21ab0cbe9b570bbe09
@@ -1 +1 @@
1
- ruby-2.1.0
1
+ ruby-2.2.5
@@ -3,28 +3,30 @@ PATH
3
3
  specs:
4
4
  gnip_api (0.0.3)
5
5
  activesupport
6
+ addressable
6
7
  httparty
7
8
  json
8
9
 
9
10
  GEM
10
11
  remote: https://rubygems.org/
11
12
  specs:
12
- activesupport (4.2.1)
13
+ activesupport (5.0.0)
14
+ concurrent-ruby (~> 1.0, >= 1.0.2)
13
15
  i18n (~> 0.7)
14
- json (~> 1.7, >= 1.7.7)
15
16
  minitest (~> 5.1)
16
- thread_safe (~> 0.3, >= 0.3.4)
17
17
  tzinfo (~> 1.1)
18
+ addressable (2.4.0)
18
19
  awesome_print (1.2.0)
19
20
  coderay (1.1.0)
21
+ concurrent-ruby (1.0.2)
20
22
  diff-lcs (1.2.5)
21
- httparty (0.13.5)
23
+ httparty (0.13.7)
22
24
  json (~> 1.8)
23
25
  multi_xml (>= 0.5.2)
24
26
  i18n (0.7.0)
25
27
  json (1.8.3)
26
28
  method_source (0.8.2)
27
- minitest (5.7.0)
29
+ minitest (5.9.0)
28
30
  multi_xml (0.5.5)
29
31
  pry (0.10.1)
30
32
  coderay (~> 1.1.0)
@@ -62,4 +64,4 @@ DEPENDENCIES
62
64
  timecop
63
65
 
64
66
  BUNDLED WITH
65
- 1.10.4
67
+ 1.12.5
@@ -28,4 +28,5 @@ Gem::Specification.new do |spec|
28
28
  spec.add_dependency "httparty"
29
29
  spec.add_dependency "json"
30
30
  spec.add_dependency "activesupport"
31
+ spec.add_dependency "addressable"
31
32
  end
@@ -28,9 +28,9 @@ require "gnip_api/request"
28
28
  require 'httparty'
29
29
  require 'json'
30
30
  require 'logger'
31
+ require 'addressable/uri'
31
32
  require 'uri'
32
33
 
33
-
34
34
  module GnipApi
35
35
  class << self
36
36
  attr_reader :configuration
@@ -49,7 +49,7 @@ module Gnip
49
49
  end
50
50
 
51
51
  def link
52
- URI(@link)
52
+ Addressable::URI.parse(@link) unless @link.nil?
53
53
  end
54
54
 
55
55
  def tweet_id
@@ -55,7 +55,7 @@ module Gnip
55
55
  end
56
56
 
57
57
  def image
58
- URI(@image)
58
+ Addressable::URI.parse(@image) unless @image.nil?
59
59
  end
60
60
 
61
61
  def to_json
@@ -11,11 +11,11 @@ module Gnip
11
11
  end
12
12
 
13
13
  def url
14
- URI(@url) unless @url.nil?
14
+ Addressable::URI.parse(@url) unless @url.nil?
15
15
  end
16
16
 
17
17
  def expanded_url
18
- URI(@expanded_url) unless @expanded_url.nil?
18
+ Addressable::URI.parse(@expanded_url) unless @expanded_url.nil?
19
19
  end
20
20
 
21
21
  def original_attributes
@@ -1,3 +1,3 @@
1
1
  module GnipApi
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
@@ -79,7 +79,7 @@ describe Gnip::Message do
79
79
  end
80
80
 
81
81
  it 'has URI as link' do
82
- expect(@activity.link.kind_of?(URI)).to eq(true)
82
+ expect(@activity.link.kind_of?(Addressable::URI)).to eq(true)
83
83
  end
84
84
 
85
85
  it 'has body' do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gnip_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rayko
@@ -136,6 +136,20 @@ dependencies:
136
136
  - - ">="
137
137
  - !ruby/object:Gem::Version
138
138
  version: '0'
139
+ - !ruby/object:Gem::Dependency
140
+ name: addressable
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - ">="
144
+ - !ruby/object:Gem::Version
145
+ version: '0'
146
+ type: :runtime
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - ">="
151
+ - !ruby/object:Gem::Version
152
+ version: '0'
139
153
  description: GnipApi will allow you to interact with most Gnip APIs and data.
140
154
  email:
141
155
  - rayko.drg@gmail.com
@@ -240,7 +254,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
240
254
  version: '0'
241
255
  requirements: []
242
256
  rubyforge_project:
243
- rubygems_version: 2.2.1
257
+ rubygems_version: 2.4.8
244
258
  signing_key:
245
259
  specification_version: 4
246
260
  summary: GnipApi provides exposes all Gnip APIs.