carlosbrando-remarkable 2.2.1 → 2.2.3
Sign up to get free protection for your applications and to get access to all the features.
- data/Manifest.txt +0 -83
- data/Rakefile +8 -1
- data/lib/remarkable.rb +1 -1
- data/lib/remarkable/active_record/macros/database/column_matcher.rb +6 -53
- data/lib/remarkable/active_record/macros/validations/allow_mass_assignment_of_matcher.rb +2 -2
- data/lib/remarkable/active_record/macros/validations/protect_attributes_matcher.rb +1 -1
- data/remarkable.gemspec +6 -5
- metadata +6 -87
- data/spec/controllers/posts_controller_spec.rb +0 -220
- data/spec/controllers/users_controller_spec.rb +0 -15
- data/spec/fixtures/addresses.yml +0 -3
- data/spec/fixtures/fleas.yml +0 -10
- data/spec/fixtures/friendships.yml +0 -0
- data/spec/fixtures/posts.yml +0 -5
- data/spec/fixtures/products.yml +0 -0
- data/spec/fixtures/taggings.yml +0 -0
- data/spec/fixtures/tags.yml +0 -9
- data/spec/fixtures/users.yml +0 -13
- data/spec/models/address_spec.rb +0 -65
- data/spec/models/dog_spec.rb +0 -78
- data/spec/models/flea_spec.rb +0 -39
- data/spec/models/friendship_spec.rb +0 -13
- data/spec/models/post_spec.rb +0 -69
- data/spec/models/product_spec.rb +0 -122
- data/spec/models/tag_spec.rb +0 -21
- data/spec/models/tagging_spec.rb +0 -37
- data/spec/models/user_spec.rb +0 -292
- data/spec/other/custom_macros_spec.rb +0 -27
- data/spec/other/my_own_matcher_spec.rb +0 -11
- data/spec/other/private_helpers_spec.rb +0 -31
- data/spec/rails_root/app/controllers/application.rb +0 -25
- data/spec/rails_root/app/controllers/posts_controller.rb +0 -87
- data/spec/rails_root/app/controllers/users_controller.rb +0 -84
- data/spec/rails_root/app/helpers/application_helper.rb +0 -3
- data/spec/rails_root/app/helpers/posts_helper.rb +0 -2
- data/spec/rails_root/app/helpers/users_helper.rb +0 -2
- data/spec/rails_root/app/models/address.rb +0 -7
- data/spec/rails_root/app/models/flea.rb +0 -7
- data/spec/rails_root/app/models/friendship.rb +0 -4
- data/spec/rails_root/app/models/pets/dog.rb +0 -12
- data/spec/rails_root/app/models/post.rb +0 -12
- data/spec/rails_root/app/models/product.rb +0 -14
- data/spec/rails_root/app/models/tag.rb +0 -8
- data/spec/rails_root/app/models/tagging.rb +0 -6
- data/spec/rails_root/app/models/user.rb +0 -43
- data/spec/rails_root/app/views/layouts/posts.rhtml +0 -19
- data/spec/rails_root/app/views/layouts/users.rhtml +0 -17
- data/spec/rails_root/app/views/layouts/wide.html.erb +0 -1
- data/spec/rails_root/app/views/posts/edit.rhtml +0 -27
- data/spec/rails_root/app/views/posts/index.rhtml +0 -25
- data/spec/rails_root/app/views/posts/new.rhtml +0 -26
- data/spec/rails_root/app/views/posts/show.rhtml +0 -18
- data/spec/rails_root/app/views/users/edit.rhtml +0 -22
- data/spec/rails_root/app/views/users/index.rhtml +0 -22
- data/spec/rails_root/app/views/users/new.rhtml +0 -21
- data/spec/rails_root/app/views/users/show.rhtml +0 -13
- data/spec/rails_root/config/boot.rb +0 -109
- data/spec/rails_root/config/database.yml +0 -3
- data/spec/rails_root/config/environment.rb +0 -16
- data/spec/rails_root/config/environments/test.rb +0 -0
- data/spec/rails_root/config/initializers/new_rails_defaults.rb +0 -15
- data/spec/rails_root/config/initializers/shoulda.rb +0 -8
- data/spec/rails_root/config/locales/en.yml +0 -8
- data/spec/rails_root/config/routes.rb +0 -6
- data/spec/rails_root/db/migrate/001_create_users.rb +0 -18
- data/spec/rails_root/db/migrate/002_create_posts.rb +0 -13
- data/spec/rails_root/db/migrate/003_create_taggings.rb +0 -12
- data/spec/rails_root/db/migrate/004_create_tags.rb +0 -11
- data/spec/rails_root/db/migrate/005_create_dogs.rb +0 -13
- data/spec/rails_root/db/migrate/006_create_addresses.rb +0 -14
- data/spec/rails_root/db/migrate/007_create_fleas.rb +0 -11
- data/spec/rails_root/db/migrate/008_create_dogs_fleas.rb +0 -12
- data/spec/rails_root/db/migrate/009_create_products.rb +0 -17
- data/spec/rails_root/db/migrate/010_create_friendships.rb +0 -14
- data/spec/rails_root/db/migrate/011_add_fleas_color.rb +0 -10
- data/spec/rails_root/db/migrate/012_add_fleas_address.rb +0 -10
- data/spec/rails_root/db/schema.rb +0 -0
- data/spec/rails_root/log/.keep +0 -0
- data/spec/rails_root/public/.htaccess +0 -40
- data/spec/rails_root/public/404.html +0 -30
- data/spec/rails_root/public/422.html +0 -30
- data/spec/rails_root/public/500.html +0 -30
- data/spec/rails_root/script/console +0 -3
- data/spec/rails_root/script/generate +0 -3
- data/spec/rails_root/spec/remarkable_macros/.keep +0 -0
- data/spec/rails_root/vendor/plugins/.keep +0 -0
- data/spec/rails_root/vendor/plugins/my_plugin/remarkable_macros/.keep +0 -0
- data/spec/rcov.opts +0 -2
- data/spec/spec.opts +0 -4
- data/spec/spec_helper.rb +0 -56
File without changes
|
data/spec/rails_root/log/.keep
DELETED
File without changes
|
@@ -1,40 +0,0 @@
|
|
1
|
-
# General Apache options
|
2
|
-
AddHandler fastcgi-script .fcgi
|
3
|
-
AddHandler cgi-script .cgi
|
4
|
-
Options +FollowSymLinks +ExecCGI
|
5
|
-
|
6
|
-
# If you don't want Rails to look in certain directories,
|
7
|
-
# use the following rewrite rules so that Apache won't rewrite certain requests
|
8
|
-
#
|
9
|
-
# Example:
|
10
|
-
# RewriteCond %{REQUEST_URI} ^/notrails.*
|
11
|
-
# RewriteRule .* - [L]
|
12
|
-
|
13
|
-
# Redirect all requests not available on the filesystem to Rails
|
14
|
-
# By default the cgi dispatcher is used which is very slow
|
15
|
-
#
|
16
|
-
# For better performance replace the dispatcher with the fastcgi one
|
17
|
-
#
|
18
|
-
# Example:
|
19
|
-
# RewriteRule ^(.*)$ dispatch.fcgi [QSA,L]
|
20
|
-
RewriteEngine On
|
21
|
-
|
22
|
-
# If your Rails application is accessed via an Alias directive,
|
23
|
-
# then you MUST also set the RewriteBase in this htaccess file.
|
24
|
-
#
|
25
|
-
# Example:
|
26
|
-
# Alias /myrailsapp /path/to/myrailsapp/public
|
27
|
-
# RewriteBase /myrailsapp
|
28
|
-
|
29
|
-
RewriteRule ^$ index.html [QSA]
|
30
|
-
RewriteRule ^([^.]+)$ $1.html [QSA]
|
31
|
-
RewriteCond %{REQUEST_FILENAME} !-f
|
32
|
-
RewriteRule ^(.*)$ dispatch.cgi [QSA,L]
|
33
|
-
|
34
|
-
# In case Rails experiences terminal errors
|
35
|
-
# Instead of displaying this message you can supply a file here which will be rendered instead
|
36
|
-
#
|
37
|
-
# Example:
|
38
|
-
# ErrorDocument 500 /500.html
|
39
|
-
|
40
|
-
ErrorDocument 500 "<h2>Application error</h2>Rails application failed to start properly"
|
@@ -1,30 +0,0 @@
|
|
1
|
-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
2
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
3
|
-
|
4
|
-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
5
|
-
|
6
|
-
<head>
|
7
|
-
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
|
8
|
-
<title>The page you were looking for doesn't exist (404)</title>
|
9
|
-
<style type="text/css">
|
10
|
-
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
11
|
-
div.dialog {
|
12
|
-
width: 25em;
|
13
|
-
padding: 0 4em;
|
14
|
-
margin: 4em auto 0 auto;
|
15
|
-
border: 1px solid #ccc;
|
16
|
-
border-right-color: #999;
|
17
|
-
border-bottom-color: #999;
|
18
|
-
}
|
19
|
-
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
|
20
|
-
</style>
|
21
|
-
</head>
|
22
|
-
|
23
|
-
<body>
|
24
|
-
<!-- This file lives in public/404.html -->
|
25
|
-
<div class="dialog">
|
26
|
-
<h1>The page you were looking for doesn't exist.</h1>
|
27
|
-
<p>You may have mistyped the address or the page may have moved.</p>
|
28
|
-
</div>
|
29
|
-
</body>
|
30
|
-
</html>
|
@@ -1,30 +0,0 @@
|
|
1
|
-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
2
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
3
|
-
|
4
|
-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
5
|
-
|
6
|
-
<head>
|
7
|
-
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
|
8
|
-
<title>The change you wanted was rejected (422)</title>
|
9
|
-
<style type="text/css">
|
10
|
-
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
11
|
-
div.dialog {
|
12
|
-
width: 25em;
|
13
|
-
padding: 0 4em;
|
14
|
-
margin: 4em auto 0 auto;
|
15
|
-
border: 1px solid #ccc;
|
16
|
-
border-right-color: #999;
|
17
|
-
border-bottom-color: #999;
|
18
|
-
}
|
19
|
-
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
|
20
|
-
</style>
|
21
|
-
</head>
|
22
|
-
|
23
|
-
<body>
|
24
|
-
<!-- This file lives in public/422.html -->
|
25
|
-
<div class="dialog">
|
26
|
-
<h1>The change you wanted was rejected.</h1>
|
27
|
-
<p>Maybe you tried to change something you didn't have access to.</p>
|
28
|
-
</div>
|
29
|
-
</body>
|
30
|
-
</html>
|
@@ -1,30 +0,0 @@
|
|
1
|
-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
2
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
3
|
-
|
4
|
-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
5
|
-
|
6
|
-
<head>
|
7
|
-
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
|
8
|
-
<title>We're sorry, but something went wrong (500)</title>
|
9
|
-
<style type="text/css">
|
10
|
-
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
11
|
-
div.dialog {
|
12
|
-
width: 25em;
|
13
|
-
padding: 0 4em;
|
14
|
-
margin: 4em auto 0 auto;
|
15
|
-
border: 1px solid #ccc;
|
16
|
-
border-right-color: #999;
|
17
|
-
border-bottom-color: #999;
|
18
|
-
}
|
19
|
-
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
|
20
|
-
</style>
|
21
|
-
</head>
|
22
|
-
|
23
|
-
<body>
|
24
|
-
<!-- This file lives in public/500.html -->
|
25
|
-
<div class="dialog">
|
26
|
-
<h1>We're sorry, but something went wrong.</h1>
|
27
|
-
<p>We've been notified about this issue and we'll take a look at it shortly.</p>
|
28
|
-
</div>
|
29
|
-
</body>
|
30
|
-
</html>
|
File without changes
|
File without changes
|
File without changes
|
data/spec/rcov.opts
DELETED
data/spec/spec.opts
DELETED
data/spec/spec_helper.rb
DELETED
@@ -1,56 +0,0 @@
|
|
1
|
-
# This file is copied to ~/spec when you run 'ruby script/generate rspec'
|
2
|
-
# from the project root directory.
|
3
|
-
RAILS_ROOT = File.dirname(__FILE__) + '/rails_root'
|
4
|
-
|
5
|
-
require "#{RAILS_ROOT}/config/environment.rb"
|
6
|
-
require 'spec'
|
7
|
-
require 'spec/rails'
|
8
|
-
|
9
|
-
silence_warnings { RAILS_ENV = ENV['RAILS_ENV'] }
|
10
|
-
|
11
|
-
# Run the migrations
|
12
|
-
ActiveRecord::Migration.verbose = false
|
13
|
-
ActiveRecord::Migrator.migrate("#{RAILS_ROOT}/db/migrate")
|
14
|
-
|
15
|
-
Spec::Runner.configure do |config|
|
16
|
-
# If you're not using ActiveRecord you should remove these
|
17
|
-
# lines, delete config/database.yml and disable :active_record
|
18
|
-
# in your config/boot.rb
|
19
|
-
config.use_transactional_fixtures = false
|
20
|
-
config.use_instantiated_fixtures = false
|
21
|
-
config.fixture_path = File.join(File.dirname(__FILE__), "fixtures")
|
22
|
-
|
23
|
-
# == Fixtures
|
24
|
-
#
|
25
|
-
# You can declare fixtures for each example_group like this:
|
26
|
-
# describe "...." do
|
27
|
-
# fixtures :table_a, :table_b
|
28
|
-
#
|
29
|
-
# Alternatively, if you prefer to declare them only once, you can
|
30
|
-
# do so right here. Just uncomment the next line and replace the fixture
|
31
|
-
# names with your fixtures.
|
32
|
-
#
|
33
|
-
# config.global_fixtures = :table_a, :table_b
|
34
|
-
#
|
35
|
-
# If you declare global fixtures, be aware that they will be declared
|
36
|
-
# for all of your examples, even those that don't use them.
|
37
|
-
#
|
38
|
-
# You can also declare which fixtures to use (for example fixtures for test/fixtures):
|
39
|
-
#
|
40
|
-
# config.fixture_path = RAILS_ROOT + '/spec/fixtures/'
|
41
|
-
#
|
42
|
-
# == Mock Framework
|
43
|
-
#
|
44
|
-
# RSpec uses it's own mocking framework by default. If you prefer to
|
45
|
-
# use mocha, flexmock or RR, uncomment the appropriate line:
|
46
|
-
#
|
47
|
-
# config.mock_with :mocha
|
48
|
-
# config.mock_with :flexmock
|
49
|
-
# config.mock_with :rr
|
50
|
-
#
|
51
|
-
# == Notes
|
52
|
-
#
|
53
|
-
# For more information take a look at Spec::Example::Configuration and Spec::Runner
|
54
|
-
end
|
55
|
-
|
56
|
-
|