This commit is contained in:
Matthew Sumner 2016-03-14 11:49:20 -04:00
parent 343d5ed407
commit 3ad237b6fc
22 changed files with 458 additions and 512 deletions

View File

@ -25,7 +25,7 @@ rails_4 = proc do
gem 'jquery-rails'
gem 'turbolinks'
gem 'sdoc'
gem 'activeresource', '4.0.0'
gem 'activeresource'
# Test suite makes heavy use of attr_accessible
gem 'protected_attributes'
gem 'minitest-reporters'
@ -71,3 +71,27 @@ appraise '4.2' do
gem 'spring'
gem 'protected_attributes', "~> 1.0.6"
end
appraise '5.0.0.beta2' do
gem "rspec", :github => "rspec/rspec"
gem "rspec-core", :github => "rspec/rspec-core"
gem "rspec-expectations", :github => "rspec/rspec-expectations"
gem "rspec-mocks", :github => "rspec/rspec-mocks"
gem "rspec-support", :github => "rspec/rspec-support"
gem "rspec-rails", :github => "rspec/rspec-rails"
gem 'shoulda-context'
gem 'rails-controller-testing'
gem 'sqlite3', platform: :ruby
gem 'pg', platform: :ruby
gem 'activerecord-jdbc-adapter', platform: :jruby
gem 'activerecord-jdbcsqlite3-adapter', platform: :jruby
gem 'jdbc-sqlite3', platform: :jruby
gem 'jruby-openssl', platform: :jruby
gem 'therubyrhino', platform: :jruby
gem 'rails', '~> 5.0.0.beta2'
gem 'sass-rails', '~> 5.0'
gem 'jbuilder', '~> 2.0'
gem 'sdoc', '~> 0.4.0'
gem 'bcrypt', '~> 3.1.7'
gem 'spring'
end

View File

@ -29,7 +29,7 @@ gem "coffee-rails", "~> 4.0.0"
gem "jquery-rails"
gem "turbolinks"
gem "sdoc"
gem "activeresource", "4.0.0"
gem "activeresource"
gem "protected_attributes"
gem "minitest-reporters"
gem "rails", "4.0.0"

View File

@ -1,11 +1,10 @@
GIT
remote: git://github.com/pry/pry.git
revision: 3c138cbf94a44f7a6696afdab1ab5149d7541974
revision: a4535b3b7dbe97b08ecca1477cc9ede070b0ddc7
specs:
pry (0.10.1)
pry (0.10.3)
coderay (~> 1.1.0)
method_source (~> 0.8.1)
slop (~> 3.4)
GEM
remote: https://rubygems.org/
@ -46,8 +45,7 @@ GEM
arel (4.0.2)
bcrypt-ruby (3.0.1)
builder (3.1.4)
byebug (5.0.0)
columnize (= 0.9.0)
byebug (8.2.2)
coderay (1.1.0)
coffee-rails (4.0.1)
coffee-script (>= 2.2.0)
@ -55,13 +53,12 @@ GEM
coffee-script (2.4.1)
coffee-script-source
execjs
coffee-script-source (1.9.1.1)
columnize (0.9.0)
coffee-script-source (1.10.0)
diff-lcs (1.2.5)
erubis (2.7.0)
execjs (2.6.0)
fssm (0.2.10)
hashie (3.4.2)
hashie (3.4.3)
hike (1.2.3)
i18n (0.7.0)
jbuilder (1.5.3)
@ -83,16 +80,15 @@ GEM
minitest (>= 2.12, < 5.0)
powerbar
multi_json (1.11.2)
pg (0.18.3)
pg (0.18.4)
polyglot (0.3.5)
posix-spawn (0.3.11)
powerbar (1.0.12)
ansi (~> 1.5.0)
powerbar (1.0.17)
hashie (>= 1.1.0)
protected_attributes (1.0.3)
activemodel (>= 4.0.0, < 5.0)
pry-byebug (3.2.0)
byebug (~> 5.0)
pry-byebug (3.3.0)
byebug (~> 8.0)
pry (~> 0.10)
pygments.rb (0.6.3)
posix-spawn (~> 0.3.6)
@ -116,21 +112,21 @@ GEM
rake (>= 0.8.7)
thor (>= 0.18.1, < 2.0)
rake (10.5.0)
rdoc (4.2.0)
redcarpet (3.3.2)
rdoc (4.2.1)
redcarpet (3.3.4)
rspec (3.4.0)
rspec-core (~> 3.4.0)
rspec-expectations (~> 3.4.0)
rspec-mocks (~> 3.4.0)
rspec-core (3.4.1)
rspec-core (3.4.2)
rspec-support (~> 3.4.0)
rspec-expectations (3.4.0)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.4.0)
rspec-mocks (3.4.0)
rspec-mocks (3.4.1)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.4.0)
rspec-rails (3.4.0)
rspec-rails (3.4.2)
actionpack (>= 3.0, < 4.3)
activesupport (>= 3.0, < 4.3)
railties (>= 3.0, < 4.3)
@ -149,8 +145,7 @@ GEM
json (~> 1.7, >= 1.7.7)
rdoc (~> 4.0)
shoulda-context (1.2.1)
slop (3.6.0)
spring (1.4.0)
spring (1.6.3)
spring-commands-rspec (1.0.4)
spring (>= 0.9.1)
sprockets (2.12.4)
@ -162,7 +157,7 @@ GEM
actionpack (>= 3.0)
activesupport (>= 3.0)
sprockets (~> 2.8)
sqlite3 (1.3.10)
sqlite3 (1.3.11)
thor (0.19.1)
thread_safe (0.3.5)
tilt (1.4.1)
@ -186,7 +181,7 @@ PLATFORMS
DEPENDENCIES
activerecord-jdbc-adapter
activerecord-jdbcsqlite3-adapter
activeresource (= 4.0.0)
activeresource
appraisal (~> 2.0)
bcrypt-ruby (~> 3.0.0)
bundler (~> 1.1)

View File

@ -29,7 +29,7 @@ gem "coffee-rails", "~> 4.0.0"
gem "jquery-rails"
gem "turbolinks"
gem "sdoc"
gem "activeresource", "4.0.0"
gem "activeresource"
gem "protected_attributes"
gem "minitest-reporters"
gem "rails", "4.0.1"

View File

@ -1,11 +1,10 @@
GIT
remote: git://github.com/pry/pry.git
revision: 3c138cbf94a44f7a6696afdab1ab5149d7541974
revision: a4535b3b7dbe97b08ecca1477cc9ede070b0ddc7
specs:
pry (0.10.1)
pry (0.10.3)
coderay (~> 1.1.0)
method_source (~> 0.8.1)
slop (~> 3.4)
GEM
remote: https://rubygems.org/
@ -48,8 +47,7 @@ GEM
bcrypt-ruby (3.1.5)
bcrypt (>= 3.1.3)
builder (3.1.4)
byebug (5.0.0)
columnize (= 0.9.0)
byebug (8.2.2)
coderay (1.1.0)
coffee-rails (4.0.1)
coffee-script (>= 2.2.0)
@ -57,13 +55,12 @@ GEM
coffee-script (2.4.1)
coffee-script-source
execjs
coffee-script-source (1.9.1.1)
columnize (0.9.0)
coffee-script-source (1.10.0)
diff-lcs (1.2.5)
erubis (2.7.0)
execjs (2.6.0)
fssm (0.2.10)
hashie (3.4.2)
hashie (3.4.3)
hike (1.2.3)
i18n (0.7.0)
jbuilder (1.5.3)
@ -85,16 +82,15 @@ GEM
minitest (>= 2.12, < 5.0)
powerbar
multi_json (1.11.2)
pg (0.18.3)
pg (0.18.4)
polyglot (0.3.5)
posix-spawn (0.3.11)
powerbar (1.0.12)
ansi (~> 1.5.0)
powerbar (1.0.17)
hashie (>= 1.1.0)
protected_attributes (1.1.3)
activemodel (>= 4.0.1, < 5.0)
pry-byebug (3.2.0)
byebug (~> 5.0)
pry-byebug (3.3.0)
byebug (~> 8.0)
pry (~> 0.10)
pygments.rb (0.6.3)
posix-spawn (~> 0.3.6)
@ -118,21 +114,21 @@ GEM
rake (>= 0.8.7)
thor (>= 0.18.1, < 2.0)
rake (10.5.0)
rdoc (4.2.0)
redcarpet (3.3.2)
rdoc (4.2.1)
redcarpet (3.3.4)
rspec (3.4.0)
rspec-core (~> 3.4.0)
rspec-expectations (~> 3.4.0)
rspec-mocks (~> 3.4.0)
rspec-core (3.4.1)
rspec-core (3.4.2)
rspec-support (~> 3.4.0)
rspec-expectations (3.4.0)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.4.0)
rspec-mocks (3.4.0)
rspec-mocks (3.4.1)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.4.0)
rspec-rails (3.4.0)
rspec-rails (3.4.2)
actionpack (>= 3.0, < 4.3)
activesupport (>= 3.0, < 4.3)
railties (>= 3.0, < 4.3)
@ -151,8 +147,7 @@ GEM
json (~> 1.7, >= 1.7.7)
rdoc (~> 4.0)
shoulda-context (1.2.1)
slop (3.6.0)
spring (1.4.0)
spring (1.6.3)
spring-commands-rspec (1.0.4)
spring (>= 0.9.1)
sprockets (2.12.4)
@ -164,7 +159,7 @@ GEM
actionpack (>= 3.0)
activesupport (>= 3.0)
sprockets (~> 2.8)
sqlite3 (1.3.10)
sqlite3 (1.3.11)
thor (0.19.1)
thread_safe (0.3.5)
tilt (1.4.1)
@ -188,7 +183,7 @@ PLATFORMS
DEPENDENCIES
activerecord-jdbc-adapter
activerecord-jdbcsqlite3-adapter
activeresource (= 4.0.0)
activeresource
appraisal (~> 2.0)
bcrypt-ruby (~> 3.1.2)
bundler (~> 1.1)

View File

@ -29,7 +29,7 @@ gem "coffee-rails", "~> 4.0.0"
gem "jquery-rails"
gem "turbolinks"
gem "sdoc", "~> 0.4.0"
gem "activeresource", "4.0.0"
gem "activeresource"
gem "protected_attributes", "~> 1.0.6"
gem "minitest-reporters"
gem "rails", "~> 4.1.0"

View File

