lottery 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/lottery/command.rb +2 -3
- data/lib/lottery/version.rb +1 -1
- data/lottery.gemspec +2 -1
- metadata +15 -15
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ede8ddac005011ce912b5b447b8805b70bebdf60
|
4
|
+
data.tar.gz: 2e1eda9f065252b74c428b44c9496aca0ed8b674
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2191c7083743b4cd02d263a6ae8e73a2eaea6d0701119ee83a109ae1ea4d78c30b5a5f000399b4b23324ef0ec825d3c37e1a88abceec1bcce1f833212fd61e53
|
7
|
+
data.tar.gz: e1e359d55aaf88c1a1ab9a59c536400874c219c6623c2dd877984b9f265855b0ae2a219b0527297fe4eb187a6be8577cb79360af2255c2072949a12c1b4c4782
|
data/lib/lottery/command.rb
CHANGED
@@ -15,11 +15,10 @@ module Lottery
|
|
15
15
|
$ lottery eu 1 will generate Lotto numbers.
|
16
16
|
|
17
17
|
$ lottery eu 2 will generate Thunderball numbers.
|
18
|
-
...
|
19
18
|
EU_LONGDESC
|
20
19
|
def eu(which = 0)
|
21
20
|
case which.to_i
|
22
|
-
when 1 then puts 'Lotto:';
|
21
|
+
when 1 then puts 'Lotto:'; Lottery::Europe.lotto.pprint
|
23
22
|
when 2 then puts 'Thunderball:'; Lottery::Europe.thunderball.pprint second_name: 'Thunderball number'
|
24
23
|
else puts 'Euro Millions:'; Lottery::Europe.euro_millions.pprint second_name: 'Lucky Stars'
|
25
24
|
end
|
@@ -39,7 +38,7 @@ module Lottery
|
|
39
38
|
LONGDESC
|
40
39
|
def tw(which = 0)
|
41
40
|
case which.to_i
|
42
|
-
when 1 then puts '6/49 Lotto:';
|
41
|
+
when 1 then puts '6/49 Lotto:'; Lottery::Taiwan.lotto_649.pprint
|
43
42
|
when 2 then puts 'Daily Cash 539:'; Lottery::Taiwan.daily_cash.pprint
|
44
43
|
else puts 'Super Lotto 638:'; Lottery::Taiwan.super_lotto_638.pprint first_name: '1st zone', second_name: '2nd zone'
|
45
44
|
end
|
data/lib/lottery/version.rb
CHANGED
data/lottery.gemspec
CHANGED
@@ -23,9 +23,10 @@ Gem::Specification.new do |spec|
|
|
23
23
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
24
24
|
spec.require_paths = ["lib"]
|
25
25
|
|
26
|
-
spec.add_development_dependency "thor", "~> 0.18"
|
27
26
|
|
28
27
|
spec.add_development_dependency "bundler", "~> 1.3"
|
29
28
|
spec.add_development_dependency "rake"
|
30
29
|
|
30
|
+
spec.add_dependency "thor", "~> 0.18"
|
31
|
+
|
31
32
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lottery
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Juanito Fatas
|
@@ -10,20 +10,6 @@ bindir: bin
|
|
10
10
|
cert_chain: []
|
11
11
|
date: 2013-07-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
-
- !ruby/object:Gem::Dependency
|
14
|
-
name: thor
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
16
|
-
requirements:
|
17
|
-
- - ~>
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: '0.18'
|
20
|
-
type: :development
|
21
|
-
prerelease: false
|
22
|
-
version_requirements: !ruby/object:Gem::Requirement
|
23
|
-
requirements:
|
24
|
-
- - ~>
|
25
|
-
- !ruby/object:Gem::Version
|
26
|
-
version: '0.18'
|
27
13
|
- !ruby/object:Gem::Dependency
|
28
14
|
name: bundler
|
29
15
|
requirement: !ruby/object:Gem::Requirement
|
@@ -52,6 +38,20 @@ dependencies:
|
|
52
38
|
- - '>='
|
53
39
|
- !ruby/object:Gem::Version
|
54
40
|
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: thor
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ~>
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0.18'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ~>
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0.18'
|
55
55
|
description: Lottery Generator in Ruby
|
56
56
|
email:
|
57
57
|
- katehuang0320@gmail.com
|