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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8bea95d0e9c7c97c12f1f3dabcd8b419ed9f3e40
4
- data.tar.gz: 6faef8c22e188dea0013ad8e41f425079c88284c
3
+ metadata.gz: ab4a955ff3bda5ede4c1168208aef92fbb50440b
4
+ data.tar.gz: 013ee6a83b935c5b037387c046cca2f0bb3dd529
5
5
  SHA512:
6
- metadata.gz: e599afe61d51efe4e44d286e7fd5cb14954642e8af3855d115dd0aea3cf4eae12c8c316aa74dd322b45ea62ea689cb650c76e3448edbfe316bb6a2560e7ae510
7
- data.tar.gz: db9ffc036f4cbcb123109214d60c97334d534f43202b614a777341baaf39a7d9bda35b00c4b116abee98d0c0bb6ef884bc45b9a2eda7a56aa36f100bde90848c
6
+ metadata.gz: eaffbaf64cb1e6b01becc5da9908df34deb5e01b49f529c06ff917efe72b22ffc3afb1531dee3cd36f7ce2677f80e700cf198b12b71ba852c851ac51a61d4567
7
+ data.tar.gz: c2458015080be3856965b60922abfcc9e30dd6884f16a49fb06e6b9d63eb0bcc2683f8eb2d85cae5bf0846dac3f37dead9f512f8d319bcdfdf6fe03d3a9c5c31
data/.gitignore CHANGED
@@ -12,6 +12,7 @@
12
12
  *.o
13
13
  *.a
14
14
  mkmf.log
15
+ .ruby-version
15
16
 
16
17
  *.gem
17
18
 
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ 2.1.4
data/.travis.yml CHANGED
@@ -3,7 +3,7 @@ rvm:
3
3
  - "2.1.4"
4
4
  before_script:
5
5
  - cd test/rails_app/
6
- - bundle exec rake db:migrate db:fixtures:load
6
+ - RAILS_ENV=test bundle exec rake db:migrate db:fixtures:load
7
7
  - cd ../..
8
8
  script:
9
9
  - bundle exec rake test
data/Gemfile CHANGED
@@ -9,5 +9,7 @@ group :development do
9
9
  gem 'rdoc'
10
10
 
11
11
  gem 'guard'
12
- gem 'guard-minitest'
12
+ gem 'guard-minitest', "2.3.2"
13
13
  end
14
+
15
+ gem "codeclimate-test-reporter", group: :test, require: nil
@@ -2,7 +2,7 @@ module SimonSays
2
2
  module Authorizer
3
3
  extend ActiveSupport::Concern
4
4
 
5
- class Denied < Exception
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 * ', '}"
@@ -1,3 +1,3 @@
1
1
  module SimonSays
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
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", "~> 1.7"
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"
@@ -1,6 +1,7 @@
1
1
  require File.expand_path('../boot', __FILE__)
2
2
 
3
3
  require 'rails/all'
4
+ require 'responders'
4
5
 
5
6
  # Require the gems listed in Gemfile, including any gems
6
7
  # you've limited to :test, :development, or :production.
@@ -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.serve_static_assets = true
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
@@ -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
@@ -1,3 +1,8 @@
1
+ require "codeclimate-test-reporter"
2
+ CodeClimate::TestReporter.start
3
+
4
+ require 'mocha/mini_test'
5
+
1
6
  $LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)
2
7
  require 'simon_says' # HELLO SIMON
3
8
 
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.3
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: 2014-12-22 00:00:00.000000000 Z
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: '1.7'
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: '1.7'
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.2
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