learn-web 1.4.1 → 1.4.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cc308f49592f2e41a32e55ca66775179c0005229
|
4
|
+
data.tar.gz: d0aeda72be382ddefe580305da9f74980cc12f3a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6e8734904056d93f9577dbe8e1abe6f469820196de4c22861a248fe6505b5648946510a345f78843beeacbc42c9f4c445143d73d5de766df2e197982d1e5ec72
|
7
|
+
data.tar.gz: 2a96746b4ddd6b8d03bc32585cb20ed2030488421a5863e157c8ec647fd5c4f5bba997b8fde51a59c66077f4c19be3b11c249310d759089d9316d8c18c75549a
|
@@ -19,6 +19,10 @@ module LearnWeb
|
|
19
19
|
begin
|
20
20
|
body = Oj.load(response.body, symbol_keys: true)
|
21
21
|
self.message = body[:message]
|
22
|
+
|
23
|
+
if self.message && self.message.match(/verified your email/)
|
24
|
+
abort self.message
|
25
|
+
end
|
22
26
|
rescue
|
23
27
|
self.message = 'Sorry, something went wrong. Please try again.'
|
24
28
|
end
|
@@ -19,6 +19,10 @@ module LearnWeb
|
|
19
19
|
begin
|
20
20
|
body = Oj.load(data.body, symbol_keys: true)
|
21
21
|
self.message = body[:message]
|
22
|
+
|
23
|
+
if self.message && self.message.match(/verified your email/)
|
24
|
+
abort self.message
|
25
|
+
end
|
22
26
|
rescue
|
23
27
|
self.message = 'Sorry, something went wrong. Please try again.'
|
24
28
|
end
|
data/lib/learn_web/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: learn-web
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.4.
|
4
|
+
version: 1.4.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Flatiron School
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-09-
|
11
|
+
date: 2015-09-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|