effective_obfuscation 1.2.0 → 1.2.1
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 +4 -4
- data/README.md +0 -3
- data/lib/effective_obfuscation/version.rb +1 -1
- metadata +3 -7
- data/spec/effective_obfuscation_spec.rb +0 -7
- data/spec/spec_helper.rb +0 -33
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ff74ee479062909e1b25aaf6343951f85e761787
|
4
|
+
data.tar.gz: a3fe9d654f3bf4fb9d6d10186ba6ea400897364c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 108fea72ae7cf802c6b5438db0c8b3e6654e6fcbe0af4f978a9944d4f741f3ca124013e9c4ae209c749bbd978489dffe414fcb91bafa71d12a8c92ee4eb46eec
|
7
|
+
data.tar.gz: 53b467b732c386bf2b021c855f9cb5d6748b45cd9f4f3d29c0826a4ca22d085644377bfc35d0c1eac908c8bafeea0c6f21f00e2c8ecae19b1d6aaa2c901fcbaa
|
data/README.md
CHANGED
@@ -154,9 +154,6 @@ Any other internally used finder methods, `where` and `find_by_id` should respon
|
|
154
154
|
|
155
155
|
MIT License. Copyright [Code and Effect Inc.](http://www.codeandeffect.com/)
|
156
156
|
|
157
|
-
Code and Effect is the product arm of [AgileStyle](http://www.agilestyle.com/), an Edmonton-based shop that specializes in building custom web applications with Ruby on Rails.
|
158
|
-
|
159
|
-
|
160
157
|
## Credits
|
161
158
|
|
162
159
|
This project was inspired by
|
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.1
|
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-
|
11
|
+
date: 2016-12-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -54,8 +54,6 @@ files:
|
|
54
54
|
- lib/effective_obfuscation.rb
|
55
55
|
- lib/effective_obfuscation/engine.rb
|
56
56
|
- lib/effective_obfuscation/version.rb
|
57
|
-
- spec/effective_obfuscation_spec.rb
|
58
|
-
- spec/spec_helper.rb
|
59
57
|
homepage: https://github.com/code-and-effect/effective_obfuscation
|
60
58
|
licenses:
|
61
59
|
- MIT
|
@@ -81,6 +79,4 @@ signing_key:
|
|
81
79
|
specification_version: 4
|
82
80
|
summary: Display unique 10-digit numbers instead of ActiveRecord IDs. Hides the ID
|
83
81
|
param so curious website visitors are unable to determine your user or order count.
|
84
|
-
test_files:
|
85
|
-
- spec/effective_obfuscation_spec.rb
|
86
|
-
- spec/spec_helper.rb
|
82
|
+
test_files: []
|
data/spec/spec_helper.rb
DELETED
@@ -1,33 +0,0 @@
|
|
1
|
-
ENV["RAILS_ENV"] ||= 'test'
|
2
|
-
|
3
|
-
require File.expand_path("../dummy/config/environment", __FILE__)
|
4
|
-
|
5
|
-
require 'rspec/rails'
|
6
|
-
require 'rspec/autorun'
|
7
|
-
|
8
|
-
# Requires supporting ruby files with custom matchers and macros, etc,
|
9
|
-
# in spec/support/ and its subdirectories.
|
10
|
-
Dir[Rails.root.join("spec/support/**/*.rb")].each {|f| require f }
|
11
|
-
|
12
|
-
RSpec.configure do |config|
|
13
|
-
config.fixture_path = "#{::Rails.root}/spec/fixtures"
|
14
|
-
|
15
|
-
Rails.logger.level = 4 # Output only minimal stuff to test.log
|
16
|
-
|
17
|
-
config.use_transactional_fixtures = true # Make this false to once again use DatabaseCleaner
|
18
|
-
config.infer_base_class_for_anonymous_controllers = false
|
19
|
-
config.order = 'random'
|
20
|
-
end
|
21
|
-
|
22
|
-
class ActiveRecord::Base
|
23
|
-
mattr_accessor :shared_connection
|
24
|
-
@@shared_connection = nil
|
25
|
-
|
26
|
-
def self.connection
|
27
|
-
@@shared_connection || retrieve_connection
|
28
|
-
end
|
29
|
-
end
|
30
|
-
|
31
|
-
# Forces all threads to share the same connection. This works on
|
32
|
-
# Capybara because it starts the web server in a thread.
|
33
|
-
ActiveRecord::Base.shared_connection = ActiveRecord::Base.connection
|