-
WARNING This might break backwards compatibility. We tried our best to keep BC with 0.4.0 and keep tests to prove that, but we cannot promise you that something slipped through our hands. Where appropriate we put notices to which method you should migrate. Deprecated methods will be removed in future releases (0.6.x)
-
DOES NOT INCLUDE PROPER ERROR HANDLING YET!
-
Activity now lazily loads its attributes
-
Client now defaults to https
-
Remove deprecated
grayscale_url
from Badgeville::Reward, useimage_url(:grayscale)
instead -
Badgeville::Player implemented with:
find_by_email_and_site
to find a player by its user email and the sitefind_by_id
to find a player by its idcreate
to create a player at Badgeville (email
andsite
)update
to update a player by the player_iddelete
to delete a player by the player_id
-
Badgeville::User implemented with:
find
which takes the user id or his email and returns a Badgeville::User objectcreate
to create a user on the Badgeville networkdelete
to delete a user on the Badgeville network
-
Badgeville::Activity enhanced with:
create
to create an activity for the player by the player_id or site and emaildeleted_at
,internal?
,id
- a mapper for units one got for the activity. For example if a custom unit "unit_xp" is
defined for the Activity you'll have access to it via
activity.unit_xp
-
Deprecated
Badgeville::Client.log_activity
in favor ofBadgeville::Activity.create
-
Moved deprecated methods to a separate module
DeprecatedClientMethods
. -
Badgeville::Reward enhanced with:
find_by_player_id
to get all the rewards for a player by the player_id (reads through pagination)find_by_email_and_site
to get all the rewards for a player by email and site (reads through pagination)type
to get the type of the reward (e.g. level, achievement etc.)definition
to get the reward definition if there was oneadjustments
to get the adjustments that you'll get for a reward
-
Badgeville::RewardDefinition implemented with:
find_by_site
to get all the reward definitions for a site (returned as Badgeville::Reward)update
to update a definition at Badgeville (crucial if you need levels that adjust points for the user)delete
to delete a definition at Badgeville
-
Badgeville::Group implemented with:
find_by_site
to get all the missions / tracks / groups for a site
-
Badgeville::Client now raises correct Errors when RestClient raises an error
-
Badgeville::Client.delete
now handles DELETE requests and forwards toremove_reward
if called with an reward object -
Renamed
Badgeville::Client.delete
toBadgeville::Client.remove_reward
-
Deprecated
Badgeville::Client.public_key=
as we don't need the public key anyway -
Set default timeout to 5, as this is what Badegville recommends
- Reward#image_url now returns nil if no image was defined in the parsed json
- Fixed support for new response format in tags
- Added support for protocol relative image urls
- Tests are now run by TravisCI against 1.9.2 / 1.9.3
- Dropping support for 1.8.x if there every was one
- add debug flag
- create a user / player
- support pagination and get all pages for rewards and rewards definitions
- misc bug fixes
- HAS MAJOR BUG DO NOT USE
- change set player to use new players/info end point
- add delete method for earned rewards
- add definition_id to reward
- set default timeout to 3s
- add timeout parameter
- count activities
- better error handling
- add tags to rewards
- Activity.rewards includes reward objects not reward definitions
- Reward has verb and threshold data for achievments type rewards
- Raise non json errors