solidus_stripe 4.4.0 → 5.0.0.alpha.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (153) hide show
  1. checksums.yaml +4 -4
  2. data/.circleci/config.yml +95 -41
  3. data/.gitignore +3 -0
  4. data/.rubocop.yml +94 -4
  5. data/.yardopts +1 -0
  6. data/CHANGELOG.md +1 -265
  7. data/Gemfile +10 -30
  8. data/LICENSE +2 -2
  9. data/Procfile.dev +3 -0
  10. data/README.md +145 -215
  11. data/Rakefile +7 -6
  12. data/app/assets/javascripts/spree/backend/solidus_stripe.js +2 -0
  13. data/app/assets/stylesheets/spree/backend/solidus_stripe.css +4 -0
  14. data/app/controllers/solidus_stripe/intents_controller.rb +36 -52
  15. data/app/controllers/solidus_stripe/webhooks_controller.rb +28 -0
  16. data/app/models/concerns/solidus_stripe/log_entries.rb +31 -0
  17. data/app/models/solidus_stripe/customer.rb +21 -0
  18. data/app/models/solidus_stripe/gateway.rb +231 -0
  19. data/app/models/solidus_stripe/payment_intent.rb +111 -0
  20. data/app/models/solidus_stripe/payment_method.rb +106 -0
  21. data/app/models/solidus_stripe/payment_source.rb +31 -0
  22. data/app/models/solidus_stripe/slug_entry.rb +20 -0
  23. data/app/models/solidus_stripe.rb +7 -0
  24. data/app/subscribers/solidus_stripe/webhook/charge_subscriber.rb +28 -0
  25. data/app/subscribers/solidus_stripe/webhook/payment_intent_subscriber.rb +112 -0
  26. data/app/views/spree/admin/payments/source_forms/_stripe.html.erb +29 -0
  27. data/app/views/spree/admin/payments/source_forms/existing_payment/_stripe.html.erb +14 -0
  28. data/app/views/spree/admin/payments/source_forms/existing_payment/stripe/_card.html.erb +8 -0
  29. data/app/views/spree/admin/payments/source_forms/existing_payment/stripe/_default.html.erb +7 -0
  30. data/app/views/spree/admin/payments/source_views/_stripe.html.erb +15 -0
  31. data/app/views/spree/api/payments/source_views/_stripe.json.jbuilder +8 -0
  32. data/bin/dev +13 -0
  33. data/bin/dummy-app +29 -0
  34. data/bin/rails +38 -3
  35. data/bin/rails-dummy-app +3 -0
  36. data/bin/rails-engine +1 -11
  37. data/bin/rails-new +55 -0
  38. data/bin/rails-sandbox +1 -14
  39. data/bin/rspec +10 -0
  40. data/bin/sandbox +12 -74
  41. data/bin/setup +1 -0
  42. data/bin/update-migrations +56 -0
  43. data/codecov.yml +12 -0
  44. data/config/locales/en.yml +16 -1
  45. data/config/routes.rb +5 -11
  46. data/coverage.rb +42 -0
  47. data/db/migrate/20230109183332_create_solidus_stripe_payment_sources.rb +10 -0
  48. data/db/migrate/20230303154931_create_solidus_stripe_setup_intent.rb +10 -0
  49. data/db/migrate/20230306105520_create_solidus_stripe_payment_intents.rb +10 -0
  50. data/db/migrate/20230308122414_create_solidus_stripe_webhook_endpoints.rb +10 -0
  51. data/db/migrate/20230310152615_add_payment_method_reference_to_stripe_intents.rb +6 -0
  52. data/db/migrate/20230310171444_normalize_stripe_intent_id_attributes.rb +6 -0
  53. data/db/migrate/20230313150008_create_solidus_stripe_customers.rb +16 -0
  54. data/db/migrate/20230323154931_drop_solidus_stripe_setup_intent.rb +13 -0
  55. data/db/migrate/20230403094916_rename_webhook_endpoint_to_payment_method_slug_entries.rb +5 -0
  56. data/db/seeds.rb +6 -24
  57. data/lib/generators/solidus_stripe/install/install_generator.rb +121 -14
  58. data/lib/generators/solidus_stripe/install/templates/app/assets/stylesheets/spree/frontend/solidus_stripe.css +13 -0
  59. data/lib/generators/solidus_stripe/install/templates/app/javascript/controllers/solidus_stripe_confirm_controller.js +39 -0
  60. data/lib/generators/solidus_stripe/install/templates/app/javascript/controllers/solidus_stripe_payment_controller.js +89 -0
  61. data/lib/generators/solidus_stripe/install/templates/app/views/checkouts/existing_payment/_stripe.html.erb +16 -0
  62. data/lib/generators/solidus_stripe/install/templates/app/views/checkouts/existing_payment/stripe/_card.html.erb +8 -0
  63. data/lib/generators/solidus_stripe/install/templates/app/views/checkouts/existing_payment/stripe/_default.html.erb +7 -0
  64. data/lib/generators/solidus_stripe/install/templates/app/views/checkouts/payment/_stripe.html.erb +39 -0
  65. data/lib/generators/solidus_stripe/install/templates/app/views/orders/payment_info/_stripe.html.erb +20 -0
  66. data/lib/generators/solidus_stripe/install/templates/config/initializers/solidus_stripe.rb +31 -0
  67. data/lib/solidus_stripe/configuration.rb +24 -3
  68. data/lib/solidus_stripe/engine.rb +19 -6
  69. data/lib/solidus_stripe/money_to_stripe_amount_converter.rb +109 -0
  70. data/lib/solidus_stripe/refunds_synchronizer.rb +96 -0
  71. data/lib/solidus_stripe/seeds.rb +19 -0
  72. data/lib/solidus_stripe/testing_support/factories.rb +153 -0
  73. data/lib/solidus_stripe/version.rb +1 -1
  74. data/lib/solidus_stripe/webhook/event.rb +90 -0
  75. data/lib/solidus_stripe.rb +0 -2
  76. data/solidus_stripe.gemspec +29 -6
  77. data/spec/lib/solidus_stripe/configuration_spec.rb +21 -0
  78. data/spec/lib/solidus_stripe/money_to_stripe_amount_converter_spec.rb +133 -0
  79. data/spec/lib/solidus_stripe/refunds_synchronizer_spec.rb +238 -0
  80. data/spec/lib/solidus_stripe/seeds_spec.rb +43 -0
  81. data/spec/lib/solidus_stripe/webhook/event_spec.rb +134 -0
  82. data/spec/models/concerns/solidus_stripe/log_entries_spec.rb +54 -0
  83. data/spec/models/solidus_stripe/customer_spec.rb +47 -0
  84. data/spec/models/solidus_stripe/gateway_spec.rb +283 -0
  85. data/spec/models/solidus_stripe/payment_intent_spec.rb +17 -0
  86. data/spec/models/solidus_stripe/payment_method_spec.rb +137 -0
  87. data/spec/models/solidus_stripe/payment_source_spec.rb +25 -0
  88. data/spec/requests/solidus_stripe/intents_controller_spec.rb +29 -0
  89. data/spec/requests/solidus_stripe/webhooks_controller/charge/refunded_spec.rb +31 -0
  90. data/spec/requests/solidus_stripe/webhooks_controller/payment_intent/canceled_spec.rb +23 -0
  91. data/spec/requests/solidus_stripe/webhooks_controller/payment_intent/payment_failed_spec.rb +23 -0
  92. data/spec/requests/solidus_stripe/webhooks_controller/payment_intent/succeeded_spec.rb +29 -0
  93. data/spec/requests/solidus_stripe/webhooks_controller_spec.rb +52 -0
  94. data/spec/solidus_stripe_spec_helper.rb +10 -0
  95. data/spec/subscribers/solidus_stripe/webhook/charge_subscriber_spec.rb +33 -0
  96. data/spec/subscribers/solidus_stripe/webhook/payment_intent_subscriber_spec.rb +297 -0
  97. data/spec/support/solidus_stripe/backend_test_helper.rb +210 -0
  98. data/spec/support/solidus_stripe/checkout_test_helper.rb +339 -0
  99. data/spec/support/solidus_stripe/factories.rb +5 -0
  100. data/spec/support/solidus_stripe/webhook/data_fixtures.rb +106 -0
  101. data/spec/support/solidus_stripe/webhook/event_with_context_factory.rb +82 -0
  102. data/spec/support/solidus_stripe/webhook/request_helper.rb +32 -0
  103. data/spec/system/backend/solidus_stripe/orders/payments_spec.rb +119 -0
  104. data/spec/system/frontend/.keep +0 -0
  105. data/spec/system/frontend/solidus_stripe/checkout_spec.rb +187 -0
  106. data/tmp/.keep +0 -0
  107. metadata +201 -75
  108. data/.rubocop_todo.yml +0 -298
  109. data/.travis.yml +0 -28
  110. data/app/assets/javascripts/spree/frontend/solidus_stripe/stripe-cart-page-checkout.js +0 -122
  111. data/app/assets/javascripts/spree/frontend/solidus_stripe/stripe-elements.js +0 -148
  112. data/app/assets/javascripts/spree/frontend/solidus_stripe/stripe-init.js +0 -20
  113. data/app/assets/javascripts/spree/frontend/solidus_stripe/stripe-payment-intents.js +0 -84
  114. data/app/assets/javascripts/spree/frontend/solidus_stripe/stripe-payment-request-button-shared.js +0 -160
  115. data/app/assets/javascripts/spree/frontend/solidus_stripe/stripe-payment.js +0 -16
  116. data/app/assets/javascripts/spree/frontend/solidus_stripe.js +0 -6
  117. data/app/controllers/solidus_stripe/payment_request_controller.rb +0 -52
  118. data/app/controllers/spree/stripe_controller.rb +0 -13
  119. data/app/decorators/models/spree/order_update_attributes_decorator.rb +0 -39
  120. data/app/decorators/models/spree/payment_decorator.rb +0 -11
  121. data/app/decorators/models/spree/refund_decorator.rb +0 -9
  122. data/app/models/solidus_stripe/address_from_params_service.rb +0 -72
  123. data/app/models/solidus_stripe/create_intents_payment_service.rb +0 -114
  124. data/app/models/solidus_stripe/prepare_order_for_payment_service.rb +0 -46
  125. data/app/models/solidus_stripe/shipping_rates_service.rb +0 -46
  126. data/app/models/spree/payment_method/stripe_credit_card.rb +0 -230
  127. data/bin/r +0 -13
  128. data/bin/sandbox_rails +0 -18
  129. data/db/migrate/20181010123508_update_stripe_payment_method_type_to_credit_card.rb +0 -21
  130. data/lib/assets/stylesheets/spree/frontend/solidus_stripe.scss +0 -11
  131. data/lib/solidus_stripe/testing_support/card_input_helper.rb +0 -34
  132. data/lib/tasks/solidus_stripe/db/seed.rake +0 -14
  133. data/lib/views/api/spree/api/payments/source_views/_stripe.json.jbuilder +0 -3
  134. data/lib/views/backend/spree/admin/log_entries/_stripe.html.erb +0 -28
  135. data/lib/views/backend/spree/admin/payments/source_forms/_stripe.html.erb +0 -1
  136. data/lib/views/backend/spree/admin/payments/source_views/_stripe.html.erb +0 -1
  137. data/lib/views/frontend/spree/checkout/existing_payment/_stripe.html.erb +0 -1
  138. data/lib/views/frontend/spree/checkout/payment/_stripe.html.erb +0 -8
  139. data/lib/views/frontend/spree/checkout/payment/v2/_javascript.html.erb +0 -78
  140. data/lib/views/frontend/spree/checkout/payment/v3/_elements.html.erb +0 -1
  141. data/lib/views/frontend/spree/checkout/payment/v3/_form_elements.html.erb +0 -40
  142. data/lib/views/frontend/spree/checkout/payment/v3/_intents.html.erb +0 -1
  143. data/lib/views/frontend/spree/checkout/payment/v3/_stripe.html.erb +0 -2
  144. data/lib/views/frontend/spree/orders/_stripe_payment_request_button.html.erb +0 -14
  145. data/spec/features/stripe_checkout_spec.rb +0 -486
  146. data/spec/models/solidus_stripe/address_from_params_service_spec.rb +0 -87
  147. data/spec/models/solidus_stripe/create_intents_payment_service_spec.rb +0 -127
  148. data/spec/models/solidus_stripe/prepare_order_for_payment_service_spec.rb +0 -65
  149. data/spec/models/solidus_stripe/shipping_rates_service_spec.rb +0 -54
  150. data/spec/models/spree/payment_method/stripe_credit_card_spec.rb +0 -350
  151. data/spec/requests/payment_requests_spec.rb +0 -152
  152. data/spec/spec_helper.rb +0 -37
  153. data/spec/support/solidus_address_helper.rb +0 -15
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ae346073816f937b18888261522168542afadcd9d00ab6350045707b8b11a380
4
- data.tar.gz: 0fd2b4a1f79a3b50eb4c272fac0baeff4aa0a222ba98bf6d12c0d9d1910d1cc1
3
+ metadata.gz: 58adb3a4786a07b4728a38452a8b45389e4947078a6696c421e66d9202bec935
4
+ data.tar.gz: ceb39ec60811d59e8544cef740d470b41fdfa2b7dad668c557e5f7a55622536c
5
5
  SHA512:
