action_service 1.0.3 → 1.1.0
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/README.md +2 -2
- data/lib/action_service/version.rb +1 -1
- metadata +4 -24
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0e557d577a7c6be44d862d4929a2df8ee053d2834aa705374df3d740c5b64aa0
|
|
4
|
+
data.tar.gz: 56acbc897cc072d3740bebe22b79ae5cd86b47f1ee4075a61d167cb70e966214
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: cfe05a34ab7c13a4efa95d8f56135ef4bcd319d0bfb31580eb240e7f7bb3963b131da0eb8f13b639685f0f90f49e5919e5a42442ed1c48327d41f6d7f31db75f
|
|
7
|
+
data.tar.gz: 956dddc06eee6edcaf6d4ea23be309b6110d894ee52958e70db6b1889ec5af0177f18f2454349e568e22863dbf6b26d78f8404d1f2367f7fb0a942ca7b088cd4
|
data/README.md
CHANGED
|
@@ -79,8 +79,8 @@ class Admin::AuthenticateService < ApplicationService
|
|
|
79
79
|
end
|
|
80
80
|
|
|
81
81
|
def call
|
|
82
|
-
add_error "wrong admin email" and return
|
|
83
|
-
add_error "wrong password" and return
|
|
82
|
+
add_error "wrong admin email" and return self if not @admin
|
|
83
|
+
add_error "wrong password" and return self if not @admin.authenticate(@password)
|
|
84
84
|
@response[:admin] = @admin
|
|
85
85
|
return self
|
|
86
86
|
end
|
metadata
CHANGED
|
@@ -1,35 +1,15 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: action_service
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0
|
|
4
|
+
version: 1.1.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Abdo Fawzi
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
12
|
-
dependencies:
|
|
13
|
-
- !ruby/object:Gem::Dependency
|
|
14
|
-
name: rails
|
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
|
16
|
-
requirements:
|
|
17
|
-
- - ">="
|
|
18
|
-
- !ruby/object:Gem::Version
|
|
19
|
-
version: '2.0'
|
|
20
|
-
- - "<="
|
|
21
|
-
- !ruby/object:Gem::Version
|
|
22
|
-
version: '6'
|
|
23
|
-
type: :runtime
|
|
24
|
-
prerelease: false
|
|
25
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
26
|
-
requirements:
|
|
27
|
-
- - ">="
|
|
28
|
-
- !ruby/object:Gem::Version
|
|
29
|
-
version: '2.0'
|
|
30
|
-
- - "<="
|
|
31
|
-
- !ruby/object:Gem::Version
|
|
32
|
-
version: '6'
|
|
11
|
+
date: 2020-03-21 00:00:00.000000000 Z
|
|
12
|
+
dependencies: []
|
|
33
13
|
description: Is where you can add your code to do simple functionality instead of
|
|
34
14
|
make complex controller or models.
|
|
35
15
|
email:
|
|
@@ -70,7 +50,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
70
50
|
version: '0'
|
|
71
51
|
requirements: []
|
|
72
52
|
rubyforge_project:
|
|
73
|
-
rubygems_version: 2.7.6
|
|
53
|
+
rubygems_version: 2.7.6.2
|
|
74
54
|
signing_key:
|
|
75
55
|
specification_version: 4
|
|
76
56
|
summary: Is a ruby gem to create and interact easily with services.
|