whmcs 1.0.0 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: dc4a1f03b074f2078e37c49004a7e8cc1c220acb
4
- data.tar.gz: bdd69161bba3acda16085711cab4f80bab1ec467
3
+ metadata.gz: 7153cc324a6b5b81f4fe8e7536816b6bac40832f
4
+ data.tar.gz: d8f8aa0bfa3703721149126dcde998189284501f
5
5
  SHA512:
6
- metadata.gz: c944e40753085097380c95071cbdaf0d3174be10263ed533650b9cf569aa4b70ed80087407b72ffe07062a4d9b372e46b0394075fa855b47741514613646628e
7
- data.tar.gz: fbfc02643a86c2fc8686570803bd740d5ba0f6e87104ff4bfd6e33a444ef3e55e7466951364a310ac082ae1d19a3ddb9357bb564081c68e6bd43e0341347402b
6
+ metadata.gz: 18e0a0671d6f2f2992cc82df518747dbc807cf8cf1b8ba753b94a6075922fc5f9e860175fb988ffb652b30ac0a91ca6c623edc8f8ffcf30b2089080ee879e7cf
7
+ data.tar.gz: dcf10ad61484bba842dc8559d448834d624a96d702a4cff7dd2d51fdbe2432bb3c2a9dab3c8ea2967ade38707be3e53bee98fb23918a281c0a1262401d04d545
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.0
1
+ 1.1.0
@@ -0,0 +1,15 @@
1
+ require 'rails/generators'
2
+ module WHMCS
3
+ module Generators
4
+ class InstallGenerator < Rails::Generators::Base
5
+ source_root File.expand_path("../templates", __FILE__)
6
+
7
+ desc "Creates a WHMCS initializer."
8
+
9
+ def copy_initializer
10
+ template "whmcs.rb", "config/initializers/whmcs.rb"
11
+ end
12
+
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,8 @@
1
+ WHMCS.configure do |config|
2
+
3
+ # Replace these values with the WHMCS API values
4
+ config.api_username = 'example_api_user'
5
+ config.api_password = 'example_api_pass'
6
+ config.api_url = 'http://example.com/api.php'
7
+
8
+ end
data/lib/whmcs/base.rb CHANGED
@@ -1,5 +1,4 @@
1
- require 'net/http'
2
- require 'net/https'
1
+ require 'faraday'
3
2
  require 'crack'
4
3
 
5
4
  module WHMCS
data/whmcs.gemspec CHANGED
@@ -2,16 +2,16 @@
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.0.0 ruby lib
5
+ # stub: whmcs 1.1.0 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "whmcs"
9
- s.version = "1.0.0"
9
+ s.version = "1.1.0"
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"]
13
13
  s.authors = ["Matthew J.W. Basterfield"]
14
- s.date = "2015-02-14"
14
+ s.date = "2015-02-15"
15
15
  s.description = "whmcs: A ruby wrapper for the WHMCS API - a port of the whmcs-ruby gem (https://github.com/dotblock/whmcs-ruby)"
16
16
  s.email = "mjwb@flexbox.co.za"
17
17
  s.extra_rdoc_files = [
@@ -26,6 +26,8 @@ Gem::Specification.new do |s|
26
26
  "README.rdoc",
27
27
  "Rakefile",
28
28
  "VERSION",
29
+ "lib/generators/whmcs/install_generator.rb",
30
+ "lib/generators/whmcs/templates/whmcs.rb",
29
31
  "lib/whmcs.rb",
30
32
  "lib/whmcs/base.rb",
31
33
  "lib/whmcs/client.rb",
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: whmcs
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthew J.W. Basterfield
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-14 00:00:00.000000000 Z
11
+ date: 2015-02-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: crack
@@ -124,6 +124,8 @@ files:
124
124
  - README.rdoc
125
125
  - Rakefile
126
126
  - VERSION
127
+ - lib/generators/whmcs/install_generator.rb
128
+ - lib/generators/whmcs/templates/whmcs.rb
127
129
  - lib/whmcs.rb
128
130
  - lib/whmcs/base.rb
129
131
  - lib/whmcs/client.rb