web-connect 0.1.5 → 0.1.6
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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0b49c3dd8435586f607c392c5fdbac9efa14ddd8
|
|
4
|
+
data.tar.gz: 5ab7835fcf6e5d3ec477dc7941be3a0043fe91fc
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7b6afcb42860f58ac33493823d149bf9309d9c79a473018ce06da9841e90394dfa0b302db1ebb704e4d084a1f233601d5bd98849a51422e59e9f9118bd030583
|
|
7
|
+
data.tar.gz: 8e4a1b75e67982ff9c7ac9d8b443091531f0d31819a1e14002dbac38159d07d12f5863ffab2c3ce1349b40885251f4f5c969900881d5dc81b80f43f9741f7167
|
|
@@ -35,6 +35,10 @@ module Netfira::WebConnect
|
|
|
35
35
|
password ||= auth.credentials[1]
|
|
36
36
|
end
|
|
37
37
|
|
|
38
|
+
# Make shop_name a copy, so the authenticator can't mutate
|
|
39
|
+
# the original string
|
|
40
|
+
shop_name = shop_name.dup if shop_name
|
|
41
|
+
|
|
38
42
|
result = authenticator.call shop_name, password
|
|
39
43
|
raise Unauthorized unless result
|
|
40
44
|
@shop = Netfira::WebConnect::Models::Shop.find_or_create_by(name: shop_name)
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: web-connect
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.6
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Neil E. Pearson
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2014-06-
|
|
12
|
+
date: 2014-06-16 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: activerecord
|
|
@@ -87,14 +87,14 @@ dependencies:
|
|
|
87
87
|
requirements:
|
|
88
88
|
- - "~>"
|
|
89
89
|
- !ruby/object:Gem::Version
|
|
90
|
-
version: 3.0.0.
|
|
90
|
+
version: 3.0.0.beta2
|
|
91
91
|
type: :development
|
|
92
92
|
prerelease: false
|
|
93
93
|
version_requirements: !ruby/object:Gem::Requirement
|
|
94
94
|
requirements:
|
|
95
95
|
- - "~>"
|
|
96
96
|
- !ruby/object:Gem::Version
|
|
97
|
-
version: 3.0.0.
|
|
97
|
+
version: 3.0.0.beta2
|
|
98
98
|
- !ruby/object:Gem::Dependency
|
|
99
99
|
name: sqlite3
|
|
100
100
|
requirement: !ruby/object:Gem::Requirement
|