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: 7ec3568fe8842b8251a6826f634deed1ffaa978ca957619edb9b378313bcc5ad
4
- data.tar.gz: 2fbe2d6b0426b93dd2c1101dfd57c586fb9226aea4f1069e053957771dd8fab7
3
+ metadata.gz: f6cb7465a0c0767bd0e616ad5a54b054b690b78c9f88168437f49f615d440086
4
+ data.tar.gz: '006210678e1a685cd11c1654ea81705a076ed734c8d8e7f0f0e38d7d34e9bcb1'
5
5
  SHA512:
6
- metadata.gz: 8b3684b837c8710a28b5d507b18c5eb35895f0b3351dd8090ea56886ff4fd09d6b70c4ac27c42950284cb4006c1c181843e2bf5154f21c62c1ae7c552bb9ee14
7
- data.tar.gz: b353a50e2ed40035fff0fc2d05f5c0f230e8f476aeeac34612d9b8ac6cb8cb373df3241207014bfe3b597850640f99cbefa850cd5d02d77095754161e0fcdf5b
6
+ metadata.gz: c3b6a49411ea7ad2501c2b14ce677efa01b035905c13f94cc669f60efb1034c21797495753a8b540d52c0dbb4de0591d595bd7adeace66fbe07d9c929e301c92
7
+ data.tar.gz: 163e0eb0724af5de4889b536f48ac91d2b191fcbaae8b6d8ca8d671903dff7e1e95de03e4ab2122e3fd08b0e8ad8f1f1c1f9c58f034467a773f04700ed925fc7
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.4.0
1
+ 1.4.1
@@ -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.0"
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/mongo/proxy_module.rb
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
@@ -5,7 +5,7 @@ require "faraday_middleware"
5
5
  require "mechanize"
6
6
 
7
7
  module HttpUtilities
8
- VERSION = "1.4.0"
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/mysql/proxy_module')
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/mongo/proxy_module')
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 Mongo
3
+ module Nosql
4
4
 
5
5
  module ProxyModule
6
6
 
@@ -1,6 +1,6 @@
1
1
  module HttpUtilities
2
2
  module Proxies
3
- module Mysql
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.0
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-16 00:00:00.000000000 Z
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/mongo/proxy_module.rb
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