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 +4 -4
- data/MIT-LICENSE +1 -1
- data/app/models/concerns/acts_as_obfuscated.rb +1 -1
- data/lib/effective_obfuscation/version.rb +1 -1
- metadata +2 -3
- data/Rakefile +0 -20
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 66c78820411ac85c68890ea7c820e8edde646c71
|
4
|
+
data.tar.gz: abc972df5fc6965e0aee00aa6a07853fd801b646
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 22abb8a737752142e3c2811b46820f81319884e6630fc80646a242791e300d4e23bd4a457a23f9e22e85cd4ca0ab510324327e6780428ff66ed75af5cf0e4321
|
7
|
+
data.tar.gz: 7a7f19881dbe5cc360ed4376e36cffcf9f2b822bce399268279de9e3288f8f1c54f771f2d70472b8cd1b661a2d961928d96fd78acf1fa881969cd4324413d8c4
|
data/MIT-LICENSE
CHANGED
@@ -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
|
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.
|
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:
|
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
|