@ -1,40 +1,39 @@
GIT
remote: git://github.com/pry/pry.git
revision: 3c138cbf94a44f7a6696afdab1ab5149d7541974
revision: a4535b3b7dbe97b08ecca1477cc9ede070b0ddc7
specs:
pry (0.10.1)
pry (0.10.3)
coderay (~> 1.1.0)
method_source (~> 0.8.1)
slop (~> 3.4)
GEM
remote: https://rubygems.org/
specs:
actionmailer (4.1.13)
actionpack (= 4.1.13)
actionview (= 4.1.13)
actionmailer (4.1.14.1)
actionpack (= 4.1.14.1)
actionview (= 4.1.14.1)
mail (~> 2.5, >= 2.5.4)
actionpack (4.1.13)
actionview (= 4.1.13)
activesupport (= 4.1.13)
actionpack (4.1.14.1)
actionview (= 4.1.14.1)
activesupport (= 4.1.14.1)
rack (~> 1.5.2)
rack-test (~> 0.6.2)
actionview (4.1.13)
activesupport (= 4.1.13)
actionview (4.1.14.1)
activesupport (= 4.1.14.1)
builder (~> 3.1)
erubis (~> 2.7.0)
activemodel (4.1.13)
activesupport (= 4.1.13)
activemodel (4.1.14.1)
activesupport (= 4.1.14.1)
builder (~> 3.1)
activerecord (4.1.13)
activemodel (= 4.1.13)
activesupport (= 4.1.13)
activerecord (4.1.14.1)
activemodel (= 4.1.14.1)
activesupport (= 4.1.14.1)
arel (~> 5.0.0)
activeresource (4.0.0)
activemodel (~> 4.0)
activesupport (~> 4.0)
rails-observers (~> 0.1.1)
activesupport (4.1.13)
activesupport (4.1.14.1)
i18n (~> 0.6, >= 0.6.9)
json (~> 1.7, >= 1.7.7)
minitest (~> 5.1)
@ -48,8 +47,7 @@ GEM
arel (5.0.1.20140414130214)
bcrypt (3.1.10)
builder (3.2.2)
byebug (5.0.0)
columnize (= 0.9.0)
byebug (8.2.2)
coderay (1.1.0)
coffee-rails (4.0.1)
coffee-script (>= 2.2.0)
@ -57,16 +55,15 @@ GEM
coffee-script (2.4.1)
coffee-script-source
execjs
coffee-script-source (1.9.1.1)
columnize (0.9.0)
coffee-script-source (1.10.0)
diff-lcs (1.2.5)
erubis (2.7.0)
execjs (2.6.0)
fssm (0.2.10)
hike (1.2.3)
i18n (0.7.0)
jbuilder (2.3.1)
activesupport (>= 3.0.0, < 5)
jbuilder (2.4.0)
activesupport (>= 3.0.0, < 5.1)
multi_json (~> 1.2)
jquery-rails (3.1.4)
railties (>= 3.0, < 5.0)
@ -75,20 +72,20 @@ GEM
mail (2.6.3)
mime-types (>= 1.16, < 3)
method_source (0.8.2)
mime-types (2.6.2)
minitest (5.8.3)
minitest-reporters (1.1.2)
mime-types (2.99)
minitest (5.8.4)
minitest-reporters (1.1.7)
ansi
builder
minitest (>= 5.0)
ruby-progressbar
multi_json (1.11.2)
pg (0.18.3)
pg (0.18.4)
posix-spawn (0.3.11)
protected_attributes (1.0.9)
activemodel (>= 4.0.1, < 5.0)
pry-byebug (3.2.0)
byebug (~> 5.0)
pry-byebug (3.3.0)
byebug (~> 8.0)
pry (~> 0.10)
pygments.rb (0.6.3)
posix-spawn (~> 0.3.6)
@ -96,39 +93,39 @@ GEM
rack (1.5.5)
rack-test (0.6.3)
rack (>= 1.0)
rails (4.1.13)
actionmailer (= 4.1.13)
actionpack (= 4.1.13)
actionview (= 4.1.13)
activemodel (= 4.1.13)
activerecord (= 4.1.13)
activesupport (= 4.1.13)
rails (4.1.14.1)
actionmailer (= 4.1.14.1)
actionpack (= 4.1.14.1)
actionview (= 4.1.14.1)
activemodel (= 4.1.14.1)
activerecord (= 4.1.14.1)
activesupport (= 4.1.14.1)
bundler (>= 1.3.0, < 2.0)
railties (= 4.1.13)
railties (= 4.1.14.1)
sprockets-rails (~> 2.0)
rails-observers (0.1.2)
activemodel (~> 4.0)
railties (4.1.13)
actionpack (= 4.1.13)
activesupport (= 4.1.13)
railties (4.1.14.1)
actionpack (= 4.1.14.1)
activesupport (= 4.1.14.1)
rake (>= 0.8.7)
thor (>= 0.18.1, < 2.0)
rake (10.5.0)
rdoc (4.2.0)
redcarpet (3.3.2)
rdoc (4.2.1)
redcarpet (3.3.4)
rspec (3.4.0)
rspec-core (~> 3.4.0)
rspec-expectations (~> 3.4.0)
rspec-mocks (~> 3.4.0)
rspec-core (3.4.1)
rspec-core (3.4.2)
rspec-support (~> 3.4.0)
rspec-expectations (3.4.0)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.4.0)
rspec-mocks (3.4.0)
rspec-mocks (3.4.1)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.4.0)
rspec-rails (3.4.0)
rspec-rails (3.4.2)
actionpack (>= 3.0, < 4.3)
activesupport (>= 3.0, < 4.3)
railties (>= 3.0, < 4.3)
@ -148,8 +145,7 @@ GEM
json (~> 1.7, >= 1.7.7)
rdoc (~> 4.0)
shoulda-context (1.2.1)
slop (3.6.0)
spring (1.4.0)
spring (1.6.3)
spring-commands-rspec (1.0.4)
spring (>= 0.9.1)
sprockets (2.12.4)
@ -161,7 +157,7 @@ GEM
actionpack (>= 3.0)
activesupport (>= 3.0)
sprockets (>= 2.8, < 4.0)
sqlite3 (1.3.10)
sqlite3 (1.3.11)
thor (0.19.1)
thread_safe (0.3.5)
tilt (1.4.1)
@ -183,7 +179,7 @@ PLATFORMS
DEPENDENCIES
activerecord-jdbc-adapter
activerecord-jdbcsqlite3-adapter
activeresource (= 4.0.0)
activeresource
appraisal (~> 2.0)
bcrypt (~> 3.1.7)
bundler (~> 1.1)

View File

@ -29,7 +29,7 @@ gem "coffee-rails", "~> 4.1.0"
gem "jquery-rails"
gem "turbolinks"
gem "sdoc", "~> 0.4.0"
gem "activeresource", "4.0.0"
gem "activeresource"
gem "protected_attributes", "~> 1.0.6"
gem "minitest-reporters"
gem "rails", "~> 4.2.0"

View File

