solidus_legacy_return_authorizations 1.0.1 → 1.0.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d30b14be8633b52fe25d4f841a5f57df62d35e38
4
- data.tar.gz: f760e8471cd30cb78a2e70d66deeff7d0ca10723
3
+ metadata.gz: 648df90a7a88637da635fdc51a7a96fb24279908
4
+ data.tar.gz: da947db0cfd404099987be74a57224da2798fbb7
5
5
  SHA512:
6
- metadata.gz: 83988908086b878b71e3ab5101ffd9d38034341151a61a01c742cfd90abd1535ae75c0ecc77af0f8a21c7bb6fb773b9cfe29d192a6711f2f260f154adf63732a
7
- data.tar.gz: a68a6dc7e82a3066f8ae174faeb7f611195a2b74ee6834de4b0f5a7881f5ad42daffa7c9df116dfca470923540484b23f68d76deab2dc47fe986993a18175d53
6
+ metadata.gz: 3750e50cb2b1280056e89036e0c11c657c3f662d4da6368aef281974c7902d2187960a1875d8031f8cc3781ae37c1a9e98108d34982ae57cf79cc4d154a97308
7
+ data.tar.gz: 76996a1ee56b027294580f560c7780fbb709670a91a2af3f9224299475ec757e852174e14e207e3247a8753aee8f4de19f5db022984bfa0370e458392e9d312a
@@ -0,0 +1,21 @@
1
+ sudo: false
2
+ cache: bundler
3
+ language: ruby
4
+ rvm:
5
+ - 2.3.1
6
+ env:
7
+ matrix:
8
+ - SOLIDUS_BRANCH=v1.0 DB=postgres
9
+ - SOLIDUS_BRANCH=v1.1 DB=postgres
10
+ - SOLIDUS_BRANCH=v1.2 DB=postgres
11
+ - SOLIDUS_BRANCH=v1.3 DB=postgres
12
+ - SOLIDUS_BRANCH=v1.4 DB=postgres
13
+ - SOLIDUS_BRANCH=v2.0 DB=postgres
14
+ - SOLIDUS_BRANCH=master DB=postgres
15
+ - SOLIDUS_BRANCH=v1.0 DB=mysql
16
+ - SOLIDUS_BRANCH=v1.1 DB=mysql
17
+ - SOLIDUS_BRANCH=v1.2 DB=mysql
18
+ - SOLIDUS_BRANCH=v1.3 DB=mysql
19
+ - SOLIDUS_BRANCH=v1.4 DB=mysql
20
+ - SOLIDUS_BRANCH=v2.0 DB=mysql
21
+ - SOLIDUS_BRANCH=master DB=mysql
data/Gemfile CHANGED
@@ -1,7 +1,14 @@
1
1
  source "https://rubygems.org"
2
2
 
3
- gem "solidus", github: "solidusio/solidus", branch: "master"
4
- gem "solidus_auth_devise", "~> 1.0"
3
+ branch = ENV.fetch('SOLIDUS_BRANCH', 'master')
4
+ gem "solidus", github: "solidusio/solidus", branch: branch
5
+
6
+ if branch == 'master' || branch >= "v2.0"
7
+ gem "rails-controller-testing", group: :test
8
+ end
9
+
10
+ gem 'pg'
11
+ gem 'mysql2'
5
12
 
6
13
  group :development, :test do
7
14
  gem "pry-rails"
@@ -1,2 +1,3 @@
1
1
  require 'spree_core'
2
2
  require 'spree_legacy_return_authorizations/engine'
3
+ require 'deface'
@@ -3,7 +3,7 @@
3
3
  Gem::Specification.new do |s|
4
4
  s.platform = Gem::Platform::RUBY
5
5
  s.name = "solidus_legacy_return_authorizations"
6
- s.version = "1.0.1"
6
+ s.version = "1.0.2"
7
7
  s.summary = "Interfaces for Spree 2.3 Legacy Return Authorizations"
8
8
  s.description = "Provides models and admin interfaces to interact with the LegacyReturnAuthorization models from Spree versions prior to 2.4"
9
9
  s.required_ruby_version = ">= 2.1"
@@ -15,7 +15,8 @@ Gem::Specification.new do |s|
15
15
  s.require_path = "lib"
16
16
  s.requirements << "none"
17
17
 
18
- s.add_dependency "solidus_core", "~> 1.0"
18
+ s.add_dependency "solidus_core", [">= 1.0", "< 3"]
19
+ s.add_dependency "deface", "~> 1.0"
19
20
 
20
21
  s.add_development_dependency "rspec-rails", "~> 3.2"
21
22
  s.add_development_dependency "simplecov"
@@ -71,4 +71,11 @@ RSpec.configure do |config|
71
71
  config.after :each do
72
72
  DatabaseCleaner.clean
73
73
  end
74
+
75
+ if defined?(VersionCake::TestHelpers)
76
+ config.include VersionCake::TestHelpers, type: :controller
77
+ config.before(:each, type: :controller) do
78
+ set_request_version('', 1)
79
+ end
80
+ end
74
81
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: solidus_legacy_return_authorizations
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Richard Nuno
@@ -9,10 +9,30 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-01-13 00:00:00.000000000 Z
12
+ date: 2016-09-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: solidus_core
16
+ requirement: !ruby/object:Gem::Requirement
17
+ requirements:
18
+ - - ">="
19
+ - !ruby/object:Gem::Version
20
+ version: '1.0'
21
+ - - "<"
22
+ - !ruby/object:Gem::Version
23
+ version: '3'
24
+ type: :runtime
25
+ prerelease: false
26
+ version_requirements: !ruby/object:Gem::Requirement
27
+ requirements:
28
+ - - ">="
29
+ - !ruby/object:Gem::Version
30
+ version: '1.0'
31
+ - - "<"
32
+ - !ruby/object:Gem::Version
33
+ version: '3'
34
+ - !ruby/object:Gem::Dependency
35
+ name: deface
16
36
  requirement: !ruby/object:Gem::Requirement
17
37
  requirements:
18
38
  - - "~>"
@@ -160,6 +180,7 @@ extra_rdoc_files: []
160
180
  files:
161
181
  - ".gitignore"
162
182
  - ".rspec"
183
+ - ".travis.yml"
163
184
  - Gemfile
164
185
  - LICENSE
165
186
  - README.md
@@ -227,4 +248,13 @@ rubygems_version: 2.5.1
227
248
  signing_key:
228
249
  specification_version: 4
229
250
  summary: Interfaces for Spree 2.3 Legacy Return Authorizations
230
- test_files: []
251
+ test_files:
252
+ - spec/controllers/admin/legacy_return_authorizations_controller_spec.rb
253
+ - spec/controllers/spree/api/legacy_return_authorizations_controller_spec.rb
254
+ - spec/features/admin/orders/legacy_return_authorizations_spec.rb
255
+ - spec/models/spree/legacy_return_authorization_spec.rb
256
+ - spec/models/spree/permission_sets/legacy_return_authorization_display_spec.rb
257
+ - spec/models/spree/permission_sets/legacy_return_authorization_management_spec.rb
258
+ - spec/spec_helper.rb
259
+ - spec/support/authentication_support.rb
260
+ - spec/support/have_attributes_matcher.rb