solidus_legacy_return_authorizations 1.0.0 → 1.0.1

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: 18ac64c290153dc76aa973685a5dc58ea3190508
4
- data.tar.gz: 539c2555b6e921869fee35ff7925b155446d3472
3
+ metadata.gz: d30b14be8633b52fe25d4f841a5f57df62d35e38
4
+ data.tar.gz: f760e8471cd30cb78a2e70d66deeff7d0ca10723
5
5
  SHA512:
6
- metadata.gz: b3767c15416db0beb83c325f3a50557fd3ac98c222fa9f37ae490aa9598a74bbb046b05d5405921c60638e0635b3d63230a5b20a1276bedea2d94b5ea61b478e
7
- data.tar.gz: 79ea178bd773d20e8bdd6741dd8f6c67afb7206948f51be81a82c631c215eaccf26195d3c2d2a7bf92329c19955fe507e3dfb4f17bd0d0264665340105348eb6
6
+ metadata.gz: 83988908086b878b71e3ab5101ffd9d38034341151a61a01c742cfd90abd1535ae75c0ecc77af0f8a21c7bb6fb773b9cfe29d192a6711f2f260f154adf63732a
7
+ data.tar.gz: a68a6dc7e82a3066f8ae174faeb7f611195a2b74ee6834de4b0f5a7881f5ad42daffa7c9df116dfca470923540484b23f68d76deab2dc47fe986993a18175d53
@@ -1,11 +1,16 @@
1
+ # This makes it so that the Orders tab is highlighted when we're in the legacy
2
+ # return authorization area.
3
+
4
+ # TODO: Append this to Spree::BackendConfiguration::ORDER_TABS instead of monkey
5
+ # patching this method.
1
6
  Spree::Admin::NavigationHelper.module_eval do
2
- def tab_with_legacy_return_authorizations(*args)
7
+ def tab_with_legacy_return_authorizations(*args, &block)
3
8
  if args.first == :orders
4
9
  options = args.pop if args.last.is_a?(Hash)
5
10
  args << :legacy_return_authorizations
6
11
  args << options
7
12
  end
8
- tab_without_legacy_return_authorizations(*args)
13
+ tab_without_legacy_return_authorizations(*args, &block)
9
14
  end
10
15
 
11
16
  alias_method_chain :tab, :legacy_return_authorizations
@@ -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.0"
6
+ s.version = "1.0.1"
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,12 +15,12 @@ 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.0", "< 1.2.0"]
18
+ s.add_dependency "solidus_core", "~> 1.0"
19
19
 
20
20
  s.add_development_dependency "rspec-rails", "~> 3.2"
21
21
  s.add_development_dependency "simplecov"
22
22
  s.add_development_dependency "sqlite3"
23
- s.add_development_dependency "sass-rails", "~> 4.0.2"
23
+ s.add_development_dependency "sass-rails"
24
24
  s.add_development_dependency "coffee-rails"
25
25
  s.add_development_dependency "capybara", "~> 2.1"
26
26
  s.add_development_dependency "factory_girl", "~> 4.4"
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.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Richard Nuno
@@ -9,28 +9,22 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-08-27 00:00:00.000000000 Z
12
+ date: 2016-01-13 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: solidus_core
16
16
  requirement: !ruby/object:Gem::Requirement
17
17
  requirements:
18
- - - ">="
19
- - !ruby/object:Gem::Version
20
- version: 1.0.0
21
- - - "<"
18
+ - - "~>"
22
19
  - !ruby/object:Gem::Version
23
- version: 1.2.0
20
+ version: '1.0'
24
21
  type: :runtime
25
22
  prerelease: false
26
23
  version_requirements: !ruby/object:Gem::Requirement
27
24
  requirements:
28
- - - ">="
29
- - !ruby/object:Gem::Version
30
- version: 1.0.0
31
- - - "<"
25
+ - - "~>"
32
26
  - !ruby/object:Gem::Version
33
- version: 1.2.0
27
+ version: '1.0'
34
28
  - !ruby/object:Gem::Dependency
35
29
  name: rspec-rails
36
30
  requirement: !ruby/object:Gem::Requirement
@@ -77,16 +71,16 @@ dependencies:
77
71
  name: sass-rails
78
72
  requirement: !ruby/object:Gem::Requirement
79
73
  requirements:
80
- - - "~>"
74
+ - - ">="
81
75
  - !ruby/object:Gem::Version
82
- version: 4.0.2
76
+ version: '0'
83
77
  type: :development
84
78
  prerelease: false
85
79
  version_requirements: !ruby/object:Gem::Requirement
86
80
  requirements:
87
- - - "~>"
81
+ - - ">="
88
82
  - !ruby/object:Gem::Version
89
- version: 4.0.2
83
+ version: '0'
90
84
  - !ruby/object:Gem::Dependency
91
85
  name: coffee-rails
92
86
  requirement: !ruby/object:Gem::Requirement
@@ -229,17 +223,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
229
223
  requirements:
230
224
  - none
231
225
  rubyforge_project:
232
- rubygems_version: 2.2.5
226
+ rubygems_version: 2.5.1
233
227
  signing_key:
234
228
  specification_version: 4
235
229
  summary: Interfaces for Spree 2.3 Legacy Return Authorizations
236
- test_files:
237
- - spec/controllers/admin/legacy_return_authorizations_controller_spec.rb
238
- - spec/controllers/spree/api/legacy_return_authorizations_controller_spec.rb
239
- - spec/features/admin/orders/legacy_return_authorizations_spec.rb
240
- - spec/models/spree/legacy_return_authorization_spec.rb
241
- - spec/models/spree/permission_sets/legacy_return_authorization_display_spec.rb
242
- - spec/models/spree/permission_sets/legacy_return_authorization_management_spec.rb
243
- - spec/spec_helper.rb
244
- - spec/support/authentication_support.rb
245
- - spec/support/have_attributes_matcher.rb
230
+ test_files: []