README.md in centro-client-0.0.1 vs README.md in centro-client-0.0.2

- old
+ new

@@ -9,17 +9,14 @@ Usage ----- Start by creating a connection to Centro with your credentials: - require 'centro-centro' + require 'centro-client' - centro = Centro::API.new(:api_key => API_KEY) + centro = Centro::Client.new(:access_token => ACCESS_TOKEN) -NOTE: You can leave out the `:api_key` if `ENV['CENTRO_API_KEY']` is set -instead. - Now you can make requests to the api. Requests -------- @@ -31,19 +28,12 @@ Mock ---- For practice or testing you can also use a simulated Centro: - require 'centro-api' + require 'centro-client' - centro = Centro::API.new(:api_key => API_KEY, :mock => true) + centro = Centro::Client.new(:access_token => ACCESS_TOKEN, :mock => true) After that commands should still behave the same, but they will only modify some local data instead of updating the state of things on Centro. - -Tests ------ - -To run tests, first set `ENV['CENTRO_API_KEY']` to your api key. Then -use `bundle exec rake` to run mock tests or `MOCK=false bundle exec -rake` to run integration tests.