billingsystem-remote-client 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/billingsystem-remote-client.rb +9 -1
- metadata +4 -4
@@ -2,7 +2,7 @@ $:.unshift(File.dirname(__FILE__)) unless
|
|
2
2
|
$:.include?(File.dirname(__FILE__)) || $:.include?(File.expand_path(File.dirname(__FILE__)))
|
3
3
|
|
4
4
|
module BillingsystemRemoteClient
|
5
|
-
VERSION = '0.0.
|
5
|
+
VERSION = '0.0.2'
|
6
6
|
end
|
7
7
|
|
8
8
|
require 'rubygems'
|
@@ -13,6 +13,14 @@ require 'options_checker'
|
|
13
13
|
module BillingSystem
|
14
14
|
module Remote
|
15
15
|
class Client
|
16
|
+
# Sets the endpoint for communicating with the API.
|
17
|
+
# Please note that the gem will talk to the UsersController, so if you provide an endpoint
|
18
|
+
# https://my-app.apphoster.com/frontend/, we will actually start talking to https://my-app.apphoster.com/frontend/users
|
19
|
+
# This is because we believe in Resource-Oriented (Restful) routes! :))))
|
20
|
+
def self.set_endpoint(str)
|
21
|
+
Frontend::User.site = str
|
22
|
+
end
|
23
|
+
|
16
24
|
# Sets credentials for communicating with the API. Used for HTTP Basic auth.
|
17
25
|
def self.set_credentials(options = {})
|
18
26
|
# BillingSystem::Remote::Client.set_credentials( :username => "1abc927b5b4f35f517983599ccc86c64", :password => "e9510b9e7c47275376d1efd4fd75f680" )
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: billingsystem-remote-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 27
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 2
|
10
|
+
version: 0.0.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Commander Johnson
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2012-02-
|
18
|
+
date: 2012-02-26 00:00:00 +01:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|