@ -1,49 +1,48 @@
GIT
remote: git://github.com/pry/pry.git
revision: 3c138cbf94a44f7a6696afdab1ab5149d7541974
revision: a4535b3b7dbe97b08ecca1477cc9ede070b0ddc7
specs:
pry (0.10.1)
pry (0.10.3)
coderay (~> 1.1.0)
method_source (~> 0.8.1)
slop (~> 3.4)
GEM
remote: https://rubygems.org/
specs:
actionmailer (4.2.4)
actionpack (= 4.2.4)
actionview (= 4.2.4)
activejob (= 4.2.4)
actionmailer (4.2.5.1)
actionpack (= 4.2.5.1)
actionview (= 4.2.5.1)
activejob (= 4.2.5.1)
mail (~> 2.5, >= 2.5.4)
rails-dom-testing (~> 1.0, >= 1.0.5)
actionpack (4.2.4)
actionview (= 4.2.4)
activesupport (= 4.2.4)
actionpack (4.2.5.1)
actionview (= 4.2.5.1)
activesupport (= 4.2.5.1)
rack (~> 1.6)
rack-test (~> 0.6.2)
rails-dom-testing (~> 1.0, >= 1.0.5)
rails-html-sanitizer (~> 1.0, >= 1.0.2)
actionview (4.2.4)
activesupport (= 4.2.4)
actionview (4.2.5.1)
activesupport (= 4.2.5.1)
builder (~> 3.1)
erubis (~> 2.7.0)
rails-dom-testing (~> 1.0, >= 1.0.5)
rails-html-sanitizer (~> 1.0, >= 1.0.2)
activejob (4.2.4)
activesupport (= 4.2.4)
activejob (4.2.5.1)
activesupport (= 4.2.5.1)
globalid (>= 0.3.0)
activemodel (4.2.4)
activesupport (= 4.2.4)
activemodel (4.2.5.1)
activesupport (= 4.2.5.1)
builder (~> 3.1)
activerecord (4.2.4)
activemodel (= 4.2.4)
activesupport (= 4.2.4)
activerecord (4.2.5.1)
activemodel (= 4.2.5.1)
activesupport (= 4.2.5.1)
arel (~> 6.0)
activeresource (4.0.0)
activemodel (~> 4.0)
activesupport (~> 4.0)
rails-observers (~> 0.1.1)
activesupport (4.2.4)
activesupport (4.2.5.1)
i18n (~> 0.7)
json (~> 1.7, >= 1.7.7)
minitest (~> 5.1)
@ -57,17 +56,16 @@ GEM
arel (6.0.3)
bcrypt (3.1.10)
builder (3.2.2)
byebug (5.0.0)
columnize (= 0.9.0)
byebug (8.2.2)
coderay (1.1.0)
coffee-rails (4.1.0)
coffee-rails (4.1.1)
coffee-script (>= 2.2.0)
railties (>= 4.0.0, < 5.0)
railties (>= 4.0.0, < 5.1.x)
coffee-script (2.4.1)
coffee-script-source
execjs
coffee-script-source (1.9.1.1)
columnize (0.9.0)
coffee-script-source (1.10.0)
concurrent-ruby (1.0.0)
diff-lcs (1.2.5)
erubis (2.7.0)
execjs (2.6.0)
@ -75,10 +73,10 @@ GEM
globalid (0.3.6)
activesupport (>= 4.1.0)
i18n (0.7.0)
jbuilder (2.3.1)
activesupport (>= 3.0.0, < 5)
jbuilder (2.4.0)
activesupport (>= 3.0.0, < 5.1)
multi_json (~> 1.2)
jquery-rails (4.0.5)
jquery-rails (4.1.0)
rails-dom-testing (~> 1.0)
railties (>= 4.2.0)
thor (>= 0.14, < 2.0)
@ -88,23 +86,23 @@ GEM
mail (2.6.3)
mime-types (>= 1.16, < 3)
method_source (0.8.2)
mime-types (2.6.2)
mime-types (2.99)
mini_portile2 (2.0.0)
minitest (5.8.3)
minitest-reporters (1.1.2)
minitest (5.8.4)
minitest-reporters (1.1.7)
ansi
builder
minitest (>= 5.0)
ruby-progressbar
multi_json (1.11.2)
nokogiri (1.6.7.1)
nokogiri (1.6.7.2)
mini_portile2 (~> 2.0.0.rc2)
pg (0.18.3)
pg (0.18.4)
posix-spawn (0.3.11)
protected_attributes (1.0.9)
activemodel (>= 4.0.1, < 5.0)
pry-byebug (3.2.0)
byebug (~> 5.0)
pry-byebug (3.3.0)
byebug (~> 8.0)
pry (~> 0.10)
pygments.rb (0.6.3)
posix-spawn (~> 0.3.6)
@ -112,16 +110,16 @@ GEM
rack (1.6.4)
rack-test (0.6.3)
rack (>= 1.0)
rails (4.2.4)
actionmailer (= 4.2.4)
actionpack (= 4.2.4)
actionview (= 4.2.4)
activejob (= 4.2.4)
activemodel (= 4.2.4)
activerecord (= 4.2.4)
activesupport (= 4.2.4)
rails (4.2.5.1)
actionmailer (= 4.2.5.1)
actionpack (= 4.2.5.1)
actionview (= 4.2.5.1)
activejob (= 4.2.5.1)
activemodel (= 4.2.5.1)
activerecord (= 4.2.5.1)
activesupport (= 4.2.5.1)
bundler (>= 1.3.0, < 2.0)
railties (= 4.2.4)
railties (= 4.2.5.1)
sprockets-rails
rails-deprecated_sanitizer (1.0.3)
activesupport (>= 4.2.0.alpha)
@ -129,31 +127,31 @@ GEM
activesupport (>= 4.2.0.beta, < 5.0)
nokogiri (~> 1.6.0)
rails-deprecated_sanitizer (>= 1.0.1)
rails-html-sanitizer (1.0.2)
rails-html-sanitizer (1.0.3)
loofah (~> 2.0)
rails-observers (0.1.2)
activemodel (~> 4.0)
railties (4.2.4)
actionpack (= 4.2.4)
activesupport (= 4.2.4)
railties (4.2.5.1)
actionpack (= 4.2.5.1)
activesupport (= 4.2.5.1)
rake (>= 0.8.7)
thor (>= 0.18.1, < 2.0)
rake (10.5.0)
rdoc (4.2.0)
redcarpet (3.3.2)
rdoc (4.2.1)
redcarpet (3.3.4)
rspec (3.4.0)
rspec-core (~> 3.4.0)
rspec-expectations (~> 3.4.0)
rspec-mocks (~> 3.4.0)
rspec-core (3.4.1)
rspec-core (3.4.2)
rspec-support (~> 3.4.0)
rspec-expectations (3.4.0)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.4.0)
rspec-mocks (3.4.0)
rspec-mocks (3.4.1)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.4.0)
rspec-rails (3.4.0)
rspec-rails (3.4.2)
actionpack (>= 3.0, < 4.3)
activesupport (>= 3.0, < 4.3)
railties (>= 3.0, < 4.3)
@ -163,7 +161,7 @@ GEM
rspec-support (~> 3.4.0)
rspec-support (3.4.1)
ruby-progressbar (1.7.5)
sass (3.4.18)
sass (3.4.21)
sass-rails (5.0.4)
railties (>= 4.0.0, < 5.0)
sass (~> 3.1)
@ -174,20 +172,20 @@ GEM
json (~> 1.7, >= 1.7.7)
rdoc (~> 4.0)
shoulda-context (1.2.1)
slop (3.6.0)
spring (1.4.0)
spring (1.6.3)
spring-commands-rspec (1.0.4)
spring (>= 0.9.1)
sprockets (3.3.5)
sprockets (3.5.2)
concurrent-ruby (~> 1.0)
rack (> 1, < 3)
sprockets-rails (2.3.3)
actionpack (>= 3.0)
activesupport (>= 3.0)
sprockets (>= 2.8, < 4.0)
sqlite3 (1.3.10)
sprockets-rails (3.0.1)
actionpack (>= 4.0)
activesupport (>= 4.0)
sprockets (>= 3.0.0)
sqlite3 (1.3.11)
thor (0.19.1)
thread_safe (0.3.5)
tilt (2.0.1)
tilt (2.0.2)
turbolinks (2.5.3)
coffee-rails
tzinfo (1.2.2)
@ -206,7 +204,7 @@ PLATFORMS
DEPENDENCIES
activerecord-jdbc-adapter
activerecord-jdbcsqlite3-adapter
activeresource (= 4.0.0)
activeresource
appraisal (~> 2.0)
bcrypt (~> 3.1.7)
bundler (~> 1.1)

