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

Remove wirecard and update upstream, ex_money #170

Merged
merged 1 commit into from
Jun 6, 2018
Merged

Remove wirecard and update upstream, ex_money #170

merged 1 commit into from
Jun 6, 2018

Conversation

oyeb
Copy link
Contributor

@oyeb oyeb commented Jun 5, 2018

This is a major step towards v1.1.1 🎉
See the milestone for more.

Money protocol

  • ExMoney now implements the Gringotts.Money protocol so we don't need to implement it for them (Test ex_money support of Gringotts.Money protocol #169).
  • Moreover, we no longer need to keep ex_money in our deps!
    • So we introduced a FakeMoney struct that is available in test env. Since it implements the protocol as well, it is useful in tests (all tests have been updated because of this).

Misc

Updated upstream dependencies, changed credo settings.
Travis now builds on Elixir versions: 1.5.3 and 1.6.5

Cleanups

  1. Wirecard module was in no shape to be used and does not meet the standard for this library and is hence removed. Given that it was unusable, there is no need to provide any deprecation period.
  2. Remove annoying compile-time warnings (most from the wirecard module).

@oyeb oyeb added this to the 1.1.1 milestone Jun 5, 2018
@oyeb oyeb self-assigned this Jun 5, 2018
@codecov-io
Copy link

codecov-io commented Jun 5, 2018

Codecov Report

Merging #170 into dev will increase coverage by 10.51%.
The diff coverage is 77.77%.

Impacted file tree graph

@@             Coverage Diff             @@
##              dev     #170       +/-   ##
===========================================
+ Coverage   66.82%   77.33%   +10.51%     
===========================================
  Files          14       14               
  Lines         434      375       -59     
===========================================
  Hits          290      290               
+ Misses        144       85       -59
Impacted Files Coverage Δ
lib/gringotts/gateways/global_collect.ex 100% <ø> (ø) ⬆️
lib/gringotts.ex 100% <ø> (ø) ⬆️
lib/gringotts/gateways/cams.ex 93.75% <ø> (ø) ⬆️
lib/gringotts/gateways/trexle.ex 100% <ø> (ø) ⬆️
lib/gringotts/gateways/monei.ex 97.95% <ø> (ø) ⬆️
lib/gringotts/money.ex 0% <ø> (-70%) ⬇️
lib/gringotts/gateways/authorize_net.ex 97.56% <ø> (ø) ⬆️
lib/gringotts/gateways/paymill.ex 100% <ø> (ø) ⬆️
lib/gringotts/gateways/stripe.ex 0% <0%> (ø) ⬆️
test/support/fake_money.ex 87.5% <87.5%> (ø)
... and 1 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 21c5517...e961c1e. Read the comment docs.

* Remove implementation of protocol for ex_money, monetized
  - ex_money 2.6.0 implements it for us.
  - Remove ex_money from deps and tests

Added a `Gringotts.FakeMoney` a struct that implements the protocol in
the test env. This struct is meant to be used only in tests.

* Update upstream deps
* Update the changelog for 1.1.1-rc
* Update travis config (elixir 1.6.3 -> 1.6.5)

Closes #54, #104 and #106 as we remove wire_card.
Closes #169
@oyeb oyeb merged commit 2fca824 into dev Jun 6, 2018
oyeb added a commit that referenced this pull request Jun 6, 2018
* Remove wire_card and fix docs (#170)
* Remove implementation of protocol for ex_money, monetized
  - ex_money 2.6.0 implements it for us.
  - Remove ex_money from deps and tests

Added a `Gringotts.FakeMoney` a struct that implements the protocol in
the test env. This struct is meant to be used only in tests.

* Update upstream deps
* Update the changelog for 1.1.1-rc
* Update travis config (elixir 1.6.3 -> 1.6.5)

Closes #54, #104 and #106 as we remove wire_card.
Closes #169
oyeb added a commit that referenced this pull request Jun 6, 2018
* Remove wire_card and fix docs (#170)
* Remove implementation of protocol for ex_money, monetized
  - ex_money 2.6.0 implements it for us.
  - Remove ex_money from deps and tests

Added a `Gringotts.FakeMoney` a struct that implements the protocol in
the test env. This struct is meant to be used only in tests.

* Update upstream deps
* Update the changelog for 1.1.1-rc
* Update travis config (elixir 1.6.3 -> 1.6.5)

Closes #54, #104 and #106 as we remove wire_card.
Closes #169
oyeb added a commit that referenced this pull request Jun 8, 2018
* Remove wire_card and fix docs (#170)
* Remove implementation of protocol for ex_money, monetized
  - ex_money 2.6.0 implements it for us.
  - Remove ex_money from deps and tests

Added a `Gringotts.FakeMoney` a struct that implements the protocol in
the test env. This struct is meant to be used only in tests.

* Update upstream deps
* Update the changelog for 1.1.1-rc
* Update travis config (elixir 1.6.3 -> 1.6.5)

Closes #54, #104 and #106 as we remove wire_card.
Closes #169
vikramjadon921995 pushed a commit to vikramjadon921995/gringotts that referenced this pull request Jun 28, 2018
* Remove wire_card and fix docs (aviabird#170)
* Remove implementation of protocol for ex_money, monetized
  - ex_money 2.6.0 implements it for us.
  - Remove ex_money from deps and tests

Added a `Gringotts.FakeMoney` a struct that implements the protocol in
the test env. This struct is meant to be used only in tests.

* Update upstream deps
* Update the changelog for 1.1.1-rc
* Update travis config (elixir 1.6.3 -> 1.6.5)

Closes aviabird#54, aviabird#104 and aviabird#106 as we remove wire_card.
Closes aviabird#169
@pkrawat1 pkrawat1 deleted the 1.1.1-rc branch May 6, 2022 01:20
@pkrawat1 pkrawat1 restored the 1.1.1-rc branch May 6, 2022 01:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants