cloaked 0.1.0

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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 7cfc4f39a99606a6eb632d27e2ebc2efddfd05ee773b764f52228672a83c3a1e
4
+ data.tar.gz: b47692e72da7bf15db7712fb4d530ec3a930e0b3de4c877e779ff30cc948a570
5
+ SHA512:
6
+ metadata.gz: 821573a212e9f76eb8db5aa0ab6dd06ad14d86f22e759f0e463e2c839a42af9322c0f7fbc97983cbdf6eb16c9f8b250ea20e925e02535586ed5803f90dd87828
7
+ data.tar.gz: f95303f463f4555e7ce2b48a33b202c6167886c5ee4f46bfe0329542fd54e17f7a7b367f4b63eb03d2726860258bfd79be0b926eb894aedc63f09cda9147796e
@@ -0,0 +1,31 @@
1
+ <!--
2
+ Make our lives easier! Choose one of the following by uncommenting it:
3
+ -->
4
+
5
+ <!-- This is a 🐛 bug fix. -->
6
+ <!-- This is a 🙋 feature or enhancement. -->
7
+ <!-- This is a 🔦 documentation change. -->
8
+
9
+ <!--
10
+ Before you submit this pull request, make sure to have a look at the following
11
+ checklist. If you don't know how to do some of these, that's fine! Submit
12
+ your pull request and we will help you out on the way.
13
+
14
+ - I've added tests (if it's a bug, feature or enhancement)
15
+ - I've adjusted the documentation (if it's a feature or enhancement)
16
+ - The test suite passes locally
17
+ -->
18
+
19
+ ## Summary
20
+
21
+ <!--
22
+ Provide a description of what your pull request changes.
23
+ -->
24
+
25
+ ## Context
26
+
27
+ <!--
28
+ Is this related to any BaseCamp issue(s)?
29
+
30
+ Use any one of the above as applicable.
31
+ -->
data/.gitignore ADDED
@@ -0,0 +1,15 @@
1
+ *.log
2
+ *.sqlite3
3
+ /.bundle/
4
+ /.yardoc
5
+ /_yardoc/
6
+ /coverage/
7
+ /doc/
8
+ /pkg/
9
+ /spec/reports/
10
+ /tmp/
11
+ *.gem
12
+ *.lock
13
+
14
+ # rspec failure tracking
15
+ .rspec_status
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
data/.rubocop.yml ADDED
@@ -0,0 +1,80 @@
1
+ require:
2
+ - rubocop-performance
3
+ - rubocop-rspec
4
+
5
+ # Max line length is changed from default 80
6
+ Metrics/LineLength:
7
+ Max: 120
8
+ IgnoredPatterns: ['(\A|\s)#']
9
+ Exclude:
10
+ - - '**/*.gemspec'
11
+
12
+ # Max class definition is changed from default 100
13
+ Metrics/ClassLength:
14
+ Max: 200
15
+
16
+ Metrics/MethodLength:
17
+ Max: 15
18
+
19
+ # Exclude block length maximum on specs
20
+ Metrics/BlockLength:
21
+ Exclude:
22
+ - 'Rakefile'
23
+ - '**/*.gemspec'
24
+
25
+ # Class top level documentation
26
+ Style/Documentation:
27
+ Enabled: false
28
+
29
+ Style/FrozenStringLiteralComment:
30
+ Enabled: true
31
+ AutoCorrect: true
32
+
33
+ Style/ClassAndModuleChildren:
34
+ Enabled: false
35
+
36
+ Style/EvalWithLocation:
37
+ Enabled: false
38
+
39
+ Style/StructInheritance:
40
+ Enabled: false
41
+
42
+ Layout/ExtraSpacing:
43
+ Enabled: false
44
+
45
+ Layout/SpaceAroundOperators:
46
+ Enabled: false
47
+
48
+ # assignment branch condition size
49
+ Metrics/AbcSize:
50
+ Enabled: false
51
+
52
+ RSpec/HookArgument:
53
+ Enabled: false
54
+
55
+ RSpec/NamedSubject:
56
+ Enabled: false
57
+
58
+ RSpec/MultipleExpectations:
59
+ Max: 2
60
+
61
+ RSpec/InstanceVariable:
62
+ Enabled: false
63
+
64
+ RSpec/FilePath:
65
+ Enabled: false
66
+
67
+ FactoryBot/CreateList:
68
+ Enabled: false
69
+
70
+ Style/ModuleFunction:
71
+ Enabled: false
72
+
73
+ Style/RescueStandardError:
74
+ Enabled: false
75
+
76
+ Style/Alias:
77
+ EnforcedStyle: prefer_alias_method
78
+
79
+ Style/DoubleNegation:
80
+ Enabled: false
data/.travis.yml ADDED
@@ -0,0 +1,16 @@
1
+ ---
2
+ sudo: false
3
+ language: ruby
4
+ cache: bundler
5
+ rvm: 2.6
6
+ script: bundle exec rspec
7
+ before_install: gem install bundler -v 1.17.2
8
+ before_script:
9
+ - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
10
+ - chmod +x ./cc-test-reporter
11
+ - ./cc-test-reporter before-build
12
+ after_script:
13
+ - ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
14
+ script:
15
+ - bundle exec rspec
16
+ - bundle exec rubocop
@@ -0,0 +1,74 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ In the interest of fostering an open and welcoming environment, we as
6
+ contributors and maintainers pledge to making participation in our project and
7
+ our community a harassment-free experience for everyone, regardless of age, body
8
+ size, disability, ethnicity, gender identity and expression, level of experience,
9
+ nationality, personal appearance, race, religion, or sexual identity and
10
+ orientation.
11
+
12
+ ## Our Standards
13
+
14
+ Examples of behavior that contributes to creating a positive environment
15
+ include:
16
+
17
+ * Using welcoming and inclusive language
18
+ * Being respectful of differing viewpoints and experiences
19
+ * Gracefully accepting constructive criticism
20
+ * Focusing on what is best for the community
21
+ * Showing empathy towards other community members
22
+
23
+ Examples of unacceptable behavior by participants include:
24
+
25
+ * The use of sexualized language or imagery and unwelcome sexual attention or
26
+ advances
27
+ * Trolling, insulting/derogatory comments, and personal or political attacks
28
+ * Public or private harassment
29
+ * Publishing others' private information, such as a physical or electronic
30
+ address, without explicit permission
31
+ * Other conduct which could reasonably be considered inappropriate in a
32
+ professional setting
33
+
34
+ ## Our Responsibilities
35
+
36
+ Project maintainers are responsible for clarifying the standards of acceptable
37
+ behavior and are expected to take appropriate and fair corrective action in
38
+ response to any instances of unacceptable behavior.
39
+
40
+ Project maintainers have the right and responsibility to remove, edit, or
41
+ reject comments, commits, code, wiki edits, issues, and other contributions
42
+ that are not aligned to this Code of Conduct, or to ban temporarily or
43
+ permanently any contributor for other behaviors that they deem inappropriate,
44
+ threatening, offensive, or harmful.
45
+
46
+ ## Scope
47
+
48
+ This Code of Conduct applies both within project spaces and in public spaces
49
+ when an individual is representing the project or its community. Examples of
50
+ representing a project or community include using an official project e-mail
51
+ address, posting via an official social media account, or acting as an appointed
52
+ representative at an online or offline event. Representation of a project may be
53
+ further defined and clarified by project maintainers.
54
+
55
+ ## Enforcement
56
+
57
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
+ reported by contacting the project team at dinnerpartysaboteur@gmail.com. All
59
+ complaints will be reviewed and investigated and will result in a response that
60
+ is deemed necessary and appropriate to the circumstances. The project team is
61
+ obligated to maintain confidentiality with regard to the reporter of an incident.
62
+ Further details of specific enforcement policies may be posted separately.
63
+
64
+ Project maintainers who do not follow or enforce the Code of Conduct in good
65
+ faith may face temporary or permanent repercussions as determined by other
66
+ members of the project's leadership.
67
+
68
+ ## Attribution
69
+
70
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
+ available at [http://contributor-covenant.org/version/1/4][version]
72
+
73
+ [homepage]: http://contributor-covenant.org
74
+ [version]: http://contributor-covenant.org/version/1/4/
data/Gemfile ADDED
@@ -0,0 +1,24 @@
1
+ # frozen_string_literal: true
2
+
3
+ source 'https://rubygems.org'
4
+ gemspec name: 'cloaked'
5
+
6
+ git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }
7
+
8
+ gem 'activerecord', '~> 6.0.0'
9
+ gem 'sqlite3'
10
+
11
+ group :development do
12
+ gem 'launchy', '~> 2.3'
13
+ gem 'pry'
14
+ gem 'pry-byebug'
15
+ end
16
+
17
+ group :test do
18
+ gem 'rspec'
19
+ gem 'rspec-mocks'
20
+ gem 'rubocop'
21
+ gem 'rubocop-performance'
22
+ gem 'rubocop-rspec'
23
+ gem 'simplecov', require: false
24
+ end
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2019 Rui Freitas
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,93 @@
1
+ # Cloaked
2
+
3
+ [![Build Status](https://secure.travis-ci.org/lightthefuserun/cloaked.svg?branch=master)](https://travis-ci.org/lightthefuserun/cloaked)
4
+ [![Code Climate](https://codeclimate.com/github/lightthefuserun/cloaked.svg)](https://codeclimate.com/github/lightthefuserun/cloaked)
5
+
6
+ Cloaked provides a simple mechanism to help obfuscate ActiveRecord ids and/or other database attributes by generating public keys that can be used and made publicly visible.
7
+
8
+
9
+ ## Installation
10
+
11
+ Add this line to your application's Gemfile:
12
+
13
+ ```ruby
14
+ gem 'cloaked'
15
+ ```
16
+
17
+ And then execute:
18
+
19
+ $ bundle
20
+
21
+ Or install it yourself as:
22
+
23
+ $ gem install cloaked
24
+
25
+ ## Usage
26
+
27
+ Cloaked needs to be included in your model:
28
+
29
+ ```ruby
30
+ class Post < ApplicationRecord
31
+ include Cloaked
32
+ end
33
+ ```
34
+
35
+ After including it in the model, you can specify the list of public keys for which you want to generate public keys:
36
+
37
+ ```ruby
38
+ class Post < ApplicationRecord
39
+ include Cloaked
40
+
41
+ with_cloaked_keys :public_id
42
+ end
43
+ ```
44
+
45
+ By default, cloak will generate a random URL-safe base64 of 8 bytes. You can specify a different method for generating the public keys:
46
+
47
+ ```ruby
48
+ class Post < ApplicationRecord
49
+ include Cloaked
50
+
51
+ with_cloaked_keys :public_id, method: :hex
52
+ end
53
+ ```
54
+
55
+ Will generate a random hexadecimal string with 16 characters.
56
+
57
+ ```ruby
58
+ class Post < ApplicationRecord
59
+ include Cloaked
60
+
61
+ with_cloaked_keys :public_id, method: :uuid
62
+ end
63
+ ```
64
+
65
+ Will generate a v4 random UUID (Universally Unique IDentifier).
66
+
67
+ You can specify a custom length:
68
+
69
+ ```ruby
70
+ class Post < ApplicationRecord
71
+ include Cloaked
72
+
73
+ with_cloaked_keys :public_id, size: 16
74
+ end
75
+ ```
76
+
77
+ Only applies to `:base64` and `hex`. Note that in the latter case, the length of the hexadecimal string will be twice the size amount.
78
+
79
+ ## Contributing
80
+
81
+ Bug reports and pull requests are welcome on GitHub at https://github.com/colochousing/cloaked. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
82
+
83
+ ## License
84
+
85
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
86
+
87
+ ## Code of Conduct
88
+
89
+ Everyone interacting in the Cloaked project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/cloaked/blob/master/CODE_OF_CONDUCT.md).
90
+
91
+ ## TODO
92
+
93
+ - Load Cloaked automatically with railtie.
data/Rakefile ADDED
@@ -0,0 +1,8 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'bundler/gem_tasks'
4
+ require 'rspec/core/rake_task'
5
+
6
+ RSpec::Core::RakeTask.new(:spec)
7
+
8
+ task default: :spec
data/bin/console ADDED
@@ -0,0 +1,15 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ require 'bundler/setup'
5
+ require 'cloaked'
6
+
7
+ # You can add fixtures and/or initialization code here to make experimenting
8
+ # with your gem easier. You can also use a different console, if you like.
9
+
10
+ # (If you use this, don't forget to add pry to your Gemfile!)
11
+ # require "pry"
12
+ # Pry.start
13
+
14
+ require 'irb'
15
+ IRB.start(__FILE__)
data/bin/setup ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
data/cloaked.gemspec ADDED
@@ -0,0 +1,44 @@
1
+ # frozen_string_literal: true
2
+
3
+ lib = File.expand_path('lib', __dir__)
4
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
+ require 'cloaked/version'
6
+
7
+ Gem::Specification.new do |spec|
8
+ spec.name = 'cloaked'
9
+ spec.version = Cloaked::VERSION
10
+ spec.authors = ['Rui Freitas']
11
+ spec.email = ['dinnerpartysaboteur@gmail.com']
12
+
13
+ spec.summary = 'A gem to obfuscate ActiveRecord attributes.'
14
+ spec.description = 'Cloaked helps obfuscate ActiveRecord ids by generating public keys.'
15
+ spec.homepage = 'https://github.com/lightthefuserun/cloaked'
16
+ spec.license = 'MIT'
17
+
18
+ # Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
19
+ # to allow pushing to a single host or delete this section to allow pushing to any host.
20
+ if spec.respond_to?(:metadata)
21
+ spec.metadata['homepage_uri'] = spec.homepage
22
+ spec.metadata['source_code_uri'] = 'https://github.com/lightthefuserun/cloaked'
23
+ else
24
+ raise 'RubyGems 2.0 or newer is required to protect against ' \
25
+ 'public gem pushes.'
26
+ end
27
+
28
+ # Specify which files should be added to the gem when it is released.
29
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
30
+ spec.files = Dir.chdir(File.expand_path(__dir__)) do
31
+ `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
32
+ end
33
+ spec.bindir = 'exe'
34
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
35
+ spec.require_paths = ['lib']
36
+
37
+ spec.add_dependency 'activerecord', '>= 6'
38
+ spec.add_dependency 'sqlite3'
39
+
40
+ spec.add_development_dependency 'bundler', '~> 1.17'
41
+ spec.add_development_dependency 'database_cleaner'
42
+ spec.add_development_dependency 'rake', '~> 10.0'
43
+ spec.add_development_dependency 'rspec', '~> 3.0'
44
+ end
data/lib/cloaked.rb ADDED
@@ -0,0 +1,64 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'active_support'
4
+
5
+ require 'cloaked/active_record/cloaked/active_record'
6
+
7
+ module Cloaked
8
+ extend ActiveSupport::Concern
9
+
10
+ autoload :VERSION, 'cloaked/version'
11
+
12
+ class InvalidMethod < StandardError; end
13
+
14
+ DEFAULT_SIZE = 8
15
+
16
+ included do
17
+ cattr_accessor :cloaked_fields, instance_reader: false
18
+
19
+ before_validation :cloak_fields
20
+ end
21
+
22
+ class_methods do
23
+ def with_cloaked_keys(cloaked_field, size: DEFAULT_SIZE, prefix: '', method: :url_safe)
24
+ self.cloaked_fields ||= []
25
+ self.cloaked_fields << {
26
+ field_name: cloaked_field,
27
+ size: size,
28
+ prefix: prefix,
29
+ method: method
30
+ }
31
+ end
32
+ end
33
+
34
+ def cloak_fields(force: false)
35
+ self.class.cloaked_fields ||= []
36
+
37
+ self.class.cloaked_fields.each do |field|
38
+ cloak_field(field.merge(force: force))
39
+ end
40
+
41
+ self
42
+ end
43
+
44
+ def cloak_field(field_name: nil, size: DEFAULT_SIZE, prefix: '', force: false, method: :url_safe)
45
+ return send(field_name) if send(field_name).present? && !force
46
+
47
+ cloaked_value = prefix + value(method, size)
48
+
49
+ return send("#{field_name}=", cloaked_value) unless self.class.exists?(field_name)
50
+ end
51
+
52
+ private
53
+
54
+ def value(method, size)
55
+ case method
56
+ when :uuid then SecureRandom.uuid
57
+ when :hex then SecureRandom.hex(size)
58
+ when :url_safe then SecureRandom.urlsafe_base64(size)
59
+ else raise InvalidMethod
60
+ end
61
+ end
62
+ end
63
+
64
+ # require 'cloaked/railtie' if defined?(Rails)
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ ActiveSupport.on_load :active_record do
4
+ extend Cloaked
5
+ end
@@ -0,0 +1,9 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'rails/railtie'
4
+
5
+ module Cloaked
6
+ class Railtie < Rails::Railtie
7
+ config.eager_load_namespaces << Cloaked
8
+ end
9
+ end
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Cloaked
4
+ VERSION = '0.1.0'
5
+ end
data/rubocop.yml ADDED
@@ -0,0 +1,102 @@
1
+ ---
2
+ require:
3
+ - rubocop-performance
4
+ - rubocop-rspec
5
+
6
+ AllCops:
7
+ TargetRubyVersion: 2.6.5
8
+ Include:
9
+ - lib/**/*.rb
10
+ - spec/**/*.rb
11
+ Exclude:
12
+ - bin/**/*
13
+ - exe/**/*
14
+ - benchmark/**/*
15
+ - script/**/*
16
+ - vendor/**/*
17
+ - tmp/**/*
18
+ Layout/IndentationWidth:
19
+ Severity: error
20
+ Layout/FirstArrayElementIndentation:
21
+ EnforcedStyle: consistent
22
+ Layout/FirstHashElementIndentation:
23
+ EnforcedStyle: consistent
24
+ Layout/MultilineMethodCallIndentation:
25
+ EnforcedStyle: indented
26
+ Layout/MultilineOperationIndentation:
27
+ EnforcedStyle: indented
28
+ Layout/EmptyComment:
29
+ Enabled: false
30
+ Layout/EndAlignment:
31
+ Severity: error
32
+ Lint/UnreachableCode:
33
+ Severity: error
34
+ Metrics/AbcSize:
35
+ Max: 21
36
+ Metrics/BlockLength:
37
+ Exclude:
38
+ - spec/**/*.rb
39
+ - rake/*.rake
40
+ Metrics/ClassLength:
41
+ Exclude:
42
+ - !ruby/regexp /features\/.*.rb$/
43
+ - !ruby/regexp /spec\/.*.rb$/
44
+ Max: 240
45
+ Metrics/CyclomaticComplexity:
46
+ Exclude:
47
+ - lib/jekyll/utils.rb
48
+ - lib/jekyll/commands/serve.rb
49
+ Metrics/LineLength:
50
+ Exclude:
51
+ - !ruby/regexp /features\/.*.rb/
52
+ - Rakefile
53
+ - rake/*.rake
54
+ - Gemfile
55
+ Max: 120
56
+ Severity: warning
57
+ Metrics/MethodLength:
58
+ CountComments: false
59
+ Max: 20
60
+ Severity: error
61
+ Metrics/ModuleLength:
62
+ Max: 240
63
+ Metrics/ParameterLists:
64
+ Max: 4
65
+ Metrics/PerceivedComplexity:
66
+ Max: 8
67
+ Naming/FileName:
68
+ Enabled: false
69
+ Naming/HeredocDelimiterNaming:
70
+ Exclude:
71
+ - spec/**/*.rb
72
+ Security/MarshalLoad:
73
+ Exclude:
74
+ - !ruby/regexp /spec\/.*.rb$/
75
+ Security/YAMLLoad:
76
+ Exclude:
77
+ - !ruby/regexp /features\/.*.rb/
78
+ - !ruby/regexp /spec\/.*.rb$/
79
+ Style/AccessModifierDeclarations:
80
+ Enabled: false
81
+ Style/Alias:
82
+ EnforcedStyle: prefer_alias_method
83
+ Style/AndOr:
84
+ Severity: error
85
+ Style/ClassAndModuleChildren:
86
+ Exclude:
87
+ - spec/**/*.rb
88
+ Style/FrozenStringLiteralComment:
89
+ EnforcedStyle: always
90
+ Style/Documentation:
91
+ Enabled: false
92
+ Style/DoubleNegation:
93
+ Enabled: false
94
+ Style/GuardClause:
95
+ Enabled: false
96
+ Style/HashSyntax:
97
+ EnforcedStyle: ruby19
98
+ Severity: error
99
+ Style/ModuleFunction:
100
+ Enabled: false
101
+ Style/MultilineTernaryOperator:
102
+ Severity: error
metadata ADDED
@@ -0,0 +1,148 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: cloaked
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Rui Freitas
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2019-12-27 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: activerecord
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '6'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '6'
27
+ - !ruby/object:Gem::Dependency
28
+ name: sqlite3
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: bundler
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '1.17'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '1.17'
55
+ - !ruby/object:Gem::Dependency
56
+ name: database_cleaner
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: rake
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '10.0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '10.0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: rspec
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: '3.0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: '3.0'
97
+ description: Cloaked helps obfuscate ActiveRecord ids by generating public keys.
98
+ email:
99
+ - dinnerpartysaboteur@gmail.com
100
+ executables: []
101
+ extensions: []
102
+ extra_rdoc_files: []
103
+ files:
104
+ - ".github/PULL_REQUEST_TEMPLATE.md"
105
+ - ".gitignore"
106
+ - ".rspec"
107
+ - ".rubocop.yml"
108
+ - ".travis.yml"
109
+ - CODE_OF_CONDUCT.md
110
+ - Gemfile
111
+ - Gemfile.lock
112
+ - LICENSE.txt
113
+ - README.md
114
+ - Rakefile
115
+ - bin/console
116
+ - bin/setup
117
+ - cloaked.gemspec
118
+ - lib/cloaked.rb
119
+ - lib/cloaked/active_record/cloaked/active_record.rb
120
+ - lib/cloaked/railtie.rb
121
+ - lib/cloaked/version.rb
122
+ - rubocop.yml
123
+ homepage: https://github.com/lightthefuserun/cloaked
124
+ licenses:
125
+ - MIT
126
+ metadata:
127
+ homepage_uri: https://github.com/lightthefuserun/cloaked
128
+ source_code_uri: https://github.com/lightthefuserun/cloaked
129
+ post_install_message:
130
+ rdoc_options: []
131
+ require_paths:
132
+ - lib
133
+ required_ruby_version: !ruby/object:Gem::Requirement
134
+ requirements:
135
+ - - ">="
136
+ - !ruby/object:Gem::Version
137
+ version: '0'
138
+ required_rubygems_version: !ruby/object:Gem::Requirement
139
+ requirements:
140
+ - - ">="
141
+ - !ruby/object:Gem::Version
142
+ version: '0'
143
+ requirements: []
144
+ rubygems_version: 3.0.3
145
+ signing_key:
146
+ specification_version: 4
147
+ summary: A gem to obfuscate ActiveRecord attributes.
148
+ test_files: []