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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6aa8eb41aca3f2b82a2b9affbb29399c8407a1ed
4
- data.tar.gz: 9edc5e0b91bf9acde76210f9e0b1fd84b5d96f78
3
+ metadata.gz: ab35093c6d5bbbed105926ad6cad55cde7616d5e
4
+ data.tar.gz: e9bf722af35d2bad3dea89fba52eea61a02f3a00
5
5
  SHA512:
6
- metadata.gz: 9f779a784215090476418ff5932c6a8b26ad625805494e7851ae469ec4c1b8da5cc452daa7a6815d270fc3a1f82f65e056d50e4139bd23101e738aad8a9f0634
7
- data.tar.gz: 57867104cf6bc9650d2c7b17ac45547222893ca43ee8c67add88cc9d878ccfd4283d69a5abdb81d1b606b6f711243305a8965298ed75707bb7ac9e7736e56cae
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.4) 2017-05-23
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
- @order = []
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 = filter
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
- @order << {dir => domain_attr}
123
+ @order_exprs << {dir => domain_attr}
124
124
  end
125
125
  self
126
126
  end
@@ -23,7 +23,7 @@ module Appfuel
23
23
  end
24
24
 
25
25
  container[:auto_register_classes].each do |klass|
26
- next unless klass.register?
26
+ next unless klass.register_class?
27
27
  container.register(klass.container_class_path, klass)
28
28
  end
29
29
 
@@ -1,3 +1,3 @@
1
1
  module Appfuel
2
- VERSION = "0.2.4"
2
+ VERSION = "0.2.5"
3
3
  end
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
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-23 00:00:00.000000000 Z
11
+ date: 2017-05-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord