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 +4 -4
- data/lib/accern.rb +1 -1
- data/lib/accern/alpha.rb +6 -4
- data/lib/accern/version.rb +3 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 78a76fe0de0eae305b484e09e4cfdd5be54a86e9
|
4
|
+
data.tar.gz: 2c4d691b8272c38d6ae79ee52a98718d549f6615
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4413df4edfdb0c4c434c810c5c678f6539c4178f4b0ce84ff5e97d1ce8a48cea39bb2b426605843a5bfc330fe79b019b9dbfb0405c20509dcb6e2a5272aca315
|
7
|
+
data.tar.gz: 85822dfb833caa6535ece9fccbb5fad1f7b341c083218eae791e357e507add22a95f18f6a251a89d5be2be2d8e396f7e41c84cb9c6e94a685c6f1b0300aa0f94
|
data/lib/accern.rb
CHANGED
data/lib/accern/alpha.rb
CHANGED
@@ -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 = '
|
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
|
-
|
21
|
-
|
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
|
|
data/lib/accern/version.rb
CHANGED