accern 3.2.1 → 3.2.2

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
  SHA1:
3
- metadata.gz: b71dbccab144e1126f232b4bd18e4ac1136801bb
4
- data.tar.gz: 43b466633f0d7e88a75317d8c9034af036c8a156
3
+ metadata.gz: 78a76fe0de0eae305b484e09e4cfdd5be54a86e9
4
+ data.tar.gz: 2c4d691b8272c38d6ae79ee52a98718d549f6615
5
5
  SHA512:
6
- metadata.gz: 738ca4043781655d3654aad5d80ccdd1a856826fcd9349e4f220ceced8294bfe54eb65482cb41921a9607db106fc42782444c77d77aa2664f43f6910751efe36
7
- data.tar.gz: eb4d52e4f735b0d420699a836f69178f961f3e49f8ca9ab701694473af35c0f1b895706968b13baf24668a06e4bdbd7840e3352ab6bd6ae953482ffbb908d1cf
6
+ metadata.gz: 4413df4edfdb0c4c434c810c5c678f6539c4178f4b0ce84ff5e97d1ce8a48cea39bb2b426605843a5bfc330fe79b019b9dbfb0405c20509dcb6e2a5272aca315
7
+ data.tar.gz: 85822dfb833caa6535ece9fccbb5fad1f7b341c083218eae791e357e507add22a95f18f6a251a89d5be2be2d8e396f7e41c84cb9c6e94a685c6f1b0300aa0f94
@@ -5,4 +5,4 @@ require 'accern/flatner'
5
5
  require 'optparse'
6
6
  require 'yaml'
7
7
  require 'json'
8
- require 'net/http'
8
+ require 'net/https'
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Accern
2
4
  class Alpha
3
5
  attr_reader :token, :base_url, :uri, :last_id, :new_id, :docs,
@@ -9,7 +11,7 @@ module Accern
9
11
  @index = index
10
12
  @format = format
11
13
  @params = params
12
- @base_url = 'http://feed.accern.com/v3/alphas'
14
+ @base_url = 'https://feed.accern.com/v3/alphas'
13
15
  @uri = URI(base_url)
14
16
  read_last_id
15
17
  @flat = Flatner.new
@@ -17,9 +19,9 @@ module Accern
17
19
 
18
20
  def download(path)
19
21
  create_uri
20
- format_response(
21
- Net::HTTP.new(uri.host, uri.port).request_get(uri, header)
22
- )
22
+ http = Net::HTTP.new(uri.host, uri.port)
23
+ http.use_ssl = true
24
+ format_response(http.request_get(uri, header))
23
25
 
24
26
  return if new_id == last_id
25
27
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Accern
2
- VERSION = '3.2.1'.freeze
4
+ VERSION = '3.2.2'.freeze
3
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: accern
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.2.1
4
+ version: 3.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Carlos Espejo