effective_obfuscation 1.2.1 → 1.2.3

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: ff74ee479062909e1b25aaf6343951f85e761787
4
- data.tar.gz: a3fe9d654f3bf4fb9d6d10186ba6ea400897364c
3
+ metadata.gz: 66c78820411ac85c68890ea7c820e8edde646c71
4
+ data.tar.gz: abc972df5fc6965e0aee00aa6a07853fd801b646
5
5
  SHA512:
6
- metadata.gz: 108fea72ae7cf802c6b5438db0c8b3e6654e6fcbe0af4f978a9944d4f741f3ca124013e9c4ae209c749bbd978489dffe414fcb91bafa71d12a8c92ee4eb46eec
7
- data.tar.gz: 53b467b732c386bf2b021c855f9cb5d6748b45cd9f4f3d29c0826a4ca22d085644377bfc35d0c1eac908c8bafeea0c6f21f00e2c8ecae19b1d6aaa2c901fcbaa
6
+ metadata.gz: 22abb8a737752142e3c2811b46820f81319884e6630fc80646a242791e300d4e23bd4a457a23f9e22e85cd4ca0ab510324327e6780428ff66ed75af5cf0e4321
7
+ data.tar.gz: 7a7f19881dbe5cc360ed4376e36cffcf9f2b822bce399268279de9e3288f8f1c54f771f2d70472b8cd1b661a2d961928d96fd78acf1fa881969cd4324413d8c4
data/MIT-LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright 2014 Code and Effect Inc.
1
+ Copyright 2017 Code and Effect Inc.
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
@@ -97,7 +97,7 @@ module ActsAsObfuscated
97
97
  deobfuscators['id'] = Proc.new { |right| self.deobfuscate(right) }
98
98
 
99
99
  reflect_on_all_associations(:belongs_to).each do |reflection|
100
- if reflection.klass.respond_to?(:deobfuscate)
100
+ if (reflection.klass rescue nil).respond_to?(:deobfuscate)
101
101
  deobfuscators[reflection.foreign_key] = Proc.new { |right| reflection.klass.deobfuscate(right) }
102
102
  # Should override the foreign_object_id= method and deobfuscate it too
103
103
  end
@@ -1,3 +1,3 @@
1
1
  module EffectiveObfuscation
2
- VERSION = '1.2.1'.freeze
2
+ VERSION = '1.2.3'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_obfuscation
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: 1.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code and Effect
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-12-07 00:00:00.000000000 Z
11
+ date: 2017-01-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -49,7 +49,6 @@ extra_rdoc_files: []
49
49
  files:
50
50
  - MIT-LICENSE
51
51
  - README.md
52
- - Rakefile
53
52
  - app/models/concerns/acts_as_obfuscated.rb
54
53
  - lib/effective_obfuscation.rb
55
54
  - lib/effective_obfuscation/engine.rb
data/Rakefile DELETED
@@ -1,20 +0,0 @@
1
- #!/usr/bin/env rake
2
- begin
3
- require 'bundler/setup'
4
- rescue LoadError
5
- puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
6
- end
7
-
8
- # Testing tasks
9
- APP_RAKEFILE = File.expand_path("../spec/dummy/Rakefile", __FILE__)
10
- load 'rails/tasks/engine.rake'
11
-
12
- Bundler::GemHelper.install_tasks
13
-
14
- require 'rspec/core'
15
- require 'rspec/core/rake_task'
16
-
17
- desc "Run all specs in spec directory (excluding plugin specs)"
18
- RSpec::Core::RakeTask.new(:spec => 'app:db:test:prepare')
19
-
20
- task :default => :spec