whmcs 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/generators/whmcs/install_generator.rb +1 -1
- data/lib/generators/whmcs/templates/whmcs.rb +1 -1
- data/lib/whmcs.rb +1 -1
- data/lib/whmcs/base.rb +4 -4
- data/lib/whmcs/client.rb +1 -1
- data/lib/whmcs/config.rb +1 -1
- data/lib/whmcs/invoice.rb +1 -1
- data/lib/whmcs/misc.rb +1 -1
- data/lib/whmcs/module.rb +1 -1
- data/lib/whmcs/order.rb +1 -1
- data/lib/whmcs/quote.rb +1 -1
- data/lib/whmcs/ticket.rb +2 -2
- data/whmcs.gemspec +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 939e5f42418bd9ce86407c6c01af39174dd95672
|
4
|
+
data.tar.gz: ee71811768b60682693bec56d1d423902432b907
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d87b54a486c3ab177740f1e1bfeb83f94a7b29900de50a8bcb76796bc3cd910728197ef97de68e4b43c2d27a3506afdd6a3c36f514ae65f1c628bc3f3c07920a
|
7
|
+
data.tar.gz: b8783ba2f98c7d1eef82fbe453ba5c2e42ad7f1d8741d9dadd9d243b2b0c1f0768f3e12b12dcc57ba9b496cf75a0922a6adce74ad65b688302cd0be704855f2b
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.1.
|
1
|
+
1.1.1
|
data/lib/whmcs.rb
CHANGED
data/lib/whmcs/base.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
require 'faraday'
|
2
2
|
require 'crack'
|
3
3
|
|
4
|
-
module
|
4
|
+
module Whmcs
|
5
5
|
# WHMCS::Base is the main class used to subclass WHMCS API resources
|
6
6
|
class Base
|
7
7
|
|
@@ -17,11 +17,11 @@ module WHMCS
|
|
17
17
|
end
|
18
18
|
|
19
19
|
params.merge!(
|
20
|
-
:username =>
|
21
|
-
:password =>
|
20
|
+
:username => Whmcs.config.api_username,
|
21
|
+
:password => Whmcs.config.api_password
|
22
22
|
)
|
23
23
|
|
24
|
-
url = URI.parse(
|
24
|
+
url = URI.parse(Whmcs.config.api_url)
|
25
25
|
|
26
26
|
# TODO: Configure Faraday for HTTPS requests
|
27
27
|
conn = Faraday.new(:url => url) do |faraday|
|
data/lib/whmcs/client.rb
CHANGED
data/lib/whmcs/config.rb
CHANGED
data/lib/whmcs/invoice.rb
CHANGED
data/lib/whmcs/misc.rb
CHANGED
data/lib/whmcs/module.rb
CHANGED
data/lib/whmcs/order.rb
CHANGED
data/lib/whmcs/quote.rb
CHANGED
data/lib/whmcs/ticket.rb
CHANGED
data/whmcs.gemspec
CHANGED
@@ -2,11 +2,11 @@
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
3
|
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
|
-
# stub: whmcs 1.1.
|
5
|
+
# stub: whmcs 1.1.1 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "whmcs"
|
9
|
-
s.version = "1.1.
|
9
|
+
s.version = "1.1.1"
|
10
10
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
12
12
|
s.require_paths = ["lib"]
|