forked from zuorasc/zuora
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #19 from Sage/add-appraisal
Add appraisals gem to support different versions of Rails
- Loading branch information
Showing
29 changed files
with
220 additions
and
153 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,25 @@ | ||
appraise "rails30" do | ||
gem 'activesupport', '~> 3.0.0' | ||
gem 'activemodel', '~> 3.0.0' | ||
appraise "rails-4" do | ||
gem 'activemodel', '~> 4.2' | ||
gem 'bigdecimal', '~> 1.4' | ||
gem 'sqlite3', '~> 1.3' | ||
gem 'rack', '~> 2.0' | ||
end | ||
|
||
appraise "rails31" do | ||
gem 'activesupport', '~> 3.1.0' | ||
gem 'activemodel', '~> 3.1.0' | ||
appraise "rails-5" do | ||
gem 'activemodel', '~> 5.2' | ||
gem 'sqlite3', '~> 1.4.0' | ||
gem 'i18n', '~> 1.5.1' | ||
gem 'rack', '~> 2.0' | ||
end | ||
|
||
appraise "rails32" do | ||
gem 'activesupport', '~> 3.2.0' | ||
gem 'activemodel', '~> 3.2.0' | ||
appraise "rails-6" do | ||
gem 'activemodel', '~> 6.0' | ||
gem 'sqlite3' | ||
gem 'httpi', '~> 4.0' | ||
end | ||
|
||
appraise "rails-7" do | ||
gem 'activemodel', '~> 7.0' | ||
gem 'sqlite3' | ||
gem 'httpi', '~> 4.0' | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,3 @@ | |
source 'https://rubygems.org' | ||
|
||
gemspec | ||
|
||
gem 'akami', '~> 1.3.2' | ||
gem 'nokogiri', '~> 1.15.6' | ||
gem 'wasabi', '>= 3.7' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
version: '2' | ||
|
||
services: | ||
client: | ||
build: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# This file was generated by Appraisal | ||
|
||
source "https://rubygems.org" | ||
|
||
gem "activemodel", "~> 4.2" | ||
gem "bigdecimal", "~> 1.4" | ||
gem "sqlite3", "~> 1.3" | ||
gem "rack", "~> 2.0" | ||
|
||
gemspec path: "../" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# This file was generated by Appraisal | ||
|
||
source "https://rubygems.org" | ||
|
||
gem "activemodel", "~> 5.2" | ||
gem "sqlite3", "~> 1.4.0" | ||
gem "i18n", "~> 1.5.1" | ||
gem "rack", "~> 2.0" | ||
|
||
gemspec path: "../" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# This file was generated by Appraisal | ||
|
||
source "https://rubygems.org" | ||
|
||
gem "activemodel", "~> 6.0" | ||
gem "sqlite3" | ||
gem "httpi", "~> 4.0" | ||
|
||
gemspec path: "../" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# This file was generated by Appraisal | ||
|
||
source "https://rubygems.org" | ||
|
||
gem "activemodel", "~> 7.0" | ||
gem "sqlite3" | ||
gem "httpi", "~> 4.0" | ||
|
||
gemspec path: "../" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
FactoryGirl.define do | ||
FactoryBot.define do | ||
factory :contact, :class => Zuora::Objects::Contact do | ||
first_name "Example" | ||
first_name { "Example" } | ||
sequence(:last_name){|n| "User #{n}" } | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,36 @@ | ||
FactoryGirl.define do | ||
FactoryBot.define do | ||
factory :payment_method_credit_card, :class => Zuora::Objects::PaymentMethod do | ||
type "CreditCard" | ||
credit_card_address1 "123 Testing Lane" | ||
credit_card_city "San Francisco" | ||
credit_card_state "California" | ||
credit_card_postal_code "95611" | ||
credit_card_holder_name "Example User" | ||
credit_card_number "4111111111111111" | ||
credit_card_type "Visa" | ||
credit_card_expiration_month "9" | ||
credit_card_expiration_year "2018" | ||
type { "CreditCard" } | ||
credit_card_address1 { "123 Testing Lane" } | ||
credit_card_city { "San Francisco" } | ||
credit_card_state { "California" } | ||
credit_card_postal_code { "95611" } | ||
credit_card_holder_name { "Example User" } | ||
credit_card_number { "4111111111111111" } | ||
credit_card_type { "Visa" } | ||
credit_card_expiration_month { "9" } | ||
credit_card_expiration_year { "2018" } | ||
end | ||
|
||
factory :payment_method_debit_card, :parent => :payment_method_credit_card do | ||
type "DebitCard" | ||
type { "DebitCard" } | ||
end | ||
|
||
factory :payment_method_ach, :class => Zuora::Objects::PaymentMethod do | ||
type "ACH" | ||
ach_aba_code '123456789' | ||
ach_account_name 'My Checking Account' | ||
ach_account_number '987654321' | ||
ach_bank_name 'Bank of Zuora' | ||
ach_account_type 'BusinessChecking' | ||
end | ||
FactoryBot.define do | ||
factory :payment_method_ach, class: Zuora::Objects::PaymentMethod do | ||
type { "ACH" } | ||
ach_aba_code { '123456789' } | ||
ach_account_name { 'My Checking Account' } | ||
ach_account_number { '987654321' } | ||
ach_bank_name { 'Bank of Zuora' } | ||
ach_account_type { 'BusinessChecking' } | ||
end | ||
|
||
factory :payment_method_paypal, :class => Zuora::Objects::PaymentMethod do | ||
type 'PayPal' | ||
paypal_baid "ExampleBillingAgreementId" | ||
paypal_email "[email protected]" | ||
paypal_type "ExpressCheckout" | ||
factory :payment_method_paypal, class: Zuora::Objects::PaymentMethod do | ||
type { 'PayPal' } | ||
paypal_baid { "ExampleBillingAgreementId" } | ||
paypal_email { "[email protected]" } | ||
paypal_type { "ExpressCheckout" } | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
FactoryGirl.define do | ||
FactoryBot.define do | ||
factory :product_rate_plan_charge_tier, :class => Zuora::Objects::ProductRatePlanChargeTier do | ||
price 0 | ||
starting_unit 0 | ||
ending_unit 10 | ||
price { 0 } | ||
starting_unit { 0 } | ||
ending_unit { 10 } | ||
end | ||
end |
Oops, something went wrong.