http_utilities 1.4.0 → 1.4.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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f6cb7465a0c0767bd0e616ad5a54b054b690b78c9f88168437f49f615d440086
|
4
|
+
data.tar.gz: '006210678e1a685cd11c1654ea81705a076ed734c8d8e7f0f0e38d7d34e9bcb1'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c3b6a49411ea7ad2501c2b14ce677efa01b035905c13f94cc669f60efb1034c21797495753a8b540d52c0dbb4de0591d595bd7adeace66fbe07d9c929e301c92
|
7
|
+
data.tar.gz: 163e0eb0724af5de4889b536f48ac91d2b191fcbaae8b6d8ca8d671903dff7e1e95de03e4ab2122e3fd08b0e8ad8f1f1c1f9c58f034467a773f04700ed925fc7
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.4.
|
1
|
+
1.4.1
|
data/http_utilities.gemspec
CHANGED
@@ -3,7 +3,7 @@ Gem::Specification.new do |s|
|
|
3
3
|
s.required_rubygems_version = Gem::Requirement.new(">= 1.3.5") if s.respond_to? :required_rubygems_version=
|
4
4
|
|
5
5
|
s.name = "http_utilities"
|
6
|
-
s.version = "1.4.
|
6
|
+
s.version = "1.4.1"
|
7
7
|
|
8
8
|
s.authors = ["Sebastian Johnsson"]
|
9
9
|
s.description = "Wrapper for Faraday with additional functionality"
|
@@ -49,10 +49,10 @@ Gem::Specification.new do |s|
|
|
49
49
|
lib/http_utilities/jobs/resque/proxies/check_proxy_job.rb
|
50
50
|
lib/http_utilities/jobs/sidekiq/proxies/check_proxies_job.rb
|
51
51
|
lib/http_utilities/jobs/sidekiq/proxies/check_proxy_job.rb
|
52
|
-
lib/http_utilities/proxies/
|
53
|
-
lib/http_utilities/proxies/mysql/proxy_module.rb
|
52
|
+
lib/http_utilities/proxies/nosql/proxy_module.rb
|
54
53
|
lib/http_utilities/proxies/proxy_checker.rb
|
55
54
|
lib/http_utilities/proxies/proxy_seeder.rb
|
55
|
+
lib/http_utilities/proxies/sql/proxy_module.rb
|
56
56
|
lib/http_utilities/railtie.rb
|
57
57
|
lib/tasks/http_utilities_tasks.rake
|
58
58
|
spec/database.yml.example
|
data/lib/http_utilities.rb
CHANGED
@@ -5,7 +5,7 @@ require "faraday_middleware"
|
|
5
5
|
require "mechanize"
|
6
6
|
|
7
7
|
module HttpUtilities
|
8
|
-
VERSION = "1.4.
|
8
|
+
VERSION = "1.4.1"
|
9
9
|
|
10
10
|
require File.join(File.dirname(__FILE__), 'http_utilities/railtie') if defined?(Rails)
|
11
11
|
|
@@ -21,12 +21,12 @@ module HttpUtilities
|
|
21
21
|
require File.join(File.dirname(__FILE__), 'http_utilities/http/mechanize/client')
|
22
22
|
|
23
23
|
if defined?(ActiveRecord)
|
24
|
-
require File.join(File.dirname(__FILE__), 'http_utilities/proxies/
|
24
|
+
require File.join(File.dirname(__FILE__), 'http_utilities/proxies/sql/proxy_module')
|
25
25
|
require File.join(File.dirname(__FILE__), 'http_utilities/proxies/proxy_seeder')
|
26
26
|
end
|
27
27
|
|
28
28
|
if defined?(Mongoid)
|
29
|
-
require File.join(File.dirname(__FILE__), 'http_utilities/proxies/
|
29
|
+
require File.join(File.dirname(__FILE__), 'http_utilities/proxies/nosql/proxy_module')
|
30
30
|
end
|
31
31
|
|
32
32
|
require File.join(File.dirname(__FILE__), 'http_utilities/proxies/proxy_checker')
|
@@ -1,6 +1,6 @@
|
|
1
1
|
module HttpUtilities
|
2
2
|
module Proxies
|
3
|
-
module
|
3
|
+
module Sql
|
4
4
|
|
5
5
|
module ProxyModule
|
6
6
|
|
@@ -34,6 +34,8 @@ module HttpUtilities
|
|
34
34
|
order_clause = case ActiveRecord::Base.connection.class.name
|
35
35
|
when "ActiveRecord::ConnectionAdapters::MysqlAdapter", "ActiveRecord::ConnectionAdapters::Mysql2Adapter"
|
36
36
|
"RAND() DESC"
|
37
|
+
when "ActiveRecord::ConnectionAdapters::PostgreSQLAdapter"
|
38
|
+
"RANDOM() DESC"
|
37
39
|
when "ActiveRecord::ConnectionAdapters::SQLite3Adapter"
|
38
40
|
"RANDOM() DESC"
|
39
41
|
else
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: http_utilities
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.4.
|
4
|
+
version: 1.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sebastian Johnsson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-12-
|
11
|
+
date: 2017-12-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -180,10 +180,10 @@ files:
|
|
180
180
|
- lib/http_utilities/jobs/resque/proxies/check_proxy_job.rb
|
181
181
|
- lib/http_utilities/jobs/sidekiq/proxies/check_proxies_job.rb
|
182
182
|
- lib/http_utilities/jobs/sidekiq/proxies/check_proxy_job.rb
|
183
|
-
- lib/http_utilities/proxies/
|
184
|
-
- lib/http_utilities/proxies/mysql/proxy_module.rb
|
183
|
+
- lib/http_utilities/proxies/nosql/proxy_module.rb
|
185
184
|
- lib/http_utilities/proxies/proxy_checker.rb
|
186
185
|
- lib/http_utilities/proxies/proxy_seeder.rb
|
186
|
+
- lib/http_utilities/proxies/sql/proxy_module.rb
|
187
187
|
- lib/http_utilities/railtie.rb
|
188
188
|
- lib/tasks/http_utilities_tasks.rake
|
189
189
|
- spec/database.yml.example
|