policy_machine 0.0.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.
Files changed (56) hide show
  1. data/CONTRIBUTING.md +35 -0
  2. data/Gemfile +2 -0
  3. data/MIT-LICENSE +20 -0
  4. data/README.md +98 -0
  5. data/lib/generators/policy_machine/policy_machine_generator.rb +13 -0
  6. data/lib/generators/policy_machine/templates/migration.rb +40 -0
  7. data/lib/policy_machine.rb +236 -0
  8. data/lib/policy_machine/association.rb +73 -0
  9. data/lib/policy_machine/policy_element.rb +269 -0
  10. data/lib/policy_machine/version.rb +3 -0
  11. data/lib/policy_machine_storage_adapters/active_record.rb +306 -0
  12. data/lib/policy_machine_storage_adapters/in_memory.rb +266 -0
  13. data/lib/policy_machine_storage_adapters/neography.rb +236 -0
  14. data/lib/policy_machine_storage_adapters/template.rb +169 -0
  15. data/lib/tasks/policy_machine_tasks.rake +4 -0
  16. data/policy_machine.gemspec +23 -0
  17. data/spec/policy_machine/association_spec.rb +61 -0
  18. data/spec/policy_machine/policy_element_spec.rb +20 -0
  19. data/spec/policy_machine_spec.rb +7 -0
  20. data/spec/policy_machine_storage_adapters/active_record_spec.rb +54 -0
  21. data/spec/policy_machine_storage_adapters/in_memory_spec.rb +13 -0
  22. data/spec/policy_machine_storage_adapters/neography_spec.rb +42 -0
  23. data/spec/policy_machine_storage_adapters/template_spec.rb +6 -0
  24. data/spec/spec_helper.rb +24 -0
  25. data/spec/support/neography_helpers.rb +39 -0
  26. data/spec/support/policy_machine_helpers.rb +22 -0
  27. data/spec/support/shared_examples_policy_machine_spec.rb +697 -0
  28. data/spec/support/shared_examples_policy_machine_storage_adapter_spec.rb +278 -0
  29. data/spec/support/shared_examples_storage_adapter_public_methods.rb +20 -0
  30. data/spec/support/storage_adapter_helpers.rb +7 -0
  31. data/test/dummy/Rakefile +7 -0
  32. data/test/dummy/app/controllers/application_controller.rb +3 -0
  33. data/test/dummy/app/helpers/application_helper.rb +2 -0
  34. data/test/dummy/app/models/.gitkeep +0 -0
  35. data/test/dummy/config.ru +4 -0
  36. data/test/dummy/config/application.rb +65 -0
  37. data/test/dummy/config/boot.rb +10 -0
  38. data/test/dummy/config/database.yml +42 -0
  39. data/test/dummy/config/environment.rb +5 -0
  40. data/test/dummy/config/environments/development.rb +37 -0
  41. data/test/dummy/config/environments/test.rb +37 -0
  42. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  43. data/test/dummy/config/initializers/inflections.rb +15 -0
  44. data/test/dummy/config/initializers/mime_types.rb +5 -0
  45. data/test/dummy/config/initializers/secret_token.rb +7 -0
  46. data/test/dummy/config/initializers/session_store.rb +8 -0
  47. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  48. data/test/dummy/config/routes.rb +58 -0
  49. data/test/dummy/db/migrate/20131015214828_generate_policy_machine.rb +40 -0
  50. data/test/dummy/db/migrate/20131021221759_add_color_to_policy_element.rb +5 -0
  51. data/test/dummy/db/schema.rb +57 -0
  52. data/test/dummy/lib/assets/.gitkeep +0 -0
  53. data/test/dummy/script/rails +6 -0
  54. data/test/policy_machine_test.rb +7 -0
  55. data/test/test_helper.rb +15 -0
  56. metadata +270 -0
