-
Notifications
You must be signed in to change notification settings - Fork 80
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
Add 1.0.2 and 1.0.3 to the list of supported versions #81
Comments
Andrew that sounds like a good idea. |
@garemoko Maybe introducing constraints on the version number would also be good. Is there also a need to resolve things like "v1.0.0", "1.0.0", "1" and "1.0" to the same version number? |
@WillSkates those aren't accepted version strings. I'm potentially okay to loosen any constraint on what we are reading back from an LRS (though they still have to be validly formatted), but the library can't get ahead of itself with what it sends. |
I read that as the library accepting variant strings and translating them. I don't think that's necessary though as it's not hard for people to get the version right. |
@garemoko You got it. I'd agree completely as long as there is a small list to remember. I truthfully don't know how many versions there are. |
0.9, 0.95, 1.0.0, 1.0.1, 1.0.2, 1.0.3 |
Hmm. It might be worth translating ^1.0 and ^0.9 in that case. |
Yeah, I'm not in favor of helping translate simple strings like this. xAPI is already a highly technical spec, and this library while a big help for parts of it, just shouldn't be used by people who don't understand simple versioning basics. On top of that there is a method they can call to get the actual list of all possible supported versions from the library. And finally, it defaults to |
@brianjmiller That makes perfect sense. On another note do you have any idea why #82 and #83 are failing? It doesn't seem to have anything to do with the code changes. |
4495a44 has taken care of this. |
Seems like we just need to change here:
TinCanPHP/tests/VersionTest.php
Lines 23 to 33 in 522afdb
and:
TinCanPHP/src/Version.php
Lines 35 to 45 in 522afdb
Should we modify this so that any 1.0.x version is supported?
The text was updated successfully, but these errors were encountered: