workarea-braintree 1.0.3 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/ci.yml +54 -0
- data/.gitignore +1 -0
- data/.rubocop.yml +3 -0
- data/CHANGELOG.md +9 -0
- data/Gemfile +3 -4
- data/README.md +41 -9
- data/Rakefile +4 -4
- data/lib/workarea/braintree/version.rb +1 -1
- metadata +5 -4
- data/test/dummy/config/initializers/session_store.rb +0 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bd2bed9a06df1bdb937b9a50fa10ced04b40a7cd0b6c32370a5779fe4b0180a9
|
4
|
+
data.tar.gz: 1ce6c53786480f4aa122f2cccb9e3e9c3ba04165d5e8a0a6b2c09da30aa6f263
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a609d1b2b461598fafbcc78f2bfa6cb93b756cf55204011c318dc5ce7ccf1ea0b3d49f5b95397aae3edecb26b2bdfec836c7e442c1eabc1211f639eeb1ed6c5d
|
7
|
+
data.tar.gz: dd1e86425cd3f71eb84e2541e4b82f1ac123e525770183307c8bcc4c2d539f373b69b6d90175510d3b56ae2cb24b82a517f5b0f046a8dd665ba6e75e9488677e
|
@@ -0,0 +1,54 @@
|
|
1
|
+
name: CI
|
2
|
+
on: [push]
|
3
|
+
|
4
|
+
jobs:
|
5
|
+
static_analysis:
|
6
|
+
runs-on: ubuntu-latest
|
7
|
+
steps:
|
8
|
+
- uses: actions/checkout@v1
|
9
|
+
- uses: workarea-commerce/ci/bundler-audit@v1
|
10
|
+
- uses: workarea-commerce/ci/rubocop@v1
|
11
|
+
|
12
|
+
admin_tests:
|
13
|
+
runs-on: ubuntu-latest
|
14
|
+
steps:
|
15
|
+
- uses: actions/checkout@v1
|
16
|
+
- uses: actions/setup-ruby@v1
|
17
|
+
with:
|
18
|
+
ruby-version: 2.6.x
|
19
|
+
- uses: workarea-commerce/ci/test@v1
|
20
|
+
with:
|
21
|
+
command: bin/rails app:workarea:test:admin
|
22
|
+
|
23
|
+
core_tests:
|
24
|
+
runs-on: ubuntu-latest
|
25
|
+
steps:
|
26
|
+
- uses: actions/checkout@v1
|
27
|
+
- uses: actions/setup-ruby@v1
|
28
|
+
with:
|
29
|
+
ruby-version: 2.6.x
|
30
|
+
- uses: workarea-commerce/ci/test@v1
|
31
|
+
with:
|
32
|
+
command: bin/rails app:workarea:test:core
|
33
|
+
|
34
|
+
storefront_tests:
|
35
|
+
runs-on: ubuntu-latest
|
36
|
+
steps:
|
37
|
+
- uses: actions/checkout@v1
|
38
|
+
- uses: actions/setup-ruby@v1
|
39
|
+
with:
|
40
|
+
ruby-version: 2.6.x
|
41
|
+
- uses: workarea-commerce/ci/test@v1
|
42
|
+
with:
|
43
|
+
command: bin/rails app:workarea:test:storefront
|
44
|
+
|
45
|
+
plugins_tests:
|
46
|
+
runs-on: ubuntu-latest
|
47
|
+
steps:
|
48
|
+
- uses: actions/checkout@v1
|
49
|
+
- uses: actions/setup-ruby@v1
|
50
|
+
with:
|
51
|
+
ruby-version: 2.6.x
|
52
|
+
- uses: workarea-commerce/ci/test@v1
|
53
|
+
with:
|
54
|
+
command: bin/rails app:workarea:test:plugins
|
data/.gitignore
CHANGED
data/.rubocop.yml
ADDED
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,12 @@
|
|
1
|
+
Workarea Braintree 1.1.0 (2019-11-26)
|
2
|
+
--------------------------------------------------------------------------------
|
3
|
+
|
4
|
+
* Update README
|
5
|
+
|
6
|
+
Matt Duffy
|
7
|
+
|
8
|
+
|
9
|
+
|
1
10
|
Workarea Braintree 1.0.3 (2019-08-21)
|
2
11
|
--------------------------------------------------------------------------------
|
3
12
|
|
data/Gemfile
CHANGED
@@ -1,9 +1,8 @@
|
|
1
|
-
source
|
2
|
-
|
1
|
+
source 'https://rubygems.org'
|
2
|
+
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
|
3
3
|
|
4
4
|
gemspec
|
5
|
-
|
6
|
-
gem "workarea-ci"
|
5
|
+
gem 'workarea', github: 'workarea-commerce/workarea'
|
7
6
|
|
8
7
|
group :test do
|
9
8
|
gem "workarea-testing"
|
data/README.md
CHANGED
@@ -1,15 +1,33 @@
|
|
1
|
-
|
1
|
+
Workarea Braintree
|
2
|
+
================================================================================
|
2
3
|
|
3
4
|
Braintree plugin for the Workarea platform.
|
4
5
|
|
5
|
-
|
6
|
+
Getting Started
|
7
|
+
--------------------------------------------------------------------------------
|
6
8
|
|
7
|
-
|
9
|
+
Add the gem to your application's Gemfile:
|
8
10
|
|
9
|
-
|
10
|
-
|
11
|
+
```ruby
|
12
|
+
# ...
|
13
|
+
gem 'workarea-braintree'
|
14
|
+
# ...
|
15
|
+
```
|
11
16
|
|
12
|
-
|
17
|
+
Update your application's bundle.
|
18
|
+
|
19
|
+
```bash
|
20
|
+
cd path/to/application
|
21
|
+
bundle
|
22
|
+
```
|
23
|
+
|
24
|
+
Development Credentials
|
25
|
+
--------------------------------------------------------------------------------
|
26
|
+
|
27
|
+
Developers can sign up for a free developer account at https://www.braintreepayments.com/sandbox to acquire testing credentials and access to a Braintree control panel.
|
28
|
+
|
29
|
+
Secrets
|
30
|
+
--------------------------------------------------------------------------------
|
13
31
|
|
14
32
|
Most of the keys below can be found in the Braintree control panel under Account.
|
15
33
|
Merchant account id can be found under Settings -> Processing under the Merchant Accounts section.
|
@@ -22,7 +40,8 @@ Add secrets to your environemt
|
|
22
40
|
private_key:
|
23
41
|
merchant_account_id:
|
24
42
|
|
25
|
-
|
43
|
+
Documentation & Methods
|
44
|
+
--------------------------------------------------------------------------------
|
26
45
|
|
27
46
|
Braintree Documentation:
|
28
47
|
|
@@ -32,7 +51,8 @@ Braintree Active Merchant Ruby Gateway:
|
|
32
51
|
|
33
52
|
<https://github.com/activemerchant/active_merchant/blob/master/lib/active_merchant/billing/gateways/braintree_blue.rb>
|
34
53
|
|
35
|
-
|
54
|
+
Testing
|
55
|
+
--------------------------------------------------------------------------------
|
36
56
|
|
37
57
|
### Refund
|
38
58
|
|
@@ -40,4 +60,16 @@ A purchase, or captured authorization needs to be settled before it can be refun
|
|
40
60
|
braintree sandbox settles at 7pm to mimic the production environment. A rake task is provided to
|
41
61
|
settle a transaction now for testing.
|
42
62
|
|
43
|
-
|
63
|
+
```bash
|
64
|
+
rake workarea:braintree:settle_test_transaction TRANSACTION_ID
|
65
|
+
```
|
66
|
+
|
67
|
+
Workarea Commerce Documentation
|
68
|
+
--------------------------------------------------------------------------------
|
69
|
+
|
70
|
+
See [https://developer.workarea.com](https://developer.workarea.com) for Workarea Commerce documentation.
|
71
|
+
|
72
|
+
License
|
73
|
+
--------------------------------------------------------------------------------
|
74
|
+
|
75
|
+
Workarea Braintree is released under the [Business Software License](LICENSE)
|
data/Rakefile
CHANGED
@@ -35,10 +35,10 @@ desc "Release version #{Workarea::Braintree::VERSION} of the gem"
|
|
35
35
|
task :release do
|
36
36
|
host = "https://#{ENV['BUNDLE_GEMS__WEBLINC__COM']}@gems.weblinc.com"
|
37
37
|
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
38
|
+
Rake::Task['workarea:changelog'].execute
|
39
|
+
system 'git add CHANGELOG.md'
|
40
|
+
system 'git commit -m "Update CHANGELOG"'
|
41
|
+
system 'git push origin HEAD'
|
42
42
|
|
43
43
|
system "git tag -a v#{Workarea::Braintree::VERSION} -m 'Tagging #{Workarea::Braintree::VERSION}'"
|
44
44
|
system "git push --tags"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: workarea-braintree
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eric Pigeon
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-11-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: workarea
|
@@ -49,7 +49,9 @@ files:
|
|
49
49
|
- ".github/ISSUE_TEMPLATE/bug_report.md"
|
50
50
|
- ".github/ISSUE_TEMPLATE/documentation-request.md"
|
51
51
|
- ".github/ISSUE_TEMPLATE/feature_request.md"
|
52
|
+
- ".github/workflows/ci.yml"
|
52
53
|
- ".gitignore"
|
54
|
+
- ".rubocop.yml"
|
53
55
|
- CHANGELOG.md
|
54
56
|
- CODE_OF_CONDUCT.md
|
55
57
|
- CONTRIBUTING.md
|
@@ -101,7 +103,6 @@ files:
|
|
101
103
|
- test/dummy/config/initializers/inflections.rb
|
102
104
|
- test/dummy/config/initializers/mime_types.rb
|
103
105
|
- test/dummy/config/initializers/new_framework_defaults.rb
|
104
|
-
- test/dummy/config/initializers/session_store.rb
|
105
106
|
- test/dummy/config/initializers/workarea.rb
|
106
107
|
- test/dummy/config/initializers/wrap_parameters.rb
|
107
108
|
- test/dummy/config/locales/en.yml
|
@@ -159,7 +160,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
159
160
|
- !ruby/object:Gem::Version
|
160
161
|
version: '0'
|
161
162
|
requirements: []
|
162
|
-
rubygems_version: 3.0.
|
163
|
+
rubygems_version: 3.0.6
|
163
164
|
signing_key:
|
164
165
|
specification_version: 4
|
165
166
|
summary: Braintree integration for Workarea Commerce Platform
|