View File

@ -0,0 +1,35 @@
# This file was generated by Appraisal
source "https://rubygems.org"
gem "appraisal", "~> 2.0"
gem "bundler", "~> 1.1"
gem "pry", :github => "pry/pry"
gem "pry-byebug"
gem "rake", ">= 10.5.0", "< 11"
gem "rspec", :github => "rspec/rspec"
gem "zeus"
gem "yard"
gem "redcarpet"
gem "pygments.rb"
gem "fssm"
gem "rspec-core", :github => "rspec/rspec-core"
gem "rspec-expectations", :github => "rspec/rspec-expectations"
gem "rspec-mocks", :github => "rspec/rspec-mocks"
gem "rspec-support", :github => "rspec/rspec-support"
gem "rspec-rails", :github => "rspec/rspec-rails"
gem "shoulda-context"
gem "rails-controller-testing"
gem "sqlite3", :platform => :ruby
gem "pg", :platform => :ruby
gem "activerecord-jdbc-adapter", :platform => :jruby
gem "activerecord-jdbcsqlite3-adapter", :platform => :jruby
gem "jdbc-sqlite3", :platform => :jruby
gem "jruby-openssl", :platform => :jruby
gem "therubyrhino", :platform => :jruby
gem "rails", "~> 5.0.0.beta2"
gem "sass-rails", "~> 5.0"
gem "jbuilder", "~> 2.0"
gem "sdoc", "~> 0.4.0"
gem "bcrypt", "~> 3.1.7"
gem "spring"

View File

