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: 6376b4357841a293d5c285fda2b2bf9e2f24a5d6
4
- data.tar.gz: b1d992bfe013112954fd37e6b3c48dcb8c3f30c8
3
+ metadata.gz: cc308f49592f2e41a32e55ca66775179c0005229
4
+ data.tar.gz: d0aeda72be382ddefe580305da9f74980cc12f3a
5
5
  SHA512:
6
- metadata.gz: 3f72c8259d481e14eefb81d603b09e98f153483af96ca587b04a870588bb0205dd7ae1937046edf75a2ae01f37ad028c7c47605951ab1fd617fba41514c237c2
7
- data.tar.gz: 313d89a25b7007257c46c22f825eb7b98364a6265414ca8d2ef5392c11936735b3c063ade1e8989f04887eca8ea9231c521544c1133a13d8d671c74c9115e765
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
@@ -1,3 +1,3 @@
1
1
  module LearnWeb
2
- VERSION = '1.4.1'
2
+ VERSION = '1.4.2'
3
3
  end
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.1
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-09 00:00:00.000000000 Z
11
+ date: 2015-09-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler