scram 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.
Files changed (82) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/README.md +173 -0
  4. data/Rakefile +32 -0
  5. data/app/models/scram/policy.rb +67 -0
  6. data/app/models/scram/target.rb +70 -0
  7. data/lib/scram.rb +11 -0
  8. data/lib/scram/concerns/aggregate_holder.rb +23 -0
  9. data/lib/scram/concerns/holder.rb +38 -0
  10. data/lib/scram/core_ext/symbol_extensions.rb +14 -0
  11. data/lib/scram/dsl/builders.rb +43 -0
  12. data/lib/scram/dsl/definitions.rb +36 -0
  13. data/lib/scram/dsl/model_conditions.rb +50 -0
  14. data/lib/scram/engine.rb +15 -0
  15. data/lib/scram/version.rb +3 -0
  16. data/lib/tasks/scram_tasks.rake +4 -0
  17. data/spec/config/mongoid.yml +6 -0
  18. data/spec/dummy/Rakefile +6 -0
  19. data/spec/dummy/app/assets/config/manifest.js +5 -0
  20. data/spec/dummy/app/assets/javascripts/application.js +13 -0
  21. data/spec/dummy/app/assets/javascripts/cable.js +13 -0
  22. data/spec/dummy/app/assets/stylesheets/application.css +15 -0
  23. data/spec/dummy/app/channels/application_cable/channel.rb +4 -0
  24. data/spec/dummy/app/channels/application_cable/connection.rb +4 -0
  25. data/spec/dummy/app/controllers/application_controller.rb +3 -0
  26. data/spec/dummy/app/helpers/application_helper.rb +2 -0
  27. data/spec/dummy/app/jobs/application_job.rb +2 -0
  28. data/spec/dummy/app/mailers/application_mailer.rb +4 -0
  29. data/spec/dummy/app/views/layouts/application.html.erb +14 -0
  30. data/spec/dummy/app/views/layouts/mailer.html.erb +13 -0
  31. data/spec/dummy/app/views/layouts/mailer.text.erb +1 -0
  32. data/spec/dummy/bin/bundle +3 -0
  33. data/spec/dummy/bin/rails +4 -0
  34. data/spec/dummy/bin/rake +4 -0
  35. data/spec/dummy/bin/setup +34 -0
  36. data/spec/dummy/bin/update +29 -0
  37. data/spec/dummy/config.ru +5 -0
  38. data/spec/dummy/config/application.rb +23 -0
  39. data/spec/dummy/config/boot.rb +5 -0
  40. data/spec/dummy/config/cable.yml +9 -0
  41. data/spec/dummy/config/environment.rb +5 -0
  42. data/spec/dummy/config/environments/development.rb +51 -0
  43. data/spec/dummy/config/environments/production.rb +83 -0
  44. data/spec/dummy/config/environments/test.rb +42 -0
  45. data/spec/dummy/config/initializers/application_controller_renderer.rb +6 -0
  46. data/spec/dummy/config/initializers/assets.rb +11 -0
  47. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
  48. data/spec/dummy/config/initializers/cookies_serializer.rb +5 -0
  49. data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  50. data/spec/dummy/config/initializers/inflections.rb +16 -0
  51. data/spec/dummy/config/initializers/mime_types.rb +4 -0
  52. data/spec/dummy/config/initializers/new_framework_defaults.rb +21 -0
  53. data/spec/dummy/config/initializers/session_store.rb +3 -0
  54. data/spec/dummy/config/initializers/wrap_parameters.rb +9 -0
  55. data/spec/dummy/config/locales/en.yml +23 -0
  56. data/spec/dummy/config/mongoid.yml +147 -0
  57. data/spec/dummy/config/puma.rb +47 -0
  58. data/spec/dummy/config/routes.rb +3 -0
  59. data/spec/dummy/config/secrets.yml +22 -0
  60. data/spec/dummy/config/spring.rb +6 -0
  61. data/spec/dummy/log/development.log +11 -0
  62. data/spec/dummy/log/test.log +2321 -0
  63. data/spec/dummy/public/404.html +67 -0
  64. data/spec/dummy/public/422.html +67 -0
  65. data/spec/dummy/public/500.html +66 -0
  66. data/spec/dummy/public/apple-touch-icon-precomposed.png +0 -0
  67. data/spec/dummy/public/apple-touch-icon.png +0 -0
  68. data/spec/dummy/public/favicon.ico +0 -0
  69. data/spec/factories/policy.rb +0 -0
  70. data/spec/rails_helper.rb +78 -0
  71. data/spec/scram/concerns/aggregate_holder_spec.rb +58 -0
  72. data/spec/scram/concerns/holder_spec.rb +100 -0
  73. data/spec/scram/dsl_spec.rb +51 -0
  74. data/spec/scram/policy_spec.rb +28 -0
  75. data/spec/scram/target_spec.rb +40 -0
  76. data/spec/scram/test_implementations/simple_aggregate_holder.rb +21 -0
  77. data/spec/scram/test_implementations/simple_holder.rb +21 -0
  78. data/spec/scram/test_implementations/test_model.rb +10 -0
  79. data/spec/scram_spec.rb +11 -0
  80. data/spec/spec_helper.rb +99 -0
  81. data/spec/support/factory_girl.rb +9 -0
  82. metadata +278 -0