@@ -0,0 +1,5 @@
1
+ # Load the rails application
2
+ require File.expand_path('../application', __FILE__)
3
+
4
+ # Initialize the rails application
5
+ Dummy::Application.initialize!
@@ -0,0 +1,37 @@
1
+ Dummy::Application.configure do
2
+ # Settings specified here will take precedence over those in config/application.rb
3
+
4
+ # In the development environment your application's code is reloaded on
5
+ # every request. This slows down response time but is perfect for development
6
+ # since you don't have to restart the web server when you make code changes.
7
+ config.cache_classes = false
8
+
9
+ # Log error messages when you accidentally call methods on nil.
10
+ config.whiny_nils = true
11
+
12
+ # Show full error reports and disable caching
13
+ config.consider_all_requests_local = true
14
+ config.action_controller.perform_caching = false
15
+
16
+ # Don't care if the mailer can't send
17
+ config.action_mailer.raise_delivery_errors = false
18
+
19
+ # Print deprecation notices to the Rails logger
20
+ config.active_support.deprecation = :log
21
+
22
+ # Only use best-standards-support built into browsers
23
+ config.action_dispatch.best_standards_support = :builtin
24
+
25
+ # Raise exception on mass assignment protection for Active Record models
26
+ config.active_record.mass_assignment_sanitizer = :strict
27
+
28
+ # Log the query plan for queries taking more than this (works
29
+ # with SQLite, MySQL, and PostgreSQL)
30
+ config.active_record.auto_explain_threshold_in_seconds = 0.5
31
+
32
+ # Do not compress assets
33
+ config.assets.compress = false
34
+
35
+ # Expands the lines which load the assets
36
+ config.assets.debug = true
37
+ end
@@ -0,0 +1,37 @@
1
+ Dummy::Application.configure do
2
+ # Settings specified here will take precedence over those in config/application.rb
3
+
4
+ # The test environment is used exclusively to run your application's
5
+ # test suite. You never need to work with it otherwise. Remember that
6
+ # your test database is "scratch space" for the test suite and is wiped
7
+ # and recreated between test runs. Don't rely on the data there!
8
+ config.cache_classes = true
9
+
10
+ # Configure static asset server for tests with Cache-Control for performance
11
+ config.serve_static_assets = true
12
+ config.static_cache_control = "public, max-age=3600"
13
+
14
+ # Log error messages when you accidentally call methods on nil
15
+ config.whiny_nils = true
16
+
17
+ # Show full error reports and disable caching
18
+ config.consider_all_requests_local = true
19
+ config.action_controller.perform_caching = false
20
+
21
+ # Raise exceptions instead of rendering exception templates
22
+ config.action_dispatch.show_exceptions = false
23
+
24
+ # Disable request forgery protection in test environment
25
+ config.action_controller.allow_forgery_protection = false
26
+
27
+ # Tell Action Mailer not to deliver emails to the real world.
28
+ # The :test delivery method accumulates sent emails in the
29
+ # ActionMailer::Base.deliveries array.
30
+ config.action_mailer.delivery_method = :test
31
+
32
+ # Raise exception on mass assignment protection for Active Record models
33
+ config.active_record.mass_assignment_sanitizer = :strict
34
+
35
+ # Print deprecation notices to the stderr
36
+ config.active_support.deprecation = :stderr
37
+ end
@@ -0,0 +1,7 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
4
+ # Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
5
+
6
+ # You can also remove all the silencers if you're trying to debug a problem that might stem from framework code.
7
+ # Rails.backtrace_cleaner.remove_silencers!
@@ -0,0 +1,15 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Add new inflection rules using the following format
4
+ # (all these examples are active by default):
5
+ # ActiveSupport::Inflector.inflections do |inflect|
6
+ # inflect.plural /^(ox)$/i, '\1en'
7
+ # inflect.singular /^(ox)en/i, '\1'
8
+ # inflect.irregular 'person', 'people'
9
+ # inflect.uncountable %w( fish sheep )
10
+ # end
11
+ #
12
+ # These inflection rules are supported but not enabled by default:
13
+ # ActiveSupport::Inflector.inflections do |inflect|
14
+ # inflect.acronym 'RESTful'
15
+ # end
@@ -0,0 +1,5 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Add new mime types for use in respond_to blocks:
4
+ # Mime::Type.register "text/richtext", :rtf
5
+ # Mime::Type.register_alias "text/html", :iphone
@@ -0,0 +1,7 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Your secret key for verifying the integrity of signed cookies.
4
+ # If you change this key, all old signed cookies will become invalid!
5
+ # Make sure the secret is at least 30 characters and all random,
6
+ # no regular words or you'll be exposed to dictionary attacks.
7
+ Dummy::Application.config.secret_token = '76d28bcd2ce45f0c09aa1d9183865225fa6d151a693c8c9987aaaf2af27a41fda9617ba8ca2925d4348ffa42667c531d3aa3ad64a39d8dc990a7eaa23268fc05'
@@ -0,0 +1,8 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ Dummy::Application.config.session_store :cookie_store, key: '_dummy_session'
4
+
5
+ # Use the database for sessions instead of the cookie-based default,
6
+ # which shouldn't be used to store highly confidential information
7
+ # (create the session table with "rails generate session_migration")
8
+ # Dummy::Application.config.session_store :active_record_store
@@ -0,0 +1,14 @@
1
+ # Be sure to restart your server when you modify this file.
2
+ #
3
+ # This file contains settings for ActionController::ParamsWrapper which
4
+ # is enabled by default.
5
+
6
+ # Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
7
+ ActiveSupport.on_load(:action_controller) do
8
+ wrap_parameters format: [:json]
9
+ end
10
+
11
+ # Disable root element in JSON by default.
12
+ ActiveSupport.on_load(:active_record) do
13
+ self.include_root_in_json = false
14
+ end
@@ -0,0 +1,58 @@
1
+ Dummy::Application.routes.draw do
2
+ # The priority is based upon order of creation:
3
+ # first created -> highest priority.
4
+
5
+ # Sample of regular route:
6
+ # match 'products/:id' => 'catalog#view'
7
+ # Keep in mind you can assign values other than :controller and :action
8
+
9
+ # Sample of named route:
10
+ # match 'products/:id/purchase' => 'catalog#purchase', :as => :purchase
11
+ # This route can be invoked with purchase_url(:id => product.id)
12
+
13
+ # Sample resource route (maps HTTP verbs to controller actions automatically):
14
+ # resources :products
15
+
16
+ # Sample resource route with options:
17
+ # resources :products do
18
+ # member do
19
+ # get 'short'
20
+ # post 'toggle'
21
+ # end
22
+ #
23
+ # collection do
24
+ # get 'sold'
25
+ # end
26
+ # end
27
+
28
+ # Sample resource route with sub-resources:
29
+ # resources :products do
30
+ # resources :comments, :sales
31
+ # resource :seller
32
+ # end
33
+
34
+ # Sample resource route with more complex sub-resources
35
+ # resources :products do
36
+ # resources :comments
37
+ # resources :sales do
38
+ # get 'recent', :on => :collection
39
+ # end
40
+ # end
41
+
42
+ # Sample resource route within a namespace:
43
+ # namespace :admin do
44
+ # # Directs /admin/products/* to Admin::ProductsController
45
+ # # (app/controllers/admin/products_controller.rb)
46
+ # resources :products
47
+ # end
48
+
49
+ # You can have the root of your site routed with "root"
50
+ # just remember to delete public/index.html.
51
+ # root :to => 'welcome#index'
52
+
53
+ # See how all your routes lay out with "rake routes"
54
+
55
+ # This is a legacy wild controller route that's not recommended for RESTful applications.
56
+ # Note: This route will make all actions in every controller accessible via GET requests.
57
+ # match ':controller(/:action(/:id))(.:format)'
58
+ end
@@ -0,0 +1,40 @@
1
+ class GeneratePolicyMachine < ActiveRecord::Migration
2
+ def change
3
+
4
+ create_table :policy_elements do |t|
5
+ t.string :unique_identifier, null: false
6
+ t.string :policy_machine_uuid
7
+ t.string :type, null: false
8
+ t.text :extra_attributes
9
+ end
10
+ add_index :policy_elements, [:unique_identifier], unique: true
11
+ add_index :policy_elements, [:type]
12
+
13
+ create_table :policy_element_associations do |t|
14
+ t.integer :user_attribute_id, null: false
15
+ t.integer :object_attribute_id, null: false
16
+ end
17
+ add_index :policy_element_associations, [:user_attribute_id, :object_attribute_id], name: 'index_pe_assocs_on_ua_and_oa'
18
+
19
+ create_table :transitive_closure, id: false do |t|
20
+ t.integer :ancestor_id, null: false
21
+ t.integer :descendant_id, null: false
22
+ end
23
+ add_index :transitive_closure, [:ancestor_id, :descendant_id], unique: true
24
+ add_index :transitive_closure, [:descendant_id]
25
+
26
+ create_table :assignments do |t|
27
+ t.integer :parent_id, null: false
28
+ t.integer :child_id, null: false
29
+ end
30
+ add_index :assignments, [:parent_id, :child_id], unique: true
31
+ add_index :assignments, [:child_id]
32
+
33
+ create_table :operations_policy_element_associations, id: false do |t|
34
+ t.integer :policy_element_association_id, null: false
35
+ t.integer :operation_id, null: false
36
+ end
37
+ add_index :operations_policy_element_associations, [:policy_element_association_id, :operation_id], unique: true, name: 'index_pe_assoc_os_on_assoc_and_o'
38
+
39
+ end
40
+ end
@@ -0,0 +1,5 @@
1
+ class AddColorToPolicyElement < ActiveRecord::Migration
2
+ def change
3
+ add_column :policy_elements, :color, :string
4
+ end
5
+ end
@@ -0,0 +1,57 @@
1
+ # encoding: UTF-8
2
+ # This file is auto-generated from the current state of the database. Instead
3
+ # of editing this file, please use the migrations feature of Active Record to
4
+ # incrementally modify your database, and then regenerate this schema definition.
5
+ #
6
+ # Note that this schema.rb definition is the authoritative source for your
7
+ # database schema. If you need to create the application database on another
8
+ # system, you should be using db:schema:load, not running all the migrations
9
+ # from scratch. The latter is a flawed and unsustainable approach (the more migrations
10
+ # you'll amass, the slower it'll run and the greater likelihood for issues).
11
+ #
12
+ # It's strongly recommended to check this file into your version control system.
13
+
14
+ ActiveRecord::Schema.define(:version => 20131021221759) do
15
+
16
+ create_table "assignments", :force => true do |t|
17
+ t.integer "parent_id", :null => false
18
+ t.integer "child_id", :null => false
19
+ end
20
+
21
+ add_index "assignments", ["child_id"], :name => "index_assignments_on_child_id"
22
+ add_index "assignments", ["parent_id", "child_id"], :name => "index_assignments_on_parent_id_and_child_id", :unique => true
23
+
24
+ create_table "operations_policy_element_associations", :id => false, :force => true do |t|
25
+ t.integer "policy_element_association_id", :null => false
26
+ t.integer "operation_id", :null => false
27
+ end
28
+
29
+ add_index "operations_policy_element_associations", ["policy_element_association_id", "operation_id"], :name => "index_pe_assoc_os_on_assoc_and_o", :unique => true
30
+
31
+ create_table "policy_element_associations", :force => true do |t|
32
+ t.integer "user_attribute_id", :null => false
33
+ t.integer "object_attribute_id", :null => false
34
+ end
35
+
36
+ add_index "policy_element_associations", ["user_attribute_id", "object_attribute_id"], :name => "index_pe_assocs_on_ua_and_oa"
37
+
38
+ create_table "policy_elements", :force => true do |t|
39
+ t.string "unique_identifier", :null => false
40
+ t.string "policy_machine_uuid"
41
+ t.string "type", :null => false
42
+ t.text "extra_attributes"
43
+ t.string "color"
44
+ end
45
+
46
+ add_index "policy_elements", ["type"], :name => "index_policy_elements_on_type"
47
+ add_index "policy_elements", ["unique_identifier"], :name => "index_policy_elements_on_unique_identifier", :unique => true
48
+
49
+ create_table "transitive_closure", :id => false, :force => true do |t|
50
+ t.integer "ancestor_id", :null => false
51
+ t.integer "descendant_id", :null => false
52
+ end
53
+
54
+ add_index "transitive_closure", ["ancestor_id", "descendant_id"], :name => "index_transitive_closure_on_ancestor_id_and_descendant_id", :unique => true
55
+ add_index "transitive_closure", ["descendant_id"], :name => "index_transitive_closure_on_descendant_id"
56
+
57
+ end
File without changes
@@ -0,0 +1,6 @@
1
+ #!/usr/bin/env ruby
2
+ # This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
3
+
4
+ APP_PATH = File.expand_path('../../config/application', __FILE__)
5
+ require File.expand_path('../../config/boot', __FILE__)
6
+ require 'rails/commands'
@@ -0,0 +1,7 @@
1
+ require 'test_helper'
2
+
3
+ class PolicyMachineTest < ActiveSupport::TestCase
4
+ test "truth" do
5
+ assert_kind_of Module, PolicyMachine
6
+ end
7
+ end
@@ -0,0 +1,15 @@
1
+ # Configure Rails Environment
2
+ ENV["RAILS_ENV"] = "test"
3
+
4
+ require File.expand_path("../dummy/config/environment.rb", __FILE__)
5
+ require "rails/test_help"
6
+
7
+ Rails.backtrace_cleaner.remove_silencers!
8
+
9
+ # Load support files
10
+ Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
11
+
12
+ # Load fixtures from the engine
13
+ if ActiveSupport::TestCase.method_defined?(:fixture_path=)
14
+ ActiveSupport::TestCase.fixture_path = File.expand_path("../fixtures", __FILE__)
15
+ end
metadata ADDED
@@ -0,0 +1,270 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: policy_machine
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Matthew Szenher
9
+ - Aaron Weiner
10
+ autorequire:
11
+ bindir: bin
12
+ cert_chain: []
13
+ date: 2013-10-28 00:00:00.000000000 Z
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: activesupport
17
+ requirement: !ruby/object:Gem::Requirement
18
+ none: false
19
+ requirements:
20
+ - - ! '>='
21
+ - !ruby/object:Gem::Version
22
+ version: '0'
23
+ type: :runtime
24
+ prerelease: false
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ none: false
27
+ requirements:
28
+ - - ! '>='
29
+ - !ruby/object:Gem::Version
30
+ version: '0'
31
+ - !ruby/object:Gem::Dependency
32
+ name: rspec
33
+ requirement: !ruby/object:Gem::Requirement
34
+ none: false
35
+ requirements:
36
+ - - ~>
37
+ - !ruby/object:Gem::Version
38
+ version: 2.13.0
39
+ type: :development
40
+ prerelease: false
41
+ version_requirements: !ruby/object:Gem::Requirement
42
+ none: false
43
+ requirements:
44
+ - - ~>
45
+ - !ruby/object:Gem::Version
46
+ version: 2.13.0
47
+ - !ruby/object:Gem::Dependency
48
+ name: simplecov
49
+ requirement: !ruby/object:Gem::Requirement
50
+ none: false
51
+ requirements:
52
+ - - ~>
53
+ - !ruby/object:Gem::Version
54
+ version: 0.7.1
55
+ type: :development
56
+ prerelease: false
57
+ version_requirements: !ruby/object:Gem::Requirement
58
+ none: false
59
+ requirements:
60
+ - - ~>
61
+ - !ruby/object:Gem::Version
62
+ version: 0.7.1
63
+ - !ruby/object:Gem::Dependency
64
+ name: debugger
65
+ requirement: !ruby/object:Gem::Requirement
66
+ none: false
67
+ requirements:
68
+ - - ~>
69
+ - !ruby/object:Gem::Version
70
+ version: 1.6.0
71
+ type: :development
72
+ prerelease: false
73
+ version_requirements: !ruby/object:Gem::Requirement
74
+ none: false
75
+ requirements:
76
+ - - ~>
77
+ - !ruby/object:Gem::Version
78
+ version: 1.6.0
79
+ - !ruby/object:Gem::Dependency
80
+ name: neography
81
+ requirement: !ruby/object:Gem::Requirement
82
+ none: false
83
+ requirements:
84
+ - - ~>
85
+ - !ruby/object:Gem::Version
86
+ version: '1.1'
87
+ type: :development
88
+ prerelease: false
89
+ version_requirements: !ruby/object:Gem::Requirement
90
+ none: false
91
+ requirements:
92
+ - - ~>
93
+ - !ruby/object:Gem::Version
94
+ version: '1.1'
95
+ - !ruby/object:Gem::Dependency
96
+ name: rails
97
+ requirement: !ruby/object:Gem::Requirement
98
+ none: false
99
+ requirements:
100
+ - - ! '>='
101
+ - !ruby/object:Gem::Version
102
+ version: '0'
103
+ type: :development
104
+ prerelease: false
105
+ version_requirements: !ruby/object:Gem::Requirement
106
+ none: false
107
+ requirements:
108
+ - - ! '>='
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: mysql2
113
+ requirement: !ruby/object:Gem::Requirement
114
+ none: false
115
+ requirements:
116
+ - - ! '>='
117
+ - !ruby/object:Gem::Version
118
+ version: '0'
119
+ type: :development
120
+ prerelease: false
121
+ version_requirements: !ruby/object:Gem::Requirement
122
+ none: false
123
+ requirements:
124
+ - - ! '>='
125
+ - !ruby/object:Gem::Version
126
+ version: '0'
127
+ - !ruby/object:Gem::Dependency
128
+ name: database_cleaner
129
+ requirement: !ruby/object:Gem::Requirement
130
+ none: false
131
+ requirements:
132
+ - - ! '>='
133
+ - !ruby/object:Gem::Version
134
+ version: '0'
135
+ type: :development
136
+ prerelease: false
137
+ version_requirements: !ruby/object:Gem::Requirement
138
+ none: false
139
+ requirements:
140
+ - - ! '>='
141
+ - !ruby/object:Gem::Version
142
+ version: '0'
143
+ description: A ruby implementation of the Policy Machine authorization formalism.
144
+ email:
145
+ - MSzenher@mdsol.com
146
+ - AWeiner@mdsol.com
147
+ executables: []
148
+ extensions: []
149
+ extra_rdoc_files: []
150
+ files:
151
+ - CONTRIBUTING.md
152
+ - Gemfile
153
+ - MIT-LICENSE
154
+ - README.md
155
+ - lib/generators/policy_machine/policy_machine_generator.rb
156
+ - lib/generators/policy_machine/templates/migration.rb
157
+ - lib/policy_machine.rb
158
+ - lib/policy_machine/association.rb
159
+ - lib/policy_machine/policy_element.rb
160
+ - lib/policy_machine/version.rb
161
+ - lib/policy_machine_storage_adapters/active_record.rb
162
+ - lib/policy_machine_storage_adapters/in_memory.rb
163
+ - lib/policy_machine_storage_adapters/neography.rb
164
+ - lib/policy_machine_storage_adapters/template.rb
165
+ - lib/tasks/policy_machine_tasks.rake
166
+ - policy_machine.gemspec
167
+ - spec/policy_machine/association_spec.rb
168
+ - spec/policy_machine/policy_element_spec.rb
169
+ - spec/policy_machine_spec.rb
170
+ - spec/policy_machine_storage_adapters/active_record_spec.rb
171
+ - spec/policy_machine_storage_adapters/in_memory_spec.rb
172
+ - spec/policy_machine_storage_adapters/neography_spec.rb
173
+ - spec/policy_machine_storage_adapters/template_spec.rb
174
+ - spec/spec_helper.rb
175
+ - spec/support/neography_helpers.rb
176
+ - spec/support/policy_machine_helpers.rb
177
+ - spec/support/shared_examples_policy_machine_spec.rb
178
+ - spec/support/shared_examples_policy_machine_storage_adapter_spec.rb
179
+ - spec/support/shared_examples_storage_adapter_public_methods.rb
180
+ - spec/support/storage_adapter_helpers.rb
181
+ - test/dummy/Rakefile
182
+ - test/dummy/app/controllers/application_controller.rb
183
+ - test/dummy/app/helpers/application_helper.rb
184
+ - test/dummy/app/models/.gitkeep
185
+ - test/dummy/config.ru
186
+ - test/dummy/config/application.rb
187
+ - test/dummy/config/boot.rb
188
+ - test/dummy/config/database.yml
189
+ - test/dummy/config/environment.rb
190
+ - test/dummy/config/environments/development.rb
191
+ - test/dummy/config/environments/test.rb
192
+ - test/dummy/config/initializers/backtrace_silencers.rb
193
+ - test/dummy/config/initializers/inflections.rb
194
+ - test/dummy/config/initializers/mime_types.rb
195
+ - test/dummy/config/initializers/secret_token.rb
196
+ - test/dummy/config/initializers/session_store.rb
197
+ - test/dummy/config/initializers/wrap_parameters.rb
198
+ - test/dummy/config/routes.rb
199
+ - test/dummy/db/migrate/20131015214828_generate_policy_machine.rb
200
+ - test/dummy/db/migrate/20131021221759_add_color_to_policy_element.rb
201
+ - test/dummy/db/schema.rb
202
+ - test/dummy/lib/assets/.gitkeep
203
+ - test/dummy/script/rails
204
+ - test/policy_machine_test.rb
205
+ - test/test_helper.rb
206
+ homepage: https://github.com/mdsol/the_policy_machine
207
+ licenses: []
208
+ post_install_message:
209
+ rdoc_options: []
210
+ require_paths:
211
+ - lib
212
+ required_ruby_version: !ruby/object:Gem::Requirement
213
+ none: false
214
+ requirements:
215
+ - - ! '>='
216
+ - !ruby/object:Gem::Version
217
+ version: '0'
218
+ required_rubygems_version: !ruby/object:Gem::Requirement
219
+ none: false
220
+ requirements:
221
+ - - ! '>='
222
+ - !ruby/object:Gem::Version
223
+ version: '0'
224
+ requirements: []
225
+ rubyforge_project:
226
+ rubygems_version: 1.8.24
227
+ signing_key:
228
+ specification_version: 3
229
+ summary: Policy Machine!
230
+ test_files:
231
+ - spec/policy_machine/association_spec.rb
232
+ - spec/policy_machine/policy_element_spec.rb
233
+ - spec/policy_machine_spec.rb
234
+ - spec/policy_machine_storage_adapters/active_record_spec.rb
235
+ - spec/policy_machine_storage_adapters/in_memory_spec.rb
236
+ - spec/policy_machine_storage_adapters/neography_spec.rb
237
+ - spec/policy_machine_storage_adapters/template_spec.rb
238
+ - spec/spec_helper.rb
239
+ - spec/support/neography_helpers.rb
240
+ - spec/support/policy_machine_helpers.rb
241
+ - spec/support/shared_examples_policy_machine_spec.rb
242
+ - spec/support/shared_examples_policy_machine_storage_adapter_spec.rb
243
+ - spec/support/shared_examples_storage_adapter_public_methods.rb
244
+ - spec/support/storage_adapter_helpers.rb
245
+ - test/dummy/Rakefile
246
+ - test/dummy/app/controllers/application_controller.rb
247
+ - test/dummy/app/helpers/application_helper.rb
248
+ - test/dummy/app/models/.gitkeep
249
+ - test/dummy/config.ru
250
+ - test/dummy/config/application.rb
251
+ - test/dummy/config/boot.rb
252
+ - test/dummy/config/database.yml
253
+ - test/dummy/config/environment.rb
254
+ - test/dummy/config/environments/development.rb
255
+ - test/dummy/config/environments/test.rb
256
+ - test/dummy/config/initializers/backtrace_silencers.rb
257
+ - test/dummy/config/initializers/inflections.rb
258
+ - test/dummy/config/initializers/mime_types.rb
259
+ - test/dummy/config/initializers/secret_token.rb
260
+ - test/dummy/config/initializers/session_store.rb
261
+ - test/dummy/config/initializers/wrap_parameters.rb
262
+ - test/dummy/config/routes.rb
263
+ - test/dummy/db/migrate/20131015214828_generate_policy_machine.rb
264
+ - test/dummy/db/migrate/20131021221759_add_color_to_policy_element.rb
265
+ - test/dummy/db/schema.rb
266
+ - test/dummy/lib/assets/.gitkeep
267
+ - test/dummy/script/rails
268
+ - test/policy_machine_test.rb
269
+ - test/test_helper.rb
270
+ has_rdoc: