betlinks 0.0.11 → 0.0.12
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/betlinks.rb +3 -3
- data/lib/betlinks/version.rb +1 -1
- metadata +2 -2
data/lib/betlinks.rb
CHANGED
@@ -11,7 +11,7 @@ module Betlinks
|
|
11
11
|
end
|
12
12
|
|
13
13
|
def bl_data(path)
|
14
|
-
@current_record = 0 if @current_record
|
14
|
+
@current_record = 0 if @current_record >= @records.length
|
15
15
|
bl_read_data(path) if @current_record == 0
|
16
16
|
result = @records[@current_record]
|
17
17
|
@current_record += 1
|
@@ -32,7 +32,7 @@ module Betlinks
|
|
32
32
|
'прибыль' => f.scan(/\:\ (.*?)\%/).flatten(1)[0],
|
33
33
|
'брокер_1' => {
|
34
34
|
'имя' => f.scan(/^1\.\ (.*?);\ /).flatten(1)[0],
|
35
|
-
'вид_ставки' => f.scan(/^1\..*?ставка\ (.*?)\s[\;\(]/).flatten(1)[0],
|
35
|
+
'вид_ставки' => f.scan(/^1\..*?ставка\ (.*?)[\s]*[\;\(]/).flatten(1)[0],
|
36
36
|
'тайм' => f.scan(/^1\..*?ставка\ \d\/\d/).flatten(1)[0],
|
37
37
|
'в_скобках' => f.scan(/^1\..*?ставка.*?\((.*?)\)\;/).flatten(1)[0],
|
38
38
|
'коэф' => f.scan(/^1\..*?коэф\.\ (.*?)\(/).flatten(1)[0].strip.gsub(',','.'),
|
@@ -44,7 +44,7 @@ module Betlinks
|
|
44
44
|
},
|
45
45
|
'брокер_2' => {
|
46
46
|
'имя' => f.scan(/^2\.\ (.*?);\ /).flatten(1)[0],
|
47
|
-
'вид_ставки' => f.scan(/^2\..*?ставка\ (.*?)\s[\;\(]/).flatten(1)[0],
|
47
|
+
'вид_ставки' => f.scan(/^2\..*?ставка\ (.*?)[\s]*[\;\(]/).flatten(1)[0],
|
48
48
|
'тайм' => f.scan(/^2\..*?ставка\ \d\/\d/).flatten(1)[0],
|
49
49
|
'в_скобках' => f.scan(/^2\..*?ставка.*?\((.*?)\)\;/).flatten(1)[0],
|
50
50
|
'коэф' => f.scan(/^2\..*?коэф\.\ (.*?)\(/).flatten(1)[0].strip.gsub(',','.'),
|
data/lib/betlinks/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: betlinks
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.12
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-10-
|
12
|
+
date: 2012-10-12 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: Plugin for bets
|
15
15
|
email:
|