solidus_signifyd 0.1.1 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/Gemfile +1 -1
- data/README.md +2 -0
- data/solidus_signifyd.gemspec +2 -2
- data/spec/serializers/spree_signifyd/address_serializer_spec.rb +6 -3
- metadata +10 -5
- data/.ruby-version +0 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0ac6c8ae9eeaf50a2004ed2b33b437b173414100
|
4
|
+
data.tar.gz: 5ee23ef2fd936d75e28bdfc367b224e759e177d5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f7489fdd5ce725d20de28724270dae453b17ee2e9cfb60f23c77b98195a827fdc039ee68f05106597b969d15223539157654c1bdca1206f2c219a442611fe72b
|
7
|
+
data.tar.gz: 843dbdbd9c9a668599476db4c2b763805a0770c95b0a7c8655162ad680404ce0554c60010352ac50b3340cd56bfa606ea572b3c79da182720d3ce8f4c063f8b0
|
data/.gitignore
CHANGED
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -4,6 +4,8 @@ Solidus Signifyd
|
|
4
4
|
Integration with Signifyd that implements a fraud check prior to marking a
|
5
5
|
shipment as ready to be shipped.
|
6
6
|
|
7
|
+
[![Circle CI](https://circleci.com/gh/solidusio/solidus_signifyd.svg?style=shield)](https://circleci.com/gh/solidusio/solidus_signifyd/tree/master)
|
8
|
+
|
7
9
|
Installation
|
8
10
|
------------
|
9
11
|
|
data/solidus_signifyd.gemspec
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.platform = Gem::Platform::RUBY
|
5
5
|
s.name = "solidus_signifyd"
|
6
|
-
s.version = "0.
|
6
|
+
s.version = "1.0.0"
|
7
7
|
s.summary = "Solidus extension for communicating with Signifyd to check orders for fraud."
|
8
8
|
s.description = s.summary
|
9
9
|
|
@@ -22,7 +22,7 @@ Gem::Specification.new do |s|
|
|
22
22
|
s.add_dependency "active_model_serializers", "0.9.3"
|
23
23
|
s.add_dependency "resque", "~> 1.25.1"
|
24
24
|
s.add_dependency "signifyd", "~> 0.1.5"
|
25
|
-
s.add_dependency "solidus", "
|
25
|
+
s.add_dependency "solidus", [">= 1.0.0", "< 1.2.0"]
|
26
26
|
s.add_dependency "devise"
|
27
27
|
|
28
28
|
s.add_development_dependency "rspec-rails", "~> 2.13"
|
@@ -2,9 +2,12 @@ require 'spec_helper'
|
|
2
2
|
|
3
3
|
module SpreeSignifyd
|
4
4
|
describe AddressSerializer do
|
5
|
-
let(:ship_address) { create(:address) }
|
6
5
|
let(:serialized_address) { JSON.parse(AddressSerializer.new(ship_address).to_json) }
|
7
6
|
|
7
|
+
def ship_address(options = {})
|
8
|
+
@ship_address ||= create(:address, options)
|
9
|
+
end
|
10
|
+
|
8
11
|
context "node values" do
|
9
12
|
let(:address) { serialized_address['address'] }
|
10
13
|
|
@@ -25,8 +28,8 @@ module SpreeSignifyd
|
|
25
28
|
expect(address['provinceCode']).to eq ship_address.state.abbr
|
26
29
|
end
|
27
30
|
it "with a state_name and no state entity" do
|
28
|
-
ship_address
|
29
|
-
expect(address['provinceCode']).to eq
|
31
|
+
ship_address(state_name: 'AL', state_id: nil)
|
32
|
+
expect(address['provinceCode']).to eq 'AL'
|
30
33
|
end
|
31
34
|
end
|
32
35
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: solidus_signifyd
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bonobos
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-08-
|
11
|
+
date: 2015-08-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: active_model_serializers
|
@@ -56,16 +56,22 @@ dependencies:
|
|
56
56
|
name: solidus
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- - "
|
59
|
+
- - ">="
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: 1.0.0
|
62
|
+
- - "<"
|
63
|
+
- !ruby/object:Gem::Version
|
64
|
+
version: 1.2.0
|
62
65
|
type: :runtime
|
63
66
|
prerelease: false
|
64
67
|
version_requirements: !ruby/object:Gem::Requirement
|
65
68
|
requirements:
|
66
|
-
- - "
|
69
|
+
- - ">="
|
67
70
|
- !ruby/object:Gem::Version
|
68
71
|
version: 1.0.0
|
72
|
+
- - "<"
|
73
|
+
- !ruby/object:Gem::Version
|
74
|
+
version: 1.2.0
|
69
75
|
- !ruby/object:Gem::Dependency
|
70
76
|
name: devise
|
71
77
|
requirement: !ruby/object:Gem::Requirement
|
@@ -201,7 +207,6 @@ extra_rdoc_files: []
|
|
201
207
|
files:
|
202
208
|
- ".gitignore"
|
203
209
|
- ".rspec"
|
204
|
-
- ".ruby-version"
|
205
210
|
- Gemfile
|
206
211
|
- LICENSE
|
207
212
|
- README.md
|
data/.ruby-version
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
2.1.7
|