workarea-braintree 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +15 -0
- data/Gemfile +1 -2
- data/Rakefile +1 -2
- data/lib/workarea/braintree.rb +5 -0
- data/lib/workarea/braintree/version.rb +1 -1
- data/test/test_helper.rb +0 -7
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c697aa884354473d47e10667b729fb443c41cea9135a9cfd6c3b2637787574f1
|
4
|
+
data.tar.gz: 22ccbd076be26631dfa1111303535f2f1e88e10cb80258fc7799e8ebf77a8cba
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7e0f0060c16e584f04fd885dbf38eb82801ba943ae9458de3d977c1dabac919fceb527612082ad53f67be2cbcd29d14091b908380a9851fedbde3d5a03a82423
|
7
|
+
data.tar.gz: '094cbc9983291d79cacbb2a9620947e0582d6988c5f3577ab3d586a07c8352c0169d1e45114aae6646cca9a09861e20a6967799fbabb5fe23877bbc739025fe2'
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,18 @@
|
|
1
|
+
Workarea Braintree 1.1.1 (2020-02-27)
|
2
|
+
--------------------------------------------------------------------------------
|
3
|
+
|
4
|
+
* Add PayPal BN Code to Braintree Gateways
|
5
|
+
|
6
|
+
The BN code for PayPal revenue attribution has now been added to all
|
7
|
+
Braintree gateway requests using the global `.application_id` parameter.
|
8
|
+
This maps the `:channel` in Braintree's API to the BN code set on the
|
9
|
+
class level.
|
10
|
+
|
11
|
+
BRAINTREE-2
|
12
|
+
Tom Scott
|
13
|
+
|
14
|
+
|
15
|
+
|
1
16
|
Workarea Braintree 1.1.0 (2019-11-26)
|
2
17
|
--------------------------------------------------------------------------------
|
3
18
|
|
data/Gemfile
CHANGED
@@ -2,9 +2,8 @@ source 'https://rubygems.org'
|
|
2
2
|
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
|
3
3
|
|
4
4
|
gemspec
|
5
|
-
gem 'workarea', github: 'workarea-commerce/workarea'
|
5
|
+
gem 'workarea', github: 'workarea-commerce/workarea', branch: 'v3.5-stable'
|
6
6
|
|
7
7
|
group :test do
|
8
8
|
gem "workarea-testing"
|
9
|
-
gem "simplecov-bamboo", require: false
|
10
9
|
end
|
data/Rakefile
CHANGED
@@ -38,10 +38,9 @@ task :release do
|
|
38
38
|
Rake::Task['workarea:changelog'].execute
|
39
39
|
system 'git add CHANGELOG.md'
|
40
40
|
system 'git commit -m "Update CHANGELOG"'
|
41
|
-
system 'git push origin HEAD'
|
42
41
|
|
43
42
|
system "git tag -a v#{Workarea::Braintree::VERSION} -m 'Tagging #{Workarea::Braintree::VERSION}'"
|
44
|
-
system "git push --tags"
|
43
|
+
system "git push origin HEAD --follow-tags"
|
45
44
|
|
46
45
|
system "gem build workarea-braintree.gemspec"
|
47
46
|
system "gem push workarea-braintree-#{Workarea::Braintree::VERSION}.gem"
|
data/lib/workarea/braintree.rb
CHANGED
@@ -3,6 +3,11 @@ require "workarea/braintree/version"
|
|
3
3
|
|
4
4
|
require "active_merchant/billing/bogus_braintree_gateway"
|
5
5
|
|
6
|
+
# Don't change this value, it's needed for PayPal revenue attribution
|
7
|
+
ActiveMerchant::Billing::BraintreeBlueGateway.application_id = 'Workarea_SP_PCP'
|
8
|
+
ActiveMerchant::Billing::BraintreeOrangeGateway.application_id = 'Workarea_SP_PCP'
|
9
|
+
ActiveMerchant::Billing::BogusBraintreeGateway.application_id = 'Workarea_SP_PCP'
|
10
|
+
|
6
11
|
module Workarea
|
7
12
|
module Braintree
|
8
13
|
def self.auto_configure_gateway
|
data/test/test_helper.rb
CHANGED
@@ -1,10 +1,3 @@
|
|
1
|
-
require 'simplecov'
|
2
|
-
|
3
|
-
SimpleCov.start "rails" do
|
4
|
-
add_filter "version.rb"
|
5
|
-
add_filter "lib/active_merchant/billing/bogus_braintree_gateway.rb"
|
6
|
-
end
|
7
|
-
|
8
1
|
ENV['RAILS_ENV'] = 'test'
|
9
2
|
|
10
3
|
require File.expand_path("../../test/dummy/config/environment.rb", __FILE__)
|
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.1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eric Pigeon
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-02-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: workarea
|