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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e7c186c4c9b430760dabce1a20c7b0d6619241de
4
- data.tar.gz: fa6036cd2c018e312763b158926f201f26973adf
3
+ metadata.gz: 0ac6c8ae9eeaf50a2004ed2b33b437b173414100
4
+ data.tar.gz: 5ee23ef2fd936d75e28bdfc367b224e759e177d5
5
5
  SHA512:
6
- metadata.gz: 49806f09e4991a97f8ac9605c8b9ecbac09384477f9391649a9f79e97c553baeee02e676cb223ed62dc16264d9992b1e45ec11f236b23ae6e68dfa52d83df917
7
- data.tar.gz: 7cdc4844d2b1649be005514ad4cc213316faabda99675bfa24e614b9a32ff1d5554248cb71ea7e208cc63adbdf94216aa0d40696933a469bbb6999ca1f3a862c
6
+ metadata.gz: f7489fdd5ce725d20de28724270dae453b17ee2e9cfb60f23c77b98195a827fdc039ee68f05106597b969d15223539157654c1bdca1206f2c219a442611fe72b
7
+ data.tar.gz: 843dbdbd9c9a668599476db4c2b763805a0770c95b0a7c8655162ad680404ce0554c60010352ac50b3340cd56bfa606ea572b3c79da182720d3ce8f4c063f8b0
data/.gitignore CHANGED
@@ -13,3 +13,4 @@ nbproject
13
13
  pkg
14
14
  *.swp
15
15
  spec/dummy
16
+ .ruby-version
data/Gemfile CHANGED
@@ -1,6 +1,6 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
- gem "solidus", git: "git@github.com:solidusio/solidus.git", branch: "v1.0"
3
+ gem "solidus", github: "solidusio/solidus", branch: "master"
4
4
  gem "solidus_auth_devise", "~> 1.0"
5
5
 
6
6
  group :development, :test do
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
 
@@ -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.1.1"
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", "~> 1.0.0"
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.update_attributes!(state_name: ship_address.state.name, state_id: nil)
29
- expect(address['provinceCode']).to eq ship_address.state_name
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.1.1
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-25 00:00:00.000000000 Z
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
@@ -1 +0,0 @@
1
- 2.1.7