spree_extension 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 +4 -4
- data/lib/spree_extension/extension.rb +4 -2
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0b9ca26be3caa2eeb5e4cca4ab3636961cf6a75b12d00ca4fe0de0d6ebc28613
|
|
4
|
+
data.tar.gz: ef6e6d1fd78d5cb75073c8f74fa01e1ce6d495dbbb790bf0e67c80a59db4cae6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4fb05a17393aa6d2248bb662cb1803964c5b748d5f78c45f260e2c0ea839013693ca247da47a57a90fe8b73d686fdbebcdd93c9db20c0884a2a8571370aba862
|
|
7
|
+
data.tar.gz: 5a1ff4024e17c3d7f50df28f147aa3d12fd79863ee6ddc4a1f96353e24498ac406ab26944ba216a6eb84871166d0f38f376fe10fbf43d9c892d26e0180591864
|
|
@@ -77,11 +77,13 @@ module SpreeExtension
|
|
|
77
77
|
end
|
|
78
78
|
|
|
79
79
|
def author_name
|
|
80
|
-
|
|
80
|
+
name = `git config user.name`.strip
|
|
81
|
+
@author_name ||= name.empty? ? 'TODO: Write your name' : name
|
|
81
82
|
end
|
|
82
83
|
|
|
83
84
|
def author_email
|
|
84
|
-
|
|
85
|
+
email = `git config user.email`.strip
|
|
86
|
+
@author_email ||= email.empty? ? 'TODO: Write your email address' : email
|
|
85
87
|
end
|
|
86
88
|
end
|
|
87
89
|
end
|