restaurant 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/restaurant/config.rb +0 -12
- data/lib/restaurant/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c81f1f53eb457a990c4f403b732885c8f0f527bf
|
4
|
+
data.tar.gz: c7733d3d7749882cce4dd1246d150777b5016f8e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5c92e38799d07ba954784f27c0680fbf6639f2b2280279e050054bdc69882e97861a2139247c3ff6986e261f9e949fb134e49dfe7840931b1e60418bae854064
|
7
|
+
data.tar.gz: 12c1168de5aa25e891bda3557b2f2bb6c2012931b768e458a37ca36eec8bb8f4572d79784a08577ba99d39a43830ce00b66e4ed464d2920e21cc7ee73d0e0ba4
|
data/lib/restaurant/config.rb
CHANGED
@@ -4,18 +4,6 @@ module Restaurant::Config
|
|
4
4
|
@versions ||= YAML.load_file(path)
|
5
5
|
end
|
6
6
|
|
7
|
-
def controllers
|
8
|
-
result = []
|
9
|
-
versions.each do |version, scopes|
|
10
|
-
scopes.each do |scope, controllers|
|
11
|
-
controllers.keys.each do |controller|
|
12
|
-
result << "#{version.camelize}::#{controller.camelize}Controller"
|
13
|
-
end
|
14
|
-
end
|
15
|
-
end
|
16
|
-
result.uniq
|
17
|
-
end
|
18
|
-
|
19
7
|
def path
|
20
8
|
Rails.root.join("config/restaurant.yml").tap do |path|
|
21
9
|
raise NoRolesError, "#{path} is not found" unless path.exist?
|
data/lib/restaurant/version.rb
CHANGED