6
- metadata.gz: 7b744e67e2a22c606ce93d666750a810c09dd85d0d038a119445e7bd40faad6edda4ec68a741325e42cc97a334f3c10c5d742b61aeaf9e01911ad21e40412fed
7
- data.tar.gz: ece237b20f84ad66a2688585de53bdaed4adf17317dd86c35d0788290a0221de22961283cf912b27da118400369d0634d45a768d2400f99a111458b38eb8c958
6
+ metadata.gz: c2964495f7edeab038c993972069bd72788b7c978a738889277eecfe2c688c62a124e25e9b511d483ee6df67accb33d0bdb311f718cb97d883a6f9bd306de09e
7
+ data.tar.gz: 24547d5de71774cfdb1c82b955118067f9abb27a472a2d0d767ed5d21a12f997d5e60cdef3ebbe0298bb2916ec789d850a80bb3d9fd3d1310941d4c7b26be7b5
data/.circleci/config.yml CHANGED
@@ -1,8 +1,8 @@
1
1
  version: 2.1
2
2
 
3
3
  orbs:
4
- # Required for feature specs.
5
4
  browser-tools: circleci/browser-tools@1.1
5
+ codecov: codecov/codecov@3.2.4
6
6
 
7
7
  # Always take the latest version of the orb, this allows us to