@ -0,0 +1,247 @@
GIT
remote: git://github.com/pry/pry.git
revision: a4535b3b7dbe97b08ecca1477cc9ede070b0ddc7
specs:
pry (0.10.3)
coderay (~> 1.1.0)
method_source (~> 0.8.1)
GIT
remote: git://github.com/rspec/rspec-core.git
revision: e9b99468cbfa45d2c0f38e69a0c9c9184814e327
specs:
rspec-core (3.5.0.pre)
rspec-support (= 3.5.0.pre)
GIT
remote: git://github.com/rspec/rspec-expectations.git
revision: f7b5f1d52484a858eba27c2d6c40794df325d0d0
specs:
rspec-expectations (3.5.0.pre)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (= 3.5.0.pre)
GIT
remote: git://github.com/rspec/rspec-mocks.git
revision: 993fcf286ac0e5b23f209c8183fa8f2209347d12
specs:
rspec-mocks (3.5.0.pre)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (= 3.5.0.pre)
GIT
remote: git://github.com/rspec/rspec-rails.git
revision: 74131b25e9d0a68e39ee5bf5b0ad08c2fd8a444b
specs:
rspec-rails (3.5.0.pre)
actionpack (>= 3.0)
activesupport (>= 3.0)
railties (>= 3.0)
rspec-core (= 3.5.0.pre)
rspec-expectations (= 3.5.0.pre)
rspec-mocks (= 3.5.0.pre)
rspec-support (= 3.5.0.pre)
GIT
remote: git://github.com/rspec/rspec-support.git
revision: 4b938ec512d2fbee945913afbb957b510244ecb3
specs:
rspec-support (3.5.0.pre)
GIT
remote: git://github.com/rspec/rspec.git
revision: 5966b248d83a74c58784ff195cef5d6be22fa17c
specs:
rspec (3.5.0.pre)
rspec-core (= 3.5.0.pre)
rspec-expectations (= 3.5.0.pre)
rspec-mocks (= 3.5.0.pre)
GEM
remote: https://rubygems.org/
specs:
actioncable (5.0.0.beta2)
actionpack (= 5.0.0.beta2)
nio4r (~> 1.2)
websocket-driver (~> 0.6.1)
actionmailer (5.0.0.beta2)
actionpack (= 5.0.0.beta2)
actionview (= 5.0.0.beta2)
activejob (= 5.0.0.beta2)
mail (~> 2.5, >= 2.5.4)
rails-dom-testing (~> 1.0, >= 1.0.5)
actionpack (5.0.0.beta2)
actionview (= 5.0.0.beta2)
activesupport (= 5.0.0.beta2)
rack (~> 2.x)
rack-test (~> 0.6.3)
rails-dom-testing (~> 1.0, >= 1.0.5)
rails-html-sanitizer (~> 1.0, >= 1.0.2)
actionview (5.0.0.beta2)
activesupport (= 5.0.0.beta2)
builder (~> 3.1)
erubis (~> 2.7.0)
rails-dom-testing (~> 1.0, >= 1.0.5)
rails-html-sanitizer (~> 1.0, >= 1.0.2)
activejob (5.0.0.beta2)
activesupport (= 5.0.0.beta2)
globalid (>= 0.3.6)
activemodel (5.0.0.beta2)
activesupport (= 5.0.0.beta2)
activerecord (5.0.0.beta2)
activemodel (= 5.0.0.beta2)
activesupport (= 5.0.0.beta2)
arel (~> 7.0)
activesupport (5.0.0.beta2)
concurrent-ruby (~> 1.0)
i18n (~> 0.7)
json (~> 1.7, >= 1.7.7)
method_source
minitest (~> 5.1)
tzinfo (~> 1.1)
appraisal (2.1.0)
bundler
rake
thor (>= 0.14.0)
arel (7.0.0)
bcrypt (3.1.10)
builder (3.2.2)
byebug (8.2.2)
coderay (1.1.0)
concurrent-ruby (1.0.0)
diff-lcs (1.2.5)
erubis (2.7.0)
fssm (0.2.10)
globalid (0.3.6)
activesupport (>= 4.1.0)
i18n (0.7.0)
jbuilder (2.4.0)
activesupport (>= 3.0.0, < 5.1)
multi_json (~> 1.2)
json (1.8.3)
loofah (2.0.3)
nokogiri (>= 1.5.9)
mail (2.6.3)
mime-types (>= 1.16, < 3)
method_source (0.8.2)
mime-types (2.99)
mini_portile2 (2.0.0)
minitest (5.8.4)
multi_json (1.11.2)
nio4r (1.2.1)
nokogiri (1.6.7.2)
mini_portile2 (~> 2.0.0.rc2)
pg (0.18.4)
posix-spawn (0.3.11)
pry-byebug (3.3.0)
byebug (~> 8.0)
pry (~> 0.10)
pygments.rb (0.6.3)
posix-spawn (~> 0.3.6)
yajl-ruby (~> 1.2.0)
rack (2.0.0.alpha)
json
rack-test (0.6.3)
rack (>= 1.0)
rails (5.0.0.beta2)
actioncable (= 5.0.0.beta2)
actionmailer (= 5.0.0.beta2)
actionpack (= 5.0.0.beta2)
actionview (= 5.0.0.beta2)
activejob (= 5.0.0.beta2)
activemodel (= 5.0.0.beta2)
activerecord (= 5.0.0.beta2)
activesupport (= 5.0.0.beta2)
bundler (>= 1.3.0, < 2.0)
railties (= 5.0.0.beta2)
sprockets-rails (>= 2.0.0)
rails-controller-testing (0.0.3)
rails (>= 4.2)
rails-deprecated_sanitizer (1.0.3)
activesupport (>= 4.2.0.alpha)
rails-dom-testing (1.0.7)
activesupport (>= 4.2.0.beta, < 5.0)
nokogiri (~> 1.6.0)
rails-deprecated_sanitizer (>= 1.0.1)
rails-html-sanitizer (1.0.3)
loofah (~> 2.0)
railties (5.0.0.beta2)
actionpack (= 5.0.0.beta2)
activesupport (= 5.0.0.beta2)
method_source
rake (>= 0.8.7)
thor (>= 0.18.1, < 2.0)
rake (10.5.0)
rdoc (4.2.1)
redcarpet (3.3.4)
sass (3.4.21)
sass-rails (5.0.4)
railties (>= 4.0.0, < 5.0)
sass (~> 3.1)
sprockets (>= 2.8, < 4.0)
sprockets-rails (>= 2.0, < 4.0)
tilt (>= 1.1, < 3)
sdoc (0.4.1)
json (~> 1.7, >= 1.7.7)
rdoc (~> 4.0)
shoulda-context (1.2.1)
spring (1.6.3)
sprockets (3.5.2)
concurrent-ruby (~> 1.0)
rack (> 1, < 3)
sprockets-rails (3.0.1)
actionpack (>= 4.0)
activesupport (>= 4.0)
sprockets (>= 3.0.0)
sqlite3 (1.3.11)
thor (0.19.1)
thread_safe (0.3.5)
tilt (2.0.2)
tzinfo (1.2.2)
thread_safe (~> 0.1)
websocket-driver (0.6.3)
websocket-extensions (>= 0.1.0)
websocket-extensions (0.1.2)
yajl-ruby (1.2.1)
yard (0.8.7.6)
zeus (0.15.4)
method_source (>= 0.6.7)
PLATFORMS
ruby
DEPENDENCIES
activerecord-jdbc-adapter
activerecord-jdbcsqlite3-adapter
appraisal (~> 2.0)
bcrypt (~> 3.1.7)
bundler (~> 1.1)
fssm
jbuilder (~> 2.0)
jdbc-sqlite3
jruby-openssl
pg
pry!
pry-byebug
pygments.rb
rails (~> 5.0.0.beta2)
rails-controller-testing
rake (>= 10.5.0, < 11)
redcarpet
rspec!
rspec-core!
rspec-expectations!
rspec-mocks!
rspec-rails!
rspec-support!
sass-rails (~> 5.0)
sdoc (~> 0.4.0)
shoulda-context
spring
sqlite3
therubyrhino
yard
zeus
BUNDLED WITH
1.11.2

View File

