hola_dmleobit 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/hola_dmleobit.rb +1 -40
- metadata +10 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4589ff95dc115623269da4ab20581bbff8c34eca8b9c6311aab857252a348f40
|
4
|
+
data.tar.gz: f88acb2b36bb9168faedc9e2dcd7c389bb6abbba54042ccd4faa933eb9a4a840
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 16088800c8710bc7cdfc8f16e3bceda385c127b6cd96985d74c109d4e0ee13abe4c86e6e8abda9feb7ffa286c05ddd231ac528bead0c44e9de89055976a39e09
|
7
|
+
data.tar.gz: f88c51ee389b7276748b88deec7ff7cb6d7ace3f54750a00df4ebfa3854e84561e079bff8d5428f6f9717a1450a725cc1f23aeba595a30dcb7191ee65356d557
|
data/lib/hola_dmleobit.rb
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
require 'active_support'
|
2
|
+
require 'findable/definition'
|
2
3
|
|
3
4
|
module HolaDmleobit
|
4
5
|
extend ::ActiveSupport::Concern
|
@@ -31,43 +32,3 @@ module HolaDmleobit
|
|
31
32
|
end
|
32
33
|
end
|
33
34
|
end
|
34
|
-
|
35
|
-
# class HolaDmleobit
|
36
|
-
# def self.hi
|
37
|
-
# puts "Hello world!"
|
38
|
-
# end
|
39
|
-
# end
|
40
|
-
|
41
|
-
require 'findable/definition'
|
42
|
-
|
43
|
-
# module Findable
|
44
|
-
# extend ActiveSupport::Concern
|
45
|
-
|
46
|
-
# class_methods do
|
47
|
-
# # resource_name - name of instance variable where found resource will be placed
|
48
|
-
# # options includes:
|
49
|
-
# # - class - name of resource class (default: taken from resource_name)
|
50
|
-
# # - by - how value is named in params (default: :id)
|
51
|
-
# # - attribute - name of resource attribute (default: :id)
|
52
|
-
# # - strict - raise error if resource hasn't been found (default: true)
|
53
|
-
# # - fallback - method name/proc which we call if resource hasn't been found
|
54
|
-
# # - fallback_value - method name/proc which we call if value can't be found in params
|
55
|
-
# # - only - list of controller actions on which it is triggered
|
56
|
-
# # - except - list of controller actions on which it isn't triggered
|
57
|
-
# # - eager_load - list of eager loaded entries to avoid N+1 problem
|
58
|
-
# # - preload - list of preloaded entries to avoid N+1 problem
|
59
|
-
# # - joins - list of joined entries to avoid N+1 problem
|
60
|
-
# # - decorate - shows if we should decorate found resource.
|
61
|
-
# # Can be used only with respective Drapper decorator
|
62
|
-
# # - friendly - shows if we should find resource also by slug field.
|
63
|
-
# # Can be used only for FriendlyId models.
|
64
|
-
# #
|
65
|
-
# def find(resource_name, **options)
|
66
|
-
# ::Findable::Definition.new(
|
67
|
-
# controller: self,
|
68
|
-
# resource_name: resource_name,
|
69
|
-
# **options
|
70
|
-
# ).call
|
71
|
-
# end
|
72
|
-
# end
|
73
|
-
# end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hola_dmleobit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nick Quaranto
|
@@ -14,22 +14,22 @@ dependencies:
|
|
14
14
|
name: activesupport
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - ">="
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: 4.2.0
|
20
17
|
- - "~>"
|
21
18
|
- !ruby/object:Gem::Version
|
22
|
-
version: '
|
19
|
+
version: '6.0'
|
20
|
+
- - ">="
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: 6.0.3
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
26
26
|
requirements:
|
27
|
-
- - ">="
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
version: 4.2.0
|
30
27
|
- - "~>"
|
31
28
|
- !ruby/object:Gem::Version
|
32
|
-
version: '
|
29
|
+
version: '6.0'
|
30
|
+
- - ">="
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: 6.0.3
|
33
33
|
description: A simple hello world gem
|
34
34
|
email: nick@quaran.to
|
35
35
|
executables: []
|
@@ -41,7 +41,7 @@ files:
|
|
41
41
|
- lib/findable/finder.rb
|
42
42
|
- lib/findable/strategies/friendly_id.rb
|
43
43
|
- lib/hola_dmleobit.rb
|
44
|
-
homepage: https://
|
44
|
+
homepage: https://github.com/dmleobit/findable_gem
|
45
45
|
licenses:
|
46
46
|
- MIT
|
47
47
|
metadata: {}
|