stripe-rails 1.9.0 → 1.9.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9c6add3569f0d6ebce78539fea9a2f3bc5364779be1a2984f6fc3287ffa40ff7
4
- data.tar.gz: ac4a7af14e8eaafcf73ab20143886e5d9ed7492175aaba925e70cc10d0e5f527
3
+ metadata.gz: d661efe56433d2aa86e274141263a5b4af3247a8cd52d2e73063ff69be0f98e9
4
+ data.tar.gz: cc7e38b9e922026ea6a0ca78554bc985782ebda75ba3782accf20f65c729b0de
5
5
  SHA512:
6
- metadata.gz: 0c9d7181d6a2ba947af2aa102b40d7547ebc3339cea5adcbf71699e16b49734dacf471f3a0b590da0fd013f645ea51c2d3a943d019395c5d91c22a986ba81287
7
- data.tar.gz: 96ca6a73ea1d133cc9023a125dd658ad1258b4af030bb2478304bc442dd80527f23817825f483348e30eaac08421d6bef96e7f81515acc8284113565786208bc
6
+ metadata.gz: 3cdd009d3999ed6cbe4ad59a5e3d4869d890dba2ed9cc5c41aa1c8928b98413ed3ef6a0b2748c72ec644963a3e20cc2110ba316cfbf0917b9c8fb46cbff15301
7
+ data.tar.gz: af6c42593780777428cc9f00db3b9e18e7c9bf284bb51ea8f244b9f0c641318e1df20417e7137c834b2c06690c2d55800b2ab06bc955768fa81597103bcb2e4a
@@ -0,0 +1,36 @@
1
+ name: Ruby
2
+
3
+ on: [push]
4
+
5
+ jobs:
6
+ build:
7
+ runs-on: ubuntu-latest
8
+
9
+ strategy:
10
+ matrix:
11
+ ruby: [2.3.x, 2.4.x, 2.5.x, 2.6.x]
12
+ gemfile: [Gemfile, gemfiles/rails4.gemfile]
13
+
14
+ steps:
15
+ - uses: actions/checkout@v1
16
+ - name: Set up Ruby
17
+ uses: actions/setup-ruby@v1
18
+ with:
19
+ ruby-version: ${{ matrix.ruby }}
20
+ - name: Set up Code Climate
21
+ run: |
22
+ curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
23
+ chmod +x ./cc-test-reporter
24
+ ./cc-test-reporter before-build
25
+ - name: Build and Test
26
+ env:
27
+ BUNDLE_GEMFILE: ${{ matrix.gemfile }}
28
+ CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
29
+ RUBY_VERSION: ${{ matrix.ruby }}
30
+ run: |
31
+ gem install bundler -v 1.17.3
32
+ bundle install --jobs 4 --retry 3
33
+ bundle exec rake
34
+ if [ `basename $BUNDLE_GEMFILE` == "Gemfile" ] && [ $RUBY_VERSION == "2.6.x" ] ;
35
+ then ./cc-test-reporter after-build --exit-code $? ;
36
+ fi
@@ -1,3 +1,7 @@
1
+ ## 1.9.1 (2019-10-28)
2
+
3
+ - Fixes issue with `rake stripe:verify` thanks @Millariel !
4
+
1
5
  ## 1.9.0 (2019-09-01)
2
6
 
3
7
  - Adds support for multiple signing secrets. Thanks again @jacobcsmith !
data/Gemfile CHANGED
@@ -16,7 +16,7 @@ group :test do
16
16
  gem 'webmock'
17
17
  # Required for system tests
18
18
  gem 'capybara'
19
- gem 'chromedriver-helper'
19
+ gem 'webdrivers'
20
20
  gem 'puma'
21
21
  gem 'selenium-webdriver'
22
22
  end
@@ -13,7 +13,7 @@ group :test do
13
13
  gem 'webmock'
14
14
  # Required for system tests
15
15
  gem 'capybara'
16
- gem 'chromedriver-helper'
16
+ gem 'webdrivers'
17
17
  gem 'puma'
