uovalid 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 20519e1a078882cab89276d8dcedbd6b583d9e63
4
+ data.tar.gz: 1261c8eb436f70b1729e2d194c9f0268f533ebd1
5
+ SHA512:
6
+ metadata.gz: 991f08786b49b8d12d0a814b80c3aae43d3d0e413de585ebdfc07b3abb574ea09dd3eb882b230e88ca80899f275d091bb3887be5e4e745c4806691694961a92b
7
+ data.tar.gz: bd1d648571c9c05aeb94f56af4e474f5d6be94deae1b89d603578469f0cc40fa103a4929062365d5e09cb5dbd6ef79560ac6b09a381b81e43feab6dc5a3eadbd
data/.gitignore ADDED
@@ -0,0 +1,44 @@
1
+ .bundle/
2
+ log/*.log
3
+ pkg/
4
+ spec/internal/db/*.sqlite3
5
+ spec/internal/db/*.sqlite3-journal
6
+ spec/internal/log/
7
+ spec/internal/tmp/
8
+ spec/internal/.sass-cache
9
+ =======
10
+ *.rbc
11
+ capybara-*.html
12
+ .rspec
13
+ /log
14
+ /tmp
15
+ /db/*.sqlite3
16
+ /db/*.sqlite3-journal
17
+ /public/system
18
+ /coverage/
19
+ /spec/tmp
20
+ **.orig
21
+ rerun.txt
22
+ pickle-email-*.html
23
+
24
+ # TODO Comment out these rules if you are OK with secrets being uploaded to the repo
25
+ config/initializers/secret_token.rb
26
+ config/secrets.yml
27
+
28
+ ## Environment normalization:
29
+ /.bundle
30
+ /vendor/bundle
31
+
32
+ # these should all be checked in to normalize the environment:
33
+ # Gemfile.lock, .ruby-version, .ruby-gemset
34
+
35
+ # unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
36
+ .rvmrc
37
+
38
+ # if using bower-rails ignore default bower_components path bower.json files
39
+ /vendor/assets/bower_components
40
+ *.bowerrc
41
+ bower.json
42
+
43
+ # Ignore pow environment settings
44
+ .powenv
data/.travis.yml ADDED
@@ -0,0 +1,3 @@
1
+ language: ruby
2
+ rvm:
3
+ - 2.2
data/Gemfile ADDED
@@ -0,0 +1,20 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Declare your gem's dependencies in uovalid.gemspec.
4
+ # Bundler will treat runtime dependencies like base dependencies, and
5
+ # development dependencies will be added by default to the :development group.
6
+ gemspec
7
+
8
+ # Declare any dependencies that are still in development here instead of in
9
+ # your gemspec. These might include edge Rails or gems from your path or
10
+ # Git. Remember to move these dependencies to your gemspec before releasing
11
+ # your gem to rubygems.org.
12
+
13
+ # To use a debugger
14
+ # gem 'byebug', group: [:development, :test]
15
+
16
+ group :test do
17
+ gem 'actionpack' # action_controller, action_view
18
+ gem 'sprockets'
19
+ gem 'slim-rails'
20
+ end
data/Gemfile.lock ADDED
@@ -0,0 +1,232 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ uovalid (0.0.1)
5
+ jquery-rails
6
+ jquery-validation-rails
7
+ rails (~> 4.2.5)
8
+
9
+ GEM
10
+ remote: https://rubygems.org/
11
+ specs:
12
+ actionmailer (4.2.6)
13
+ actionpack (= 4.2.6)
14
+ actionview (= 4.2.6)
15
+ activejob (= 4.2.6)
16
+ mail (~> 2.5, >= 2.5.4)
17
+ rails-dom-testing (~> 1.0, >= 1.0.5)
18
+ actionpack (4.2.6)
19
+ actionview (= 4.2.6)
20
+ activesupport (= 4.2.6)
21
+ rack (~> 1.6)
22
+ rack-test (~> 0.6.2)
23
+ rails-dom-testing (~> 1.0, >= 1.0.5)
24
+ rails-html-sanitizer (~> 1.0, >= 1.0.2)
25
+ actionview (4.2.6)
26
+ activesupport (= 4.2.6)
27
+ builder (~> 3.1)
28
+ erubis (~> 2.7.0)
29
+ rails-dom-testing (~> 1.0, >= 1.0.5)
30
+ rails-html-sanitizer (~> 1.0, >= 1.0.2)
31
+ activejob (4.2.6)
32
+ activesupport (= 4.2.6)
33
+ globalid (>= 0.3.0)
34
+ activemodel (4.2.6)
35
+ activesupport (= 4.2.6)
36
+ builder (~> 3.1)
37
+ activerecord (4.2.6)
38
+ activemodel (= 4.2.6)
39
+ activesupport (= 4.2.6)
40
+ arel (~> 6.0)
41
+ activesupport (4.2.6)
42
+ i18n (~> 0.7)
43
+ json (~> 1.7, >= 1.7.7)
44
+ minitest (~> 5.1)
45
+ thread_safe (~> 0.3, >= 0.3.4)
46
+ tzinfo (~> 1.1)
47
+ addressable (2.4.0)
48
+ arel (6.0.3)
49
+ builder (3.2.2)
50
+ capybara (2.7.0)
51
+ addressable
52
+ mime-types (>= 1.16)
53
+ nokogiri (>= 1.3.3)
54
+ rack (>= 1.0.0)
55
+ rack-test (>= 0.5.4)
56
+ xpath (~> 2.0)
57
+ coderay (1.1.1)
58
+ combustion (0.5.4)
59
+ activesupport (>= 3.0.0)
60
+ railties (>= 3.0.0)
61
+ thor (>= 0.14.6)
62
+ concurrent-ruby (1.0.1)
63
+ diff-lcs (1.2.5)
64
+ erubis (2.7.0)
65
+ ffi (1.9.10)
66
+ formatador (0.2.5)
67
+ globalid (0.3.6)
68
+ activesupport (>= 4.1.0)
69
+ guard (2.13.0)
70
+ formatador (>= 0.2.4)
71
+ listen (>= 2.7, <= 4.0)
72
+ lumberjack (~> 1.0)
73
+ nenv (~> 0.1)
74
+ notiffany (~> 0.0)
75
+ pry (>= 0.9.12)
76
+ shellany (~> 0.0)
77
+ thor (>= 0.18.1)
78
+ guard-compat (1.2.1)
79
+ guard-rspec (4.6.5)
80
+ guard (~> 2.1)
81
+ guard-compat (~> 1.1)
82
+ rspec (>= 2.99.0, < 4.0)
83
+ i18n (0.7.0)
84
+ jquery-rails (4.1.0)
85
+ rails-dom-testing (~> 1.0)
86
+ railties (>= 4.2.0)
87
+ thor (>= 0.14, < 2.0)
88
+ jquery-validation-rails (1.13.1)
89
+ railties (>= 3.2, < 5.0)
90
+ thor (~> 0.14)
91
+ json (1.8.3)
92
+ listen (3.0.6)
93
+ rb-fsevent (>= 0.9.3)
94
+ rb-inotify (>= 0.9.7)
95
+ loofah (2.0.3)
96
+ nokogiri (>= 1.5.9)
97
+ lumberjack (1.0.10)
98
+ mail (2.6.4)
99
+ mime-types (>= 1.16, < 4)
100
+ memfs (0.5.0)
101
+ method_source (0.8.2)
102
+ mime-types (3.0)
103
+ mime-types-data (~> 3.2015)
104
+ mime-types-data (3.2016.0221)
105
+ mini_portile2 (2.0.0)
106
+ minitest (5.8.4)
107
+ nenv (0.3.0)
108
+ nokogiri (1.6.7.2)
109
+ mini_portile2 (~> 2.0.0.rc2)
110
+ notiffany (0.0.8)
111
+ nenv (~> 0.1)
112
+ shellany (~> 0.0)
113
+ pry (0.10.3)
114
+ coderay (~> 1.1.0)
115
+ method_source (~> 0.8.1)
116
+ slop (~> 3.4)
117
+ pry-nav (0.2.4)
118
+ pry (>= 0.9.10, < 0.11.0)
119
+ pry-remote (0.1.8)
120
+ pry (~> 0.9)
121
+ slop (~> 3.0)
122
+ rack (1.6.4)
123
+ rack-test (0.6.3)
124
+ rack (>= 1.0)
125
+ rails (4.2.6)
126
+ actionmailer (= 4.2.6)
127
+ actionpack (= 4.2.6)
128
+ actionview (= 4.2.6)
129
+ activejob (= 4.2.6)
130
+ activemodel (= 4.2.6)
131
+ activerecord (= 4.2.6)
132
+ activesupport (= 4.2.6)
133
+ bundler (>= 1.3.0, < 2.0)
134
+ railties (= 4.2.6)
135
+ sprockets-rails
136
+ rails-deprecated_sanitizer (1.0.3)
137
+ activesupport (>= 4.2.0.alpha)
138
+ rails-dom-testing (1.0.7)
139
+ activesupport (>= 4.2.0.beta, < 5.0)
140
+ nokogiri (~> 1.6.0)
141
+ rails-deprecated_sanitizer (>= 1.0.1)
142
+ rails-html-sanitizer (1.0.3)
143
+ loofah (~> 2.0)
144
+ railties (4.2.6)
145
+ actionpack (= 4.2.6)
146
+ activesupport (= 4.2.6)
147
+ rake (>= 0.8.7)
148
+ thor (>= 0.18.1, < 2.0)
149
+ rake (11.1.2)
150
+ rb-fsevent (0.9.7)
151
+ rb-inotify (0.9.7)
152
+ ffi (>= 0.5.0)
153
+ rspec (3.4.0)
154
+ rspec-core (~> 3.4.0)
155
+ rspec-expectations (~> 3.4.0)
156
+ rspec-mocks (~> 3.4.0)
157
+ rspec-core (3.4.4)
158
+ rspec-support (~> 3.4.0)
159
+ rspec-expectations (3.4.0)
160
+ diff-lcs (>= 1.2.0, < 2.0)
161
+ rspec-support (~> 3.4.0)
162
+ rspec-mocks (3.4.1)
163
+ diff-lcs (>= 1.2.0, < 2.0)
164
+ rspec-support (~> 3.4.0)
165
+ rspec-nc (0.3.0)
166
+ rspec (>= 3)
167
+ terminal-notifier (>= 1.4)
168
+ rspec-rails (3.4.2)
169
+ actionpack (>= 3.0, < 4.3)
170
+ activesupport (>= 3.0, < 4.3)
171
+ railties (>= 3.0, < 4.3)
172
+ rspec-core (~> 3.4.0)
173
+ rspec-expectations (~> 3.4.0)
174
+ rspec-mocks (~> 3.4.0)
175
+ rspec-support (~> 3.4.0)
176
+ rspec-support (3.4.1)
177
+ shellany (0.0.1)
178
+ slim (3.0.6)
179
+ temple (~> 0.7.3)
180
+ tilt (>= 1.3.3, < 2.1)
181
+ slim-rails (3.0.1)
182
+ actionmailer (>= 3.1, < 5.0)
183
+ actionpack (>= 3.1, < 5.0)
184
+ activesupport (>= 3.1, < 5.0)
185
+ railties (>= 3.1, < 5.0)
186
+ slim (~> 3.0)
187
+ slop (3.6.0)
188
+ spring (1.7.1)
189
+ sprockets (3.6.0)
190
+ concurrent-ruby (~> 1.0)
191
+ rack (> 1, < 3)
192
+ sprockets-rails (3.0.4)
193
+ actionpack (>= 4.0)
194
+ activesupport (>= 4.0)
195
+ sprockets (>= 3.0.0)
196
+ temple (0.7.6)
197
+ terminal-notifier (1.6.3)
198
+ terminal-notifier-guard (1.7.0)
199
+ thor (0.19.1)
200
+ thread_safe (0.3.5)
201
+ tilt (2.0.2)
202
+ tzinfo (1.2.2)
203
+ thread_safe (~> 0.1)
204
+ xpath (2.0.0)
205
+ nokogiri (~> 1.3)
206
+
207
+ PLATFORMS
208
+ ruby
209
+
210
+ DEPENDENCIES
211
+ actionpack
212
+ bundler (~> 1.7)
213
+ capybara
214
+ combustion (~> 0.5.3)
215
+ guard
216
+ guard-rspec
217
+ memfs
218
+ pry
219
+ pry-nav
220
+ pry-remote
221
+ rspec (~> 3.3)
222
+ rspec-nc
223
+ rspec-rails (~> 3.0)
224
+ slim-rails
225
+ spring
226
+ sprockets
227
+ terminal-notifier
228
+ terminal-notifier-guard
229
+ uovalid!
230
+
231
+ BUNDLED WITH
232
+ 1.10.6
data/MIT-LICENSE ADDED
@@ -0,0 +1,20 @@
1
+ Copyright 2016 Andrei Potetiurin
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,38 @@
1
+ [![Build Status](http://img.shields.io/travis/Sickphilosopher/uovalid.svg?style=flat-square)](https://travis-ci.org/Sickphilosopher/uovalid)
2
+ [![Dependency Status](http://img.shields.io/gemnasium/Sickphilosopher/uovalid.svg?style=flat-square)](https://gemnasium.com/Sickphilosopher/uovalid)
3
+ [![Code Climate](http://img.shields.io/codeclimate/github/Sickphilosopher/uovalid.svg?style=flat-square)](https://codeclimate.com/github/Sickphilosopher/uovalid)
4
+ [![Gem Version](http://img.shields.io/gem/v/uovalid.svg?style=flat-square)](https://rubygems.org/gems/uovalid)
5
+ [![License](http://img.shields.io/:license-mit-blue.svg?style=flat-square)](http://Sickphilosopher.mit-license.org)
6
+
7
+ # RailsBlocks
8
+
9
+ Gem for unobtrusive validation in rails.
10
+ Thanks to asp.net mvc
11
+
12
+ ## Installation
13
+
14
+ Add this line to your application's Gemfile:
15
+
16
+ ```ruby
17
+ gem 'uovalid'
18
+ ```
19
+
20
+ And then execute:
21
+
22
+ $ bundle
23
+
24
+ Or install it yourself as:
25
+
26
+ $ gem install uovalid
27
+
28
+ ## Usage
29
+
30
+ TODO: Write usage instructions here
31
+
32
+ ## Contributing
33
+
34
+ 1. Fork it ( https://github.com/sickphilosopher/uovalid/fork )
35
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
36
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
37
+ 4. Push to the branch (`git push origin my-new-feature`)
38
+ 5. Create a new Pull Request
data/Rakefile ADDED
@@ -0,0 +1,23 @@
1
+ begin
2
+ require 'bundler/setup'
3
+ rescue LoadError
4
+ puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
5
+ end
6
+
7
+ require 'rdoc/task'
8
+
9
+ RDoc::Task.new(:rdoc) do |rdoc|
10
+ rdoc.rdoc_dir = 'rdoc'
11
+ rdoc.title = 'Uovalid'
12
+ rdoc.options << '--line-numbers'
13
+ rdoc.rdoc_files.include('README.rdoc')
14
+ rdoc.rdoc_files.include('lib/**/*.rb')
15
+ end
16
+
17
+
18
+
19
+
20
+
21
+
22
+ Bundler::GemHelper.install_tasks
23
+
@@ -0,0 +1,4 @@
1
+ # desc "Explaining what the task does"
2
+ # task :uovalid do
3
+ # # Task goes here
4
+ # end
data/lib/uovalid.rb ADDED
@@ -0,0 +1,2 @@
1
+ module Uovalid
2
+ end
@@ -0,0 +1,12 @@
1
+ module RailsBlocks
2
+ class Engine < Rails::Engine
3
+ #isolate_namespace RailsBlocks
4
+ config.autoload_paths << File.expand_path("../uovalid", __FILE__)
5
+
6
+ config.generators do |g|
7
+ g.test_framework :rspec
8
+ g.fixture_replacement :factory_girl, :dir => 'spec/factories'
9
+ end
10
+
11
+ end
12
+ end
@@ -0,0 +1,3 @@
1
+ module Uovalid
2
+ VERSION = "0.0.1"
3
+ end
File without changes
@@ -0,0 +1,13 @@
1
+ // This is a manifest file that'll be compiled into application.js, which will include all the files
2
+ // listed below.
3
+ //
4
+ // Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
5
+ // or any plugin's vendor/assets/javascripts directory can be referenced here using a relative path.
6
+ //
7
+ // It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
8
+ // compiled file.
9
+ //
10
+ // Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details
11
+ // about supported directives.
12
+ //
13
+ //= require_tree .
@@ -0,0 +1,15 @@
1
+ /*
2
+ * This is a manifest file that'll be compiled into application.css, which will include all the files
3
+ * listed below.
4
+ *
5
+ * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
6
+ * or any plugin's vendor/assets/stylesheets directory can be referenced here using a relative path.
7
+ *
8
+ * You're free to add application-wide styles to this file and they'll appear at the bottom of the
9
+ * compiled file so the styles you add here take precedence over styles defined in any styles
10
+ * defined in the other CSS/SCSS files in this directory. It is generally better to create a new
11
+ * file per style scope.
12
+ *
13
+ *= require_tree .
14
+ *= require_self
15
+ */
@@ -0,0 +1,5 @@
1
+ class ApplicationController < ActionController::Base
2
+ # Prevent CSRF attacks by raising an exception.
3
+ # For APIs, you may want to use :null_session instead.
4
+ protect_from_forgery with: :exception
5
+ end
File without changes
@@ -0,0 +1,14 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>Internal</title>
5
+ <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %>
6
+ <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
7
+ <%= csrf_meta_tags %>
8
+ </head>
9
+ <body>
10
+
11
+ <%= yield %>
12
+
13
+ </body>
14
+ </html>
@@ -0,0 +1,10 @@
1
+ default: &default
2
+ adapter: postgresql
3
+ encoding: unicode
4
+ # For details on connection pooling, see rails configuration guide
5
+ # http://guides.rubyonrails.org/configuring.html#database-pooling
6
+ pool: 5
7
+
8
+ test:
9
+ <<: *default
10
+ database: uovalid_test
@@ -0,0 +1,3 @@
1
+ Rails.application.routes.draw do
2
+ #
3
+ end
@@ -0,0 +1,3 @@
1
+ ActiveRecord::Schema.define do
2
+ #
3
+ end
@@ -0,0 +1,112 @@
1
+ ENV['RAILS_ENV'] ||= 'test'
2
+
3
+ require 'rubygems'
4
+ require 'bundler/setup'
5
+ require 'combustion'
6
+ require 'capybara/rspec'
7
+ require 'memfs'
8
+
9
+ Combustion.initialize! :action_controller,
10
+ :action_view, :sprockets
11
+
12
+ require 'rspec/rails'
13
+ require 'capybara/rails'
14
+
15
+ # This file was generated by the `rails generate rspec:install` command. Conventionally, all
16
+ # specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
17
+ # The generated `.rspec` file contains `--require spec_helper` which will cause
18
+ # this file to always be loaded, without a need to explicitly require it in any
19
+ # files.
20
+ #
21
+ # Given that it is always loaded, you are encouraged to keep this file as
22
+ # light-weight as possible. Requiring heavyweight dependencies from this file
23
+ # will add to the boot time of your test suite on EVERY test run, even for an
24
+ # individual file that may not need all of that loaded. Instead, consider making
25
+ # a separate helper file that requires the additional dependencies and performs
26
+ # the additional setup, and require it from the spec files that actually need
27
+ # it.
28
+ #
29
+ # The `.rspec` file also contains a few flags that are not defaults but that
30
+ # users commonly want.
31
+ #
32
+ # See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
33
+ RSpec.configure do |config|
34
+ # rspec-expectations config goes here. You can use an alternate
35
+ # assertion/expectation library such as wrong or the stdlib/minitest
36
+ # assertions if you prefer.
37
+ config.around(:each, memfs: true) do |example|
38
+ MemFs.activate { example.run }
39
+ end
40
+
41
+ config.expect_with :rspec do |expectations|
42
+ expectations.syntax = :expect
43
+ # This option will default to `true` in RSpec 4. It makes the `description`
44
+ # and `failure_message` of custom matchers include text for helper methods
45
+ # defined using `chain`, e.g.:
46
+ # be_bigger_than(2).and_smaller_than(4).description
47
+ # # => "be bigger than 2 and smaller than 4"
48
+ # ...rather than:
49
+ # # => "be bigger than 2"
50
+ expectations.include_chain_clauses_in_custom_matcher_descriptions = true
51
+ end
52
+
53
+ # rspec-mocks config goes here. You can use an alternate test double
54
+ # library (such as bogus or mocha) by changing the `mock_with` option here.
55
+ config.mock_with :rspec do |mocks|
56
+ # Prevents you from mocking or stubbing a method that does not exist on
57
+ # a real object. This is generally recommended, and will default to
58
+ # `true` in RSpec 4.
59
+ mocks.verify_partial_doubles = true
60
+ end
61
+
62
+ config.infer_spec_type_from_file_location!
63
+ # The settings below are suggested to provide a good initial experience
64
+ # with RSpec, but feel free to customize to your heart's content.
65
+ =begin
66
+ # These two settings work together to allow you to limit a spec run
67
+ # to individual examples or groups you care about by tagging them with
68
+ # `:focus` metadata. When nothing is tagged with `:focus`, all examples
69
+ # get run.
70
+ config.filter_run :focus
71
+ config.run_all_when_everything_filtered = true
72
+
73
+ # Allows RSpec to persist some state between runs in order to support
74
+ # the `--only-failures` and `--next-failure` CLI options. We recommend
75
+ # you configure your source control system to ignore this file.
76
+ config.example_status_persistence_file_path = "spec/examples.txt"
77
+
78
+ # Limits the available syntax to the non-monkey patched syntax that is
79
+ # recommended. For more details, see:
80
+ # - http://myronmars.to/n/dev-blog/2012/06/rspecs-new-expectation-syntax
81
+ # - http://www.teaisaweso.me/blog/2013/05/27/rspecs-new-message-expectation-syntax/
82
+ # - http://myronmars.to/n/dev-blog/2014/05/notable-changes-in-rspec-3#new__config_option_to_disable_rspeccore_monkey_patching
83
+ config.disable_monkey_patching!
84
+
85
+ # Many RSpec users commonly either run the entire suite or an individual
86
+ # file, and it's useful to allow more verbose output when running an
87
+ # individual spec file.
88
+ if config.files_to_run.one?
89
+ # Use the documentation formatter for detailed output,
90
+ # unless a formatter has already been configured
91
+ # (e.g. via a command-line flag).
92
+ config.default_formatter = 'doc'
93
+ end
94
+
95
+ # Print the 10 slowest examples and example groups at the
96
+ # end of the spec run, to help surface which specs are running
97
+ # particularly slow.
98
+ config.profile_examples = 10
99
+
100
+ # Run specs in random order to surface order dependencies. If you find an
101
+ # order dependency and want to debug it, you can fix the order by providing
102
+ # the seed, which is printed after each run.
103
+ # --seed 1234
104
+ config.order = :random
105
+
106
+ # Seed global randomization in this process using the `--seed` CLI option.
107
+ # Setting this allows you to use `--seed` to deterministically reproduce
108
+ # test failures related to randomization by passing the same `--seed` value
109
+ # as the one that triggered the failure.
110
+ Kernel.srand config.seed
111
+ =end
112
+ end
data/uovalid.gemspec ADDED
@@ -0,0 +1,41 @@
1
+ $:.push File.expand_path("../lib", __FILE__)
2
+
3
+ # Maintain your gem's version:
4
+ require "uovalid/version"
5
+
6
+ # Describe your gem and declare its dependencies:
7
+ Gem::Specification.new do |s|
8
+ s.name = "uovalid"
9
+ s.version = Uovalid::VERSION
10
+ s.authors = ["Andrei Potetiurin"]
11
+ s.email = ["sickphilosopher@gmail.com"]
12
+ s.homepage = "https://github.com/Sickphilosopher/uovalid"
13
+ s.summary = "Unobtrusive validation for rails (like asp.net mvc)"
14
+ s.description = "Simple adapter for jquery client-side validation. Idea was stollen from ASP.NET MVC"
15
+ s.license = "MIT"
16
+
17
+ s.files = `git ls-files -z`.split("\x0")
18
+ s.test_files = s.files.grep(%r{^(spec)/})
19
+ s.require_paths = ["lib"]
20
+
21
+ s.add_dependency "rails", '~> 4.2', '>= 4.2.5'
22
+ s.add_dependency "jquery-rails"
23
+ s.add_dependency "jquery-validation-rails"
24
+
25
+ #testing
26
+ s.add_development_dependency 'combustion', '~> 0.5.3'
27
+ s.add_development_dependency 'bundler', '~> 1.7'
28
+ s.add_development_dependency 'rspec', '~> 3.3'
29
+ s.add_development_dependency 'rspec-rails', '~> 3.0'
30
+ s.add_development_dependency 'rspec-nc'
31
+ s.add_development_dependency 'capybara'
32
+ s.add_development_dependency 'memfs'
33
+ s.add_development_dependency 'spring'
34
+ s.add_development_dependency 'guard'
35
+ s.add_development_dependency 'guard-rspec'
36
+ s.add_development_dependency 'pry'
37
+ s.add_development_dependency 'pry-remote'
38
+ s.add_development_dependency 'pry-nav'
39
+ s.add_development_dependency 'terminal-notifier'
40
+ s.add_development_dependency 'terminal-notifier-guard'
41
+ end
metadata ADDED
@@ -0,0 +1,335 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: uovalid
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Andrei Potetiurin
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2016-04-12 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rails
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '4.2'
20
+ - - ">="
21
+ - !ruby/object:Gem::Version
22
+ version: 4.2.5
23
+ type: :runtime
24
+ prerelease: false
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ requirements:
27
+ - - "~>"
28
+ - !ruby/object:Gem::Version
29
+ version: '4.2'
30
+ - - ">="
31
+ - !ruby/object:Gem::Version
32
+ version: 4.2.5
33
+ - !ruby/object:Gem::Dependency
34
+ name: jquery-rails
35
+ requirement: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - ">="
38
+ - !ruby/object:Gem::Version
39
+ version: '0'
40
+ type: :runtime
41
+ prerelease: false
42
+ version_requirements: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - ">="
45
+ - !ruby/object:Gem::Version
46
+ version: '0'
47
+ - !ruby/object:Gem::Dependency
48
+ name: jquery-validation-rails
49
+ requirement: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - ">="
52
+ - !ruby/object:Gem::Version
53
+ version: '0'
54
+ type: :runtime
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ requirements:
58
+ - - ">="
59
+ - !ruby/object:Gem::Version
60
+ version: '0'
61
+ - !ruby/object:Gem::Dependency
62
+ name: combustion
63
+ requirement: !ruby/object:Gem::Requirement
64
+ requirements:
65
+ - - "~>"
66
+ - !ruby/object:Gem::Version
67
+ version: 0.5.3
68
+ type: :development
69
+ prerelease: false
70
+ version_requirements: !ruby/object:Gem::Requirement
71
+ requirements:
72
+ - - "~>"
73
+ - !ruby/object:Gem::Version
74
+ version: 0.5.3
75
+ - !ruby/object:Gem::Dependency
76
+ name: bundler
77
+ requirement: !ruby/object:Gem::Requirement
78
+ requirements:
79
+ - - "~>"
80
+ - !ruby/object:Gem::Version
81
+ version: '1.7'
82
+ type: :development
83
+ prerelease: false
84
+ version_requirements: !ruby/object:Gem::Requirement
85
+ requirements:
86
+ - - "~>"
87
+ - !ruby/object:Gem::Version
88
+ version: '1.7'
89
+ - !ruby/object:Gem::Dependency
90
+ name: rspec
91
+ requirement: !ruby/object:Gem::Requirement
92
+ requirements:
93
+ - - "~>"
94
+ - !ruby/object:Gem::Version
95
+ version: '3.3'
96
+ type: :development
97
+ prerelease: false
98
+ version_requirements: !ruby/object:Gem::Requirement
99
+ requirements:
100
+ - - "~>"
101
+ - !ruby/object:Gem::Version
102
+ version: '3.3'
103
+ - !ruby/object:Gem::Dependency
104
+ name: rspec-rails
105
+ requirement: !ruby/object:Gem::Requirement
106
+ requirements:
107
+ - - "~>"
108
+ - !ruby/object:Gem::Version
109
+ version: '3.0'
110
+ type: :development
111
+ prerelease: false
112
+ version_requirements: !ruby/object:Gem::Requirement
113
+ requirements:
114
+ - - "~>"
115
+ - !ruby/object:Gem::Version
116
+ version: '3.0'
117
+ - !ruby/object:Gem::Dependency
118
+ name: rspec-nc
119
+ requirement: !ruby/object:Gem::Requirement
120
+ requirements:
121
+ - - ">="
122
+ - !ruby/object:Gem::Version
123
+ version: '0'
124
+ type: :development
125
+ prerelease: false
126
+ version_requirements: !ruby/object:Gem::Requirement
127
+ requirements:
128
+ - - ">="
129
+ - !ruby/object:Gem::Version
130
+ version: '0'
131
+ - !ruby/object:Gem::Dependency
132
+ name: capybara
133
+ requirement: !ruby/object:Gem::Requirement
134
+ requirements:
135
+ - - ">="
136
+ - !ruby/object:Gem::Version
137
+ version: '0'
138
+ type: :development
139
+ prerelease: false
140
+ version_requirements: !ruby/object:Gem::Requirement
141
+ requirements:
142
+ - - ">="
143
+ - !ruby/object:Gem::Version
144
+ version: '0'
145
+ - !ruby/object:Gem::Dependency
146
+ name: memfs
147
+ requirement: !ruby/object:Gem::Requirement
148
+ requirements:
149
+ - - ">="
150
+ - !ruby/object:Gem::Version
151
+ version: '0'
152
+ type: :development
153
+ prerelease: false
154
+ version_requirements: !ruby/object:Gem::Requirement
155
+ requirements:
156
+ - - ">="
157
+ - !ruby/object:Gem::Version
158
+ version: '0'
159
+ - !ruby/object:Gem::Dependency
160
+ name: spring
161
+ requirement: !ruby/object:Gem::Requirement
162
+ requirements:
163
+ - - ">="
164
+ - !ruby/object:Gem::Version
165
+ version: '0'
166
+ type: :development
167
+ prerelease: false
168
+ version_requirements: !ruby/object:Gem::Requirement
169
+ requirements:
170
+ - - ">="
171
+ - !ruby/object:Gem::Version
172
+ version: '0'
173
+ - !ruby/object:Gem::Dependency
174
+ name: guard
175
+ requirement: !ruby/object:Gem::Requirement
176
+ requirements:
177
+ - - ">="
178
+ - !ruby/object:Gem::Version
179
+ version: '0'
180
+ type: :development
181
+ prerelease: false
182
+ version_requirements: !ruby/object:Gem::Requirement
183
+ requirements:
184
+ - - ">="
185
+ - !ruby/object:Gem::Version
186
+ version: '0'
187
+ - !ruby/object:Gem::Dependency
188
+ name: guard-rspec
189
+ requirement: !ruby/object:Gem::Requirement
190
+ requirements:
191
+ - - ">="
192
+ - !ruby/object:Gem::Version
193
+ version: '0'
194
+ type: :development
195
+ prerelease: false
196
+ version_requirements: !ruby/object:Gem::Requirement
197
+ requirements:
198
+ - - ">="
199
+ - !ruby/object:Gem::Version
200
+ version: '0'
201
+ - !ruby/object:Gem::Dependency
202
+ name: pry
203
+ requirement: !ruby/object:Gem::Requirement
204
+ requirements:
205
+ - - ">="
206
+ - !ruby/object:Gem::Version
207
+ version: '0'
208
+ type: :development
209
+ prerelease: false
210
+ version_requirements: !ruby/object:Gem::Requirement
211
+ requirements:
212
+ - - ">="
213
+ - !ruby/object:Gem::Version
214
+ version: '0'
215
+ - !ruby/object:Gem::Dependency
216
+ name: pry-remote
217
+ requirement: !ruby/object:Gem::Requirement
218
+ requirements:
219
+ - - ">="
220
+ - !ruby/object:Gem::Version
221
+ version: '0'
222
+ type: :development
223
+ prerelease: false
224
+ version_requirements: !ruby/object:Gem::Requirement
225
+ requirements:
226
+ - - ">="
227
+ - !ruby/object:Gem::Version
228
+ version: '0'
229
+ - !ruby/object:Gem::Dependency
230
+ name: pry-nav
231
+ requirement: !ruby/object:Gem::Requirement
232
+ requirements:
233
+ - - ">="
234
+ - !ruby/object:Gem::Version
235
+ version: '0'
236
+ type: :development
237
+ prerelease: false
238
+ version_requirements: !ruby/object:Gem::Requirement
239
+ requirements:
240
+ - - ">="
241
+ - !ruby/object:Gem::Version
242
+ version: '0'
243
+ - !ruby/object:Gem::Dependency
244
+ name: terminal-notifier
245
+ requirement: !ruby/object:Gem::Requirement
246
+ requirements:
247
+ - - ">="
248
+ - !ruby/object:Gem::Version
249
+ version: '0'
250
+ type: :development
251
+ prerelease: false
252
+ version_requirements: !ruby/object:Gem::Requirement
253
+ requirements:
254
+ - - ">="
255
+ - !ruby/object:Gem::Version
256
+ version: '0'
257
+ - !ruby/object:Gem::Dependency
258
+ name: terminal-notifier-guard
259
+ requirement: !ruby/object:Gem::Requirement
260
+ requirements:
261
+ - - ">="
262
+ - !ruby/object:Gem::Version
263
+ version: '0'
264
+ type: :development
265
+ prerelease: false
266
+ version_requirements: !ruby/object:Gem::Requirement
267
+ requirements:
268
+ - - ">="
269
+ - !ruby/object:Gem::Version
270
+ version: '0'
271
+ description: Simple adapter for jquery client-side validation. Idea was stollen from
272
+ ASP.NET MVC
273
+ email:
274
+ - sickphilosopher@gmail.com
275
+ executables: []
276
+ extensions: []
277
+ extra_rdoc_files: []
278
+ files:
279
+ - ".gitignore"
280
+ - ".travis.yml"
281
+ - Gemfile
282
+ - Gemfile.lock
283
+ - MIT-LICENSE
284
+ - README.md
285
+ - Rakefile
286
+ - lib/tasks/uovalid_tasks.rake
287
+ - lib/uovalid.rb
288
+ - lib/uovalid/engine.rb
289
+ - lib/uovalid/version.rb
290
+ - spec/internal/app/assets/images/.keep
291
+ - spec/internal/app/assets/javascripts/application.js
292
+ - spec/internal/app/assets/stylesheets/application.css
293
+ - spec/internal/app/controllers/application_controller.rb
294
+ - spec/internal/app/forms/.keep
295
+ - spec/internal/app/views/layouts/application.html.erb
296
+ - spec/internal/config/database.yml
297
+ - spec/internal/config/routes.rb
298
+ - spec/internal/db/schema.rb
299
+ - spec/spec_helper.rb
300
+ - uovalid.gemspec
301
+ homepage: https://github.com/Sickphilosopher/uovalid
302
+ licenses:
303
+ - MIT
304
+ metadata: {}
305
+ post_install_message:
306
+ rdoc_options: []
307
+ require_paths:
308
+ - lib
309
+ required_ruby_version: !ruby/object:Gem::Requirement
310
+ requirements:
311
+ - - ">="
312
+ - !ruby/object:Gem::Version
313
+ version: '0'
314
+ required_rubygems_version: !ruby/object:Gem::Requirement
315
+ requirements:
316
+ - - ">="
317
+ - !ruby/object:Gem::Version
318
+ version: '0'
319
+ requirements: []
320
+ rubyforge_project:
321
+ rubygems_version: 2.4.8
322
+ signing_key:
323
+ specification_version: 4
324
+ summary: Unobtrusive validation for rails (like asp.net mvc)
325
+ test_files:
326
+ - spec/internal/app/assets/images/.keep
327
+ - spec/internal/app/assets/javascripts/application.js
328
+ - spec/internal/app/assets/stylesheets/application.css
329
+ - spec/internal/app/controllers/application_controller.rb
330
+ - spec/internal/app/forms/.keep
331
+ - spec/internal/app/views/layouts/application.html.erb
332
+ - spec/internal/config/database.yml
333
+ - spec/internal/config/routes.rb
334
+ - spec/internal/db/schema.rb
335
+ - spec/spec_helper.rb