8
8
  # run specs against Solidus supported versions only without the need
@@ -10,52 +10,106 @@ orbs:
10
10
  # or goes EOL.
11
11
  solidusio_extensions: solidusio/extensions@volatile
12
12
 
13
- executors:
14
- sqlite:
15
- description: Run specs with an SQLite
16
- docker:
17
- - image: cimg/ruby:2.7-browsers
18
- environment:
19
- RAILS_ENV: test
20
- DB: sqlite
21
-
22
13
  jobs:
23
- run-specs-with-postgres:
24
- executor: solidusio_extensions/postgres
25
- steps:
26
- - browser-tools/install-chrome
27
- - solidusio_extensions/run-tests
28
- run-specs-with-mysql:
29
- executor: solidusio_extensions/mysql
14
+ run-specs:
15
+ parameters:
16
+ database:
17
+ type: string
18
+ default: postgres
19
+ ruby:
20
+ type: string
21
+ default: "3.2"
22
+ coverage:
23
+ type: boolean
24
+ default: false
25
+ executor:
26
+ name: solidusio_extensions/<< parameters.database >>
27
+ ruby_version: << parameters.ruby >>
30
28
  steps:
29
+ - checkout
31
30
  - browser-tools/install-chrome
32
- - solidusio_extensions/run-tests
33
- run-specs-with-sqlite:
34
- executor: sqlite
35
- steps:
36
- - browser-tools/install-chrome
37
- - solidusio_extensions/run-tests
31
+ - run:
32
+ name: Install libvips
33
+ command: |
34
+ sudo apt-get update
35
+ sudo apt-get install -yq libvips-dev
36
+ - run:
37
+ name: "Update Rubygems"
38
+ command: |
39
+ sudo gem update --system --no-document
40
+ gem install bundler --no-document
41
+ gem environment path
42
+ - run:
43
+ name: "Store tool versions"
44
+ command: |
45
+ rm -rf /tmp/.tool-versions
46
+ ruby -v >> /tmp/.tool-versions
47
+ gem search -eq rails >> /tmp/.tool-versions # get the latest rails from rubygems
48
+ gem search -eq solidus >> /tmp/.tool-versions # get the latest solidus from rubygems
49
+ cat /tmp/.tool-versions
50
+ - restore_cache:
51
+ keys:
52
+ - solidus-stripe-gems-v1-{{ checksum "/tmp/.tool-versions" }}
53
+ - solidus-stripe-gems-v1-
54
+ - run:
55
+ name: "Install gems"
56
+ command: |
57
+ bundle install
58
+ - run:
59
+ name: "Install dummy app"
60
+ command: |
61
+ <<#parameters.coverage>>export COVERAGE=true<</parameters.coverage>>
62
+ bin/dummy-app
63
+ environment:
64
+ FRONTEND: starter
65
+ SOLIDUS_BRANCH: master
66
+ - save_cache:
67
+ key: solidus-stripe-gems-v1-{{ checksum "/tmp/.tool-versions" }}
68
+ paths:
69
+ - /home/circleci/.rubygems
70
+ - run:
71
+ name: "Runs specs"
72
+ command: |
73
+ <<#parameters.coverage>>export COVERAGE=true<</parameters.coverage>>
74
+ bin/rspec --format progress --format RspecJunitFormatter --out "$PWD/test-results/results.xml"
75
+ - when:
76
+ condition: <<parameters.coverage>>
77
+ steps: ["codecov/upload"]
78
+ path: test-results
79
+ - store_artifacts:
80
+ path: /home/circleci/project/dummy-app/tmp/capybara/
81
+ destination: capybara
82
+ - store_artifacts:
83
+ path: /home/circleci/project/coverage/
84
+ destination: coverage
38
85
  lint-code:
39
- executor: solidusio_extensions/sqlite-memory
86
+ parameters:
87
+ ruby:
88
+ type: string
89
+ default: "3.2"
90
+ executor:
91
+ name: solidusio_extensions/sqlite-memory
92
+ ruby_version: << parameters.ruby >>
40
93
  steps:
41
94
  - solidusio_extensions/lint-code
95
+ - run:
96
+ name: Generate documentation
97
+ command: |
98
+ bundle exec yardoc
99
+ - store_artifacts:
100
+ path: /home/circleci/project/doc
101
+ destination: doc
42
102
 
43
103
  workflows:
44
- "Run specs on supported Solidus versions":
45
- jobs:
46
- - run-specs-with-postgres
47
- - run-specs-with-mysql
48
- - run-specs-with-sqlite
49
- - lint-code
50
-
51
- "Weekly run specs against master":
52
- triggers:
53
- - schedule:
54
- cron: "0 0 * * 4" # every Thursday
55
- filters:
56
- branches:
57
- only:
58
- - master
104
+ build:
59
105
  jobs:
60
- - run-specs-with-postgres
61
- - run-specs-with-mysql
106
+ - run-specs:
107
+ name: "run-specs-ruby-<<matrix.ruby>>-db-<<matrix.database>>"
108
+ context: stripe-test-credentials
109
+ matrix:
110
+ parameters:
111
+ ruby: ["3.2"] # TODO: ['3.2', '3.1', '3.0']
112
+ database: ["sqlite"] # TODO: ['mysql', 'sqlite', 'postgres']
113
+ coverage: [true]
114
+ - lint-code:
115
+ ruby: "3.0"
data/.gitignore CHANGED
@@ -6,6 +6,7 @@
6
6
  .idea
7
7
  .project
8
8
  .sass-cache
9
+ .yardoc
9
10
  coverage
10
11
  Gemfile.lock
11
12
  tmp
@@ -15,6 +16,8 @@ pkg
15
16
  spec/dummy
16
17
  spec/examples.txt
17
18
  /sandbox
19
+ /dummy-app
20
+ /doc
18
21
  .rvmrc
19
22
  .ruby-version
20
23
  .ruby-gemset
data/.rubocop.yml CHANGED
@@ -1,7 +1,97 @@
1
- inherit_from: .rubocop_todo.yml
2
-
3
- require:
4
- - solidus_dev_support/rubocop
1
+ require: ["rubocop-rspec", "rubocop-rails", "rubocop-performance"]
5
2
 
6
3
  AllCops:
7
4
  NewCops: disable
5
+ TargetRubyVersion: '3.0'
6
+ Exclude:
7
+ - vendor/**/*
8
+ - sandbox/**/*
9
+ - dummy-app/**/*
10
+ - spec/dummy/**/*
11
+
12
+ Layout/ArgumentAlignment: {EnforcedStyle: with_fixed_indentation}
13
+ Layout/DotPosition: {Enabled: false, StyleGuide: "https://relaxed.ruby.style/#layoutdotposition"}
14
+ Layout/EmptyLinesAroundAttributeAccessor: {Enabled: true}
15
+ Layout/FirstArgumentIndentation: {EnforcedStyle: "consistent"}
16
+ Layout/FirstArrayElementIndentation: {EnforcedStyle: "consistent"}
17
+ Layout/LineLength: {Enabled: true, Max: 120, Exclude: [ "db/migrate/**/*" ]}
18
+ Layout/MultilineMethodCallIndentation: {EnforcedStyle: indented} # Gain space by indenting from the start of the line, instead of the end of the method name.
19
+ Layout/MultilineOperationIndentation: {Enabled: false}
20
+ Layout/SpaceAroundMethodCallOperator: {Enabled: true}
21
+ Layout/SpaceBeforeBlockBraces: {Enabled: false, StyleGuide: "https://relaxed.ruby.style/#layoutspacebeforeblockbraces"}
22
+ Layout/SpaceInsideParens: {Enabled: false, StyleGuide: "https://relaxed.ruby.style/#layoutspaceinsideparens"}
23
+ Lint/AmbiguousRegexpLiteral: {Enabled: false, StyleGuide: "https://relaxed.ruby.style/#lintambiguousregexpliteral"}
24
+ Lint/AssignmentInCondition: {Enabled: false, StyleGuide: "https://relaxed.ruby.style/#lintassignmentincondition"}
25
+ Lint/DeprecatedOpenSSLConstant: {Enabled: true}
26
+ Lint/MixedRegexpCaptureTypes: {Enabled: true}
27
+ Lint/RaiseException: {Enabled: true}
28
+ Lint/StructNewOverride: {Enabled: true}
29
+ Metrics/AbcSize: {Enabled: false}
30
+ Metrics/BlockLength: {Enabled: false}
31
+ Metrics/BlockNesting: {Enabled: false}
32
+ Metrics/ClassLength: {Enabled: false}
33
+ Metrics/CyclomaticComplexity: {Enabled: false}
34
+ Metrics/MethodLength: {Enabled: false}
35
+ Metrics/ModuleLength: {Enabled: false}
36
+ Metrics/ParameterLists: {Enabled: false}
37
+ Metrics/PerceivedComplexity: {Enabled: false}
38
+ Performance/AncestorsInclude: {Enabled: true}
39
+ Performance/BigDecimalWithNumericArgument: {Enabled: true}
40
+ Performance/RedundantSortBlock: {Enabled: true}
41
+ Performance/RedundantStringChars: {Enabled: true}
42
+ Performance/ReverseFirst: {Enabled: true}
43
+ Performance/SortReverse: {Enabled: true}
44
+ Performance/Squeeze: {Enabled: true}
45
+ Performance/StringInclude: {Enabled: true}
46
+ Rails/NotNullColumn: {Exclude: ["db/migrate/20230310152615_add_payment_method_reference_to_stripe_intents.rb"]}
47
+ Rails/SkipsModelValidations: {Exclude: ["spec/**/*"]}
48
+ RSpec/DescribeClass: {Exclude: ["spec/features/**/*", "spec/system/**/*", "spec/system/**/*"]} # Feature/System specs are not describing any class or module.
49
+ RSpec/ExampleLength: {Enabled: false}
50
+ RSpec/FilePath: {Exclude: ["spec/requests/solidus_stripe/webhooks_controller/**/*"]}
51
+ RSpec/MultipleExpectations: {Enabled: false} # More is more.
52
+ Style/AccessorGrouping: {Enabled: true}
53
+ Style/Alias: {Enabled: false, StyleGuide: "https://relaxed.ruby.style/#stylealias"}
54
+ Style/AsciiComments: {Enabled: false, StyleGuide: "https://relaxed.ruby.style/#styleasciicomments"}
55
+ Style/BeginBlock: {Enabled: false, StyleGuide: "https://relaxed.ruby.style/#stylebeginblock"}
56
+ Style/BisectedAttrAccessor: {Enabled: true}
57
+ Style/BlockDelimiters: {Enabled: false, StyleGuide: "https://relaxed.ruby.style/#styleblockdelimiters"}
58
+ Style/ClassAndModuleChildren: {Enabled: false} # Avoiding the nested namespaces can avoid some ambiguities, forcing full references. Also saves horizontal space.
59
+ Style/CommentAnnotation: {Enabled: false, StyleGuide: "https://relaxed.ruby.style/#stylecommentannotation"}
60
+ Style/Documentation: {Enabled: false, StyleGuide: "https://relaxed.ruby.style/#styledocumentation"}
61
+ Style/DoubleNegation: {Enabled: false, StyleGuide: "https://relaxed.ruby.style/#styledoublenegation"}
62
+ Style/EndBlock: {Enabled: false, StyleGuide: "https://relaxed.ruby.style/#styleendblock"}
63
+ Style/ExponentialNotation: {Enabled: true}
64
+ Style/FormatString: {Enabled: false, StyleGuide: "https://relaxed.ruby.style/#styleformatstring"}
65
+ Style/FrozenStringLiteralComment: {Exclude: ["spec/**/*", "db/migrate/**/*", "bin/**/*"]}
66
+ Style/HashEachMethods: {Enabled: true}
67
+ Style/HashTransformKeys: {Enabled: true}
68
+ Style/HashTransformValues: {Enabled: true}
69
+ Style/IfUnlessModifier: {Enabled: false, StyleGuide: "https://relaxed.ruby.style/#styleifunlessmodifier"}
70
+ Style/Lambda: {Enabled: false, StyleGuide: "https://relaxed.ruby.style/#stylelambda"}
71
+ Style/ModuleFunction: {Enabled: false, StyleGuide: "https://relaxed.ruby.style/#stylemodulefunction"}
72
+ Style/MultilineBlockChain: {Enabled: false, StyleGuide: "https://relaxed.ruby.style/#stylemultilineblockchain"}
73
+ Style/MultilineTernaryOperator: {Enabled: false}
74
+ Style/NegatedIf: {Enabled: false, StyleGuide: "https://relaxed.ruby.style/#stylenegatedif"}
75
+ Style/NegatedWhile: {Enabled: false, StyleGuide: "https://relaxed.ruby.style/#stylenegatedwhile"}
76
+ Style/NumericPredicate: {Enabled: false, StyleGuide: "https://relaxed.ruby.style/#stylenumericpredicate"}
77
+ Style/ParallelAssignment: {Enabled: false, StyleGuide: "https://relaxed.ruby.style/#styleparallelassignment"}
78
+ Style/PercentLiteralDelimiters: {Enabled: false, StyleGuide: "https://relaxed.ruby.style/#stylepercentliteraldelimiters"}
79
+ Style/PerlBackrefs: {Enabled: false, StyleGuide: "https://relaxed.ruby.style/#styleperlbackrefs"}
80
+ Style/RedundantAssignment: {Enabled: true}
81
+ Style/RedundantFetchBlock: {Enabled: true}
82
+ Style/RedundantRegexpCharacterClass: {Enabled: true}
83
+ Style/RedundantRegexpEscape: {Enabled: true}
84
+ Style/Semicolon: {Enabled: false, StyleGuide: "https://relaxed.ruby.style/#stylesemicolon"}
85
+ Style/SignalException: {Enabled: false, StyleGuide: "https://relaxed.ruby.style/#stylesignalexception"}
86
+ Style/SingleLineBlockParams: {Enabled: false, StyleGuide: "https://relaxed.ruby.style/#stylesinglelineblockparams"}
87
+ Style/SingleLineMethods: {Enabled: false, StyleGuide: "https://relaxed.ruby.style/#stylesinglelinemethods"}
88
+ Style/SlicingWithRange: {Enabled: true}
89
+ Style/SpecialGlobalVars: {Enabled: false, StyleGuide: "https://relaxed.ruby.style/#stylespecialglobalvars"}
90
+ Style/StringLiterals: {Enabled: false, StyleGuide: "https://relaxed.ruby.style/#stylestringliterals"}
91
+ Style/SymbolArray: {Enabled: false, StyleGuide: "http://relaxed.ruby.style/#stylesymbolarray"}
92
+ Style/TrailingCommaInArguments: {Enabled: false, StyleGuide: "https://relaxed.ruby.style/#styletrailingcommainarguments"}
93
+ Style/TrailingCommaInArrayLiteral: {Enabled: false, StyleGuide: "https://relaxed.ruby.style/#styletrailingcommainarrayliteral"}
94
+ Style/TrailingCommaInHashLiteral: {Enabled: false, StyleGuide: "https://relaxed.ruby.style/#styletrailingcommainhashliteral"}
95
+ Style/TrailingUnderscoreVariable: {Enabled: false} # This was suggesting to use the dangling comma instead, which is super cryptic 🙈.
96
+ Style/WhileUntilModifier: {Enabled: false, StyleGuide: "https://relaxed.ruby.style/#stylewhileuntilmodifier"}
97
+ Style/WordArray: {Enabled: false, StyleGuide: "https://relaxed.ruby.style/#stylewordarray"}
data/.yardopts ADDED
@@ -0,0 +1 @@
1
+ {lib,app}/**/*.rb --fail-on-warning --markup markdown
data/CHANGELOG.md CHANGED
@@ -1,267 +1,3 @@
1
1
  # Changelog
