Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge the history of Solidus PayPal Braintree into this repository #98

Merged
merged 801 commits into from
Jan 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
801 commits
Select commit Hold shift + click to select a range
0adbb6a
Make client tokens controller specs not rely on hardcoded ids
kennyadsl Nov 17, 2018
bd6e2e0
Remove 2.2 from versions running specs on CI
kennyadsl Nov 20, 2018
ce57527
Merge pull request #193 from solidusio/fix-circleci-build
kennyadsl Nov 20, 2018
6d2e3cd
Revert "Only return card info for credit cards"
alepore Jul 6, 2018
e2a57d6
Add missing partial for existing braintree sources
alepore Jul 6, 2018
be65b41
Manage PAYPAL_POPUP_CLOSED JS error
spaghetticode Aug 23, 2018
3242cb8
Merge pull request #175 from alepore/add-existing-payment-partial
kennyadsl Nov 23, 2018
9cac59f
Merge pull request #183 from spaghetticode/paypal-popup-closed-error
tvdeyen Nov 26, 2018
b1966d0
Add store_in_vault method to Gateway
aldesantis Nov 4, 2018
c363024
Display Paypal setup errors on console
alepore Dec 18, 2018
544fb27
Allow null address Paypal payload
alepore Dec 18, 2018
2d0446c
Check for rails-ujs object when re-enabling button
masonjeffreys Jan 2, 2019
10c029c
Merge pull request #198 from alepore/alepore/paypal-create-debug
jacobherrington Jan 4, 2019
edd702e
Make nonce-only payment sources non-reusable
fastjames Jan 7, 2019
0a050e4
Merge pull request #201 from masonjeffreys/rails-ujs
kennyadsl Jan 29, 2019
dde562b
Merge pull request #204 from geminimvp/non_reusable_nonces
kennyadsl Jan 29, 2019
070e802
Merge pull request #199 from alepore/alepore/allow-no-address
jacobherrington Jan 30, 2019
b347917
Add API payment source view for Braintree payments
aldesantis Jan 31, 2019
4045667
Merge pull request #213 from aldesantis/api-source-view
kennyadsl Feb 2, 2019
9219224
Merge pull request #168 from nebulab/checkout-with-paypal
kennyadsl Feb 2, 2019
5a220ea
Update Travis build matrix
aitbw Feb 6, 2019
46d5c90
Use dynamic attributes on factories
aitbw Feb 6, 2019
986cbec
Set FactoryBot.use_parent_strategy to false
aitbw Feb 7, 2019
29a688b
Lock SQLite3 to version 1.3
aitbw Feb 7, 2019
b33f12e
Fix deprecation warnings
aitbw Feb 7, 2019
645a817
Add fallback for Solidus v2.4 and 2.5
aitbw Feb 7, 2019
d0b33ca
Merge pull request #216 from aitbw/aitbw/extension_maintenance
jacobherrington Feb 11, 2019
ffd9547
Add byebug dependency
skukx Feb 4, 2019
cfcceec
Add association from user to customer
skukx Jan 29, 2019
ea093fa
Merge pull request #214 from skukx/add-byebug-dependency
jacobherrington Feb 12, 2019
f0d5c70
Simplify Solidus Dependencies
gmacdougall Apr 24, 2019
73e9a69
Merge pull request #220 from solidusio/simplify-solidus-dependencies
gmacdougall Apr 26, 2019
3aa7b83
Fix undefined local variable or method `id' error
Jun 5, 2019
f6d8cd6
Skip building default config on config presence
mdesantis Jun 6, 2019
1fe37d7
Merge pull request #223 from mdesantis/patch-1
kennyadsl Jun 10, 2019
e400a4e
Merge pull request #225 from mdesantis/check-for-existing-braintree-c…
kennyadsl Jun 10, 2019
7942e35
Update italian translations
Jun 22, 2019
d98ab88
Merge pull request #230 from welaika/update_translations
spaghetticode Aug 2, 2019
c19a733
Merge pull request #211 from skukx/210-add-association-from-user-to-c…
spaghetticode Aug 7, 2019
2264e0a
Adopt CircleCI instead of Travis
aldesantis Sep 13, 2019
2f8eafa
Rebuild VCR cassettes
aldesantis Sep 13, 2019
fa464ef
Set belongs_to associations as optional when needed
aldesantis Sep 13, 2019
677fed2
Use Webdrivers to support the latest Chrome version
aldesantis Sep 13, 2019
1879f8d
Allow unused HTTP interactions
aldesantis Sep 13, 2019
305903f
Update AVS messages in tests
aldesantis Sep 13, 2019
c79419f
Ignore Chromedriver URL in VCR
aldesantis Sep 13, 2019
7abce77
Use solidus_support to configure the test environment
aldesantis Sep 16, 2019
0234c06
Store Braintree test credentials in the environment
aldesantis Sep 16, 2019
9d73d81
Call Spree::Order#recalculate directly
aldesantis Sep 16, 2019
8d29585
Make VCR requests independent from merchant id
cedum Sep 19, 2019
ba28ace
Fix SolidusPaypalBraintree::Source specs for Solidus v2.5
cedum Sep 19, 2019
c99c221
Add dummy Braintree credentials in test env
cedum Sep 20, 2019
f29a7c8
Use dynamic PayPal payee email in test
aldesantis Sep 20, 2019
3e7bb80
Merge pull request #233 from aldesantis/circleci
tvdeyen Sep 25, 2019
b9852a7
Let PayPal button to receive locale/style parameters
Sep 20, 2019
a384d55
Add spec for custom Paypal button style at checkout
Sep 20, 2019
673e50d
Fix configurations controller to correctly display errors on update
Sep 27, 2019
7768b54
Respect vault/checkout configuration on cart paypal button
mamhoff Sep 25, 2019
c21f870
Merge pull request #236 from nebulab/mm/i229-paypal-button-style
tvdeyen Oct 9, 2019
e0add97
Bump Braintree hosted scripts version to 3.52.0
cedum Sep 11, 2019
26ceb0f
Introduce 3D Secure configuration flag
cedum Sep 11, 2019
28d0de9
Add 3DS authentication on checkout
cedum Sep 11, 2019
91dd085
Document how to enable 3D Secure in Solidus
cedum Oct 18, 2019
e85a085
Merge pull request #232 from nebulab/3ds-support
kennyadsl Oct 26, 2019
30541d2
Fix shipping contact name for ApplePay
cedum Sep 16, 2019
97a2e03
Add PayPal button customizable style also for cart page
Nov 15, 2019
5cb5f8e
Merge pull request #243 from nebulab/mm/i229-paypal-button-style
kennyadsl Nov 18, 2019
6561bba
Merge pull request #239 from mamhoff/respect-vault-config-in-cart
kennyadsl Nov 18, 2019
af58f37
Merge pull request #234 from nebulab/fix-applepay-shipping-contact
kennyadsl Nov 18, 2019
df6d02f
Make http open and read timeouts configurable
tvdeyen Dec 16, 2019
6d22350
Merge pull request #245 from tvdeyen/configure-timeouts
spaghetticode Jan 10, 2020
19679a2
Update README.md
bazfer Jan 16, 2020
54e5ff3
Add solidus_dev_support and fix failing specs
blocknotes Jan 31, 2020
b5b2cde
Upgrade the extension using solidus_dev_support
blocknotes Jan 31, 2020
7d63958
Add Rubocop auto generated todo config
blocknotes Jan 31, 2020
fb64536
Move decorators in app/decorators path
blocknotes Jan 31, 2020
e33baaa
Fix namespace issues
blocknotes Jan 31, 2020
486438b
Fix shared_context name conflict for "checkout setup"
blocknotes Jan 31, 2020
c27222d
Merge pull request #248 from blocknotes/master
aldesantis Feb 3, 2020
2c07c1b
Fix feature specs with new CC expiration date
Mar 6, 2020
091a6f9
Merge pull request #253 from nebulab/mm/fix-specs
kennyadsl Mar 13, 2020
16d5c77
Fix value conversion method
seand7565 Oct 8, 2020
a2515b0
Fix 3DS testing
seand7565 Oct 8, 2020
50f0a84
Merge pull request #263 from seand7565/fix_value_conversion
kennyadsl Oct 9, 2020
c7284c8
Merge pull request #264 from seand7565/fix_3ds_tests
kennyadsl Oct 9, 2020
d6a403c
Move decorators out of models folder
seand7565 Oct 12, 2020
f0bf053
Merge pull request #265 from seand7565/restructure_decorators
kennyadsl Oct 13, 2020
cd3cbec
Fix Spree::Core lookup in gateway
seand7565 Oct 14, 2020
a00774c
Merge pull request #266 from seand7565/fix_core_lookup
kennyadsl Oct 14, 2020
a6e44bd
Move `paypal_button_preference` helper method
Oct 9, 2020
69923ed
Inject admin helper methods via ad-hoc decorator
Oct 9, 2020
e5b21d9
Remove AddBraintreeConfigurationToStores migration
Feb 26, 2020
72be8ea
Create Braintree configurations for Spree::Store if not present
Mar 3, 2020
0c03701
Update README with new informations about Braintree configuration
Mar 3, 2020
b8bef75
Merge pull request #252 from nebulab/mm/fix-helpers
kennyadsl Oct 15, 2020
6686af6
Merge pull request #249 from nebulab/mm/i244-fix-migration
kennyadsl Oct 15, 2020
5af3310
Update circle config to run linting
seand7565 Oct 14, 2020
a5ce628
Update .rubocop.yml to reflect new cops
seand7565 Oct 14, 2020
aa0ae30
Fix cop violations
seand7565 Oct 14, 2020
6b930b0
Update solidus_paypal_braintree.gemspec
mustiag Aug 10, 2020
f9574dc
Update engine.rb
mustiag Aug 12, 2020
e65432a
Merge pull request #261 from mustiag/master
kennyadsl Oct 19, 2020
4644445
Merge pull request #246 from bazfer/patch-1
kennyadsl Oct 21, 2020
bf5fe0e
Merge pull request #268 from seand7565/fix_cops
kennyadsl Oct 21, 2020
8aaab12
Update to New PayPal SDK
seand7565 Oct 13, 2020
52bf3aa
Add info about paypal_payee_map to readme
seand7565 Oct 21, 2020
5f3b98c
Add SolidusPaypalBraintree::Address
mamhoff Sep 25, 2019
b109ac6
Use new SolidusPaypalBraintree::Address in View
mamhoff Sep 25, 2019
5bccddd
Add .bundle and .env to .gitignore
mamhoff Oct 21, 2020
96a53b3
Fix namespacing of Spree::Config module
mamhoff Oct 21, 2020
682ddd9
Rubocop fixes
mamhoff Oct 21, 2020
0326692
Fix api source view path
seand7565 Oct 22, 2020
522df35
Update transaction_address to support name attribute
seand7565 Oct 22, 2020
f6dde7d
Merge pull request #270 from seand7565/rename_api_source_view
kennyadsl Oct 26, 2020
9756829
Merge pull request #269 from seand7565/add_info_about_payee_map
kennyadsl Oct 26, 2020
a85cddf
Merge pull request #267 from seand7565/update_paypal
kennyadsl Oct 26, 2020
460e0c6
Fix ambiguous behavior in generate_tokenn method
skukx Jan 29, 2019
f28ef52
Update app/controllers/solidus_paypal_braintree/client_tokens_control…
skukx Nov 1, 2019
ee96c84
Merge pull request #209 from skukx/208-ambiguous-behavior-for-generat…
kennyadsl Oct 27, 2020
7d59caf
Merge pull request #271 from seand7565/fix_names
kennyadsl Oct 27, 2020
299fed5
Merge pull request #237 from mamhoff/conditional-state-address
kennyadsl Oct 27, 2020
3cf9ce3
Add PayPal messaging component to cart button partial
seand7565 Oct 28, 2020
5ee2154
Merge pull request #273 from seand7565/misc-fixes
kennyadsl Oct 29, 2020
6ceba01
Sanitize user address json for PayPal button
seand7565 Oct 28, 2020
0d7a54f
Pass `payment_method` to payment partials
seand7565 Oct 29, 2020
59407ba
Add ability to style Braintree hosted fields
seand7565 Oct 29, 2020
86de590
Merge pull request #274 from seand7565/sanitize
kennyadsl Oct 30, 2020
8dcc1cd
Fix deprecated solidus_gem_version references
pelargir Oct 30, 2020
1efc3d1
Add a PayPal messaging component partial
seand7565 Oct 29, 2020
5c40dbb
Add placeholder_text option to payment_method
seand7565 Oct 29, 2020
0e3a34a
Merge pull request #277 from CandleScience/fix-deprecations
kennyadsl Nov 3, 2020
d0ac72f
Merge pull request #276 from seand7565/style
kennyadsl Nov 3, 2020
5753999
Merge pull request #275 from seand7565/messaging_component
kennyadsl Nov 3, 2020
2d944fa
Disable PayPal messaging when vault flow is enabled
seand7565 Nov 2, 2020
720f2d1
Merge pull request #278 from seand7565/vault
kennyadsl Nov 5, 2020
846591f
Move decorators to the correct folders and add EngineExtensions
seand7565 Nov 5, 2020
356c8b2
Merge pull request #279 from seand7565/rename_decorators
kennyadsl Nov 6, 2020
dd7e248
Add note about PayPal recommendations for messaging component
seand7565 Nov 9, 2020
be25432
Merge pull request #280 from seand7565/add_notice
kennyadsl Nov 9, 2020
9290ac6
Bump SolidusPaypalBraintree to 1.0.0
kennyadsl Nov 11, 2020
e0b5c9e
Update CHANGELOG
kennyadsl Nov 11, 2020
dcdee57
Added 3ds errors in it locale
Feb 23, 2021
cae551c
Update solidus_support dependency
Apr 16, 2021
59d10b0
Add rails-controller-testing dependency
Apr 16, 2021
128dddd
Explicitly enable preferences on Configuration model
Apr 16, 2021
f510651
Relax bourbon version
Apr 16, 2021
5a17e8c
Resolve the Spree::Address combined first/last name issue
Apr 16, 2021
d424014
Use Spree::Address::Name when available
spaghetticode Apr 16, 2021
30c04b6
Make TransactionAddress#split_name class method
spaghetticode Apr 16, 2021
84ceef5
Move split_name to Address class
spaghetticode Apr 16, 2021
d18bb1f
Fix Braintree 3D Secure API parameter
Apr 16, 2021
75e011d
Fix failing spec
Apr 16, 2021
39bf9db
Disable Rubocop rule
Apr 16, 2021
a91109a
Relax Solidus dependencies to allow 3.x
spaghetticode Apr 23, 2021
2f7370e
Update ruby minimum version to 2.5
spaghetticode Apr 23, 2021
b3bf83c
Merge pull request #286 from nebulab/mm/solidus-3.0
kennyadsl Apr 26, 2021
ca2fb04
Merge pull request #285 from seesaw/feature/update_it_locale
kennyadsl Apr 26, 2021
865368f
Set sandbox mode if environment is sandbox
alexblackie May 21, 2021
9b85a10
Remove remaining frontend dependencies
Rtwena Jun 17, 2021
42fb122
Update to Braintree 3.4.0
pelargir Jun 11, 2021
544487b
Merge pull request #296 from MaisonetteWorld/remove-reminaing-solidus…
kennyadsl Jul 2, 2021
732daa4
Merge pull request #299 from CandleScience/braintree-3-4-0
kennyadsl Jul 2, 2021
8326f33
Update PayPal configuration steps in README
RyanofWoods Jul 28, 2021
d8e83cc
Merge pull request #291 from alexblackie/master
kennyadsl Sep 2, 2021
536eaf9
Make use of data collector in JS configurable
mamhoff Sep 25, 2019
f29f79c
Document disabling Paypal's data collector
mamhoff Nov 12, 2020
bc81cad
Rubocop fix
mamhoff Sep 20, 2021
819bd34
Merge pull request #238 from mamhoff/make-data-collection-configurable
kennyadsl Sep 21, 2021
c9ba93b
Require MFA for RubyGems actions
RyanofWoods Nov 24, 2021
e2b87a4
Merge pull request #306 from RyanofWoods/require-mfa-on-rubygems
kennyadsl Dec 7, 2021
384490e
Add email to Braintree customer
RyanofWoods Dec 10, 2021
59f21c7
Add force_buyer_country payment method preference for testing
RyanofWoods Nov 23, 2021
2913627
Allow Venmo to be a funding option on checkout PayPal buttons
RyanofWoods Dec 13, 2021
778481d
Add Braintree factories
RyanofWoods Dec 22, 2021
af98586
Add paypal_funding_source to Source model
RyanofWoods Dec 22, 2021
07218ac
Merge pull request #305 from RyanofWoods/add-venmo-as-a-payment-option
kennyadsl Dec 23, 2021
0eef556
Do not enforce use of FactoryBot's SyntaxMethods mixin
mamhoff Jan 17, 2022
7a8491c
Replace presence validation with optional: false
mamhoff Jan 17, 2022
c0666a3
Rubocop fix: Use symbol instead of string
mamhoff Jan 17, 2022
306e804
Merge pull request #313 from mamhoff/fix-rubocop-warnings
tvdeyen Jan 19, 2022
78371c9
Lower ActiveRecord::Migration version in add_paypal_funding_source
mamhoff Jan 17, 2022
70020e8
Add skip_avs and skip_cvv AVS Result Mapping
mamhoff Jan 17, 2022
920d528
Upgrade Braintree js sdk files to 3.84
RyanofWoods Jan 4, 2022
0c4a964
Add Braintree Venmo
RyanofWoods Jan 14, 2022
9b485bc
Merge pull request #311 from RyanofWoods/add-braintree-venmo
kennyadsl Feb 1, 2022
639c1ce
Merge pull request #314 from mamhoff/lower-rails-version-in-migration
kennyadsl Feb 1, 2022
853717a
Merge pull request #312 from mamhoff/add-skip-avs-skip-cvv
kennyadsl Feb 1, 2022
b4f4a91
Merge pull request #300 from RyanofWoods/update-paypal-configuration-…
kennyadsl Feb 1, 2022
714630f
Bump SolidusPaypalBraintree to 1.1.0
kennyadsl Feb 1, 2022
f2e9135
Update Changelog
kennyadsl Feb 1, 2022
a820f85
Rubocop -a on spec files
tvdeyen Mar 4, 2022
c8000c5
Merge pull request #317 from tvdeyen/fix-rubocop-complaints
tvdeyen Mar 4, 2022
e18442e
Do not safeguard including of Spree::Preferences::Persistable
tvdeyen Mar 4, 2022
d1bfc31
Fix exception when other payment methods active
embold-tyler Apr 29, 2022
42e3a0a
Merge pull request #310 from RyanofWoods/add-email-to-braintree-customer
kennyadsl May 9, 2022
db30bb4
Bump Rubocop TargetRubyVersion from 2.5 to 2.6
RyanofWoods May 9, 2022
d8ae0b5
Install browser tools before running tests
gsmendoza Jun 10, 2022
4ea790e
Autocorrect RuboCop offenses
gsmendoza Jun 10, 2022
cc7367e
Manually correct RSpec/ExpectChange offenses
gsmendoza Jun 10, 2022
1682f22
Allow Rails version to be configured
gsmendoza Jun 10, 2022
8e8a6c0
Ignore local Gemfile
gsmendoza Jun 14, 2022
396f5e8
Temporarily disable failing Venmo specs
gsmendoza Jun 14, 2022
f8bcc3c
Wrap register_solidus_paypal_braintree_gateway in a to_prepare block
gsmendoza Jun 10, 2022
7b175df
Explicitly refer to Spree
gsmendoza Jun 10, 2022
3ac8d49
Fix transaction address validation error handling
gsmendoza Jun 14, 2022
f96066d
Ensure that register_solidus_paypal_braintree_gateway initializer is …
gsmendoza Jun 15, 2022
806d20b
Merge pull request #321 from gsmendoza/gsmendoza/eng-355-fix-autoload…
kennyadsl Jun 16, 2022
9fc19a4
Bump SolidusPaypalBraintree to 1.1.1
gsmendoza Jun 30, 2022
bbd6850
Fix specs to stub spree_current_user
gsmendoza Jul 5, 2022
f8d9746
Autocorrect RuboCop offenses
gsmendoza Jul 5, 2022
38a5cad
Manually correct RuboCop offenses
gsmendoza Jul 5, 2022
4890572
Merge pull request #323 from solidusio/gsmendoza/eng-384-fix-solidusp…
kennyadsl Jul 5, 2022
8a5e720
Update to use forked solidus_frontend when needed
waiting-for-dev Jul 29, 2022
021ff88
Merge pull request #324 from waiting-for-dev/waiting-for-dev/support_…
kennyadsl Aug 2, 2022
9dac71f
Fix broken factory
johnpitchko Aug 21, 2022
1e25014
Merge pull request #318 from emboldagency/master
kennyadsl Aug 22, 2022
eb99242
Merge pull request #325 from johnpitchko/master
kennyadsl Aug 22, 2022
7526c5f
Merge pull request #319 from RyanofWoods/fix/rubocop-target-ruby-version
kennyadsl Aug 22, 2022
a27da1b
Bump SolidusPaypalBraintree to 1.1.2
kennyadsl Oct 14, 2022
d15364a
Update stale.yml
kennyadsl Nov 11, 2022
f9dc06d
Update to be compliant to latest solidus_dev_support
Nov 16, 2022
861b1e4
Let Capybara use headless Selenium Chrome driver
Nov 16, 2022
f53fe59
Appease/silence some Rubocop offences
Nov 16, 2022
920a4e7
Merge pull request #289 from nebulab/mm/dev-support
kennyadsl Nov 16, 2022
23f1ce8
Disable Rubocop introducing new rules
RyanofWoods Oct 26, 2022
771e004
Remove Rubocop TargetRubyVersion
RyanofWoods Nov 2, 2022
d6dfe33
Fix broken specs due to Solidus factory changes
RyanofWoods Oct 26, 2022
e5a1a57
Fix 3D Secure specs
RyanofWoods Oct 28, 2022
c90efd8
Merge pull request #328 from RyanofWoods/ryanofwoods/fix-broken-specs
elia Nov 18, 2022
8a818af
Fix setup intructions on Rails 7
waiting-for-dev Nov 29, 2022
a3f206f
Merge pull request #332 from solidusio/waiting-for-dev/update_instruc…
waiting-for-dev Nov 29, 2022
f99f81f
Add a compatibility message in the README
kennyadsl Nov 30, 2022
d48d3d6
Fix bin/sandbox script not defaulting Solidus to master
RyanofWoods Nov 18, 2022
0671246
Fix bin/sandbox script generator
RyanofWoods Nov 18, 2022
8292ca4
Update bin/sandbox authentication flag
RyanofWoods Dec 6, 2022
98ceaf4
Update Readme.md for using local sandbox
RyanofWoods Nov 18, 2022
03f4023
Merge pull request #329 from RyanofWoods/ryanofwoods/fix-sandbox-gene…
elia Dec 6, 2022
15dbd18
Drop compatibility with Solidus < 2.4
mamhoff Oct 10, 2022
cd5441b
Improve README PayPal styling information
RyanofWoods Dec 7, 2021
c520a17
Add bin to SolidusPaypalBraintree::Source
RyanofWoods Dec 10, 2021
bbb6fcb
Merge pull request #316 from tvdeyen/fix-configuration-persistable-in…
elia Dec 6, 2022
5c5c2be
Merge pull request #307 from RyanofWoods/improve-readme-paypal-stylin…
elia Dec 6, 2022
6b1194e
Merge pull request #308 from RyanofWoods/add-bin-to-source
elia Dec 6, 2022
6930373
Merge pull request #326 from mamhoff/use-spree-payment-source-as-pare…
elia Dec 6, 2022
b5f1b43
Modernize the gemspec
elia Dec 6, 2022
fb5bc10
Update the readme to include release instructions
elia Dec 6, 2022
1ba7bda
Add a note about why we can't rename ExtensionConfiguration
elia Dec 6, 2022
61b7a9a
Merge pull request #339 from solidusio/elia/dev-support-update
elia Dec 12, 2022
98c887d
Release v1.2.0
elia Dec 12, 2022
55d1b7b
Merge remote-tracking branch 'origin/master' into gsmendoza/92-merge-…
gsmendoza Jan 9, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
version: 2.1

orbs:
# Required for feature specs.
browser-tools: circleci/[email protected]

# Always take the latest version of the orb, this allows us to
# run specs against Solidus supported versions only without the need
# to change this configuration every time a Solidus version is released
Expand All @@ -11,17 +14,26 @@ jobs:
run-specs-with-postgres:
executor: solidusio_extensions/postgres
steps:
- browser-tools/install-browser-tools
- solidusio_extensions/run-tests
run-specs-with-mysql:
executor: solidusio_extensions/mysql
steps:
- browser-tools/install-browser-tools
- solidusio_extensions/run-tests
lint-code:
executor: solidusio_extensions/sqlite-memory
steps:
- browser-tools/install-browser-tools
- solidusio_extensions/lint-code

workflows:
"Run specs on supported Solidus versions":
jobs:
- run-specs-with-postgres
- run-specs-with-mysql
- lint-code

"Weekly run specs against master":
triggers:
- schedule:
Expand Down
5 changes: 5 additions & 0 deletions .gem_release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
bump:
recurse: false
file: 'lib/solidus_paypal_braintree/version.rb'
message: Bump SolidusPaypalBraintree to %{version}
tag: true
2 changes: 2 additions & 0 deletions .github_changelog_generator
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
issues=false
exclude-labels=infrastructure
31 changes: 20 additions & 11 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,11 +1,20 @@
/.bundle/
/.yardoc
/Gemfile.lock
/_yardoc/
/coverage/
/doc/
/pkg/
/spec/reports/
/tmp/
/spec/dummy
/spec/examples.txt
*.gem
\#*
*~
.#*
.DS_Store
.idea
.project
.sass-cache
coverage
Gemfile.lock
tmp
nbproject
pkg
*.swp
spec/dummy
spec/examples.txt
/sandbox
.rvmrc
.ruby-version
.ruby-gemset
2 changes: 1 addition & 1 deletion .rspec
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
--format documentation
--color
--require spec_helper
75 changes: 75 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
require:
- solidus_dev_support/rubocop

AllCops:
NewCops: disable

Layout/FirstArgumentIndentation:
EnforcedStyle: consistent

Layout/FirstArrayElementIndentation:
EnforcedStyle: consistent

Layout/FirstHashElementIndentation:
EnforcedStyle: consistent

Layout/MultilineMethodCallIndentation:
EnforcedStyle: indented

Naming/VariableNumber:
Enabled: false

# We use this extensively, the alternatives are not viable or desirable.
RSpec/AnyInstance:
Enabled: false

# No need to make the code more complex for no real gain.
RSpec/MessageSpies:
Enabled: false

# Let's consider legitimate to have multiple expectations within an example.
RSpec/MultipleExpectations:
Enabled: false

# Allow to use subject as is, no big deal.
RSpec/NamedSubject:
Enabled: false

# Let's set this to some really exagerate value.
RSpec/NestedGroups:
Max: 8

# We don't use the FactoryBot mixin
RSpec/FactoryBot/SyntaxMethods:
Enabled: false

RSpec/VerifiedDoubles:
# Sometimes you really need an "anything" double
IgnoreSymbolicNames: true

Style/FrozenStringLiteralComment:
Exclude:
- spec/**/*
- db/migrate/**/*
- bin/**/*

Style/ExplicitBlockArgument:
Exclude:
- lib/solidus_paypal_braintree/request_protection.rb

Rails/SkipsModelValidations:
Exclude:
- db/migrate/**/*

Rails/ReflectionClassName:
Exclude:
- app/models/solidus_paypal_braintree/customer.rb
- app/models/solidus_paypal_braintree/source.rb

RSpec/MultipleMemoizedHelpers:
Exclude:
- spec/models/solidus_paypal_braintree/transaction_import_spec.rb
- spec/models/solidus_paypal_braintree/response_spec.rb
- spec/models/solidus_paypal_braintree/gateway_spec.rb
- spec/controllers/solidus_paypal_braintree/client_tokens_controller_spec.rb
- spec/features/frontend/braintree_credit_card_checkout_spec.rb
364 changes: 346 additions & 18 deletions CHANGELOG.md

Large diffs are not rendered by default.

52 changes: 30 additions & 22 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,34 +1,42 @@
source "https://rubygems.org"
# frozen_string_literal: true

source 'https://rubygems.org'
git_source(:github) { |repo| "https://github.com/#{repo}.git" }

branch = ENV.fetch('SOLIDUS_BRANCH', 'master')
solidus_git, solidus_frontend_git = if (branch == 'master') || (branch >= 'v3.2')
%w[solidusio/solidus solidusio/solidus_frontend]
else
%w[solidusio/solidus] * 2
end
gem 'solidus', github: solidus_git, branch: branch
gem 'solidus_frontend', github: solidus_frontend_git, branch: branch
gem 'solidus', github: 'solidusio/solidus', branch: branch

# The solidus_frontend gem has been pulled out since v3.2
gem 'solidus_frontend', github: 'solidusio/solidus_frontend' if branch == 'master'
gem 'solidus_frontend' if branch >= 'v3.2' # rubocop:disable Bundler/DuplicatedGem

# Needed to help Bundler figure out how to resolve dependencies,
# otherwise it takes forever to resolve them
if branch == 'master' || Gem::Version.new(branch[1..-1]) >= Gem::Version.new('2.10.0')
gem 'rails', '~> 6.0'
else
gem 'rails', '~> 5.0'
end
# otherwise it takes forever to resolve them.
# See https://github.com/bundler/bundler/issues/6677
gem 'rails', '>0.a'

# Provides basic authentication functionality for testing parts of your engine
gem 'solidus_auth_devise'

case ENV['DB']
case ENV.fetch('DB', nil)
when 'mysql'
gem 'mysql2'
when 'postgres'
when 'postgresql'
gem 'pg'
else
gem 'sqlite3'
end

gem "rails-controller-testing", group: :test

group :development, :test do
gem 'factory_bot', '> 4.10.0'
gem "pry-rails"
end
# While we still support Ruby < 3 we need to workaround a limitation in
# the 'async' gem that relies on the latest ruby, since RubyGems doesn't
# resolve gems based on the required ruby version.
gem 'async', '< 3' if Gem::Version.new(RUBY_VERSION) < Gem::Version.new('3')

gemspec

# Use a local Gemfile to include development dependencies that might not be
# relevant for the project or for other contributors, e.g. pry-byebug.
#
# We use `send` instead of calling `eval_gemfile` to work around an issue with
# how Dependabot parses projects: https://github.com/dependabot/dependabot-core/issues/1658.
send(:eval_gemfile, 'Gemfile-local') if File.exist? 'Gemfile-local'
26 changes: 26 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
Copyright (c) 2016-2020 Stembolt and other contributors
All rights reserved.

Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:

* Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
* Neither the name Solidus nor the names of its contributors may be used to
endorse or promote products derived from this software without specific
prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
21 changes: 0 additions & 21 deletions LICENSE.txt

This file was deleted.

Loading