facet 0.23.3 → 0.23.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/facet/version.rb +1 -1
- data/lib/generators/facet/USAGE +9 -0
- data/lib/generators/facet/facet_generator.rb +15 -0
- data/lib/generators/facet/templates/facet.rb.erb +4 -0
- data/lib/generators/rspec/facet/USAGE +8 -0
- data/lib/generators/rspec/facet/facet_generator.rb +13 -0
- data/lib/generators/rspec/facet/templates/facet_spec.rb.erb +7 -0
- metadata +16 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: df48f34a3eeb31593cc2ff4d3b72b0c2422eeb41f33ccf6d0b1f106c0f18b2d6
|
4
|
+
data.tar.gz: 52a10f81fe77e69f0ab9953200730c139fcaf62b81b05bab044aa0ff50a19c34
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5e2b2dbf65978295543e731a85685f88324480aa64fc41241f502e6654b9addb56ac8c167f49fe2d9cccf9b1f6bef1f2ef3df393323aadcc4ad1b55b240b871a
|
7
|
+
data.tar.gz: 98f23bb1a1836365385e60046700517aefd107916536ceb00c0b9137f88a9257ae952e2808d503056fc93d1163f791fa3d6871657ec5d2f5ccf9729277418cf3
|
data/lib/facet/version.rb
CHANGED
@@ -0,0 +1,15 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Facet
|
4
|
+
module Generators
|
5
|
+
class FacetGenerator < Rails::Generators::NamedBase
|
6
|
+
source_root File.expand_path("templates", __dir__)
|
7
|
+
|
8
|
+
hook_for :test_framework
|
9
|
+
|
10
|
+
def create_facet
|
11
|
+
template "facet.rb.erb", File.join("app/facets/", class_path, "#{file_name}_facet.rb")
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
@@ -0,0 +1,13 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Rspec
|
4
|
+
module Generators
|
5
|
+
class FacetGenerator < Rails::Generators::NamedBase
|
6
|
+
source_root File.expand_path("templates", __dir__)
|
7
|
+
|
8
|
+
def create_spec_file
|
9
|
+
template "facet_spec.rb.erb", File.join("spec/facets/", class_path, "#{file_name}_facet_spec.rb")
|
10
|
+
end
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: facet
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.23.
|
4
|
+
version: 0.23.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eric Garside
|
8
|
+
- Brandon Trumpold
|
8
9
|
autorequire:
|
9
10
|
bindir: bin
|
10
11
|
cert_chain: []
|
11
|
-
date: 2020-
|
12
|
+
date: 2020-06-09 00:00:00.000000000 Z
|
12
13
|
dependencies:
|
13
14
|
- !ruby/object:Gem::Dependency
|
14
15
|
name: activesupport
|
@@ -30,32 +31,33 @@ dependencies:
|
|
30
31
|
requirements:
|
31
32
|
- - '='
|
32
33
|
- !ruby/object:Gem::Version
|
33
|
-
version: 0.23.
|
34
|
+
version: 0.23.8
|
34
35
|
type: :runtime
|
35
36
|
prerelease: false
|
36
37
|
version_requirements: !ruby/object:Gem::Requirement
|
37
38
|
requirements:
|
38
39
|
- - '='
|
39
40
|
- !ruby/object:Gem::Version
|
40
|
-
version: 0.23.
|
41
|
+
version: 0.23.8
|
41
42
|
- !ruby/object:Gem::Dependency
|
42
43
|
name: short_circu_it
|
43
44
|
requirement: !ruby/object:Gem::Requirement
|
44
45
|
requirements:
|
45
46
|
- - '='
|
46
47
|
- !ruby/object:Gem::Version
|
47
|
-
version: 0.23.
|
48
|
+
version: 0.23.8
|
48
49
|
type: :runtime
|
49
50
|
prerelease: false
|
50
51
|
version_requirements: !ruby/object:Gem::Requirement
|
51
52
|
requirements:
|
52
53
|
- - '='
|
53
54
|
- !ruby/object:Gem::Version
|
54
|
-
version: 0.23.
|
55
|
+
version: 0.23.8
|
55
56
|
description: Create cacheable collections of filtered, sorted, and paginated ActiveRecord
|
56
57
|
objects
|
57
58
|
email:
|
58
59
|
- eric.garside@freshly.com
|
60
|
+
- brandon.trumpold@gmail.com
|
59
61
|
executables: []
|
60
62
|
extensions: []
|
61
63
|
extra_rdoc_files: []
|
@@ -73,6 +75,12 @@ files:
|
|
73
75
|
- lib/facet/concerns/record.rb
|
74
76
|
- lib/facet/concerns/sort.rb
|
75
77
|
- lib/facet/version.rb
|
78
|
+
- lib/generators/facet/USAGE
|
79
|
+
- lib/generators/facet/facet_generator.rb
|
80
|
+
- lib/generators/facet/templates/facet.rb.erb
|
81
|
+
- lib/generators/rspec/facet/USAGE
|
82
|
+
- lib/generators/rspec/facet/facet_generator.rb
|
83
|
+
- lib/generators/rspec/facet/templates/facet_spec.rb.erb
|
76
84
|
homepage: https://github.com/Freshly/spicerack/tree/master/facet
|
77
85
|
licenses:
|
78
86
|
- MIT
|
@@ -80,7 +88,7 @@ metadata:
|
|
80
88
|
homepage_uri: https://github.com/Freshly/spicerack/tree/master/facet
|
81
89
|
source_code_uri: https://github.com/Freshly/spicerack/tree/master/facet
|
82
90
|
changelog_uri: https://github.com/Freshly/spicerack/blob/master/facet/CHANGELOG.md
|
83
|
-
documentation_uri: https://www.rubydoc.info/gems/facet/0.23.
|
91
|
+
documentation_uri: https://www.rubydoc.info/gems/facet/0.23.8
|
84
92
|
post_install_message:
|
85
93
|
rdoc_options: []
|
86
94
|
require_paths:
|
@@ -96,7 +104,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
96
104
|
- !ruby/object:Gem::Version
|
97
105
|
version: '0'
|
98
106
|
requirements: []
|
99
|
-
rubygems_version: 3.
|
107
|
+
rubygems_version: 3.1.2
|
100
108
|
signing_key:
|
101
109
|
specification_version: 4
|
102
110
|
summary: A filterable, sortable, pageable, and Rails cacheable ActiveRecord::Relation
|