Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adjusting for the Minneapolis website changes #44

Merged
merged 1 commit into from
Nov 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 3 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ GEM
language_server-protocol (3.17.0.3)
matrix (0.4.2)
mini_mime (1.1.5)
nokogiri (1.15.5-x64-mingw-ucrt)
racc (~> 1.4)
nokogiri (1.15.5-x86_64-darwin)
racc (~> 1.4)
nokogiri (1.15.5-x86_64-linux)
Expand Down Expand Up @@ -93,6 +95,7 @@ GEM
nokogiri (~> 1.8)

PLATFORMS
x64-mingw-ucrt
x86_64-darwin-21
x86_64-linux

Expand Down
8 changes: 4 additions & 4 deletions database/city_map.json
Original file line number Diff line number Diff line change
Expand Up @@ -230,10 +230,10 @@
}
,
"minneapolis":
{"site":"https://www.minneapolismn.gov/media/minneapolismngov/site-assets/javascript/site-wide-notices/emergency-en-1.json",
"yesCondition": ["there is snow emergency declared", "has declared a snow emergency"],
"noCondition": ["currently there is not a snow emergency in effect in the city of minneapolis",
"there is currently no snow emergency"],
{"site":"https://www.minneapolismn.gov/",
"yesCondition": ["snow emergency"],
"noCondition": ["not a snow emergency",
"no snow emergency"],
"policy": "Snow Emergencies are called after significant snowfall and before 6 p.m. on any given day. During a Snow Emergency, special parking rules go into effect that allow City crews to plow streets and emergency vehicles to travel safely.",
"tow":true,
"notify":{"phone": "6123487669",
Expand Down
2 changes: 1 addition & 1 deletion spec/alexa_processor_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
it 'finds city info case insensitive' do
ap = AlexaProcessor.new request_builder 'LocationRequest', address_perm: false, args: { cityName: 'Minneapolis' }
info = ap.send(:loc_processor)
expect(info['site']).to eq('https://www.minneapolismn.gov/media/minneapolismngov/site-assets/javascript/site-wide-notices/emergency-en-1.json')
expect(info['site']).to eq('https://www.minneapolismn.gov/')
end

it 'finds city info multi-word' do
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
current directory: C:/Users/erice/projects/alexa-snomer-ruby/vendor/bundle/ruby/3.2.0/gems/byebug-11.1.3/ext/byebug
C:/Ruby32-x64/bin/ruby.exe extconf.rb
creating Makefile

current directory: C:/Users/erice/projects/alexa-snomer-ruby/vendor/bundle/ruby/3.2.0/gems/byebug-11.1.3/ext/byebug
make DESTDIR\= sitearchdir\=./.gem.20231121-7532-za228q sitelibdir\=./.gem.20231121-7532-za228q clean

current directory: C:/Users/erice/projects/alexa-snomer-ruby/vendor/bundle/ruby/3.2.0/gems/byebug-11.1.3/ext/byebug
make DESTDIR\= sitearchdir\=./.gem.20231121-7532-za228q sitelibdir\=./.gem.20231121-7532-za228q
generating byebug-x64-mingw-ucrt.def
compiling breakpoint.c
compiling byebug.c
compiling context.c
compiling locker.c
compiling threads.c
linking shared-object byebug/byebug.so

current directory: C:/Users/erice/projects/alexa-snomer-ruby/vendor/bundle/ruby/3.2.0/gems/byebug-11.1.3/ext/byebug
make DESTDIR\= sitearchdir\=./.gem.20231121-7532-za228q sitelibdir\=./.gem.20231121-7532-za228q install
/usr/bin/install -c -m 0755 byebug.so ./.gem.20231121-7532-za228q/byebug

current directory: C:/Users/erice/projects/alexa-snomer-ruby/vendor/bundle/ruby/3.2.0/gems/byebug-11.1.3/ext/byebug
make DESTDIR\= sitearchdir\=./.gem.20231121-7532-za228q sitelibdir\=./.gem.20231121-7532-za228q clean
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
current directory: C:/Users/erice/projects/alexa-snomer-ruby/vendor/bundle/ruby/3.2.0/gems/racc-1.7.3/ext/racc/cparse
C:/Ruby32-x64/bin/ruby.exe extconf.rb
creating Makefile

current directory: C:/Users/erice/projects/alexa-snomer-ruby/vendor/bundle/ruby/3.2.0/gems/racc-1.7.3/ext/racc/cparse
make DESTDIR\= sitearchdir\=./.gem.20231121-7532-3p6y63 sitelibdir\=./.gem.20231121-7532-3p6y63 clean

current directory: C:/Users/erice/projects/alexa-snomer-ruby/vendor/bundle/ruby/3.2.0/gems/racc-1.7.3/ext/racc/cparse
make DESTDIR\= sitearchdir\=./.gem.20231121-7532-3p6y63 sitelibdir\=./.gem.20231121-7532-3p6y63
generating cparse-x64-mingw-ucrt.def
compiling cparse.c
linking shared-object racc/cparse.so

current directory: C:/Users/erice/projects/alexa-snomer-ruby/vendor/bundle/ruby/3.2.0/gems/racc-1.7.3/ext/racc/cparse
make DESTDIR\= sitearchdir\=./.gem.20231121-7532-3p6y63 sitelibdir\=./.gem.20231121-7532-3p6y63 install
/usr/bin/install -c -m 0755 cparse.so ./.gem.20231121-7532-3p6y63/racc

current directory: C:/Users/erice/projects/alexa-snomer-ruby/vendor/bundle/ruby/3.2.0/gems/racc-1.7.3/ext/racc/cparse
make DESTDIR\= sitearchdir\=./.gem.20231121-7532-3p6y63 sitelibdir\=./.gem.20231121-7532-3p6y63 clean
Binary file not shown.
4,666 changes: 4,666 additions & 0 deletions vendor/bundle/ruby/3.2.0/gems/bundler-2.4.22/CHANGELOG.md

Large diffs are not rendered by default.

22 changes: 22 additions & 0 deletions vendor/bundle/ruby/3.2.0/gems/bundler-2.4.22/LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
The MIT License

Portions copyright (c) 2010-2019 André Arko
Portions copyright (c) 2009 Engine Yard

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
58 changes: 58 additions & 0 deletions vendor/bundle/ruby/3.2.0/gems/bundler-2.4.22/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
[![Version ](https://img.shields.io/gem/v/bundler.svg?style=flat)](https://rubygems.org/gems/bundler)

# Bundler: a gem to bundle gems

Bundler makes sure Ruby applications run the same code on every machine.

It does this by managing the gems that the application depends on. Given a list of gems, it can automatically download and install those gems, as well as any other gems needed by the gems that are listed. Before installing gems, it checks the versions of every gem to make sure that they are compatible, and can all be loaded at the same time. After the gems have been installed, Bundler can help you update some or all of them when new versions become available. Finally, it records the exact versions that have been installed, so that others can install the exact same gems.

### Installation and usage

To install (or update to the latest version):

```
gem install bundler
```

To install a prerelease version (if one is available), run `gem install bundler --pre`. To uninstall Bundler, run `gem uninstall bundler`.

Bundler is most commonly used to manage your application's dependencies. For example, these commands will allow you to use Bundler to manage the `rspec` gem for your application:

```
bundle init
bundle add rspec
bundle install
bundle exec rspec
```

See [bundler.io](https://bundler.io) for the full documentation.

### Troubleshooting

For help with common problems, see [TROUBLESHOOTING](doc/TROUBLESHOOTING.md).

Still stuck? Try [filing an issue](https://github.com/rubygems/rubygems/issues/new?labels=Bundler&template=bundler-related-issue.md).

### Other questions

To see what has changed in recent versions of Bundler, see the [CHANGELOG](CHANGELOG.md).

To get in touch with the Bundler core team and other Bundler users, please join [the Bundler slack](https://join.slack.com/t/bundler/shared_invite/zt-1rrsuuv3m-OmXKWQf8K6iSla4~F1DBjQ).

### Contributing

If you'd like to contribute to Bundler, that's awesome, and we <3 you. We've put together [the Bundler contributor guide](https://github.com/rubygems/rubygems/blob/master/bundler/doc/contributing/README.md) with all of the information you need to get started.

If you'd like to request a substantial change to Bundler or its documentation, refer to the [Bundler RFC process](https://github.com/rubygems/rfcs) for more information.

### Supporting

RubyGems is managed by [Ruby Central](https://rubycentral.org), a non-profit organization that supports the Ruby community through projects like this one, as well as [RubyConf](https://rubyconf.org), [RailsConf](https://railsconf.org), and [RubyGems.org](https://rubygems.org). You can support Ruby Central by attending or [sponsoring]([email protected]) a conference, or by [joining as a supporting member](https://rubycentral.org/#/portal/signup).

### Code of Conduct

Everyone interacting in the Bundler project's codebases, issue trackers, chat rooms, and mailing lists is expected to follow the [Bundler code of conduct](https://github.com/rubygems/rubygems/blob/master/CODE_OF_CONDUCT.md).

### License

Bundler is available under an [MIT License](https://github.com/rubygems/rubygems/blob/master/bundler/LICENSE.md).
44 changes: 44 additions & 0 deletions vendor/bundle/ruby/3.2.0/gems/bundler-2.4.22/bundler.gemspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# frozen_string_literal: true

begin
require_relative "lib/bundler/version"
rescue LoadError
# for Ruby core repository
require_relative "version"
end

Gem::Specification.new do |s|
s.name = "bundler"
s.version = Bundler::VERSION
s.license = "MIT"
s.authors = [
"André Arko", "Samuel Giddins", "Colby Swandale", "Hiroshi Shibata",
"David Rodríguez", "Grey Baker", "Stephanie Morillo", "Chris Morris", "James Wen", "Tim Moore",
"André Medeiros", "Jessica Lynn Suttles", "Terence Lee", "Carl Lerche",
"Yehuda Katz"
]
s.email = ["[email protected]"]
s.homepage = "https://bundler.io"
s.summary = "The best way to manage your application's dependencies"
s.description = "Bundler manages an application's dependencies through its entire life, across many machines, systematically and repeatably"

s.metadata = {
"bug_tracker_uri" => "https://github.com/rubygems/rubygems/issues?q=is%3Aopen+is%3Aissue+label%3ABundler",
"changelog_uri" => "https://github.com/rubygems/rubygems/blob/master/bundler/CHANGELOG.md",
"homepage_uri" => "https://bundler.io/",
"source_code_uri" => "https://github.com/rubygems/rubygems/tree/master/bundler",
}

s.required_ruby_version = ">= 2.6.0"
s.required_rubygems_version = ">= 3.0.1"

s.files = Dir.glob("lib/bundler{.rb,/**/*}", File::FNM_DOTMATCH).reject {|f| File.directory?(f) }

# include the gemspec itself because warbler breaks w/o it
s.files += %w[bundler.gemspec]

s.files += %w[CHANGELOG.md LICENSE.md README.md]
s.bindir = "exe"
s.executables = %w[bundle bundler]
s.require_paths = ["lib"]
end
38 changes: 38 additions & 0 deletions vendor/bundle/ruby/3.2.0/gems/bundler-2.4.22/exe/bundle
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
#!/usr/bin/env ruby
# frozen_string_literal: true

# Exit cleanly from an early interrupt
Signal.trap("INT") do
Bundler.ui.debug("\n#{caller.join("\n")}") if defined?(Bundler)
exit 1
end

base_path = File.expand_path("../lib", __dir__)

if File.exist?(base_path)
$LOAD_PATH.unshift(base_path)
end

require "bundler"

if Gem.rubygems_version < Gem::Version.new("3.2.3") && Gem.ruby_version < Gem::Version.new("2.7.a") && !ENV["BUNDLER_NO_OLD_RUBYGEMS_WARNING"]
Bundler.ui.warn \
"Your RubyGems version (#{Gem::VERSION}) has a bug that prevents " \
"`required_ruby_version` from working for Bundler. Any scripts that use " \
"`gem install bundler` will break as soon as Bundler drops support for " \
"your Ruby version. Please upgrade RubyGems to avoid future breakage " \
"and silence this warning by running `gem update --system 3.2.3`"
end

require "bundler/friendly_errors"

Bundler.with_friendly_errors do
require "bundler/cli"

# Allow any command to use --help flag to show help for that command
help_flags = %w[--help -h]
help_flag_used = ARGV.any? {|a| help_flags.include? a }
args = help_flag_used ? Bundler::CLI.reformatted_help_args(ARGV) : ARGV

Bundler::CLI.start(args, :debug => true)
end
4 changes: 4 additions & 0 deletions vendor/bundle/ruby/3.2.0/gems/bundler-2.4.22/exe/bundler
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env ruby
# frozen_string_literal: true

load File.expand_path("bundle", __dir__)
Loading
Loading