releaf-core 1.0.3 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0729e307c18711ce4f77879c011eeba4b383e0d1
|
|
4
|
+
data.tar.gz: eef36e2915a38c27d9456088d295a6c1472f4e5f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1742cbb9ae99eaf6883f7258fdf09d5c16e4b86738cd18cc9003dba4aa5d96bba96dd2ef44bd7d49596fb9347f1e48541ea0cd8d196a8ad1a95ed78cf9e1f751
|
|
7
|
+
data.tar.gz: 3447fd842ef858b232a879ae648e1af8aef808e1acf689335e67c7e1abef2003501ec235eab3550c5d243ad10a2abfddf34c4c3314fabd926c4b3001f8c0d58b
|
|
@@ -29,6 +29,6 @@ module Releaf::ActionController::Builders
|
|
|
29
29
|
end
|
|
30
30
|
|
|
31
31
|
def builder_scopes
|
|
32
|
-
[self.class.own_builder_scope, self.class.ancestor_builder_scopes, application_scope].flatten
|
|
32
|
+
[self.class.own_builder_scope, self.class.ancestor_builder_scopes, application_scope].flatten.compact
|
|
33
33
|
end
|
|
34
34
|
end
|
|
@@ -109,6 +109,11 @@ describe Releaf::ActionController do
|
|
|
109
109
|
end
|
|
110
110
|
end
|
|
111
111
|
|
|
112
|
+
it "excludes nil values from returned array" do
|
|
113
|
+
allow(subject).to receive(:application_scope).and_return(nil)
|
|
114
|
+
expect(subject.builder_scopes).to eq(["Dummy"])
|
|
115
|
+
end
|
|
116
|
+
|
|
112
117
|
context "when controller is a deeper descendant of Releaf::ActionController" do
|
|
113
118
|
let(:subject) { Dummy::GrandChildDummyController.new }
|
|
114
119
|
it "includes ancestor scopes up to but not including Releaf::ActionController" do
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: releaf-core
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- CubeSystems
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-
|
|
11
|
+
date: 2016-11-01 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|
|
@@ -515,7 +515,6 @@ files:
|
|
|
515
515
|
- lib/releaf/route_mapper.rb
|
|
516
516
|
- lib/releaf/service.rb
|
|
517
517
|
- lib/releaf/settings_ui.rb
|
|
518
|
-
- lib/releaf/version.rb
|
|
519
518
|
- lib/tasks/releaf_tasks.rake
|
|
520
519
|
- spec/builders/releaf/builders/association_reflector_spec.rb
|
|
521
520
|
- spec/builders/releaf/builders/base_spec.rb
|
data/lib/releaf/version.rb
DELETED