2
2
 
3
- ## [v4.4.0](https://github.com/solidusio/solidus_stripe/tree/v4.4.0) (2022-12-19)
4
-
5
- [Full Changelog](https://github.com/solidusio/solidus_stripe/compare/v4.3.0...v4.4.0)
6
-
7
- **Fixed bugs:**
8
-
9
- - Test issue, please disregard [\#145](https://github.com/solidusio/solidus_stripe/issues/145)
10
- - Fix incorrect charge amount for currencies without fractions [\#138](https://github.com/solidusio/solidus_stripe/issues/138)
11
- - ActionView::MissingTemplate in Spree::Checkout\#edit [\#127](https://github.com/solidusio/solidus_stripe/issues/127)
12
-
13
- **Closed issues:**
14
-
15
- - RFC: Overhauling solidus\_stripe [\#135](https://github.com/solidusio/solidus_stripe/issues/135)
16
- - Initializer fails with uninitialized constant Spree::PaymentMethod [\#133](https://github.com/solidusio/solidus_stripe/issues/133)
17
- - How to pass zip code when add a Credit Card [\#132](https://github.com/solidusio/solidus_stripe/issues/132)
18
- - Undefined method `cvv\_path' [\#130](https://github.com/solidusio/solidus_stripe/issues/130)
19
- - Javascript don't working after solidus\_stripe installation [\#126](https://github.com/solidusio/solidus_stripe/issues/126)
20
- - Facing dependency issue after upgrade solidus 3 [\#114](https://github.com/solidusio/solidus_stripe/issues/114)
21
- - New release for solidus 3 [\#113](https://github.com/solidusio/solidus_stripe/issues/113)
22
- - How to specify API version [\#93](https://github.com/solidusio/solidus_stripe/issues/93)
23
- - Consistency between README and Wiki [\#67](https://github.com/solidusio/solidus_stripe/issues/67)
24
-
25
- **Merged pull requests:**
26
-
27
- - Fix adding a new customer card in admin [\#144](https://github.com/solidusio/solidus_stripe/pull/144) ([elia](https://github.com/elia))
28
- - Fix incorrect charge amount for currencies without fractions [\#139](https://github.com/solidusio/solidus_stripe/pull/139) ([cmbaldwin](https://github.com/cmbaldwin))
29
- - Fix setup instructions for Rails 7 [\#136](https://github.com/solidusio/solidus_stripe/pull/136) ([diegomichel](https://github.com/diegomichel))
30
- - Update stale bot to extend org-level config [\#134](https://github.com/solidusio/solidus_stripe/pull/134) ([gsmendoza](https://github.com/gsmendoza))
31
- - Revert "Add back custom view paths that were mistakenly removed" [\#129](https://github.com/solidusio/solidus_stripe/pull/129) ([elia](https://github.com/elia))
32
- - Add back custom view paths that were mistakenly removed [\#128](https://github.com/solidusio/solidus_stripe/pull/128) ([elia](https://github.com/elia))
33
- - Fix the CI after the Solidus v3.2 release [\#125](https://github.com/solidusio/solidus_stripe/pull/125) ([elia](https://github.com/elia))
34
- - Update to use forked solidus\_frontend when needed [\#124](https://github.com/solidusio/solidus_stripe/pull/124) ([waiting-for-dev](https://github.com/waiting-for-dev))
35
- - Fix CI and tests on Rails 7 [\#123](https://github.com/solidusio/solidus_stripe/pull/123) ([waiting-for-dev](https://github.com/waiting-for-dev))
36
-
37
- ## [v4.3.0](https://github.com/solidusio/solidus_stripe/tree/v4.3.0) (2021-10-19)
38
-
39
- [Full Changelog](https://github.com/solidusio/solidus_stripe/compare/v4.2.0...v4.3.0)
40
-
41
- **Implemented enhancements:**
42
-
43
- - Remove Solidus 2.x deprecation to allow 3.0 usage [\#99](https://github.com/solidusio/solidus_stripe/pull/99) ([kennyadsl](https://github.com/kennyadsl))
44
- - Update gem with the latest dev\_support [\#97](https://github.com/solidusio/solidus_stripe/pull/97) ([kennyadsl](https://github.com/kennyadsl))
45
-
46
- **Fixed bugs:**
47
-
48
- - Fix 3DS iframe selection [\#86](https://github.com/solidusio/solidus_stripe/pull/86) ([spaghetticode](https://github.com/spaghetticode))
49
-
50
- **Closed issues:**
51
-
52
- - Could not create payment [\#111](https://github.com/solidusio/solidus_stripe/issues/111)
53
- - statement\_descriptor\_suffix [\#107](https://github.com/solidusio/solidus_stripe/issues/107)
54
- - Shipping cost payment refund rejected from Stripe API because of negative charge value [\#101](https://github.com/solidusio/solidus_stripe/issues/101)
55
- - Remove Solidus 2.x deprecations [\#98](https://github.com/solidusio/solidus_stripe/issues/98)
56
- - about LICENSE [\#59](https://github.com/solidusio/solidus_stripe/issues/59)
57
-
58
- **Merged pull requests:**
59
-
60
- - Add statement\_descriptor\_suffix support to options\_for\_purchase\_or\_auth [\#106](https://github.com/solidusio/solidus_stripe/pull/106) ([torukMnk](https://github.com/torukMnk))
61
- - Update install instructions [\#105](https://github.com/solidusio/solidus_stripe/pull/105) ([kennyadsl](https://github.com/kennyadsl))
62
- - Allow Solidus 3 [\#104](https://github.com/solidusio/solidus_stripe/pull/104) ([kennyadsl](https://github.com/kennyadsl))
63
- - Bump minimum solidus\_support version requirement [\#102](https://github.com/solidusio/solidus_stripe/pull/102) ([filippoliverani](https://github.com/filippoliverani))
64
- - Relax Ruby required version to support Ruby 3.0+ [\#96](https://github.com/solidusio/solidus_stripe/pull/96) ([filippoliverani](https://github.com/filippoliverani))
65
- - Update refund\_decorator.rb prepend namespacing [\#91](https://github.com/solidusio/solidus_stripe/pull/91) ([brchristian](https://github.com/brchristian))
66
- - Retrieve phone number paying with digital wallets [\#90](https://github.com/solidusio/solidus_stripe/pull/90) ([kennyadsl](https://github.com/kennyadsl))
67
- - Fix Intents API link in README [\#87](https://github.com/solidusio/solidus_stripe/pull/87) ([kennyadsl](https://github.com/kennyadsl))
68
- - Add missing 'var' [\#85](https://github.com/solidusio/solidus_stripe/pull/85) ([willread](https://github.com/willread))
69
- - Fixes Rails 6.1 load warnings [\#84](https://github.com/solidusio/solidus_stripe/pull/84) ([marcrohloff](https://github.com/marcrohloff))
70
- - Dedupe common code in stripe\_checkout\_spec.rb [\#80](https://github.com/solidusio/solidus_stripe/pull/80) ([brchristian](https://github.com/brchristian))
71
- - Refactor spec with fill\_in\_card helper [\#78](https://github.com/solidusio/solidus_stripe/pull/78) ([brchristian](https://github.com/brchristian))
72
- - Fix non-breaking space character in comment [\#76](https://github.com/solidusio/solidus_stripe/pull/76) ([brchristian](https://github.com/brchristian))
73
- - Fix Copyright in README [\#73](https://github.com/solidusio/solidus_stripe/pull/73) ([kennyadsl](https://github.com/kennyadsl))
74
- - Remove server and test\_mode from README [\#66](https://github.com/solidusio/solidus_stripe/pull/66) ([adammathys](https://github.com/adammathys))
75
-
76
- ## [v4.2.0](https://github.com/solidusio/solidus_stripe/tree/v4.2.0) (2020-07-20)
77
-
78
- [Full Changelog](https://github.com/solidusio/solidus_stripe/compare/v4.1.0...v4.2.0)
79
-
80
- **Fixed bugs:**
81
-
82
- - Fix StripeCreditCard\#try\_void with Elements/V2 API [\#75](https://github.com/solidusio/solidus_stripe/pull/75) ([spaghetticode](https://github.com/spaghetticode))
83
-
84
- **Closed issues:**
85
-
86
- - A token may not be passed in as a PaymentMethod. Instead, create a PaymentMethod or convert your token to a PaymentMethod by setting the `card[token]` parameter to [\#71](https://github.com/solidusio/solidus_stripe/issues/71)
87
-
88
- **Merged pull requests:**
89
-
90
- - Fix 3DS modal amount verification [\#72](https://github.com/solidusio/solidus_stripe/pull/72) ([spaghetticode](https://github.com/spaghetticode))
91
-
92
- ## [v4.1.0](https://github.com/solidusio/solidus_stripe/tree/v4.1.0) (2020-07-01)
93
-
94
- [Full Changelog](https://github.com/solidusio/solidus_stripe/compare/v3.2.1...v4.1.0)
95
-
96
- **Fixed bugs:**
97
-
98
- - Card name ignored when adding new card to an order during checkout [\#68](https://github.com/solidusio/solidus_stripe/issues/68)
99
- - Try to find address state also by name [\#65](https://github.com/solidusio/solidus_stripe/pull/65) ([spaghetticode](https://github.com/spaghetticode))
100
- - Fix order cancel with Payment Intents captured payment [\#57](https://github.com/solidusio/solidus_stripe/pull/57) ([spaghetticode](https://github.com/spaghetticode))
101
-
102
- **Merged pull requests:**
103
-
104
- - Save correct cardholder name in Spree::CreditCard [\#69](https://github.com/solidusio/solidus_stripe/pull/69) ([spaghetticode](https://github.com/spaghetticode))
105
- - Update Readme [\#63](https://github.com/solidusio/solidus_stripe/pull/63) ([aleph1ow](https://github.com/aleph1ow))
106
- - Remove credit cards image [\#62](https://github.com/solidusio/solidus_stripe/pull/62) ([aleph1ow](https://github.com/aleph1ow))
107
- - Remove Stripe::CardError leftover [\#58](https://github.com/solidusio/solidus_stripe/pull/58) ([spaghetticode](https://github.com/spaghetticode))
108
- - Update gemspec URLs [\#54](https://github.com/solidusio/solidus_stripe/pull/54) ([elia](https://github.com/elia))
109
- - fix typo [\#51](https://github.com/solidusio/solidus_stripe/pull/51) ([ccarruitero](https://github.com/ccarruitero))
110
-
111
- ## [v3.2.1](https://github.com/solidusio/solidus_stripe/tree/v3.2.1) (2020-06-29)
112
-
113
- [Full Changelog](https://github.com/solidusio/solidus_stripe/compare/v4.0.0...v3.2.1)
114
-
115
- **Fixed bugs:**
116
-
117
- - \[ADMIN\] Order cancel doen't work with Payment Intents captured payments [\#56](https://github.com/solidusio/solidus_stripe/issues/56)
118
-
119
- **Closed issues:**
120
-
121
- - Could not find generator 'solidus\_stripe:install' [\#60](https://github.com/solidusio/solidus_stripe/issues/60)
122
- - Payment Intent creation exception handling with class not present in the gem [\#55](https://github.com/solidusio/solidus_stripe/issues/55)
123
- - Using static credentials [\#52](https://github.com/solidusio/solidus_stripe/issues/52)
124
- - Auto capture behavior in v4.0.0 [\#50](https://github.com/solidusio/solidus_stripe/issues/50)
125
-
126
- ## [v4.0.0](https://github.com/solidusio/solidus_stripe/tree/v4.0.0) (2020-04-29)
127
-
128
- [Full Changelog](https://github.com/solidusio/solidus_stripe/compare/v3.2.0...v4.0.0)
129
-
130
- **Fixed bugs:**
131
-
132
- - Fix for 3D-Secure payments on cart page checkout [\#49](https://github.com/solidusio/solidus_stripe/pull/49) ([spaghetticode](https://github.com/spaghetticode))
133
-
134
- **Closed issues:**
135
-
136
- - Custom stripe element field options \(e.g for showing a credit card icon\) [\#41](https://github.com/solidusio/solidus_stripe/issues/41)
137
- - Clearer documentation on how to implement [\#15](https://github.com/solidusio/solidus_stripe/issues/15)
138
-
139
- **Merged pull requests:**
140
-
141
- - Relax solidus\_support dependency [\#48](https://github.com/solidusio/solidus_stripe/pull/48) ([kennyadsl](https://github.com/kennyadsl))
142
-
143
- ## [v3.2.0](https://github.com/solidusio/solidus_stripe/tree/v3.2.0) (2020-04-10)
144
-
145
- [Full Changelog](https://github.com/solidusio/solidus_stripe/compare/v3.1.0...v3.2.0)
146
-
147
- **Fixed bugs:**
148
-
149
- - Send form data also when paying with payment request button [\#47](https://github.com/solidusio/solidus_stripe/pull/47) ([spaghetticode](https://github.com/spaghetticode))
150
-
151
- **Merged pull requests:**
152
-
153
- - Replace deprecated route `/stripe/confirm_payment` [\#46](https://github.com/solidusio/solidus_stripe/pull/46) ([spaghetticode](https://github.com/spaghetticode))
154
-
155
- ## [v3.1.0](https://github.com/solidusio/solidus_stripe/tree/v3.1.0) (2020-04-10)
156
-
157
- [Full Changelog](https://github.com/solidusio/solidus_stripe/compare/v3.0.0...v3.1.0)
158
-
159
- **Fixed bugs:**
160
-
161
- - Duplicates charges with Payment Intents [\#44](https://github.com/solidusio/solidus_stripe/issues/44)
162
- - Create a single charge when using Stripe Payment Intents [\#45](https://github.com/solidusio/solidus_stripe/pull/45) ([spaghetticode](https://github.com/spaghetticode))
163
-
164
- **Closed issues:**
165
-
166
- - Stripe Elements submit button stuck in disabled state. [\#39](https://github.com/solidusio/solidus_stripe/issues/39)
167
- - Visa credit card type is blank [\#36](https://github.com/solidusio/solidus_stripe/issues/36)
168
- - Pay with Apple Pay from cart page [\#23](https://github.com/solidusio/solidus_stripe/issues/23)
169
-
170
- **Merged pull requests:**
171
-
172
- - Custom Stripe Elements field options [\#42](https://github.com/solidusio/solidus_stripe/pull/42) ([stuffmatic](https://github.com/stuffmatic))
173
- - Improve the way Stripe Elements validation errors are displayed [\#40](https://github.com/solidusio/solidus_stripe/pull/40) ([stuffmatic](https://github.com/stuffmatic))
174
- - Fix stripe-to-solidus card type mapping [\#38](https://github.com/solidusio/solidus_stripe/pull/38) ([stuffmatic](https://github.com/stuffmatic))
175
- - Add hook to provide custom Stripe Elements options [\#37](https://github.com/solidusio/solidus_stripe/pull/37) ([stuffmatic](https://github.com/stuffmatic))
176
- - Change order description that we pass to Stripe [\#35](https://github.com/solidusio/solidus_stripe/pull/35) ([kennyadsl](https://github.com/kennyadsl))
177
-
178
- ## [v3.0.0](https://github.com/solidusio/solidus_stripe/tree/v3.0.0) (2020-03-11)
179
-
180
- [Full Changelog](https://github.com/solidusio/solidus_stripe/compare/v2.1.0...v3.0.0)
181
-
182
- **Implemented enhancements:**
183
-
184
- - Rename v3/stripe partial as v3/elements [\#30](https://github.com/solidusio/solidus_stripe/pull/30) ([spaghetticode](https://github.com/spaghetticode))
185
-
186
- **Merged pull requests:**
187
-
188
- - Allow to customize Stripe Elements styles via JS [\#34](https://github.com/solidusio/solidus_stripe/pull/34) ([spaghetticode](https://github.com/spaghetticode))
189
- - Stop injecting css in host app while installing [\#33](https://github.com/solidusio/solidus_stripe/pull/33) ([kennyadsl](https://github.com/kennyadsl))
190
- - Manage Stripe V3 JS code via Sprokets [\#32](https://github.com/solidusio/solidus_stripe/pull/32) ([spaghetticode](https://github.com/spaghetticode))
191
-
192
- ## [v2.1.0](https://github.com/solidusio/solidus_stripe/tree/v2.1.0) (2020-03-11)
193
-
194
- [Full Changelog](https://github.com/solidusio/solidus_stripe/compare/v2.0.0...v2.1.0)
195
-
196
- **Closed issues:**
197
-
198
- - Preference :stripe\_country is not defined on Spree::PaymentMethod::StripeCreditCard \(RuntimeError\) [\#27](https://github.com/solidusio/solidus_stripe/issues/27)
199
-
200
- **Merged pull requests:**
201
-
202
- - Refactor Stripe V3 Intents, Elements and cart checkout JS code [\#31](https://github.com/solidusio/solidus_stripe/pull/31) ([spaghetticode](https://github.com/spaghetticode))
203
-
204
- ## [v2.0.0](https://github.com/solidusio/solidus_stripe/tree/v2.0.0) (2020-03-03)
205
-
206
- [Full Changelog](https://github.com/solidusio/solidus_stripe/compare/v1.2.0...v2.0.0)
207
-
208
- **Implemented enhancements:**
209
-
210
- - Add support for Apple Pay through Stripe Payment Request Button [\#22](https://github.com/solidusio/solidus_stripe/issues/22)
211
- - Cart page payment with Stripe payment request button \(Apple/Google Pay\) [\#29](https://github.com/solidusio/solidus_stripe/pull/29) ([spaghetticode](https://github.com/spaghetticode))
212
- - Allow Apple Pay and Google Pay via Payment Request Button [\#25](https://github.com/solidusio/solidus_stripe/pull/25) ([spaghetticode](https://github.com/spaghetticode))
213
- - Use Payment Intents API with Active Merchant [\#20](https://github.com/solidusio/solidus_stripe/pull/20) ([spaghetticode](https://github.com/spaghetticode))
214
-
215
- **Closed issues:**
216
-
217
- - Handling of Strong Customer Authentication \(SCA\) [\#18](https://github.com/solidusio/solidus_stripe/issues/18)
218
- - Stripe checkout fails when using a stored credit card number [\#16](https://github.com/solidusio/solidus_stripe/issues/16)
219
- - Better PCI-Compliance with stripe.js version 3 [\#5](https://github.com/solidusio/solidus_stripe/issues/5)
220
- - No gem found [\#4](https://github.com/solidusio/solidus_stripe/issues/4)
221
-
222
- **Merged pull requests:**
223
-
224
- - Remove ERB from Elements and Intents JS code [\#28](https://github.com/solidusio/solidus_stripe/pull/28) ([spaghetticode](https://github.com/spaghetticode))
225
- - Remove `update_attributes!` deprecation [\#24](https://github.com/solidusio/solidus_stripe/pull/24) ([spaghetticode](https://github.com/spaghetticode))
226
- - Add solidus\_dev\_support gem [\#21](https://github.com/solidusio/solidus_stripe/pull/21) ([spaghetticode](https://github.com/spaghetticode))
227
- - Fix reusing cards with Stripe v3 [\#17](https://github.com/solidusio/solidus_stripe/pull/17) ([kennyadsl](https://github.com/kennyadsl))
228
- - Extension maintenance [\#14](https://github.com/solidusio/solidus_stripe/pull/14) ([kennyadsl](https://github.com/kennyadsl))
229
- - Update README installation instructions [\#13](https://github.com/solidusio/solidus_stripe/pull/13) ([hashrocketeer](https://github.com/hashrocketeer))
230
- - Use preferred\_v3\_elements instead of preferences\[:v3\_elements\] [\#12](https://github.com/solidusio/solidus_stripe/pull/12) ([ChristianRimondi](https://github.com/ChristianRimondi))
231
- - Remove `Spree.t` in favor of `I18n.t` [\#11](https://github.com/solidusio/solidus_stripe/pull/11) ([spaghetticode](https://github.com/spaghetticode))
232
- - Remove Capybara deprecation warning [\#10](https://github.com/solidusio/solidus_stripe/pull/10) ([spaghetticode](https://github.com/spaghetticode))
233
- - Add Stripe.js V3 with Elements [\#9](https://github.com/solidusio/solidus_stripe/pull/9) ([spaghetticode](https://github.com/spaghetticode))
234
- - Remove unused CircleCI config [\#8](https://github.com/solidusio/solidus_stripe/pull/8) ([aitbw](https://github.com/aitbw))
235
- - Add Rubocop for linting [\#7](https://github.com/solidusio/solidus_stripe/pull/7) ([aitbw](https://github.com/aitbw))
236
- - Allow creating seeds with the install command [\#6](https://github.com/solidusio/solidus_stripe/pull/6) ([kennyadsl](https://github.com/kennyadsl))
237
- - Add Solidus v2.8 to Travis config [\#3](https://github.com/solidusio/solidus_stripe/pull/3) ([aitbw](https://github.com/aitbw))
238
- - Update README.md [\#2](https://github.com/solidusio/solidus_stripe/pull/2) ([brchristian](https://github.com/brchristian))
239
- - Add missing API partial for stripe gateway [\#1](https://github.com/solidusio/solidus_stripe/pull/1) ([jontarg](https://github.com/jontarg))
240
-
241
- ## [v1.2.0](https://github.com/solidusio/solidus_stripe/tree/v1.2.0) (2017-07-24)
242
-
243
- [Full Changelog](https://github.com/solidusio/solidus_stripe/compare/v1.1.1...v1.2.0)
244
-
245
- ## [v1.1.1](https://github.com/solidusio/solidus_stripe/tree/v1.1.1) (2016-09-22)
246
-
247
- [Full Changelog](https://github.com/solidusio/solidus_stripe/compare/v1.1.0...v1.1.1)
248
-
249
- ## [v1.1.0](https://github.com/solidusio/solidus_stripe/tree/v1.1.0) (2016-07-26)
250
-
251
- [Full Changelog](https://github.com/solidusio/solidus_stripe/compare/v1.0.1...v1.1.0)
252
-
253
- ## [v1.0.1](https://github.com/solidusio/solidus_stripe/tree/v1.0.1) (2016-01-13)
254
-
255
- [Full Changelog](https://github.com/solidusio/solidus_stripe/compare/v0.9.0...v1.0.1)
256
-
257
- ## [v0.9.0](https://github.com/solidusio/solidus_stripe/tree/v0.9.0) (2015-08-28)
258
-
259
- [Full Changelog](https://github.com/solidusio/solidus_stripe/compare/v1.0.0...v0.9.0)
260
-
261
- ## [v1.0.0](https://github.com/solidusio/solidus_stripe/tree/v1.0.0) (2015-08-27)
262
-
263
- [Full Changelog](https://github.com/solidusio/solidus_stripe/compare/c20c3f69811d68c374ffedc2e20c1bc6bdb45f95...v1.0.0)
264
-
265
-
266
-
267
- \* *This Changelog was automatically generated by [github_changelog_generator](https://github.com/github-changelog-generator/github-changelog-generator)*
3
+ See https://github.com/solidusio/solidus_stripe/releases.
data/Gemfile CHANGED
@@ -1,38 +1,18 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  source 'https://rubygems.org'
4
- git_source(:github) { |repo| "https://github.com/#{repo}.git" }
5
4
 
6
- branch = ENV.fetch('SOLIDUS_BRANCH', 'master')
7
- gem 'solidus', github: 'solidusio/solidus', branch: branch
8
-
9
- # The solidus_frontend gem has been pulled out since v3.2
10
- if (branch == 'master') || (branch >= 'v3.2')
11
- gem 'solidus_frontend', github: 'solidusio/solidus_frontend', branch: branch
12
- end
13
-
14
- # Needed to help Bundler figure out how to resolve dependencies,
15
- # otherwise it takes forever to resolve them.
16
- # See https://github.com/bundler/bundler/issues/6677
17
- gem 'rails', '>0.a'
5
+ gemspec
18
6
 
19
- # Provides basic authentication functionality for testing parts of your engine
20
- gem 'solidus_auth_devise'
7
+ # Those are due to the "stdlib gemification" that's
8
+ # happening between versions of ruby.
9
+ gem 'stringio'
10
+ gem 'timeout'
21
11
 
22
- case ENV.fetch('DB', nil)
23
- when 'mysql'
24
- gem 'mysql2'
25
- when 'postgresql'
26
- gem 'pg'
27
- else
28
- gem 'sqlite3'
29
- end
12
+ gem 'listen'
30
13
 
31
- gemspec
14
+ gem 'activestorage'
32
15
 
33
- # Use a local Gemfile to include development dependencies that might not be
34
- # relevant for the project or for other contributors, e.g. pry-byebug.
35
- #
36
- # We use `send` instead of calling `eval_gemfile` to work around an issue with
37
- # how Dependabot parses projects: https://github.com/dependabot/dependabot-core/issues/1658.
38
- send(:eval_gemfile, 'Gemfile-local') if File.exist? 'Gemfile-local'
16
+ gem 'rspec_junit_formatter', require: false
17
+ gem 'simplecov', '~> 0.22', require: false
18
+ gem 'simplecov-cobertura', require: false
data/LICENSE CHANGED
@@ -1,5 +1,5 @@
1
- Copyright (c) 2014 Spree Commerce Inc. and other contributors.
2
- Copyright (c) 2021 Solidus Team and other contributors.
1
+ Copyright (c) 2014 Spree Commerce Inc., released under the New BSD License
2
+ Copyright (c) 2021 Solidus Team, released under the New BSD License.
3
3
  All rights reserved.
4
4
 
5
5
  Redistribution and use in source and binary forms, with or without modification,
data/Procfile.dev ADDED
@@ -0,0 +1,3 @@
1
+ web: env RUBY_DEBUG_OPEN=true bin/rails-sandbox server
2
+ watch: bin/rails-sandbox g solidus_stripe:install --force --watch
3
+ stripe: stripe listen --forward-to http://localhost:3000/solidus_stripe/test/webhooks --events charge.refunded,payment_intent.succeeded,payment_intent.payment_failed,payment_intent.canceled