appfuel 0.2.4 → 0.2.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +9 -1
- data/lib/appfuel/domain/search_criteria.rb +4 -4
- data/lib/appfuel/feature/initializer.rb +1 -1
- data/lib/appfuel/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: ab35093c6d5bbbed105926ad6cad55cde7616d5e
|
4
|
+
data.tar.gz: e9bf722af35d2bad3dea89fba52eea61a02f3a00
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b1bb7c55c07770ca5b77be1d2e2db73ed5d4542ac0209c0dd069efc9a5646f1d22c813964e07999e7d028c1b02096d53a9638dda6b6381a216618482128b0e95
|
7
|
+
data.tar.gz: ff0140867e8db857de3377e39032f9e534fcdc2a7dc336e507cbe62e41da6f93cdf5c8029bc48ecc147d8b5b40f6f6eb779748b278a656af84f2b6f146a3e2f4
|
data/CHANGELOG.md
CHANGED
@@ -4,7 +4,15 @@ All notable changes to this project will be documented in this file. (Pending ap
|
|
4
4
|
# [Unreleased]
|
5
5
|
|
6
6
|
# Releases
|
7
|
-
## [[0.2.5]](https://github.com/rsb/appfuel/releases/tag/0.2.
|
7
|
+
## [[0.2.5]](https://github.com/rsb/appfuel/releases/tag/0.2.5) 2017-05-23
|
8
|
+
### Fixed
|
9
|
+
- feature initializer has invalid reference `register?`
|
10
|
+
- search criteria did not have `order_expr`
|
11
|
+
|
12
|
+
### Added
|
13
|
+
- tests for search criteria `filter`
|
14
|
+
|
15
|
+
## [[0.2.4]](https://github.com/rsb/appfuel/releases/tag/0.2.4) 2017-05-23
|
8
16
|
### Changed
|
9
17
|
- `Appfuel::Domain::BaseCriteria` can now qualify `domain exprs`
|
10
18
|
- refactored and tested repo mapper
|
@@ -37,7 +37,7 @@ module Appfuel
|
|
37
37
|
# transform
|
38
38
|
#
|
39
39
|
class SearchCriteria < BaseCriteria
|
40
|
-
|
40
|
+
attr_reader :order_exprs
|
41
41
|
# Parse out the domain into feature, domain, determine the name of the
|
42
42
|
# repo this criteria is for and initailize basic settings.
|
43
43
|
# global.user
|
@@ -68,7 +68,7 @@ module Appfuel
|
|
68
68
|
def initialize(domain_name, data = {})
|
69
69
|
super
|
70
70
|
@limit = nil
|
71
|
-
@
|
71
|
+
@order_exprs = []
|
72
72
|
filter(data[:filter]) if data[:filter]
|
73
73
|
end
|
74
74
|
|
@@ -81,7 +81,7 @@ module Appfuel
|
|
81
81
|
expr = ExprConjunction.new(op, filters, expr)
|
82
82
|
end
|
83
83
|
|
84
|
-
@filters =
|
84
|
+
@filters = expr
|
85
85
|
self
|
86
86
|
end
|
87
87
|
|
@@ -120,7 +120,7 @@ module Appfuel
|
|
120
120
|
unless ['desc', 'asc'].include(dir)
|
121
121
|
fail "order array item must have a hash key of desc or asc"
|
122
122
|
end
|
123
|
-
@
|
123
|
+
@order_exprs << {dir => domain_attr}
|
124
124
|
end
|
125
125
|
self
|
126
126
|
end
|
data/lib/appfuel/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: appfuel
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Robert Scott-Buccleuch
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-05-
|
11
|
+
date: 2017-05-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|