ajax_validator 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/MIT-LICENSE +20 -0
- data/README.md +87 -0
- data/Rakefile +36 -0
- data/app/assets/javascripts/ajax_validator/ajax_validator.js.coffee +46 -0
- data/app/assets/javascripts/ajax_validator/application.js +13 -0
- data/app/assets/stylesheets/ajax_validator/application.css +15 -0
- data/app/controllers/ajax_validator/application_controller.rb +4 -0
- data/app/controllers/ajax_validator/validators_controller.rb +68 -0
- data/app/helpers/ajax_validator/application_helper.rb +4 -0
- data/app/models/ajax_validator/concerns/validation.rb +21 -0
- data/app/models/ajax_validator/validator.rb +128 -0
- data/app/views/layouts/ajax_validator/application.html.erb +14 -0
- data/config/cucumber.yml +8 -0
- data/config/routes.rb +3 -0
- data/lib/ajax_validator/engine.rb +42 -0
- data/lib/ajax_validator/version.rb +3 -0
- data/lib/ajax_validator.rb +4 -0
- data/lib/tasks/ajax_validator_tasks.rake +4 -0
- data/lib/tasks/cucumber.rake +65 -0
- data/spec/dummy/README.rdoc +28 -0
- data/spec/dummy/Rakefile +6 -0
- data/spec/dummy/app/assets/javascripts/application.js +13 -0
- data/spec/dummy/app/assets/stylesheets/application.css +15 -0
- data/spec/dummy/app/controllers/application_controller.rb +5 -0
- data/spec/dummy/app/controllers/base_controller.rb +5 -0
- data/spec/dummy/app/helpers/application_helper.rb +2 -0
- data/spec/dummy/app/views/layouts/application.html.erb +14 -0
- data/spec/dummy/bin/bundle +3 -0
- data/spec/dummy/bin/rails +4 -0
- data/spec/dummy/bin/rake +4 -0
- data/spec/dummy/bin/setup +29 -0
- data/spec/dummy/config/application.rb +32 -0
- data/spec/dummy/config/boot.rb +5 -0
- data/spec/dummy/config/database.yml +110 -0
- data/spec/dummy/config/environment.rb +5 -0
- data/spec/dummy/config/environments/development.rb +41 -0
- data/spec/dummy/config/environments/production.rb +79 -0
- data/spec/dummy/config/environments/test.rb +42 -0
- data/spec/dummy/config/initializers/assets.rb +11 -0
- data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/dummy/config/initializers/cookies_serializer.rb +3 -0
- data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/spec/dummy/config/initializers/inflections.rb +16 -0
- data/spec/dummy/config/initializers/mime_types.rb +4 -0
- data/spec/dummy/config/initializers/session_store.rb +3 -0
- data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/spec/dummy/config/locales/en.yml +23 -0
- data/spec/dummy/config/routes.rb +4 -0
- data/spec/dummy/config/secrets.yml +22 -0
- data/spec/dummy/config.ru +4 -0
- data/spec/dummy/db/development.sqlite3 +0 -0
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/log/development.log +715 -0
- data/spec/dummy/log/test.log +294 -0
- data/spec/dummy/public/404.html +67 -0
- data/spec/dummy/public/422.html +67 -0
- data/spec/dummy/public/500.html +66 -0
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/rails_helper.rb +68 -0
- data/spec/route_helper.rb +6 -0
- data/spec/spec_helper.rb +99 -0
- data/spec/support/capybara.rb +35 -0
- data/spec/support/database_cleaner.rb +77 -0
- data/spec/support/factory_girl_rails.rb +32 -0
- data/spec/support/matchers.rb +21 -0
- metadata +408 -0
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,99 @@
|
|
1
|
+
# This file was generated by the `rails generate rspec:install` command. Conventionally, all
|
2
|
+
# specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
|
3
|
+
# The generated `.rspec` file contains `--require spec_helper` which will cause
|
4
|
+
# this file to always be loaded, without a need to explicitly require it in any
|
5
|
+
# files.
|
6
|
+
#
|
7
|
+
# Given that it is always loaded, you are encouraged to keep this file as
|
8
|
+
# light-weight as possible. Requiring heavyweight dependencies from this file
|
9
|
+
# will add to the boot time of your test suite on EVERY test run, even for an
|
10
|
+
# individual file that may not need all of that loaded. Instead, consider making
|
11
|
+
# a separate helper file that requires the additional dependencies and performs
|
12
|
+
# the additional setup, and require it from the spec files that actually need
|
13
|
+
# it.
|
14
|
+
#
|
15
|
+
# The `.rspec` file also contains a few flags that are not defaults but that
|
16
|
+
# users commonly want.
|
17
|
+
#
|
18
|
+
# See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
|
19
|
+
RSpec.configure do |config|
|
20
|
+
# rspec-expectations config goes here. You can use an alternate
|
21
|
+
# assertion/expectation library such as wrong or the stdlib/minitest
|
22
|
+
# assertions if you prefer.
|
23
|
+
config.expect_with :rspec do |expectations|
|
24
|
+
# This option will default to `true` in RSpec 4. It makes the `description`
|
25
|
+
# and `failure_message` of custom matchers include text for helper methods
|
26
|
+
# defined using `chain`, e.g.:
|
27
|
+
# be_bigger_than(2).and_smaller_than(4).description
|
28
|
+
# # => "be bigger than 2 and smaller than 4"
|
29
|
+
# ...rather than:
|
30
|
+
# # => "be bigger than 2"
|
31
|
+
expectations.include_chain_clauses_in_custom_matcher_descriptions = true
|
32
|
+
#~ADD
|
33
|
+
expectations.syntax = :expect
|
34
|
+
end
|
35
|
+
|
36
|
+
# rspec-mocks config goes here. You can use an alternate test double
|
37
|
+
# library (such as bogus or mocha) by changing the `mock_with` option here.
|
38
|
+
config.mock_with :rspec do |mocks|
|
39
|
+
# Prevents you from mocking or stubbing a method that does not exist on
|
40
|
+
# a real object. This is generally recommended, and will default to
|
41
|
+
# `true` in RSpec 4.
|
42
|
+
mocks.verify_partial_doubles = true
|
43
|
+
#~ADD
|
44
|
+
mocks.syntax = :expect
|
45
|
+
end
|
46
|
+
|
47
|
+
#~ADD
|
48
|
+
config.order = :random
|
49
|
+
|
50
|
+
# The settings below are suggested to provide a good initial experience
|
51
|
+
# with RSpec, but feel free to customize to your heart's content.
|
52
|
+
=begin
|
53
|
+
# These two settings work together to allow you to limit a spec run
|
54
|
+
# to individual examples or groups you care about by tagging them with
|
55
|
+
# `:focus` metadata. When nothing is tagged with `:focus`, all examples
|
56
|
+
# get run.
|
57
|
+
config.filter_run :focus
|
58
|
+
config.run_all_when_everything_filtered = true
|
59
|
+
|
60
|
+
# Allows RSpec to persist some state between runs in order to support
|
61
|
+
# the `--only-failures` and `--next-failure` CLI options. We recommend
|
62
|
+
# you configure your source control system to ignore this file.
|
63
|
+
config.example_status_persistence_file_path = "spec/examples.txt"
|
64
|
+
|
65
|
+
# Limits the available syntax to the non-monkey patched syntax that is
|
66
|
+
# recommended. For more details, see:
|
67
|
+
# - http://rspec.info/blog/2012/06/rspecs-new-expectation-syntax/
|
68
|
+
# - http://www.teaisaweso.me/blog/2013/05/27/rspecs-new-message-expectation-syntax/
|
69
|
+
# - http://rspec.info/blog/2014/05/notable-changes-in-rspec-3/#zero-monkey-patching-mode
|
70
|
+
config.disable_monkey_patching!
|
71
|
+
|
72
|
+
# Many RSpec users commonly either run the entire suite or an individual
|
73
|
+
# file, and it's useful to allow more verbose output when running an
|
74
|
+
# individual spec file.
|
75
|
+
if config.files_to_run.one?
|
76
|
+
# Use the documentation formatter for detailed output,
|
77
|
+
# unless a formatter has already been configured
|
78
|
+
# (e.g. via a command-line flag).
|
79
|
+
config.default_formatter = 'doc'
|
80
|
+
end
|
81
|
+
|
82
|
+
# Print the 10 slowest examples and example groups at the
|
83
|
+
# end of the spec run, to help surface which specs are running
|
84
|
+
# particularly slow.
|
85
|
+
config.profile_examples = 10
|
86
|
+
|
87
|
+
# Run specs in random order to surface order dependencies. If you find an
|
88
|
+
# order dependency and want to debug it, you can fix the order by providing
|
89
|
+
# the seed, which is printed after each run.
|
90
|
+
# --seed 1234
|
91
|
+
config.order = :random
|
92
|
+
|
93
|
+
# Seed global randomization in this process using the `--seed` CLI option.
|
94
|
+
# Setting this allows you to use `--seed` to deterministically reproduce
|
95
|
+
# test failures related to randomization by passing the same `--seed` value
|
96
|
+
# as the one that triggered the failure.
|
97
|
+
Kernel.srand config.seed
|
98
|
+
=end
|
99
|
+
end
|
@@ -0,0 +1,35 @@
|
|
1
|
+
# Installing Capybara:
|
2
|
+
|
3
|
+
# 0. Check spec/support dir is auto-required in spec/rails_helper.rb.
|
4
|
+
#
|
5
|
+
# 1. Add these to your Gemfile:
|
6
|
+
#
|
7
|
+
# group :development, :test do
|
8
|
+
# gem 'capybara'
|
9
|
+
# gem 'selenium-webdriver' # For Firefox
|
10
|
+
# # gem 'chromedriver-helper' # Install to use Chrome in feature specs
|
11
|
+
# end
|
12
|
+
#
|
13
|
+
# 2. Create a file like this one you're reading in spec/support/capybara.rb:
|
14
|
+
|
15
|
+
require 'capybara/rails'
|
16
|
+
require 'capybara/rspec'
|
17
|
+
|
18
|
+
# By default Capybara will use Selenium+Firefox for `js:true` feature specs.
|
19
|
+
# Only if you're not using Puffing Billy, to use Chrome instead of Firefox,
|
20
|
+
# uncomment the following 3 lines:
|
21
|
+
# Capybara.register_driver :selenium do |app|
|
22
|
+
# Capybara::Selenium::Driver.new(app, :browser => :chrome)
|
23
|
+
# end
|
24
|
+
|
25
|
+
# 3. Start using Capybara. See feature specs in this project for examples.
|
26
|
+
|
27
|
+
# Suggested docs
|
28
|
+
# --------------
|
29
|
+
# http://www.rubydoc.info/github/jnicklas/capybara/master
|
30
|
+
# Cheatsheet: https://gist.github.com/zhengjia/428105
|
31
|
+
# Capybara matchers: http://www.rubydoc.info/github/jnicklas/capybara/master/Capybara/Node/Matchers
|
32
|
+
|
33
|
+
#~ADD
|
34
|
+
require 'capybara/poltergeist'
|
35
|
+
Capybara.javascript_driver = :poltergeist
|
@@ -0,0 +1,77 @@
|
|
1
|
+
# Installing database_cleaner:
|
2
|
+
|
3
|
+
# 0. Check spec/support dir is auto-required in spec/rails_helper.rb.
|
4
|
+
#
|
5
|
+
# 1. Add database_cleaner to Gemfile:
|
6
|
+
#
|
7
|
+
# group :test do
|
8
|
+
# gem 'database_cleaner'
|
9
|
+
# end
|
10
|
+
|
11
|
+
# 2. IMPORTANT! Delete the 'config.use_transactional_fixtures = ...' line
|
12
|
+
# in spec/rails_helper.rb (we're going to configure it in this file you're
|
13
|
+
# reading instead).
|
14
|
+
|
15
|
+
# 3. Create a file like this one you're reading in spec/support/database_cleaner.rb:
|
16
|
+
RSpec.configure do |config|
|
17
|
+
|
18
|
+
config.use_transactional_fixtures = false
|
19
|
+
|
20
|
+
config.before(:suite) do
|
21
|
+
if config.use_transactional_fixtures?
|
22
|
+
|
23
|
+
raise(<<-MSG)
|
24
|
+
|
25
|
+
Delete line `config.use_transactional_fixtures = true` from rails_helper.rb
|
26
|
+
(or set it to false) to prevent uncommitted transactions being used in
|
27
|
+
JavaScript-dependent specs.
|
28
|
+
|
29
|
+
During testing, the Ruby app server that the JavaScript browser driver
|
30
|
+
connects to uses a different database connection to the database connection
|
31
|
+
used by the spec.
|
32
|
+
|
33
|
+
This Ruby app server database connection would not be able to see data that
|
34
|
+
has been setup by the spec's database connection inside an uncommitted
|
35
|
+
transaction.
|
36
|
+
|
37
|
+
Disabling the use_transactional_fixtures setting helps avoid uncommitted
|
38
|
+
transactions in JavaScript-dependent specs, meaning that the Ruby app server
|
39
|
+
database connection can see any data set up by the specs.
|
40
|
+
|
41
|
+
MSG
|
42
|
+
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
config.before(:suite) do
|
47
|
+
DatabaseCleaner.clean_with(:truncation)
|
48
|
+
end
|
49
|
+
|
50
|
+
config.before(:each) do
|
51
|
+
DatabaseCleaner.strategy = :transaction
|
52
|
+
end
|
53
|
+
|
54
|
+
config.before(:each, type: :feature) do
|
55
|
+
# :rack_test driver's Rack app under test shares database connection
|
56
|
+
# with the specs, so we can use transaction strategy for speed.
|
57
|
+
driver_shares_db_connection_with_specs = Capybara.current_driver == :rack_test
|
58
|
+
|
59
|
+
if driver_shares_db_connection_with_specs
|
60
|
+
DatabaseCleaner.strategy = :transaction
|
61
|
+
else
|
62
|
+
# Non-:rack_test driver is probably a driver for a JavaScript browser
|
63
|
+
# with a Rack app under test that does *not* share a database
|
64
|
+
# connection with the specs, so we must use truncation strategy.
|
65
|
+
DatabaseCleaner.strategy = :truncation
|
66
|
+
end
|
67
|
+
end
|
68
|
+
|
69
|
+
config.before(:each) do
|
70
|
+
DatabaseCleaner.start
|
71
|
+
end
|
72
|
+
|
73
|
+
config.after(:each) do
|
74
|
+
DatabaseCleaner.clean
|
75
|
+
end
|
76
|
+
|
77
|
+
end
|
@@ -0,0 +1,32 @@
|
|
1
|
+
# Installing factory_girl:
|
2
|
+
|
3
|
+
# 0. Check spec/support dir is auto-required in spec/rails_helper.rb.
|
4
|
+
#
|
5
|
+
# 1. Add factory_girl_rails to Gemfile:
|
6
|
+
#
|
7
|
+
# group :development, :test do
|
8
|
+
# gem 'factory_girl_rails', '~> 4.5'
|
9
|
+
# end
|
10
|
+
|
11
|
+
# 2. Create a file like this one you're reading in spec/support/factory_girl.rb:
|
12
|
+
RSpec.configure do |config|
|
13
|
+
config.include FactoryGirl::Syntax::Methods
|
14
|
+
|
15
|
+
config.before(:suite) do
|
16
|
+
begin
|
17
|
+
DatabaseCleaner.start
|
18
|
+
# Test factories in spec/factories are working.
|
19
|
+
FactoryGirl.lint
|
20
|
+
ensure
|
21
|
+
DatabaseCleaner.clean
|
22
|
+
end
|
23
|
+
end
|
24
|
+
|
25
|
+
end
|
26
|
+
# 3. Start making use of Factory Girl. See factories in the spec/factories/ directory
|
27
|
+
# and how they're used in the specs (search for "create(:").
|
28
|
+
|
29
|
+
# Suggested docs
|
30
|
+
# --------------
|
31
|
+
# http://www.rubydoc.info/gems/factory_girl/file/GETTING_STARTED.md
|
32
|
+
# https://github.com/thoughtbot/factory_girl/wiki/Example-factories.rb-file
|
@@ -0,0 +1,21 @@
|
|
1
|
+
# Setting up Custom Matchers:
|
2
|
+
|
3
|
+
# 0. Check spec/support dir is auto-required in spec/rails_helper.rb.
|
4
|
+
#
|
5
|
+
# 1. Create a file like this one you're reading in spec/support/matchers.rb:
|
6
|
+
|
7
|
+
Dir[Rails.root.join('spec/matchers/**/*.rb')].each { |f| require f }
|
8
|
+
|
9
|
+
RSpec.configure do |config|
|
10
|
+
config.include Matchers
|
11
|
+
end
|
12
|
+
|
13
|
+
# 2. Write custom matcher classes in spec/matchers/ directory
|
14
|
+
#
|
15
|
+
# Each matcher class will need to be in a module called
|
16
|
+
# 'Matchers' to work with the RSpec configuration specified
|
17
|
+
# above, see the spec/matchers directory for an example.
|
18
|
+
|
19
|
+
# Suggested docs
|
20
|
+
# --------------
|
21
|
+
# 'Custom Matchers' section at http://www.rubydoc.info/gems/rspec-expectations/RSpec/Matchers
|
metadata
ADDED
@@ -0,0 +1,408 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: ajax_validator
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Marcin Kalita
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2016-03-08 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: rake
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: bundler
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rails
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: jquery-rails
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: coffee-rails
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: pg
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: byebug
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: pry
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - ">="
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - ">="
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0'
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: pry-byebug
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - ">="
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '0'
|
132
|
+
type: :development
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - ">="
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '0'
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: factory_girl_rails
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - ">="
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: '0'
|
146
|
+
type: :development
|
147
|
+
prerelease: false
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - ">="
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: '0'
|
153
|
+
- !ruby/object:Gem::Dependency
|
154
|
+
name: rspec-rails
|
155
|
+
requirement: !ruby/object:Gem::Requirement
|
156
|
+
requirements:
|
157
|
+
- - ">="
|
158
|
+
- !ruby/object:Gem::Version
|
159
|
+
version: '0'
|
160
|
+
type: :development
|
161
|
+
prerelease: false
|
162
|
+
version_requirements: !ruby/object:Gem::Requirement
|
163
|
+
requirements:
|
164
|
+
- - ">="
|
165
|
+
- !ruby/object:Gem::Version
|
166
|
+
version: '0'
|
167
|
+
- !ruby/object:Gem::Dependency
|
168
|
+
name: cucumber_scaffold
|
169
|
+
requirement: !ruby/object:Gem::Requirement
|
170
|
+
requirements:
|
171
|
+
- - ">="
|
172
|
+
- !ruby/object:Gem::Version
|
173
|
+
version: '0'
|
174
|
+
type: :development
|
175
|
+
prerelease: false
|
176
|
+
version_requirements: !ruby/object:Gem::Requirement
|
177
|
+
requirements:
|
178
|
+
- - ">="
|
179
|
+
- !ruby/object:Gem::Version
|
180
|
+
version: '0'
|
181
|
+
- !ruby/object:Gem::Dependency
|
182
|
+
name: cucumber-rails
|
183
|
+
requirement: !ruby/object:Gem::Requirement
|
184
|
+
requirements:
|
185
|
+
- - ">="
|
186
|
+
- !ruby/object:Gem::Version
|
187
|
+
version: 1.4.0
|
188
|
+
type: :development
|
189
|
+
prerelease: false
|
190
|
+
version_requirements: !ruby/object:Gem::Requirement
|
191
|
+
requirements:
|
192
|
+
- - ">="
|
193
|
+
- !ruby/object:Gem::Version
|
194
|
+
version: 1.4.0
|
195
|
+
- !ruby/object:Gem::Dependency
|
196
|
+
name: database_cleaner
|
197
|
+
requirement: !ruby/object:Gem::Requirement
|
198
|
+
requirements:
|
199
|
+
- - ">="
|
200
|
+
- !ruby/object:Gem::Version
|
201
|
+
version: '0'
|
202
|
+
type: :development
|
203
|
+
prerelease: false
|
204
|
+
version_requirements: !ruby/object:Gem::Requirement
|
205
|
+
requirements:
|
206
|
+
- - ">="
|
207
|
+
- !ruby/object:Gem::Version
|
208
|
+
version: '0'
|
209
|
+
- !ruby/object:Gem::Dependency
|
210
|
+
name: formulaic
|
211
|
+
requirement: !ruby/object:Gem::Requirement
|
212
|
+
requirements:
|
213
|
+
- - ">="
|
214
|
+
- !ruby/object:Gem::Version
|
215
|
+
version: '0'
|
216
|
+
type: :development
|
217
|
+
prerelease: false
|
218
|
+
version_requirements: !ruby/object:Gem::Requirement
|
219
|
+
requirements:
|
220
|
+
- - ">="
|
221
|
+
- !ruby/object:Gem::Version
|
222
|
+
version: '0'
|
223
|
+
- !ruby/object:Gem::Dependency
|
224
|
+
name: poltergeist
|
225
|
+
requirement: !ruby/object:Gem::Requirement
|
226
|
+
requirements:
|
227
|
+
- - ">="
|
228
|
+
- !ruby/object:Gem::Version
|
229
|
+
version: '0'
|
230
|
+
type: :development
|
231
|
+
prerelease: false
|
232
|
+
version_requirements: !ruby/object:Gem::Requirement
|
233
|
+
requirements:
|
234
|
+
- - ">="
|
235
|
+
- !ruby/object:Gem::Version
|
236
|
+
version: '0'
|
237
|
+
- !ruby/object:Gem::Dependency
|
238
|
+
name: fuubar
|
239
|
+
requirement: !ruby/object:Gem::Requirement
|
240
|
+
requirements:
|
241
|
+
- - ">="
|
242
|
+
- !ruby/object:Gem::Version
|
243
|
+
version: '0'
|
244
|
+
type: :development
|
245
|
+
prerelease: false
|
246
|
+
version_requirements: !ruby/object:Gem::Requirement
|
247
|
+
requirements:
|
248
|
+
- - ">="
|
249
|
+
- !ruby/object:Gem::Version
|
250
|
+
version: '0'
|
251
|
+
- !ruby/object:Gem::Dependency
|
252
|
+
name: capybara-puma
|
253
|
+
requirement: !ruby/object:Gem::Requirement
|
254
|
+
requirements:
|
255
|
+
- - ">="
|
256
|
+
- !ruby/object:Gem::Version
|
257
|
+
version: '0'
|
258
|
+
type: :development
|
259
|
+
prerelease: false
|
260
|
+
version_requirements: !ruby/object:Gem::Requirement
|
261
|
+
requirements:
|
262
|
+
- - ">="
|
263
|
+
- !ruby/object:Gem::Version
|
264
|
+
version: '0'
|
265
|
+
description: Ajax Validator is a Rails engine that allows to validate form fields.
|
266
|
+
email:
|
267
|
+
- mkalita@efigence.com
|
268
|
+
executables: []
|
269
|
+
extensions: []
|
270
|
+
extra_rdoc_files: []
|
271
|
+
files:
|
272
|
+
- MIT-LICENSE
|
273
|
+
- README.md
|
274
|
+
- Rakefile
|
275
|
+
- app/assets/javascripts/ajax_validator/ajax_validator.js.coffee
|
276
|
+
- app/assets/javascripts/ajax_validator/application.js
|
277
|
+
- app/assets/stylesheets/ajax_validator/application.css
|
278
|
+
- app/controllers/ajax_validator/application_controller.rb
|
279
|
+
- app/controllers/ajax_validator/validators_controller.rb
|
280
|
+
- app/helpers/ajax_validator/application_helper.rb
|
281
|
+
- app/models/ajax_validator/concerns/validation.rb
|
282
|
+
- app/models/ajax_validator/validator.rb
|
283
|
+
- app/views/layouts/ajax_validator/application.html.erb
|
284
|
+
- config/cucumber.yml
|
285
|
+
- config/routes.rb
|
286
|
+
- lib/ajax_validator.rb
|
287
|
+
- lib/ajax_validator/engine.rb
|
288
|
+
- lib/ajax_validator/version.rb
|
289
|
+
- lib/tasks/ajax_validator_tasks.rake
|
290
|
+
- lib/tasks/cucumber.rake
|
291
|
+
- spec/dummy/README.rdoc
|
292
|
+
- spec/dummy/Rakefile
|
293
|
+
- spec/dummy/app/assets/javascripts/application.js
|
294
|
+
- spec/dummy/app/assets/stylesheets/application.css
|
295
|
+
- spec/dummy/app/controllers/application_controller.rb
|
296
|
+
- spec/dummy/app/controllers/base_controller.rb
|
297
|
+
- spec/dummy/app/helpers/application_helper.rb
|
298
|
+
- spec/dummy/app/views/layouts/application.html.erb
|
299
|
+
- spec/dummy/bin/bundle
|
300
|
+
- spec/dummy/bin/rails
|
301
|
+
- spec/dummy/bin/rake
|
302
|
+
- spec/dummy/bin/setup
|
303
|
+
- spec/dummy/config.ru
|
304
|
+
- spec/dummy/config/application.rb
|
305
|
+
- spec/dummy/config/boot.rb
|
306
|
+
- spec/dummy/config/database.yml
|
307
|
+
- spec/dummy/config/environment.rb
|
308
|
+
- spec/dummy/config/environments/development.rb
|
309
|
+
- spec/dummy/config/environments/production.rb
|
310
|
+
- spec/dummy/config/environments/test.rb
|
311
|
+
- spec/dummy/config/initializers/assets.rb
|
312
|
+
- spec/dummy/config/initializers/backtrace_silencers.rb
|
313
|
+
- spec/dummy/config/initializers/cookies_serializer.rb
|
314
|
+
- spec/dummy/config/initializers/filter_parameter_logging.rb
|
315
|
+
- spec/dummy/config/initializers/inflections.rb
|
316
|
+
- spec/dummy/config/initializers/mime_types.rb
|
317
|
+
- spec/dummy/config/initializers/session_store.rb
|
318
|
+
- spec/dummy/config/initializers/wrap_parameters.rb
|
319
|
+
- spec/dummy/config/locales/en.yml
|
320
|
+
- spec/dummy/config/routes.rb
|
321
|
+
- spec/dummy/config/secrets.yml
|
322
|
+
- spec/dummy/db/development.sqlite3
|
323
|
+
- spec/dummy/db/test.sqlite3
|
324
|
+
- spec/dummy/log/development.log
|
325
|
+
- spec/dummy/log/test.log
|
326
|
+
- spec/dummy/public/404.html
|
327
|
+
- spec/dummy/public/422.html
|
328
|
+
- spec/dummy/public/500.html
|
329
|
+
- spec/dummy/public/favicon.ico
|
330
|
+
- spec/rails_helper.rb
|
331
|
+
- spec/route_helper.rb
|
332
|
+
- spec/spec_helper.rb
|
333
|
+
- spec/support/capybara.rb
|
334
|
+
- spec/support/database_cleaner.rb
|
335
|
+
- spec/support/factory_girl_rails.rb
|
336
|
+
- spec/support/matchers.rb
|
337
|
+
homepage: https://github.com/efigence/ajax_validator
|
338
|
+
licenses:
|
339
|
+
- MIT
|
340
|
+
metadata:
|
341
|
+
allowed_push_host: https://rubygems.org
|
342
|
+
post_install_message:
|
343
|
+
rdoc_options: []
|
344
|
+
require_paths:
|
345
|
+
- lib
|
346
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
347
|
+
requirements:
|
348
|
+
- - ">="
|
349
|
+
- !ruby/object:Gem::Version
|
350
|
+
version: '0'
|
351
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
352
|
+
requirements:
|
353
|
+
- - ">="
|
354
|
+
- !ruby/object:Gem::Version
|
355
|
+
version: '0'
|
356
|
+
requirements: []
|
357
|
+
rubyforge_project:
|
358
|
+
rubygems_version: 2.4.5
|
359
|
+
signing_key:
|
360
|
+
specification_version: 4
|
361
|
+
summary: Ajax Live Form Validation Rails Engine
|
362
|
+
test_files:
|
363
|
+
- spec/dummy/config.ru
|
364
|
+
- spec/dummy/bin/bundle
|
365
|
+
- spec/dummy/bin/rake
|
366
|
+
- spec/dummy/bin/rails
|
367
|
+
- spec/dummy/bin/setup
|
368
|
+
- spec/dummy/app/views/layouts/application.html.erb
|
369
|
+
- spec/dummy/app/helpers/application_helper.rb
|
370
|
+
- spec/dummy/app/controllers/base_controller.rb
|
371
|
+
- spec/dummy/app/controllers/application_controller.rb
|
372
|
+
- spec/dummy/app/assets/stylesheets/application.css
|
373
|
+
- spec/dummy/app/assets/javascripts/application.js
|
374
|
+
- spec/dummy/log/development.log
|
375
|
+
- spec/dummy/log/test.log
|
376
|
+
- spec/dummy/db/test.sqlite3
|
377
|
+
- spec/dummy/db/development.sqlite3
|
378
|
+
- spec/dummy/Rakefile
|
379
|
+
- spec/dummy/config/database.yml
|
380
|
+
- spec/dummy/config/environments/test.rb
|
381
|
+
- spec/dummy/config/environments/production.rb
|
382
|
+
- spec/dummy/config/environments/development.rb
|
383
|
+
- spec/dummy/config/locales/en.yml
|
384
|
+
- spec/dummy/config/routes.rb
|
385
|
+
- spec/dummy/config/secrets.yml
|
386
|
+
- spec/dummy/config/initializers/cookies_serializer.rb
|
387
|
+
- spec/dummy/config/initializers/session_store.rb
|
388
|
+
- spec/dummy/config/initializers/wrap_parameters.rb
|
389
|
+
- spec/dummy/config/initializers/mime_types.rb
|
390
|
+
- spec/dummy/config/initializers/assets.rb
|
391
|
+
- spec/dummy/config/initializers/filter_parameter_logging.rb
|
392
|
+
- spec/dummy/config/initializers/backtrace_silencers.rb
|
393
|
+
- spec/dummy/config/initializers/inflections.rb
|
394
|
+
- spec/dummy/config/environment.rb
|
395
|
+
- spec/dummy/config/application.rb
|
396
|
+
- spec/dummy/config/boot.rb
|
397
|
+
- spec/dummy/README.rdoc
|
398
|
+
- spec/dummy/public/500.html
|
399
|
+
- spec/dummy/public/422.html
|
400
|
+
- spec/dummy/public/favicon.ico
|
401
|
+
- spec/dummy/public/404.html
|
402
|
+
- spec/route_helper.rb
|
403
|
+
- spec/rails_helper.rb
|
404
|
+
- spec/spec_helper.rb
|
405
|
+
- spec/support/database_cleaner.rb
|
406
|
+
- spec/support/factory_girl_rails.rb
|
407
|
+
- spec/support/matchers.rb
|
408
|
+
- spec/support/capybara.rb
|