From 73f62d2b8e9592d4c0d3dafec33414908e6cdd20 Mon Sep 17 00:00:00 2001 From: Daniel Colson Date: Thu, 25 Oct 2018 11:19:09 -0400 Subject: [PATCH] v0.2.0 --- CHANGELOG.md | 7 +++++++ Gemfile.lock | 14 ++++++++------ README.md | 11 +++++++++-- lib/fake_stripe/version.rb | 2 +- 4 files changed, 25 insertions(+), 9 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a713293..be81dc9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## V0.2.0 + +- Add basic v3 support for Stripe Elements to Fake JS server +- Do not announce capybara starting puma +- Remove deprecated positional arguments for Capybara::Server.new +- Return error for negative or 0 amounts + ## V0.1.0 - Only boot Fake Stripe JS server when needed ([#77](https://github.com/thoughtbot/fake_stripe/pull/77)) diff --git a/Gemfile.lock b/Gemfile.lock index ee340c1..8a6a76f 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,7 +1,7 @@ PATH remote: . specs: - fake_stripe (0.1.0) + fake_stripe (0.2.0) capybara sinatra webmock @@ -11,13 +11,14 @@ GEM specs: addressable (2.5.2) public_suffix (>= 2.0.2, < 4.0) - capybara (3.8.2) + capybara (3.10.0) addressable mini_mime (>= 0.1.3) nokogiri (~> 1.8) rack (>= 1.6.0) rack-test (>= 0.6.3) - xpath (~> 3.1) + regexp_parser (~> 1.2) + xpath (~> 3.2) coderay (1.1.2) crack (0.4.3) safe_yaml (~> 1.0.0) @@ -30,7 +31,7 @@ GEM mini_portile2 (2.3.0) multipart-post (2.0.0) mustermann (1.0.3) - nokogiri (1.8.4) + nokogiri (1.8.5) mini_portile2 (~> 2.3.0) pry (0.11.3) coderay (~> 1.1.0) @@ -42,13 +43,14 @@ GEM rack rack-test (1.1.0) rack (>= 1.0, < 3) + regexp_parser (1.2.0) rspec (3.8.0) rspec-core (~> 3.8.0) rspec-expectations (~> 3.8.0) rspec-mocks (~> 3.8.0) rspec-core (3.8.0) rspec-support (~> 3.8.0) - rspec-expectations (3.8.1) + rspec-expectations (3.8.2) diff-lcs (>= 1.2.0, < 2.0) rspec-support (~> 3.8.0) rspec-mocks (3.8.0) @@ -70,7 +72,7 @@ GEM addressable (>= 2.3.6) crack (>= 0.3.2) hashdiff - xpath (3.1.0) + xpath (3.2.0) nokogiri (~> 1.8) PLATFORMS diff --git a/README.md b/README.md index d70fa68..4cce3df 100644 --- a/README.md +++ b/README.md @@ -36,20 +36,27 @@ end Include the Stripe JavaScript in your application template. -If you're using Stripe.js v1: +For Stripe.js v1: ```rhtml # app/views/layouts/application.html.erb <%= javascript_include_tag "#{STRIPE_JS_HOST}/v1/" %> ``` -Or if you're using Stripe.js v2: +For Stripe.js v2: ```rhtml # app/views/layouts/application.html.erb <%= javascript_include_tag "#{STRIPE_JS_HOST}/v2/" %> ``` +For Stripe.js v3: + +```rhtml +# app/views/layouts/application.html.erb +<%= javascript_include_tag "#{STRIPE_JS_HOST}/v3/" %> +``` + When the test suite runs `fake_stripe` will override the address for `STRIPE_JS_HOST` and serve up a local version of [Stripe.js](https://stripe.com/docs/stripe.js). diff --git a/lib/fake_stripe/version.rb b/lib/fake_stripe/version.rb index a8564ad..336d31b 100644 --- a/lib/fake_stripe/version.rb +++ b/lib/fake_stripe/version.rb @@ -1,3 +1,3 @@ module FakeStripe - VERSION = '0.1.0' + VERSION = '0.2.0' end