dustinlakin / twitch-rb

Twitch API gem
MIT License
51 stars 28 forks source link

0.0.x to 0.1.0 update (non-backward-compatible changes). #9

Closed mrbeardy closed 9 years ago

mrbeardy commented 9 years ago

Some of the updates in this commit break backward-compatibility with previous versions, so I've upped the version number to 0.1.0.

The reason for jumping to 0.x.0 from 0.0.x is so people using ~> in a Gemfile won't receive this version, meaning their code will still work with the old syntax until they update.

Changes
* Replace camelCasing with snake_casing to follow ruby conventions.

* Remove 'get_' prefix to allow method names to more closely 
  match API URI. (e.g. @t.teams() -> '/teams')

* Make 'your_' method prefix optional (e.g. user() (with no arguments) and 
  your_user() are equal)

* Update README.md to use ruby syntax highlighting and reflect above changes.
Tests
Finished in 22.12 seconds (files took 1.12 seconds to load)
31 examples, 3 failures

The 3 failures are the same failures as mentioned in the last commit.