brick 1.0.192 → 1.0.193

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
  SHA256:
3
- metadata.gz: 148c8f46702d06322322c04487a1045e6d7a3927611394a84ffe138be78adb5e
4
- data.tar.gz: 716bfaae50dc99809bc3aee4eecf5ff1c44325bca54271db225a765cdd97fb56
3
+ metadata.gz: 2a05212d96b2f91b494d68d5273b61397a413daa1804a0bee4a6a13c90443ac5
4
+ data.tar.gz: 2b5ec052357bddf4a7d8b6b390764a5f29b2078547292cd340733f8a1fe25597
5
5
  SHA512:
6
- metadata.gz: d97d94ed8d951718b34d1fc0d3ee8d023b3765bafc759fd41161155c927014ddec54a67e371363bbb17b18a614f4be16862d9cb51be313438050a3ce6e3356a2
7
- data.tar.gz: efbd8b062eccd5d5441aa8e9fe6162bce076e188761f5c7877f9ca454899fc13873fa6cdf4db21cd2154e24c824487f56a085f41402432bd99486e17213e7f00
6
+ metadata.gz: ce5fd867d92ed2df58c8b3c33395ea4517e9441b693af40a4463fb4d0babaf5d5d74ddde213ffe25c9fbc21ca07933f09653620ba33b3c0a80bb8947aab25a22
7
+ data.tar.gz: bb8e6e40af956eb1fd99f991747069240143cf52002c3af0cc57813c9d4dc0c136773a7901a8dc81dce81505fbf20d6c6ef9b46c01235d281d83158731332feb
@@ -5,7 +5,7 @@ module Brick
5
5
  module VERSION
6
6
  MAJOR = 1
7
7
  MINOR = 0
8
- TINY = 192
8
+ TINY = 193
9
9
 
10
10
  # PRE is nil unless it's a pre-release (beta, RC, etc.)
11
11
  PRE = nil
@@ -59,9 +59,11 @@ module Brick
59
59
  chosen = gets_list(list: controllers, chosen: controllers.dup)
60
60
  relations = ::Brick.relations
61
61
  chosen.each do |controller_option|
62
- if (controller_parts = controller_option.to_s.split('::')).length > 1
63
- namespace = controller_parts.first.constantize
64
- end
62
+ namespace = if (controller_parts = controller_option.to_s.split('::')).length > 1
63
+ controller_parts.first.constantize
64
+ else
65
+ Object
66
+ end
65
67
  _built_controller, code = Object.send(:build_controller, namespace, controller_parts.last, controller_parts.last.pluralize, controller_option.model, relations)
66
68
  path = ['controllers']
67
69
  path.concat(controller_parts.map(&:underscore))
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: brick
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.192
4
+ version: 1.0.193
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lorin Thwaits