servitore 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/servitore/service.rb +3 -3
- data/lib/servitore/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 987eee7aec9df54675a85d0f7162242591c557f8
|
4
|
+
data.tar.gz: c4cc46b71643b472c0114efe746fb9403bfa0742
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ef6cdbf6121616b284987b743b002e69defd69db41bf6408fd3bfbb365a9a4191878b0b8cea1473f5cf134aa6ff248ca5812721d7ed84a900f03a68bf3850595
|
7
|
+
data.tar.gz: be9a58f7fd93e8138a79556201395f6651d7c8073576a10670f02e6c2c678288dea6d337f64002bf5eea0a54daa1cfbcfd7de380fa556e7c2feb0e1927e227e4
|
data/lib/servitore/service.rb
CHANGED
@@ -3,7 +3,7 @@ module Servitore
|
|
3
3
|
extend ActiveSupport::Concern
|
4
4
|
|
5
5
|
included do
|
6
|
-
attr_reader :
|
6
|
+
attr_reader :_params
|
7
7
|
|
8
8
|
class << self
|
9
9
|
alias_method :_new, :new
|
@@ -15,7 +15,7 @@ module Servitore
|
|
15
15
|
end
|
16
16
|
|
17
17
|
def initialize(params)
|
18
|
-
@
|
18
|
+
@_params = params || {}
|
19
19
|
end
|
20
20
|
|
21
21
|
def call
|
@@ -30,7 +30,7 @@ module Servitore
|
|
30
30
|
def param_reader(*names)
|
31
31
|
names.each do |name|
|
32
32
|
define_method(name) do
|
33
|
-
|
33
|
+
_params[name]
|
34
34
|
end
|
35
35
|
end
|
36
36
|
end
|
data/lib/servitore/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: servitore
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jason Kriss
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-03-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|