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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 55d03c905414bb0fbac7cbc3752191feebee35da
4
- data.tar.gz: 57d837db184f2493ce2a719c1ecfa9f4da2d05e2
3
+ metadata.gz: c81f1f53eb457a990c4f403b732885c8f0f527bf
4
+ data.tar.gz: c7733d3d7749882cce4dd1246d150777b5016f8e
5
5
  SHA512:
6
- metadata.gz: 364da1e3ae41a17dd979c958f8a62019593ecf526acb170aaa18651a2abfcc3f72006128f3b1a3c2e9f2df24369c3058a0b9b8dc24d8f557fd6b0d97cbd8ec12
7
- data.tar.gz: 4e8458965b3d116cc5ee364978af53a72e9928519ece7e57994c827972b92fb3c298282a4b464c071db286fac8fe6b8fe69ec0c1cd395eb4ea23bb766deac334
6
+ metadata.gz: 5c92e38799d07ba954784f27c0680fbf6639f2b2280279e050054bdc69882e97861a2139247c3ff6986e261f9e949fb134e49dfe7840931b1e60418bae854064
7
+ data.tar.gz: 12c1168de5aa25e891bda3557b2f2bb6c2012931b768e458a37ca36eec8bb8f4572d79784a08577ba99d39a43830ce00b66e4ed464d2920e21cc7ee73d0e0ba4
@@ -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?
@@ -1,3 +1,3 @@
1
1
  module Restaurant
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: restaurant
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryo Nakamura