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

WIP: Upstream updates #1

Draft
wants to merge 75 commits into
base: from_hash
Choose a base branch
from
Draft

WIP: Upstream updates #1

wants to merge 75 commits into from

Conversation

joe-herman
Copy link
Member

WIP: this currently merges the latest from https://github.com/castle/ruby-u2f, however this needs a lot of attention before we can merge.

otms61 and others added 30 commits March 20, 2017 11:23
* Serious cleanup including freezing constants and replacing fail with raise

* Restore equals alignment
* Get example working with version 1.0 of the gem.

This involves updates to work with the new-model stripped-down
'request' Ruby objects, which don't have an embedded appId or
challenges of their own.  (And also updates to the example's
own Gemfile, of course.)

* Update README for version 1.1 U2F/JS API, version 1.0 gem API.

This requires supplying appId and challenge values to JS separately
from the request objects (which no longer have these items bundled),
and deleting 'as_json' method invocations which appear to no longer
be necessary.

* Make README use <%= ... %> ERB syntax consistently.

Corrects some usages of #{...} syntax taken from HAML in the
example code.
* Validate the JSON data in load

Check to make sure that the loaded JSON actually contains data in the keys we are going to use before we use them, to avoid runtime exceptions on Nil.

* Raise error on bad response data

When trying to sign response make sue the data is correct and raise a known error rather than a method missing error on bad data.

* Bad request constant

* Add test for invalid JSON error

* Add test for handling invalid response data

* Fix typo

* Use nil instead of blank

* Use key instead of blank

* Change .nil? checks to .key?

* Change error from bad data code to invalid json message

* oops

* Fix test

* Fix error

* Fix sign response
* Move test dependencies out of gemspec

* Added rubocop config

* Added latest Ruby to travis

* Fix Style/StringLiterals

* Fix Layout/SpaceAfterSemicolon

* Fix Style/FrozenStringLiteralComment

* Cleanup specs

* Drop support for Ruby 2.0

* Fix more styling

* Use tap

* Fix scoping
* Upgrade gems 2018-09-06

* Drop support for Ruby 2.1

* Update badge images
bump ruby versions and add coditsu v2
nijikon and others added 30 commits May 15, 2019 08:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.