Skip to content
This repository has been archived by the owner on Sep 19, 2024. It is now read-only.

Commit

Permalink
v0.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
composerinteralia committed Oct 25, 2018
1 parent a1e6dd7 commit 73f62d2
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 9 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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))
Expand Down
14 changes: 8 additions & 6 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
fake_stripe (0.1.0)
fake_stripe (0.2.0)
capybara
sinatra
webmock
Expand All @@ -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)
Expand All @@ -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)
Expand All @@ -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)
Expand All @@ -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
Expand Down
11 changes: 9 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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).

Expand Down
2 changes: 1 addition & 1 deletion lib/fake_stripe/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module FakeStripe
VERSION = '0.1.0'
VERSION = '0.2.0'
end

0 comments on commit 73f62d2

Please sign in to comment.