smogon_dex 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/bin/smogon_dex +8 -11
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 48ffb182f3ac191c7eeaddaac5e8171e8120bd15
4
- data.tar.gz: 8ab116a5ea40ef199375365ff05dab8b1a39abcd
3
+ metadata.gz: 71f49acfd1737f7f05d5289bce46bdf659221639
4
+ data.tar.gz: b251e4fc08635b1d425eed69e7493b7d7558b895
5
5
  SHA512:
6
- metadata.gz: f5a09f0fe87edb108aa0890d0ef747da2a56612878ee924d3f9202d569e9bffea06ecdf056f5af33fe2cbf41889b962795b2d386f2b0ac3bca6686c43cb09e72
7
- data.tar.gz: 130f8f7928ca928c0cb689f12619811abec98fa0d135c5d7ff14b068b0b67e5270eaa42ad8d965319c741ef32043dec04836191bfbc1bd48f587938400672981
6
+ metadata.gz: 5e176af8a3bbb68acce1cf319ffcffcbac128f0d71bbce0b821da3133d109fc732be0439a25fe3ff10d1295ff014462816cdf21dce7de682aded0a3216c96a28
7
+ data.tar.gz: ee0e1ba4a0e53708aaafceecde2e132edc87c9b4ba6dd64565c44dc767f707dc2a79373b6074e4e04f05c7a6961f460f576cc06f51b741b916e55dd69b6e47ed
data/bin/smogon_dex CHANGED
@@ -5,18 +5,15 @@ include SmogonDex
5
5
  gen, search_catagory = nil
6
6
 
7
7
  ARGV.each do |arg|
8
- if arg =~ /\-\-/
9
- Generations.each do |generation|
10
- if arg =~ generation and gen.nil?
11
- gen = generation
12
- ARGV.delete! arg
13
- end
8
+ Generations.each do |generation|
9
+ if arg == "--#{generation}" and gen.nil?
10
+ gen = generation
11
+ ARGV.delete! arg
14
12
  end
15
- Catagories.each do |catagory|
16
- if arg =~ catagory and search_catagory.nil?
17
- search_catagory = catagory
18
- ARGV.delete! arg
19
- end
13
+ Catagories.each do |catagory|
14
+ if arg == "--#{catagory}" and search_catagory.nil?
15
+ search_catagory = catagory
16
+ ARGV.delete! arg
20
17
  end
21
18
  end
22
19
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: smogon_dex
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zachary R. Perlmutter