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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 053c8958f2d51a5126a1e35eecda8feb8c87e0f8
4
- data.tar.gz: 677740468a8bc2000ae5e440b8ba9621a3353791
2
+ SHA256:
3
+ metadata.gz: 1421df74ca260b33acce26a38b9344144ef13b597d53c1fad41bde8d1cccf395
4
+ data.tar.gz: df54cd24acc3f2fad8213fcda0dce9ed56b16271ea0a2e991511a92dbd422118
5
5
  SHA512:
6
- metadata.gz: 51a9af6fd340a2bbae2485a6eed03a1f2af4a101645a61fc80ae47c2a808ec25824a298c7e16173d5a4175457439397e4f89b3870e8c9dbe82c9613c6a33cfb9
7
- data.tar.gz: 558a8a1e61bb1d5f6a5bc10b110edf08ec198db9efed91b300227513aa50a1b55851b4948aaaa51dbfd3eeb6af68dea50ce28ae0b319c8656559d56f56d90da9
6
+ metadata.gz: 0205f63240918a5525e5fdab95e30855e0be570400e984bf1ca2ce3477716dec9d78f059296d1a916b5df3d090d80d5c25f2c93ddcdce1e705b51efbf22c1e21
7
+ data.tar.gz: 703c460965d8ef4ebc3ff877dbb86456a0df7b28bb53a3bf829cd2545d021ebb1e24b9533194a9b35f32472d13557fad8d2504996af9745063ff685c5783a5b8
@@ -1,18 +1,18 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rice-dining (0.2.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.7.7)
12
- mini_portile2 (2.0.0)
13
- nokogiri (1.6.7.2)
14
- mini_portile2 (~> 2.0.0.rc2)
15
- rake (11.0.1)
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
@@ -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) : '-'
@@ -1,7 +1,7 @@
1
1
  module Rice
2
2
  module Dining
3
3
  module Version
4
- VERSION = '0.2.3'.freeze
4
+ VERSION = '0.2.4'.freeze
5
5
  SHORT_NAME = Rice::Dining.to_s.freeze
6
6
  SHORT_IDENT = "#{SHORT_NAME} v#{VERSION}".freeze
7
7
  NAME = SHORT_NAME.freeze
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.3
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.4.5
79
+ rubygems_version: 2.7.6
80
80
  signing_key:
81
81
  specification_version: 4
82
82
  summary: Gets Rice servery information