@ -26,7 +26,6 @@ require 'shoulda/matchers/active_model/numericality_matchers/comparison_matcher'
require 'shoulda/matchers/active_model/numericality_matchers/odd_number_matcher'
require 'shoulda/matchers/active_model/numericality_matchers/even_number_matcher'
require 'shoulda/matchers/active_model/numericality_matchers/only_integer_matcher'
require 'shoulda/matchers/active_model/allow_mass_assignment_of_matcher'
require 'shoulda/matchers/active_model/errors'
require 'shoulda/matchers/active_model/have_secure_password_matcher'

View File

@ -1,159 +0,0 @@
module Shoulda
module Matchers
module ActiveModel
# The `allow_mass_assignment_of` matcher tests usage of Rails 3's
# `attr_accessible` and `attr_protected` macros, asserting that an
# attribute in your model is contained in either the whitelist or
# blacklist and thus can or cannot be set via mass assignment.
#
# class Post
# include ActiveModel::Model
# include ActiveModel::MassAssignmentSecurity
# attr_accessor :title
#
# attr_accessible :title
# end
#
# class User
# include ActiveModel::Model
# include ActiveModel::MassAssignmentSecurity
# attr_accessor :encrypted_password
#
# attr_protected :encrypted_password
# end
#
# # RSpec
# describe Post do
# it { should allow_mass_assignment_of(:title) }
# end
#
# describe User do
# it { should_not allow_mass_assignment_of(:encrypted_password) }
# end
#
# # Minitest (Shoulda)
# class PostTest < ActiveSupport::TestCase
# should allow_mass_assignment_of(:title)
# end
#
# class UserTest < ActiveSupport::TestCase
# should_not allow_mass_assignment_of(:encrypted_password)
# end
#
# #### Optional qualifiers
#
# ##### as
#
# Use `as` if your mass-assignment rules apply only under a certain role
# *(Rails >= 3.1 only)*.
#
# class Post
# include ActiveModel::Model
# include ActiveModel::MassAssignmentSecurity
# attr_accessor :title
#
# attr_accessible :title, as: :admin
# end
#
# # RSpec
# describe Post do
# it { should allow_mass_assignment_of(:title).as(:admin) }
# end
#
# # Minitest (Shoulda)
# class PostTest < ActiveSupport::TestCase
# should allow_mass_assignment_of(:title).as(:admin)
# end
#
# @return [AllowMassAssignmentOfMatcher]
#
def allow_mass_assignment_of(value)
AllowMassAssignmentOfMatcher.new(value)
end
# @private
class AllowMassAssignmentOfMatcher
attr_reader :failure_message, :failure_message_when_negated
def initialize(attribute)
@attribute = attribute.to_s
@options = {}
end
def as(role)
@options[:role] = role
self
end
def matches?(subject)
@subject = subject
if attr_mass_assignable?
if whitelisting?
@failure_message_when_negated = "#{@attribute} was made accessible"
else
if protected_attributes.empty?
@failure_message_when_negated = 'no attributes were protected'
else
@failure_message_when_negated = "#{class_name} is protecting " <<
"#{protected_attributes.to_a.to_sentence}, " <<
"but not #{@attribute}."
end
end
true
else
if whitelisting?
@failure_message = "Expected #{@attribute} to be accessible"
else
@failure_message = "Did not expect #{@attribute} to be protected"
end
false
end
end
def description
[base_description, role_description].compact.join(' ')
end
private
def base_description
"allow mass assignment of #{@attribute}"
end
def role_description
if role != :default
"as #{role}"
end
end
def role
@options[:role] || :default
end
def protected_attributes
@protected_attributes ||= (@subject.class.protected_attributes || [])
end
def accessible_attributes
@accessible_attributes ||= (@subject.class.accessible_attributes || [])
end
def whitelisting?
authorizer.kind_of?(::ActiveModel::MassAssignmentSecurity::WhiteList)
end
def attr_mass_assignable?
!authorizer.deny?(@attribute)
end
def authorizer
@subject.class.active_authorizer[role]
end
def class_name
@subject.class.name
end
end
end
end
end

View File

@ -151,11 +151,7 @@ module Shoulda
end
def attribute_exists?
if active_resource_object?
object.known_attributes.include?(attribute_name.to_s)
else
object.respond_to?("#{attribute_name}=")
end
object.respond_to?("#{attribute_name}=")
end
def ignore_interference_by_writer
@ -222,10 +218,6 @@ module Shoulda
)
end
def active_resource_object?
object.respond_to?(:known_attributes)
end
def model
object.class
end

View File

@ -2,8 +2,6 @@ module Kernel
# #capture, #silence_stream, and #silence_stderr are deprecated after Rails
# 4.2 and will be removed in 5.0, so just override them completely here
undef_method :capture
def capture(stream)
stream = stream.to_s
captured_stream = Tempfile.new(stream)
@ -20,8 +18,6 @@ module Kernel
stream_io.reopen(origin_stream)
end
undef_method :silence_stream
def silence_stream(stream)
old_stream = stream.dup
stream.reopen(RbConfig::CONFIG['host_os'] =~ /mswin|mingw/ ? 'NUL:' : '/dev/null')
@ -32,8 +28,6 @@ module Kernel
old_stream.close
end
undef_method :silence_stderr
def silence_stderr
silence_stream(STDERR) { yield }
end

View File

@ -1,27 +0,0 @@
require 'active_resource'
module UnitTests
module ActiveResourceBuilder
def self.configure_example_group(example_group)
example_group.include ActiveResourceBuilder
example_group.after do
ActiveSupport::Dependencies.clear
end
end
def define_active_resource_class(class_name, attributes = {}, &block)
define_class(class_name, ActiveResource::Base) do
schema do
attributes.each do |attr, type|
attribute attr, type
end
end
if block_given?
class_eval(&block)
end
end
end
end
end

View File

@ -42,10 +42,6 @@ module UnitTests
run_block(model, block)
end
if whitelist_attributes?
model.attr_accessible(*columns.keys)
end
model.table_name = table_name
model

View File

