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 +4 -4
- data/.github/workflows/ruby.yml +36 -0
- data/Changelog.md +4 -0
- data/Gemfile +1 -1
- data/gemfiles/rails4.gemfile +1 -1
- data/lib/stripe/rails/tasks.rake +2 -2
- data/lib/stripe/rails/version.rb +1 -1
- data/test/spec_helper.rb +2 -2
- metadata +3 -3
- data/.travis.yml +0 -28
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d661efe56433d2aa86e274141263a5b4af3247a8cd52d2e73063ff69be0f98e9
|
4
|
+
data.tar.gz: cc7e38b9e922026ea6a0ca78554bc985782ebda75ba3782accf20f65c729b0de
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/Changelog.md
CHANGED
data/Gemfile
CHANGED
data/gemfiles/rails4.gemfile
CHANGED
data/lib/stripe/rails/tasks.rake
CHANGED
@@ -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.
|
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
|
data/lib/stripe/rails/version.rb
CHANGED
data/test/spec_helper.rb
CHANGED
@@ -6,12 +6,12 @@ end
|
|
6
6
|
require 'minitest/autorun'
|
7
7
|
|
8
8
|
require 'webmock/minitest'
|
9
|
-
WebMock.disable_net_connect!
|
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 '
|
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.
|
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-
|
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
|
data/.travis.yml
DELETED
@@ -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=
|