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.
Files changed (90) hide show
  1. data/Manifest.txt +0 -83
  2. data/Rakefile +8 -1
  3. data/lib/remarkable.rb +1 -1
  4. data/lib/remarkable/active_record/macros/database/column_matcher.rb +6 -53
  5. data/lib/remarkable/active_record/macros/validations/allow_mass_assignment_of_matcher.rb +2 -2
  6. data/lib/remarkable/active_record/macros/validations/protect_attributes_matcher.rb +1 -1
  7. data/remarkable.gemspec +6 -5
  8. metadata +6 -87
  9. data/spec/controllers/posts_controller_spec.rb +0 -220
  10. data/spec/controllers/users_controller_spec.rb +0 -15
  11. data/spec/fixtures/addresses.yml +0 -3
  12. data/spec/fixtures/fleas.yml +0 -10
  13. data/spec/fixtures/friendships.yml +0 -0
  14. data/spec/fixtures/posts.yml +0 -5
  15. data/spec/fixtures/products.yml +0 -0
  16. data/spec/fixtures/taggings.yml +0 -0
  17. data/spec/fixtures/tags.yml +0 -9
  18. data/spec/fixtures/users.yml +0 -13
  19. data/spec/models/address_spec.rb +0 -65
  20. data/spec/models/dog_spec.rb +0 -78
  21. data/spec/models/flea_spec.rb +0 -39
  22. data/spec/models/friendship_spec.rb +0 -13
  23. data/spec/models/post_spec.rb +0 -69
  24. data/spec/models/product_spec.rb +0 -122
  25. data/spec/models/tag_spec.rb +0 -21
  26. data/spec/models/tagging_spec.rb +0 -37
  27. data/spec/models/user_spec.rb +0 -292
  28. data/spec/other/custom_macros_spec.rb +0 -27
  29. data/spec/other/my_own_matcher_spec.rb +0 -11
  30. data/spec/other/private_helpers_spec.rb +0 -31
  31. data/spec/rails_root/app/controllers/application.rb +0 -25
  32. data/spec/rails_root/app/controllers/posts_controller.rb +0 -87
  33. data/spec/rails_root/app/controllers/users_controller.rb +0 -84
  34. data/spec/rails_root/app/helpers/application_helper.rb +0 -3
  35. data/spec/rails_root/app/helpers/posts_helper.rb +0 -2
  36. data/spec/rails_root/app/helpers/users_helper.rb +0 -2
  37. data/spec/rails_root/app/models/address.rb +0 -7
  38. data/spec/rails_root/app/models/flea.rb +0 -7
  39. data/spec/rails_root/app/models/friendship.rb +0 -4
  40. data/spec/rails_root/app/models/pets/dog.rb +0 -12
  41. data/spec/rails_root/app/models/post.rb +0 -12
  42. data/spec/rails_root/app/models/product.rb +0 -14
  43. data/spec/rails_root/app/models/tag.rb +0 -8
  44. data/spec/rails_root/app/models/tagging.rb +0 -6
  45. data/spec/rails_root/app/models/user.rb +0 -43
  46. data/spec/rails_root/app/views/layouts/posts.rhtml +0 -19
  47. data/spec/rails_root/app/views/layouts/users.rhtml +0 -17
  48. data/spec/rails_root/app/views/layouts/wide.html.erb +0 -1
  49. data/spec/rails_root/app/views/posts/edit.rhtml +0 -27
  50. data/spec/rails_root/app/views/posts/index.rhtml +0 -25
  51. data/spec/rails_root/app/views/posts/new.rhtml +0 -26
  52. data/spec/rails_root/app/views/posts/show.rhtml +0 -18
  53. data/spec/rails_root/app/views/users/edit.rhtml +0 -22
  54. data/spec/rails_root/app/views/users/index.rhtml +0 -22
  55. data/spec/rails_root/app/views/users/new.rhtml +0 -21
  56. data/spec/rails_root/app/views/users/show.rhtml +0 -13
  57. data/spec/rails_root/config/boot.rb +0 -109
  58. data/spec/rails_root/config/database.yml +0 -3
  59. data/spec/rails_root/config/environment.rb +0 -16
  60. data/spec/rails_root/config/environments/test.rb +0 -0
  61. data/spec/rails_root/config/initializers/new_rails_defaults.rb +0 -15
  62. data/spec/rails_root/config/initializers/shoulda.rb +0 -8
  63. data/spec/rails_root/config/locales/en.yml +0 -8
  64. data/spec/rails_root/config/routes.rb +0 -6
  65. data/spec/rails_root/db/migrate/001_create_users.rb +0 -18
  66. data/spec/rails_root/db/migrate/002_create_posts.rb +0 -13
  67. data/spec/rails_root/db/migrate/003_create_taggings.rb +0 -12
  68. data/spec/rails_root/db/migrate/004_create_tags.rb +0 -11
  69. data/spec/rails_root/db/migrate/005_create_dogs.rb +0 -13
  70. data/spec/rails_root/db/migrate/006_create_addresses.rb +0 -14
  71. data/spec/rails_root/db/migrate/007_create_fleas.rb +0 -11
  72. data/spec/rails_root/db/migrate/008_create_dogs_fleas.rb +0 -12
  73. data/spec/rails_root/db/migrate/009_create_products.rb +0 -17
  74. data/spec/rails_root/db/migrate/010_create_friendships.rb +0 -14
  75. data/spec/rails_root/db/migrate/011_add_fleas_color.rb +0 -10
  76. data/spec/rails_root/db/migrate/012_add_fleas_address.rb +0 -10
  77. data/spec/rails_root/db/schema.rb +0 -0
  78. data/spec/rails_root/log/.keep +0 -0
  79. data/spec/rails_root/public/.htaccess +0 -40
  80. data/spec/rails_root/public/404.html +0 -30
  81. data/spec/rails_root/public/422.html +0 -30
  82. data/spec/rails_root/public/500.html +0 -30
  83. data/spec/rails_root/script/console +0 -3
  84. data/spec/rails_root/script/generate +0 -3
  85. data/spec/rails_root/spec/remarkable_macros/.keep +0 -0
  86. data/spec/rails_root/vendor/plugins/.keep +0 -0
  87. data/spec/rails_root/vendor/plugins/my_plugin/remarkable_macros/.keep +0 -0
  88. data/spec/rcov.opts +0 -2
  89. data/spec/spec.opts +0 -4
  90. data/spec/spec_helper.rb +0 -56
@@ -1,10 +0,0 @@
1
- class AddFleasAddress < ActiveRecord::Migration
2
- def self.up
3
- add_column :fleas, :address, :string
4
-
5
- end
6
-
7
- def self.down
8
- remove_column :fleas, :address
9
- end
10
- end
File without changes
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>
@@ -1,3 +0,0 @@
1
- #!/usr/bin/env ruby
2
- require File.dirname(__FILE__) + '/../config/boot'
3
- require 'commands/console'
@@ -1,3 +0,0 @@
1
- #!/usr/bin/env ruby
2
- require File.dirname(__FILE__) + '/../config/boot'
3
- require 'commands/generate'
File without changes
File without changes
data/spec/rcov.opts DELETED
@@ -1,2 +0,0 @@
1
- --exclude "spec/*,gems/*"
2
- --rails
data/spec/spec.opts DELETED
@@ -1,4 +0,0 @@
1
- --colour
2
- --format progress
3
- --loadby mtime
4
- --reverse
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
-