@ -71,14 +71,15 @@ module UnitTests
def possibly_override_attribute_writer_method_for(model)
all_attribute_overrides.each do |attribute_name, overrides|
if overrides.key?(:changing_values_with)
_change_value = method(:change_value)
change_value = method(:change_value)
model.send(:define_method, "#{attribute_name}=") do |value|
new_value = _change_value.call(
new_value = change_value.call(
value,
overrides[:changing_values_with]
)
binding.pry
if respond_to?(:write_attribute)
write_attribute(new_value)
else

View File

@ -1,115 +0,0 @@
require 'unit_spec_helper'
describe Shoulda::Matchers::ActiveModel::AllowMassAssignmentOfMatcher, type: :model do
context '#description' do
context 'without a role' do
it 'includes the attribute name' do
expect(described_class.new(:attr).description).
to eq 'allow mass assignment of attr'
end
end
if active_model_3_1?
context 'with a role' do
it 'includes the attribute name and the role' do
expect(described_class.new(:attr).as(:admin).description).
to eq 'allow mass assignment of attr as admin'
end
end
end
end
context 'an attribute that is blacklisted from mass-assignment' do
it 'rejects being mass-assignable' do
model = define_model(:example, blacklisted: :string) do
attr_protected :blacklisted
end.new
expect(model).not_to allow_mass_assignment_of(:blacklisted)
end
end
context 'an attribute that is not whitelisted for mass-assignment' do
it 'rejects being mass-assignable' do
model = define_model(:example, not_whitelisted: :string,
whitelisted: :string) do
attr_accessible :whitelisted
end.new
expect(model).not_to allow_mass_assignment_of(:not_whitelisted)
end
end
context 'an attribute that is whitelisted for mass-assignment' do
it 'accepts being mass-assignable' do
expect(define_model(:example, whitelisted: :string) do
attr_accessible :whitelisted
end.new).to allow_mass_assignment_of(:whitelisted)
end
end
context 'an attribute not included in the mass-assignment blacklist' do
it 'accepts being mass-assignable' do
model = define_model(:example, not_blacklisted: :string,
blacklisted: :string) do
attr_protected :blacklisted
end.new
expect(model).to allow_mass_assignment_of(:not_blacklisted)
end
end
unless active_model_3_2? || active_model_4_0?
context 'an attribute on a class with no protected attributes' do
it 'accepts being mass-assignable' do
expect(no_protected_attributes).to allow_mass_assignment_of(:attr)
end
it 'assigns a negative failure message' do
matcher = allow_mass_assignment_of(:attr)
expect(matcher.matches?(no_protected_attributes)).to eq true
expect(matcher.failure_message_when_negated).not_to be_nil
end
end
def no_protected_attributes
define_model(:example, attr: :string).new
end
end
context 'an attribute on a class with all protected attributes' do
it 'rejects being mass-assignable' do
expect(all_protected_attributes).not_to allow_mass_assignment_of(:attr)
end
def all_protected_attributes
define_model(:example, attr: :string) do
attr_accessible nil
end.new
end
end
if active_model_3_1?
context 'an attribute included in the mass-assignment whitelist for admin role only' do
it 'rejects being mass-assignable' do
expect(mass_assignable_as_admin).not_to allow_mass_assignment_of(:attr)
end
it 'accepts being mass-assignable for admin' do
expect(mass_assignable_as_admin).to allow_mass_assignment_of(:attr).as(:admin)
end
def mass_assignable_as_admin
define_model(:example, attr: :string) do
attr_accessible :attr, as: :admin
end.new
end
end
end
def define_model(name, columns, &block)
super(name, columns, whitelist_attributes: false, &block)
end
end

View File

@ -291,16 +291,6 @@ raising a validation exception on failure.
end
end
context 'an active_resource model' do
context 'with the validation context' do
it 'does not raise an exception' do
expect {
expect(active_resource_model).to validate_presence_of(:attr)
}.to_not raise_exception
end
end
end
if rails_4_x?
context 'against a pre-set password in a model that has_secure_password' do
it 'raises a CouldNotSetPasswordError' do
@ -365,12 +355,6 @@ raising a validation exception on failure.
end.new
end
def active_resource_model
define_active_resource_class :foo, attr: :string do
validates_presence_of :attr
end.new
end
def validation_matcher_scenario_args
super.deep_merge(
matcher_name: :validate_presence_of,

View File

@ -1266,7 +1266,6 @@ but only if it is not blank.
favoriteable_type: { type: :string, options: { null: false } }
}
favorite_model = define_model 'Favorite', favorite_columns do
attr_accessible :favoriteable
belongs_to :favoriteable, polymorphic: true
validates :favoriteable, presence: true
validates :favoriteable_id, uniqueness: { scope: :favoriteable_type }
@ -1291,7 +1290,6 @@ but only if it is not blank.
favoriteable_type: { type: :string, options: { null: false } }
}
favorite_model = define_model 'Models::Favorite', favorite_columns do
attr_accessible :favoriteable
belongs_to :favoriteable, polymorphic: true
validates :favoriteable, presence: true
validates :favoriteable_id, uniqueness: { scope: :favoriteable_type }
@ -1547,10 +1545,6 @@ Example did not properly validate that :name is case-sensitively unique.
m.validates_uniqueness_of attribute_name,
validation_options.merge(scope: scope_attribute_names)
attributes.each do |attr|
m.attr_accessible(attr[:name])
end
block.call(m) if block
end
@ -1590,9 +1584,7 @@ Example did not properly validate that :name is case-sensitively unique.
end
def define_model_without_validation
define_model(:example, attribute_name => :string) do |model|
model.attr_accessible(attribute_name)
end
define_model(:example, attribute_name => :string)
end
def validate_uniqueness

View File

@ -12,7 +12,6 @@ end
RSpec.configure do |config|
UnitTests::ActiveModelHelpers.configure_example_group(config)
UnitTests::ActiveModelVersions.configure_example_group(config)
UnitTests::ActiveResourceBuilder.configure_example_group(config)
UnitTests::ClassBuilder.configure_example_group(config)
UnitTests::ControllerBuilder.configure_example_group(config)
UnitTests::I18nFaker.configure_example_group(config)