solidus_support 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/solidus_support.rb +20 -0
- data/lib/solidus_support/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ccbc90492bc9a3ebe9a11dd637cd0ee5dd0c8726
|
4
|
+
data.tar.gz: ba80e2c3258f3e0c852181bec212fc86be042951
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f86ddf26cb9a080dbf9b8eff06221ef756b8a31e4699758d28bc7b9ba2d0e3b17960a4797823e99f57e8425f9d3c02d41580c795f362555cc0d94fe2a66de39b
|
7
|
+
data.tar.gz: ccabde73bf0be27a0227535c1c55435e157d2904808f6caafaf2fc0b710e04e799f13d78097015aa60a0921647cf19d16a7e54246f29dff3cf1000c3424fd40e
|
data/lib/solidus_support.rb
CHANGED
@@ -15,5 +15,25 @@ module SolidusSupport
|
|
15
15
|
Gem::Specification.detect{|x| x.name == "solidus_core" }.version
|
16
16
|
end
|
17
17
|
end
|
18
|
+
|
19
|
+
def payment_source_parent_class
|
20
|
+
if solidus_gem_version > Gem::Version.new('2.2.x')
|
21
|
+
Spree::PaymentSource
|
22
|
+
else
|
23
|
+
Spree::Base
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
27
|
+
def frontend_available?
|
28
|
+
defined?(Spree::Frontend::Engine)
|
29
|
+
end
|
30
|
+
|
31
|
+
def backend_available?
|
32
|
+
defined?(Spree::Backend::Engine)
|
33
|
+
end
|
34
|
+
|
35
|
+
def api_available?
|
36
|
+
defined?(Spree::Api::Engine)
|
37
|
+
end
|
18
38
|
end
|
19
39
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: solidus_support
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- John Hawthorn
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-07-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -74,7 +74,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
74
74
|
version: '0'
|
75
75
|
requirements: []
|
76
76
|
rubyforge_project:
|
77
|
-
rubygems_version: 2.6.
|
77
|
+
rubygems_version: 2.6.11
|
78
78
|
signing_key:
|
79
79
|
specification_version: 4
|
80
80
|
summary: A common functionality for solidus extensions
|