@@ -0,0 +1,51 @@
1
+ require "rails_helper"
2
+
3
+ module Scram
4
+ class SimpleDSLImplementation
5
+ include Scram::DSL::ModelConditions
6
+
7
+ attr_accessor :owner
8
+
9
+ scram_define do
10
+ condition :owner do |instance|
11
+ instance.owner
12
+ end
13
+ end
14
+ end
15
+
16
+ describe Scram::DSL::ModelConditions do
17
+ it "defines and retrieves conditions" do
18
+ test = SimpleDSLImplementation.new
19
+ test.owner = "bob"
20
+
21
+ owner_retrieval_condition = SimpleDSLImplementation.scram_conditions[:owner]
22
+ expect(owner_retrieval_condition.call(test)).to eq("bob")
23
+ end
24
+
25
+ it "handles retrieval of condition methods" do
26
+ test = SimpleDSLImplementation.new
27
+ test.owner = "bob"
28
+ expect(test.send("*owner")).to eq("bob")
29
+ end
30
+ end
31
+
32
+ describe Scram::DSL::Definitions do
33
+ it "defines and retrieves default comparators" do
34
+ equal_comparator = Scram::DSL::Definitions::COMPARATORS[:equals]
35
+ expect(equal_comparator.call("a", "a")).to be true
36
+ expect(equal_comparator.call("a", "b")).to be false
37
+ end
38
+
39
+ it "can define new comparators" do
40
+ builder = Scram::DSL::Builders::ComparatorBuilder.new do
41
+ comparator :asdf do |a,b|
42
+ true
43
+ end
44
+ end
45
+ Scram::DSL::Definitions.add_comparators(builder)
46
+
47
+ asdf_comparator = Scram::DSL::Definitions::COMPARATORS[:asdf]
48
+ expect(asdf_comparator.call("basically", "anything")).to be true
49
+ end
50
+ end
51
+ end
@@ -0,0 +1,28 @@
1
+ require "rails_helper"
2
+
3
+ module Scram
4
+ describe Scram::Policy do
5
+ it "prioritizes targets" do
6
+ policy = Policy.new
7
+ policy.context = TestModel.name
8
+
9
+ # Create a target that doesn't let us woot
10
+ target1 = Target.new
11
+ target1.actions << "woot"
12
+ target1.allow = false
13
+
14
+ # Create an even more important target that lets us woot
15
+ target2 = Target.new
16
+ target2.actions << "woot"
17
+ target2.allow = true
18
+ target2.priority = 1
19
+
20
+ policy.targets << target1
21
+ policy.targets << target2
22
+
23
+ policy.save
24
+
25
+ expect(policy.can? nil, :woot, TestModel.new).to be :allow
26
+ end
27
+ end
28
+ end
@@ -0,0 +1,40 @@
1
+ require "rails_helper"
2
+
3
+ module Scram
4
+ describe Scram::Target do
5
+ it "returns false when a field doesn't apply" do
6
+ policy = Policy.new
7
+ policy.context = TestModel.name
8
+
9
+ target = Target.new
10
+ target.actions << "woot"
11
+ target.allow = true
12
+ target.conditions = {:equals => {:'*non_existant_condition' => 3, :non_existant_field => 3}}
13
+ policy.targets << target
14
+
15
+ policy.save
16
+
17
+ dude = SimpleHolder.new(policies: [policy]) # This is a test holder
18
+ expect(dude.can? :woot, TestModel.new).to be false
19
+ end
20
+ end
21
+
22
+ describe Scram::Target do
23
+ it "allows model-wide permissions" do
24
+ policy = Policy.new
25
+ policy.context = TestModel.name
26
+
27
+ target = Target.new
28
+ target.actions << "woot"
29
+ target.allow = true
30
+ target.conditions = {} # Allow the actions on _anything_, including a passed in class
31
+ policy.targets << target
32
+
33
+ policy.save
34
+
35
+ dude = SimpleHolder.new(policies: [policy])
36
+ expect(dude.can? :woot, TestModel).to be true
37
+ expect(dude.can? :woot, TestModel.new).to be true # you can check based off an instance as well
38
+ end
39
+ end
40
+ end
@@ -0,0 +1,21 @@
1
+ require "scram/concerns/aggregate_holder"
2
+
3
+ module Scram
4
+ class UnimplementedAggregateHolder
5
+ include AggregateHolder
6
+ end
7
+
8
+ class SimpleAggregateHolder
9
+ include AggregateHolder
10
+
11
+ attr_accessor :aggregates
12
+
13
+ def initialize(aggregates: [])
14
+ @aggregates = aggregates
15
+ end
16
+
17
+ def scram_compare_value
18
+ "Mr. Aggregate Holder Guy"
19
+ end
20
+ end
21
+ end
@@ -0,0 +1,21 @@
1
+ require "scram/concerns/holder"
2
+
3
+ module Scram
4
+ class UnimplementedHolder
5
+ include Holder
6
+ end
7
+
8
+ class SimpleHolder
9
+ include Holder
10
+
11
+ attr_accessor :policies
12
+
13
+ def initialize(policies: [])
14
+ @policies = policies
15
+ end
16
+
17
+ def scram_compare_value
18
+ "Mr. Holder Guy"
19
+ end
20
+ end
21
+ end
@@ -0,0 +1,10 @@
1
+ module Scram
2
+ class TestModel
3
+ include Mongoid::Document
4
+ include Scram::DSL::ModelConditions
5
+
6
+ field :targetable_int, type: Integer, default: 3
7
+ field :targetable_array, type: Array, default: ["a"]
8
+ field :owner, type: String
9
+ end
10
+ end
@@ -0,0 +1,11 @@
1
+ require "spec_helper"
2
+
3
+ describe Scram do
4
+ it "has a version number" do
5
+ expect(Scram::VERSION).not_to be nil
6
+ end
7
+
8
+ #it "does something useful" do
9
+ # expect(false).to eq(true)
10
+ #end
11
+ end
@@ -0,0 +1,99 @@
1
+ # This file was generated by the `rails generate rspec:install` command. Conventionally, all
2
+ # specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
3
+ # The generated `.rspec` file contains `--require spec_helper` which will cause
4
+ # this file to always be loaded, without a need to explicitly require it in any
5
+ # files.
6
+ #
7
+ # Given that it is always loaded, you are encouraged to keep this file as
8
+ # light-weight as possible. Requiring heavyweight dependencies from this file
9
+ # will add to the boot time of your test suite on EVERY test run, even for an
10
+ # individual file that may not need all of that loaded. Instead, consider making
11
+ # a separate helper file that requires the additional dependencies and performs
12
+ # the additional setup, and require it from the spec files that actually need
13
+ # it.
14
+ #
15
+ # The `.rspec` file also contains a few flags that are not defaults but that
16
+ # users commonly want.
17
+ #
18
+ # See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
19
+ RSpec.configure do |config|
20
+ # rspec-expectations config goes here. You can use an alternate
21
+ # assertion/expectation library such as wrong or the stdlib/minitest
22
+ # assertions if you prefer.
23
+ config.expect_with :rspec do |expectations|
24
+ # This option will default to `true` in RSpec 4. It makes the `description`
25
+ # and `failure_message` of custom matchers include text for helper methods
26
+ # defined using `chain`, e.g.:
27
+ # be_bigger_than(2).and_smaller_than(4).description
28
+ # # => "be bigger than 2 and smaller than 4"
29
+ # ...rather than:
30
+ # # => "be bigger than 2"
31
+ expectations.include_chain_clauses_in_custom_matcher_descriptions = true
32
+ end
33
+
34
+ # rspec-mocks config goes here. You can use an alternate test double
35
+ # library (such as bogus or mocha) by changing the `mock_with` option here.
36
+ config.mock_with :rspec do |mocks|
37
+ # Prevents you from mocking or stubbing a method that does not exist on
38
+ # a real object. This is generally recommended, and will default to
39
+ # `true` in RSpec 4.
40
+ mocks.verify_partial_doubles = true
41
+ end
42
+
43
+ # This option will default to `:apply_to_host_groups` in RSpec 4 (and will
44
+ # have no way to turn it off -- the option exists only for backwards
45
+ # compatibility in RSpec 3). It causes shared context metadata to be
46
+ # inherited by the metadata hash of host groups and examples, rather than
47
+ # triggering implicit auto-inclusion in groups with matching metadata.
48
+ config.shared_context_metadata_behavior = :apply_to_host_groups
49
+
50
+ # The settings below are suggested to provide a good initial experience
51
+ # with RSpec, but feel free to customize to your heart's content.
52
+ =begin
53
+ # This allows you to limit a spec run to individual examples or groups
54
+ # you care about by tagging them with `:focus` metadata. When nothing
55
+ # is tagged with `:focus`, all examples get run. RSpec also provides
56
+ # aliases for `it`, `describe`, and `context` that include `:focus`
57
+ # metadata: `fit`, `fdescribe` and `fcontext`, respectively.
58
+ config.filter_run_when_matching :focus
59
+
60
+ # Allows RSpec to persist some state between runs in order to support
61
+ # the `--only-failures` and `--next-failure` CLI options. We recommend
62
+ # you configure your source control system to ignore this file.
63
+ config.example_status_persistence_file_path = "spec/examples.txt"
64
+
65
+ # Limits the available syntax to the non-monkey patched syntax that is
66
+ # recommended. For more details, see:
67
+ # - http://rspec.info/blog/2012/06/rspecs-new-expectation-syntax/
68
+ # - http://www.teaisaweso.me/blog/2013/05/27/rspecs-new-message-expectation-syntax/
69
+ # - http://rspec.info/blog/2014/05/notable-changes-in-rspec-3/#zero-monkey-patching-mode
70
+ config.disable_monkey_patching!
71
+
72
+ # Many RSpec users commonly either run the entire suite or an individual
73
+ # file, and it's useful to allow more verbose output when running an
74
+ # individual spec file.
75
+ if config.files_to_run.one?
76
+ # Use the documentation formatter for detailed output,
77
+ # unless a formatter has already been configured
78
+ # (e.g. via a command-line flag).
79
+ config.default_formatter = 'doc'
80
+ end
81
+
82
+ # Print the 10 slowest examples and example groups at the
83
+ # end of the spec run, to help surface which specs are running
84
+ # particularly slow.
85
+ config.profile_examples = 10
86
+
87
+ # Run specs in random order to surface order dependencies. If you find an
88
+ # order dependency and want to debug it, you can fix the order by providing
89
+ # the seed, which is printed after each run.
90
+ # --seed 1234
91
+ config.order = :random
92
+
93
+ # Seed global randomization in this process using the `--seed` CLI option.
94
+ # Setting this allows you to use `--seed` to deterministically reproduce
95
+ # test failures related to randomization by passing the same `--seed` value
96
+ # as the one that triggered the failure.
97
+ Kernel.srand config.seed
98
+ =end
99
+ end
@@ -0,0 +1,9 @@
1
+ require "factory_girl"
2
+
3
+ RSpec.configure do |config|
4
+ config.include FactoryGirl::Syntax::Methods
5
+
6
+ config.before(:suite) do
7
+ FactoryGirl.find_definitions
8
+ end
9
+ end
metadata ADDED
@@ -0,0 +1,278 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: scram
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - skreem
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2017-02-25 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rails
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '5.0'
20
+ - - ">="
21
+ - !ruby/object:Gem::Version
22
+ version: 5.0.1
23
+ type: :runtime
24
+ prerelease: false
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ requirements:
27
+ - - "~>"
28
+ - !ruby/object:Gem::Version
29
+ version: '5.0'
30
+ - - ">="
31
+ - !ruby/object:Gem::Version
32
+ version: 5.0.1
33
+ - !ruby/object:Gem::Dependency
34
+ name: mongoid
35
+ requirement: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - "~>"
38
+ - !ruby/object:Gem::Version
39
+ version: '6.1'
40
+ type: :runtime
41
+ prerelease: false
42
+ version_requirements: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - "~>"
45
+ - !ruby/object:Gem::Version
46
+ version: '6.1'
47
+ - !ruby/object:Gem::Dependency
48
+ name: rspec-rails
49
+ requirement: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - ">="
52
+ - !ruby/object:Gem::Version
53
+ version: '0'
54
+ type: :development
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ requirements:
58
+ - - ">="
59
+ - !ruby/object:Gem::Version
60
+ version: '0'
61
+ - !ruby/object:Gem::Dependency
62
+ name: coveralls
63
+ requirement: !ruby/object:Gem::Requirement
64
+ requirements:
65
+ - - "~>"
66
+ - !ruby/object:Gem::Version
67
+ version: 0.8.19
68
+ type: :development
69
+ prerelease: false
70
+ version_requirements: !ruby/object:Gem::Requirement
71
+ requirements:
72
+ - - "~>"
73
+ - !ruby/object:Gem::Version
74
+ version: 0.8.19
75
+ - !ruby/object:Gem::Dependency
76
+ name: factory_girl
77
+ requirement: !ruby/object:Gem::Requirement
78
+ requirements:
79
+ - - "~>"
80
+ - !ruby/object:Gem::Version
81
+ version: '4.8'
82
+ type: :development
83
+ prerelease: false
84
+ version_requirements: !ruby/object:Gem::Requirement
85
+ requirements:
86
+ - - "~>"
87
+ - !ruby/object:Gem::Version
88
+ version: '4.8'
89
+ - !ruby/object:Gem::Dependency
90
+ name: database_cleaner
91
+ requirement: !ruby/object:Gem::Requirement
92
+ requirements:
93
+ - - "~>"
94
+ - !ruby/object:Gem::Version
95
+ version: '1.5'
96
+ type: :development
97
+ prerelease: false
98
+ version_requirements: !ruby/object:Gem::Requirement
99
+ requirements:
100
+ - - "~>"
101
+ - !ruby/object:Gem::Version
102
+ version: '1.5'
103
+ description: Authorization system that utilizes an extremely flexible hierarchy
104
+ email:
105
+ - cskreem@gmail.com
106
+ executables: []
107
+ extensions: []
108
+ extra_rdoc_files: []
109
+ files:
110
+ - MIT-LICENSE
111
+ - README.md
112
+ - Rakefile
113
+ - app/models/scram/policy.rb
114
+ - app/models/scram/target.rb
115
+ - lib/scram.rb
116
+ - lib/scram/concerns/aggregate_holder.rb
117
+ - lib/scram/concerns/holder.rb
118
+ - lib/scram/core_ext/symbol_extensions.rb
119
+ - lib/scram/dsl/builders.rb
120
+ - lib/scram/dsl/definitions.rb
121
+ - lib/scram/dsl/model_conditions.rb
122
+ - lib/scram/engine.rb
123
+ - lib/scram/version.rb
124
+ - lib/tasks/scram_tasks.rake
125
+ - spec/config/mongoid.yml
126
+ - spec/dummy/Rakefile
127
+ - spec/dummy/app/assets/config/manifest.js
128
+ - spec/dummy/app/assets/javascripts/application.js
129
+ - spec/dummy/app/assets/javascripts/cable.js
130
+ - spec/dummy/app/assets/stylesheets/application.css
131
+ - spec/dummy/app/channels/application_cable/channel.rb
132
+ - spec/dummy/app/channels/application_cable/connection.rb
133
+ - spec/dummy/app/controllers/application_controller.rb
134
+ - spec/dummy/app/helpers/application_helper.rb
135
+ - spec/dummy/app/jobs/application_job.rb
136
+ - spec/dummy/app/mailers/application_mailer.rb
137
+ - spec/dummy/app/views/layouts/application.html.erb
138
+ - spec/dummy/app/views/layouts/mailer.html.erb
139
+ - spec/dummy/app/views/layouts/mailer.text.erb
140
+ - spec/dummy/bin/bundle
141
+ - spec/dummy/bin/rails
142
+ - spec/dummy/bin/rake
143
+ - spec/dummy/bin/setup
144
+ - spec/dummy/bin/update
145
+ - spec/dummy/config.ru
146
+ - spec/dummy/config/application.rb
147
+ - spec/dummy/config/boot.rb
148
+ - spec/dummy/config/cable.yml
149
+ - spec/dummy/config/environment.rb
150
+ - spec/dummy/config/environments/development.rb
151
+ - spec/dummy/config/environments/production.rb
152
+ - spec/dummy/config/environments/test.rb
153
+ - spec/dummy/config/initializers/application_controller_renderer.rb
154
+ - spec/dummy/config/initializers/assets.rb
155
+ - spec/dummy/config/initializers/backtrace_silencers.rb
156
+ - spec/dummy/config/initializers/cookies_serializer.rb
157
+ - spec/dummy/config/initializers/filter_parameter_logging.rb
158
+ - spec/dummy/config/initializers/inflections.rb
159
+ - spec/dummy/config/initializers/mime_types.rb
160
+ - spec/dummy/config/initializers/new_framework_defaults.rb
161
+ - spec/dummy/config/initializers/session_store.rb
162
+ - spec/dummy/config/initializers/wrap_parameters.rb
163
+ - spec/dummy/config/locales/en.yml
164
+ - spec/dummy/config/mongoid.yml
165
+ - spec/dummy/config/puma.rb
166
+ - spec/dummy/config/routes.rb
167
+ - spec/dummy/config/secrets.yml
168
+ - spec/dummy/config/spring.rb
169
+ - spec/dummy/log/development.log
170
+ - spec/dummy/log/test.log
171
+ - spec/dummy/public/404.html
172
+ - spec/dummy/public/422.html
173
+ - spec/dummy/public/500.html
174
+ - spec/dummy/public/apple-touch-icon-precomposed.png
175
+ - spec/dummy/public/apple-touch-icon.png
176
+ - spec/dummy/public/favicon.ico
177
+ - spec/factories/policy.rb
178
+ - spec/rails_helper.rb
179
+ - spec/scram/concerns/aggregate_holder_spec.rb
180
+ - spec/scram/concerns/holder_spec.rb
181
+ - spec/scram/dsl_spec.rb
182
+ - spec/scram/policy_spec.rb
183
+ - spec/scram/target_spec.rb
184
+ - spec/scram/test_implementations/simple_aggregate_holder.rb
185
+ - spec/scram/test_implementations/simple_holder.rb
186
+ - spec/scram/test_implementations/test_model.rb
187
+ - spec/scram_spec.rb
188
+ - spec/spec_helper.rb
189
+ - spec/support/factory_girl.rb
190
+ homepage: http://github.com/skreem/scram
191
+ licenses: []
192
+ metadata: {}
193
+ post_install_message:
194
+ rdoc_options: []
195
+ require_paths:
196
+ - lib
197
+ required_ruby_version: !ruby/object:Gem::Requirement
198
+ requirements:
199
+ - - ">="
200
+ - !ruby/object:Gem::Version
201
+ version: '0'
202
+ required_rubygems_version: !ruby/object:Gem::Requirement
203
+ requirements:
204
+ - - ">="
205
+ - !ruby/object:Gem::Version
206
+ version: '0'
207
+ requirements: []
208
+ rubyforge_project:
209
+ rubygems_version: 2.6.10
210
+ signing_key:
211
+ specification_version: 4
212
+ summary: Awesome authorization system
213
+ test_files:
214
+ - spec/config/mongoid.yml
215
+ - spec/dummy/app/assets/config/manifest.js
216
+ - spec/dummy/app/assets/javascripts/application.js
217
+ - spec/dummy/app/assets/javascripts/cable.js
218
+ - spec/dummy/app/assets/stylesheets/application.css
219
+ - spec/dummy/app/channels/application_cable/channel.rb
220
+ - spec/dummy/app/channels/application_cable/connection.rb
221
+ - spec/dummy/app/controllers/application_controller.rb
222
+ - spec/dummy/app/helpers/application_helper.rb
223
+ - spec/dummy/app/jobs/application_job.rb
224
+ - spec/dummy/app/mailers/application_mailer.rb
225
+ - spec/dummy/app/views/layouts/application.html.erb
226
+ - spec/dummy/app/views/layouts/mailer.html.erb
227
+ - spec/dummy/app/views/layouts/mailer.text.erb
228
+ - spec/dummy/bin/bundle
229
+ - spec/dummy/bin/rails
230
+ - spec/dummy/bin/rake
231
+ - spec/dummy/bin/setup
232
+ - spec/dummy/bin/update
233
+ - spec/dummy/config/application.rb
234
+ - spec/dummy/config/boot.rb
235
+ - spec/dummy/config/cable.yml
236
+ - spec/dummy/config/environment.rb
237
+ - spec/dummy/config/environments/development.rb
238
+ - spec/dummy/config/environments/production.rb
239
+ - spec/dummy/config/environments/test.rb
240
+ - spec/dummy/config/initializers/application_controller_renderer.rb
241
+ - spec/dummy/config/initializers/assets.rb
242
+ - spec/dummy/config/initializers/backtrace_silencers.rb
243
+ - spec/dummy/config/initializers/cookies_serializer.rb
244
+ - spec/dummy/config/initializers/filter_parameter_logging.rb
245
+ - spec/dummy/config/initializers/inflections.rb
246
+ - spec/dummy/config/initializers/mime_types.rb
247
+ - spec/dummy/config/initializers/new_framework_defaults.rb
248
+ - spec/dummy/config/initializers/session_store.rb
249
+ - spec/dummy/config/initializers/wrap_parameters.rb
250
+ - spec/dummy/config/locales/en.yml
251
+ - spec/dummy/config/mongoid.yml
252
+ - spec/dummy/config/puma.rb
253
+ - spec/dummy/config/routes.rb
254
+ - spec/dummy/config/secrets.yml
255
+ - spec/dummy/config/spring.rb
256
+ - spec/dummy/config.ru
257
+ - spec/dummy/log/development.log
258
+ - spec/dummy/log/test.log
259
+ - spec/dummy/public/404.html
260
+ - spec/dummy/public/422.html
261
+ - spec/dummy/public/500.html
262
+ - spec/dummy/public/apple-touch-icon-precomposed.png
263
+ - spec/dummy/public/apple-touch-icon.png
264
+ - spec/dummy/public/favicon.ico
265
+ - spec/dummy/Rakefile
266
+ - spec/factories/policy.rb
267
+ - spec/rails_helper.rb
268
+ - spec/scram/concerns/aggregate_holder_spec.rb
269
+ - spec/scram/concerns/holder_spec.rb
270
+ - spec/scram/dsl_spec.rb
271
+ - spec/scram/policy_spec.rb
272
+ - spec/scram/target_spec.rb
273
+ - spec/scram/test_implementations/simple_aggregate_holder.rb
274
+ - spec/scram/test_implementations/simple_holder.rb
275
+ - spec/scram/test_implementations/test_model.rb
276
+ - spec/scram_spec.rb
277
+ - spec/spec_helper.rb
278
+ - spec/support/factory_girl.rb