bowtie-io 1.0.11 → 1.0.12

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: 306d8ee42fb817a716af55826f1d8cfc4dabbe67
4
- data.tar.gz: 6ad268164acd7839266d3b44f80083c11977495d
3
+ metadata.gz: 39544527d815f0c0032864468dd6412ea1826501
4
+ data.tar.gz: b79057a6d1e46b5f0a4b5c0a18777aefb34cfbb0
5
5
  SHA512:
6
- metadata.gz: 03fc05fc8fa1d0073599a99372a33ae2afbf7a269d2e146ff57d6ade16b3ed1d34e38655b7cc2cddf50a42f22b6f3ff0204ac9eb0ed80ba2a436827f45cef5b7
7
- data.tar.gz: ae7f1c3ac8e13bb358408708aa25a9ef2e0c999bf5f5af7a07b6ca4304c252463763b97d102f57ee5b165b3d6a5b5f92fcd6e9dcfffdc7a43e7f160cd2b7b774
6
+ metadata.gz: f294d9ec18aa3d6c05b71059fc66d61a07dbfd81e8e72b3ed2126b3e55b7f7fe30bea44e066a59c9e52f49ffe87ca9013e82aa520e28d63a8eef2de3f535f11e
7
+ data.tar.gz: c5fbce85a957f05bc55f672ea76fe9d78b27604e6c1b1ba2f5173bced7b5ab3bd94e1e1d54f8ad12c8d7d4ac269aa4b97f073917610f617544ffb6ecf3b0334e
@@ -215,16 +215,16 @@ module Bowtie::Middleware
215
215
  true
216
216
  else
217
217
  profile_restrictions.each do |scope,values|
218
- profile = user_profile(rack_request, scope)
219
- return false if profile.nil?
218
+ profile_data = user_profile(rack_request, scope)
219
+ return false if profile_data.nil?
220
220
 
221
221
  values.each do |key, value|
222
222
  if value == true
223
- return false if !profile.data[key]
223
+ return false if !profile_data[key]
224
224
  elsif value == false
225
- return false if !!profile.data[key]
225
+ return false if !!profile_data[key]
226
226
  else
227
- return false if profile.data[key] != value
227
+ return false if profile_data[key] != value
228
228
  end
229
229
  end
230
230
  end
@@ -1,3 +1,3 @@
1
1
  module Bowtie
2
- VERSION = '1.0.11'
2
+ VERSION = '1.0.12'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bowtie-io
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.11
4
+ version: 1.0.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Kassemi