18
18
  gem 'selenium-webdriver'
19
19
  end
@@ -2,7 +2,7 @@ namespace :stripe do
2
2
  desc 'verify your stripe.com authentication configuration'
3
3
  task 'verify' => :environment do
4
4
  begin
5
- Stripe::Plan.all
5
+ Stripe::Plan.list
6
6
  puts "[OK] - connection to stripe.com is functioning properly"
7
7
  rescue Stripe::AuthenticationError => e
8
8
  puts "[FAIL] - authentication failed"
@@ -32,4 +32,4 @@ namespace :stripe do
32
32
 
33
33
  desc "create all plans and coupons defined in config/stripe/{products|plans|coupons}.rb"
34
34
  task 'prepare' => ['products:prepare', 'plans:prepare', 'coupons:prepare']
35
- end
35
+ end
@@ -1,5 +1,5 @@
1
1
  module Stripe
2
2
  module Rails
3
- VERSION = '1.9.0'.freeze
3
+ VERSION = '1.9.1'.freeze
4
4
  end
5
5
  end
@@ -6,12 +6,12 @@ end
6
6
  require 'minitest/autorun'
7
7
 
8
8
  require 'webmock/minitest'
9
- WebMock.disable_net_connect!(allow_localhost: true)
9
+ WebMock.disable_net_connect! allow_localhost: true, allow: ['codeclimate.com', 'chromedriver.storage.googleapis.com']
10
10
 
11
11
  # Chrome Setup
12
12
  require 'selenium-webdriver'
13
13
  require 'capybara'
14
- require 'chromedriver-helper'
14
+ require 'webdrivers'
15
15
  Capybara.register_driver :selenium do |app|
16
16
  Capybara::Selenium::Driver.new(app, :browser => :chrome)
17
17
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stripe-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.9.0
4
+ version: 1.9.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Charles Lowell
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2019-09-01 00:00:00.000000000 Z
13
+ date: 2019-10-28 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rails
@@ -65,9 +65,9 @@ files:
65
65
  - ".editorconfig"
66
66
  - ".github/issue_template.md"
67
67
  - ".github/pull_request_template.md"
68
+ - ".github/workflows/ruby.yml"
68
69
  - ".gitignore"
69
70
  - ".rubocop.yml"
70
- - ".travis.yml"
71
71
  - CODE_OF_CONDUCT.md
72
72
  - Changelog.md
73
73
  - Gemfile
@@ -1,28 +0,0 @@
1
- language: ruby
2
- rvm:
3
- - 2.6.0
4
- - 2.5.5
5
- - 2.4.5
6
- - 2.3.8
7
- addons:
8
- chrome: stable
9
- env:
10
- global:
11
- - GIT_COMMITTED_AT=$(if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then git log -1 --pretty=format:%ct;
12
- else git log -1 --skip 1 --pretty=format:%ct; fi)
13
- before_script:
14
- - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64
15
- > ./cc-test-reporter
16
- - chmod +x ./cc-test-reporter
17
- - "./cc-test-reporter before-build"
18
- script:
19
- - bundle exec rake
20
- - if [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ `basename $BUNDLE_GEMFILE` == "Gemfile"
21
- ] && [ ${RUBY_VERSION:5:3} == "2.6" ] ; then echo "Sending Coverage..."; ./cc-test-reporter
22
- after-build --exit-code $TRAVIS_TEST_RESULT; fi
23
- gemfile:
24
- - Gemfile
25
- - gemfiles/rails4.gemfile
26
- notifications:
27
- slack:
28
- secure: csciM073msTrOOdVYVXdAsrx2sR3Y1BKL0VvlSsYxBJawDa8BFNl6Fw8Uz1V2n4OfnkMvMCME4I3EXsCb4Kl5omnK+7ibeCzzzkCR5VwUs5/vLY7awUfCiihSCqg5ULAp2T1whQJUl5HY9Ot62sujIUX/FUhPzdbCqaKQ7cVkUo=