ctws 0.1.11.alpha → 0.1.12.alpha

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: ad946770043983270e71fbec6cb469fa8e295f5e
4
- data.tar.gz: 442d2a1bf4e04fe406569151148943833c337655
3
+ metadata.gz: 5be817a0afed3eba6a2644b0ca2e7f9d19a78f0b
4
+ data.tar.gz: cc5d76993f3549ed7d3cf0441a1dcc7185c93d28
5
5
  SHA512:
6
- metadata.gz: 94ebbc73710ab85587738855253604f0ed5b176b52f21df80ef078d2d7d9b79678d5a4b68d1cbf4ad10e0e71ede77091495ea17a3ec79b68643ec85b1fee5739
7
- data.tar.gz: 432cf50c15ab1fb6059d8b7558c34e0ad827ed081199355fae986bd187ee6029460fa8c6f047500ca2b32d3fdaa86afcd69519b9243d37fbaa132b28aa830d59
6
+ metadata.gz: 2d0ee407f5fd1ccfa1d689ad4238af538a1dffd444a70bb2e7d98c91f2f24a905426aea31b9eaab0eabbd2ba701b49f50e729615f08051fc374da55f97d7e94c
7
+ data.tar.gz: c6907f7c9be5f43774dcf437c7a19e11bd1a942e5a38dc6e0cc2e8923e43e9aeb614e6e3c8413265d171a3a0e643271a96c4e376a404c440f298ef5d662d926c
@@ -3,39 +3,43 @@ module Ctws
3
3
  def self.not_found(record = 'record')
4
4
  "Sorry, #{record} not found."
5
5
  end
6
-
6
+
7
7
  def self.unmatched_route(route = 'route')
8
8
  "No route matches #{route}"
9
- end
10
-
9
+ end
10
+
11
11
  def self.invalid_credentials
12
12
  'Invalid credentials'
13
13
  end
14
-
14
+
15
15
  def self.invalid_token
16
16
  'Invalid token'
17
17
  end
18
-
18
+
19
19
  def self.missing_token
20
20
  'Missing token'
21
21
  end
22
-
22
+
23
23
  def self.unauthorized
24
24
  'Unauthorized request'
25
25
  end
26
-
26
+
27
27
  def self.account_created
28
28
  'Account created successfully'
29
29
  end
30
-
30
+
31
31
  def self.account_not_created
32
32
  'Account could not be created'
33
33
  end
34
-
34
+
35
+ def self.account_doesnt_exist
36
+ "Account doesn't exist"
37
+ end
38
+
35
39
  def self.authenticated_user_success
36
40
  'Authenticated user successfully'
37
41
  end
38
-
42
+
39
43
  def self.expired_token
40
44
  'Sorry, your token has expired. Please login to continue.'
41
45
  end
data/lib/ctws/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Ctws
2
- VERSION = '0.1.11.alpha'
2
+ VERSION = '0.1.12.alpha'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ctws
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.11.alpha
4
+ version: 0.1.12.alpha
5
5
  platform: ruby
6
6
  authors:
7
7
  - Agustí B.R.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-08-02 00:00:00.000000000 Z
11
+ date: 2017-09-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails