system_4m5m 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/gem_build/system_4m5m.rb +78 -0
- metadata +43 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: c1a7c29b63cb7dc55311cb4dcb7bcb59c841072ac8b714f9b04cf30840dfe31d
|
4
|
+
data.tar.gz: 703efd67d3feaa739593f9f8d9ff674dbba7471fabe9d5016366e62459b32598
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: aef2a05c4d0e0f75a6c304d1573bffbfb4d8b2496a5ff578149c4059846fe76044d289e739f4f7c3b05e3cf7417d49ba10c6795d8da2d0d346f33e2b3dfd3316
|
7
|
+
data.tar.gz: 365381e2a5a67f090c6568598a0acd506b01d2c50fa94db03d3ac4eb8348e1a599aa1fb88babf94cfda4d5b97e695fff0c5f12577bf30929d36125b810eb7734
|
@@ -0,0 +1,78 @@
|
|
1
|
+
|
2
|
+
class power_4m5m
|
3
|
+
def make_cut()
|
4
|
+
|
5
|
+
@round_last = @status3.to_i-1
|
6
|
+
if @round_last == 0
|
7
|
+
@round_last = 288
|
8
|
+
end
|
9
|
+
|
10
|
+
number4 = 4
|
11
|
+
number5 = 5
|
12
|
+
@cut_line = 275
|
13
|
+
|
14
|
+
|
15
|
+
cut_off4 = @round_last/number4.to_i
|
16
|
+
cut_line4 = cut_off4*number4.to_i
|
17
|
+
@cut4 = @round_last - cut_line4 # 1~0
|
18
|
+
|
19
|
+
cut_off5 = @round_last/number5.to_i
|
20
|
+
cut_line5 = cut_off5*number5.to_i
|
21
|
+
@cut5 = @round_last - cut_line5 # 1~0
|
22
|
+
sleep 1
|
23
|
+
end
|
24
|
+
|
25
|
+
def find4m
|
26
|
+
begin
|
27
|
+
url = 'http://sf-500.com/api/4m_find.json'
|
28
|
+
http = HTTP.get(url)
|
29
|
+
@json = JSON.parse(http.to_s)
|
30
|
+
@now_round = @json['now_round'].to_i
|
31
|
+
|
32
|
+
if @now_round == @status2.to_i
|
33
|
+
find4mpointera = 0
|
34
|
+
else
|
35
|
+
quit
|
36
|
+
end
|
37
|
+
rescue
|
38
|
+
puts '4시즌 데이타 다시 확인중...'
|
39
|
+
sleep 1
|
40
|
+
retry
|
41
|
+
end
|
42
|
+
@xg_1 = @json['xg_1'].to_i
|
43
|
+
@xg_2 = @json['xg_2'].to_i
|
44
|
+
@xg_3 = @json['xg_3'].to_i
|
45
|
+
@xg_4 = @json['xg_4'].to_i
|
46
|
+
@axg_1 = @json['xg_1'].to_i
|
47
|
+
@axg_2 = @json['xg_2'].to_i
|
48
|
+
@axg_3 = @json['xg_3'].to_i
|
49
|
+
@axg_4 = @json['xg_4'].to_i
|
50
|
+
end
|
51
|
+
|
52
|
+
def find5m
|
53
|
+
begin
|
54
|
+
url = 'http://sf-500.com/api/5m_find.json'
|
55
|
+
http = HTTP.get(url)
|
56
|
+
@json = JSON.parse(http.to_s)
|
57
|
+
@now_round = @json['now_round'].to_i
|
58
|
+
|
59
|
+
if @now_round == @status2.to_i
|
60
|
+
find5mpointera = 0
|
61
|
+
else
|
62
|
+
quit
|
63
|
+
end
|
64
|
+
rescue
|
65
|
+
puts '5시즌 데이타 다시 확인중...'
|
66
|
+
sleep 1
|
67
|
+
retry
|
68
|
+
end
|
69
|
+
@xg_1 = @json['xg_1'].to_i
|
70
|
+
@xg_2 = @json['xg_2'].to_i
|
71
|
+
@xg_3 = @json['xg_3'].to_i
|
72
|
+
@xg_4 = @json['xg_4'].to_i
|
73
|
+
@axg_1 = @json['xg_1'].to_i
|
74
|
+
@axg_2 = @json['xg_2'].to_i
|
75
|
+
@axg_3 = @json['xg_3'].to_i
|
76
|
+
@axg_4 = @json['xg_4'].to_i
|
77
|
+
end
|
78
|
+
end
|
metadata
ADDED
@@ -0,0 +1,43 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: system_4m5m
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- kim doo sik
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2021-05-31 00:00:00.000000000 Z
|
12
|
+
dependencies: []
|
13
|
+
description: system_4m5m gem
|
14
|
+
email: doosik2000@gmail.com
|
15
|
+
executables: []
|
16
|
+
extensions: []
|
17
|
+
extra_rdoc_files: []
|
18
|
+
files:
|
19
|
+
- gem_build/system_4m5m.rb
|
20
|
+
homepage: http://sf-500.com
|
21
|
+
licenses:
|
22
|
+
- MIT
|
23
|
+
metadata: {}
|
24
|
+
post_install_message:
|
25
|
+
rdoc_options: []
|
26
|
+
require_paths:
|
27
|
+
- lib
|
28
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
29
|
+
requirements:
|
30
|
+
- - ">="
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '0'
|
33
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
34
|
+
requirements:
|
35
|
+
- - ">="
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: '0'
|
38
|
+
requirements: []
|
39
|
+
rubygems_version: 3.0.3
|
40
|
+
signing_key:
|
41
|
+
specification_version: 4
|
42
|
+
summary: system_4m5m gem!
|
43
|
+
test_files: []
|