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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: '08a24113b51dfa61dbc62e42286c191fead054d1'
4
- data.tar.gz: f3739aac234b7a50fce339209f08e39b8758d46a
3
+ metadata.gz: ccbc90492bc9a3ebe9a11dd637cd0ee5dd0c8726
4
+ data.tar.gz: ba80e2c3258f3e0c852181bec212fc86be042951
5
5
  SHA512:
6
- metadata.gz: ba46c533f2f24fe0439723dfc8c3d8b2dfdd591fb2a2b0de1f7be32015330766b913627664177e95295566028d3eb7c62634add2a7d00a325c5d8dfcee7ff5c4
7
- data.tar.gz: cd81549301b792bb47459b092709284f8d506535777033e0f9c1c4c578df6374636408513fba6200b9771023da80394aaf9bd8dc29c4b01a9ff9f3c44e4450b1
6
+ metadata.gz: f86ddf26cb9a080dbf9b8eff06221ef756b8a31e4699758d28bc7b9ba2d0e3b17960a4797823e99f57e8425f9d3c02d41580c795f362555cc0d94fe2a66de39b
7
+ data.tar.gz: ccabde73bf0be27a0227535c1c55435e157d2904808f6caafaf2fc0b710e04e799f13d78097015aa60a0921647cf19d16a7e54246f29dff3cf1000c3424fd40e
@@ -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
@@ -1,3 +1,3 @@
1
1
  module SolidusSupport
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  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.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-05-03 00:00:00.000000000 Z
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.10
77
+ rubygems_version: 2.6.11
78
78
  signing_key:
79
79
  specification_version: 4
80
80
  summary: A common functionality for solidus extensions