simon_says 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/.ruby-version +1 -0
- data/.travis.yml +1 -1
- data/Gemfile +3 -1
- data/lib/simon_says/authorizer.rb +1 -1
- data/lib/simon_says/version.rb +1 -1
- data/simon_says.gemspec +1 -1
- data/test/rails_app/config/application.rb +1 -0
- data/test/rails_app/config/environments/test.rb +7 -1
- data/test/rails_app/db/schema.rb +2 -2
- data/test/test_helper.rb +5 -0
- metadata +8 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ab4a955ff3bda5ede4c1168208aef92fbb50440b
|
4
|
+
data.tar.gz: 013ee6a83b935c5b037387c046cca2f0bb3dd529
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eaffbaf64cb1e6b01becc5da9908df34deb5e01b49f529c06ff917efe72b22ffc3afb1531dee3cd36f7ce2677f80e700cf198b12b71ba852c851ac51a61d4567
|
7
|
+
data.tar.gz: c2458015080be3856965b60922abfcc9e30dd6884f16a49fb06e6b9d63eb0bcc2683f8eb2d85cae5bf0846dac3f37dead9f512f8d319bcdfdf6fe03d3a9c5c31
|
data/.gitignore
CHANGED
data/.ruby-version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
2.1.4
|
data/.travis.yml
CHANGED
data/Gemfile
CHANGED
@@ -2,7 +2,7 @@ module SimonSays
|
|
2
2
|
module Authorizer
|
3
3
|
extend ActiveSupport::Concern
|
4
4
|
|
5
|
-
class Denied <
|
5
|
+
class Denied < StandardError
|
6
6
|
def initialize(as, required, actual)
|
7
7
|
# TODO i18n for err message (as should be singluarized with 1 flag)
|
8
8
|
super "Access denied; #{required * ', '} role is required. Current access is #{actual * ', '}"
|
data/lib/simon_says/version.rb
CHANGED
data/simon_says.gemspec
CHANGED
@@ -20,7 +20,7 @@ Gem::Specification.new do |spec|
|
|
20
20
|
|
21
21
|
spec.add_dependency "activesupport", "~> 4.0"
|
22
22
|
|
23
|
-
spec.add_development_dependency "bundler", "
|
23
|
+
spec.add_development_dependency "bundler", "1.7.4"
|
24
24
|
spec.add_development_dependency "rake", "~> 10.0"
|
25
25
|
spec.add_development_dependency "rails", "~> 4.1"
|
26
26
|
spec.add_development_dependency "responders", "~> 1.0"
|
@@ -13,9 +13,11 @@ Rails.application.configure do
|
|
13
13
|
config.eager_load = true
|
14
14
|
|
15
15
|
# Configure static asset server for tests with Cache-Control for performance.
|
16
|
-
config.
|
16
|
+
config.serve_static_files = true
|
17
17
|
config.static_cache_control = 'public, max-age=3600'
|
18
18
|
|
19
|
+
config.active_support.test_order = :random
|
20
|
+
|
19
21
|
# Show full error reports and disable caching.
|
20
22
|
config.consider_all_requests_local = true
|
21
23
|
config.action_controller.perform_caching = false
|
@@ -36,4 +38,8 @@ Rails.application.configure do
|
|
36
38
|
|
37
39
|
# Raises error for missing translations
|
38
40
|
# config.action_view.raise_on_missing_translations = true
|
41
|
+
|
42
|
+
# Use transactional fixtures
|
43
|
+
config.use_transactional_fixtures = true
|
44
|
+
|
39
45
|
end
|
data/test/rails_app/db/schema.rb
CHANGED
@@ -14,7 +14,7 @@
|
|
14
14
|
ActiveRecord::Schema.define(version: 20141017140833) do
|
15
15
|
|
16
16
|
create_table "admin_reports", force: true do |t|
|
17
|
-
t.string "title"
|
17
|
+
t.string "title", limit: nil
|
18
18
|
t.datetime "created_at"
|
19
19
|
t.datetime "updated_at"
|
20
20
|
end
|
@@ -26,7 +26,7 @@ ActiveRecord::Schema.define(version: 20141017140833) do
|
|
26
26
|
end
|
27
27
|
|
28
28
|
create_table "documents", force: true do |t|
|
29
|
-
t.string "title"
|
29
|
+
t.string "title", limit: nil
|
30
30
|
t.datetime "created_at"
|
31
31
|
t.datetime "updated_at"
|
32
32
|
end
|
data/test/test_helper.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: simon_says
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Coyne
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-07-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -28,16 +28,16 @@ dependencies:
|
|
28
28
|
name: bundler
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - '='
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
33
|
+
version: 1.7.4
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - '='
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version:
|
40
|
+
version: 1.7.4
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rake
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -104,6 +104,7 @@ extra_rdoc_files: []
|
|
104
104
|
files:
|
105
105
|
- ".gitignore"
|
106
106
|
- ".gitpublish"
|
107
|
+
- ".ruby-version"
|
107
108
|
- ".travis.yml"
|
108
109
|
- Gemfile
|
109
110
|
- Guardfile
|
@@ -221,7 +222,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
221
222
|
version: '0'
|
222
223
|
requirements: []
|
223
224
|
rubyforge_project:
|
224
|
-
rubygems_version: 2.4.
|
225
|
+
rubygems_version: 2.4.6
|
225
226
|
signing_key:
|
226
227
|
specification_version: 4
|
227
228
|
summary: Light-weight, declarative authorization and access control for Rails
|