rice-dining 0.2.3 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/Gemfile.lock +9 -6
- data/bin/rice-dining +2 -1
- data/lib/rice/dining/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 1421df74ca260b33acce26a38b9344144ef13b597d53c1fad41bde8d1cccf395
|
4
|
+
data.tar.gz: df54cd24acc3f2fad8213fcda0dce9ed56b16271ea0a2e991511a92dbd422118
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0205f63240918a5525e5fdab95e30855e0be570400e984bf1ca2ce3477716dec9d78f059296d1a916b5df3d090d80d5c25f2c93ddcdce1e705b51efbf22c1e21
|
7
|
+
data.tar.gz: 703c460965d8ef4ebc3ff877dbb86456a0df7b28bb53a3bf829cd2545d021ebb1e24b9533194a9b35f32472d13557fad8d2504996af9745063ff685c5783a5b8
|
data/Gemfile.lock
CHANGED
@@ -1,18 +1,18 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
rice-dining (0.2.
|
4
|
+
rice-dining (0.2.3)
|
5
5
|
colorize (~> 0.7)
|
6
6
|
nokogiri (~> 1.6)
|
7
7
|
|
8
8
|
GEM
|
9
9
|
remote: https://rubygems.org/
|
10
10
|
specs:
|
11
|
-
colorize (0.
|
12
|
-
mini_portile2 (2.
|
13
|
-
nokogiri (1.
|
14
|
-
mini_portile2 (~> 2.
|
15
|
-
rake (
|
11
|
+
colorize (0.8.1)
|
12
|
+
mini_portile2 (2.3.0)
|
13
|
+
nokogiri (1.8.4)
|
14
|
+
mini_portile2 (~> 2.3.0)
|
15
|
+
rake (12.3.1)
|
16
16
|
|
17
17
|
PLATFORMS
|
18
18
|
ruby
|
@@ -20,3 +20,6 @@ PLATFORMS
|
|
20
20
|
DEPENDENCIES
|
21
21
|
rake
|
22
22
|
rice-dining!
|
23
|
+
|
24
|
+
BUNDLED WITH
|
25
|
+
1.16.1
|
data/bin/rice-dining
CHANGED
@@ -27,6 +27,7 @@ require 'colorize'
|
|
27
27
|
|
28
28
|
begin
|
29
29
|
regex = !ARGV.empty? ? Regexp.compile(ARGV.first, Regexp::IGNORECASE) : //
|
30
|
+
unicode = !ENV['RICE_DINING_NO_UNICODE']
|
30
31
|
manifest = Rice::Dining.manifest
|
31
32
|
allergens = manifest.allergens.sort {|a, b| a.shortcode <=> b.shortcode}
|
32
33
|
allergen_colors = {
|
@@ -50,7 +51,7 @@ begin
|
|
50
51
|
if location.open?
|
51
52
|
STDOUT.puts 'OPEN'.green
|
52
53
|
location.items.each_with_index do |item, idx|
|
53
|
-
STDOUT.print idx == 0 ? ' \- ' : ' |- '
|
54
|
+
STDOUT.print unicode ? " \u2192 " : (idx == 0 ? ' \- ' : ' |- ')
|
54
55
|
allergens.each do |allergen|
|
55
56
|
color = allergen_colors.include?(allergen.id) ? allergen_colors[allergen.id] : :white
|
56
57
|
STDOUT.print item.allergens.include?(allergen) ? allergen.shortcode.to_s.colorize(color) : '-'
|
data/lib/rice/dining/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rice-dining
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Morgan Jones
|
@@ -76,7 +76,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
76
76
|
version: '0'
|
77
77
|
requirements: []
|
78
78
|
rubyforge_project:
|
79
|
-
rubygems_version: 2.
|
79
|
+
rubygems_version: 2.7.6
|
80
80
|
signing_key:
|
81
81
|
specification_version: 4
|
82
82
|
summary: Gets Rice servery information
|