├── Gemfile ├── .gitignore ├── lib └── judge │ ├── simple_form │ └── version.rb │ └── simple_form.rb ├── gemfiles ├── simple_form_3_0.gemfile ├── simple_form_3_1.gemfile ├── simple_form_3_2.gemfile ├── simple_form_4_0.gemfile ├── simple_form_3_0.gemfile.lock ├── simple_form_3_1.gemfile.lock ├── simple_form_3_2.gemfile.lock └── simple_form_4_0.gemfile.lock ├── Rakefile ├── Appraisals ├── .travis.yml ├── CHANGELOG.md ├── spec ├── spec_helper.rb ├── setup.rb └── judge-simple_form_spec.rb ├── judge-simple_form.gemspec ├── LICENSE.txt ├── README.md └── CODE_OF_CONDUCT.md /Gemfile: -------------------------------------------------------------------------------- 1 | source "http://rubygems.org" 2 | 3 | gemspec 4 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | *.gem 2 | Gemfile.lock 3 | .rvmrc 4 | .ruby-version 5 | -------------------------------------------------------------------------------- /lib/judge/simple_form/version.rb: -------------------------------------------------------------------------------- 1 | module Judge 2 | module SimpleForm 3 | VERSION = "1.1.0" 4 | end 5 | end 6 | -------------------------------------------------------------------------------- /gemfiles/simple_form_3_0.gemfile: -------------------------------------------------------------------------------- 1 | # This file was generated by Appraisal 2 | 3 | source "http://rubygems.org" 4 | 5 | gem "simple_form", "~> 3.0" 6 | 7 | gemspec :path => "../" 8 | -------------------------------------------------------------------------------- /gemfiles/simple_form_3_1.gemfile: -------------------------------------------------------------------------------- 1 | # This file was generated by Appraisal 2 | 3 | source "http://rubygems.org" 4 | 5 | gem "simple_form", "~> 3.1" 6 | 7 | gemspec :path => "../" 8 | -------------------------------------------------------------------------------- /gemfiles/simple_form_3_2.gemfile: -------------------------------------------------------------------------------- 1 | # This file was generated by Appraisal 2 | 3 | source "http://rubygems.org" 4 | 5 | gem "simple_form", "~> 3.2" 6 | 7 | gemspec :path => "../" 8 | -------------------------------------------------------------------------------- /gemfiles/simple_form_4_0.gemfile: -------------------------------------------------------------------------------- 1 | # This file was generated by Appraisal 2 | 3 | source "http://rubygems.org" 4 | 5 | gem "simple_form", "~> 4.0" 6 | 7 | gemspec :path => "../" 8 | -------------------------------------------------------------------------------- /Rakefile: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env rake 2 | 3 | require 'bundler/setup' 4 | require 'bundler/gem_tasks' 5 | 6 | require 'rspec/core/rake_task' 7 | RSpec::Core::RakeTask.new('spec') 8 | 9 | require 'appraisal' 10 | 11 | task :default => [:spec] 12 | -------------------------------------------------------------------------------- /Appraisals: -------------------------------------------------------------------------------- 1 | appraise 'simple_form_3_0' do 2 | gem 'simple_form', '~> 3.0' 3 | end 4 | 5 | appraise 'simple_form_3_1' do 6 | gem 'simple_form', '~> 3.1' 7 | end 8 | 9 | appraise 'simple_form_3_2' do 10 | gem 'simple_form', '~> 3.2' 11 | end 12 | 13 | appraise 'simple_form_4_0' do 14 | gem 'simple_form', '~> 4.0' 15 | end 16 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | language: ruby 2 | 3 | rvm: 4 | - 2.5 5 | 6 | before_install: 7 | - "gem install bundler" 8 | 9 | script: "bundle exec rake" 10 | 11 | gemfile: 12 | - "gemfiles/simple_form_3_0.gemfile" 13 | - "gemfiles/simple_form_3_1.gemfile" 14 | - "gemfiles/simple_form_3_2.gemfile" 15 | - "gemfiles/simple_form_4_0.gemfile" 16 | -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # Changelog 2 | 3 | * **1.1.0** 4 | - adds judge v3 support 5 | - adds simple_form v4 support 6 | * **1.0** 7 | - *DEPRECATED* simple_form 2 support 8 | - adds simple_form 3.1 support 9 | - [#13](https://github.com/joecorcoran/judge-simple_form/pull/13): removes deprecation warnings on simple_form 3 10 | 11 | 12 | -------------------------------------------------------------------------------- /spec/spec_helper.rb: -------------------------------------------------------------------------------- 1 | require 'bundler/setup' 2 | require 'rails/all' 3 | require 'judge/simple_form' 4 | require 'rspec' 5 | require 'nokogiri' 6 | require_relative 'setup' 7 | 8 | RSpec::Matchers.define :have_selector_with_attrs do |selector, attrs| 9 | match do |actual| 10 | frag = Nokogiri::HTML::DocumentFragment.parse(actual) 11 | target = frag.css(selector) 12 | target && attrs.all? { |a| target.attr(a) != nil } 13 | end 14 | end 15 | -------------------------------------------------------------------------------- /lib/judge/simple_form.rb: -------------------------------------------------------------------------------- 1 | require 'judge' unless defined?(::Judge::VERSION) 2 | require 'simple_form' unless defined?(::SimpleForm) 3 | 4 | module SimpleForm 5 | module Components 6 | module Judge 7 | include ::Judge::Html 8 | 9 | def judge(wrapper_options) 10 | if has_judge? 11 | input_html_options.deep_merge!(attrs_for(object, attribute_name)) 12 | end 13 | nil 14 | end 15 | 16 | def has_judge? 17 | options[:validate] == true 18 | end 19 | 20 | end 21 | end 22 | end 23 | 24 | ::SimpleForm::Inputs::Base.send(:include, ::SimpleForm::Components::Judge) 25 | -------------------------------------------------------------------------------- /spec/setup.rb: -------------------------------------------------------------------------------- 1 | # setup simple schema and class 2 | ActiveRecord::Base.establish_connection(:adapter => "sqlite3", :database => ":memory:") 3 | ActiveRecord::Schema.define(:version => 1) do 4 | create_table :users do |t| 5 | t.string :name 6 | end 7 | end 8 | class User < ActiveRecord::Base 9 | validates :name, :presence => true 10 | end 11 | 12 | # hack to stop #url_for error 13 | module ActionDispatch::Routing::PolymorphicRoutes 14 | def polymorphic_path(record_or_hash_or_array, options = {}) 15 | "" 16 | end 17 | end 18 | 19 | class UsersController < ActionController::Base 20 | end 21 | 22 | I18n.enforce_available_locales = false 23 | -------------------------------------------------------------------------------- /judge-simple_form.gemspec: -------------------------------------------------------------------------------- 1 | # -*- encoding: utf-8 -*- 2 | $:.push File.expand_path('../lib', __FILE__) 3 | require 'judge/simple_form/version' 4 | 5 | Gem::Specification.new do |s| 6 | s.name = 'judge-simple_form' 7 | s.version = Judge::SimpleForm::VERSION 8 | s.authors = ['Joe Corcoran'] 9 | s.email = 'joe@tribesports.com' 10 | s.homepage = 'http://github.com/joecorcoran/judge-simple_form' 11 | s.summary = 'SimpleForm adapter for Judge' 12 | s.description = 'Easily add Judge client side validation to your SimpleForm forms.' 13 | 14 | s.files = Dir['lib/**/*'] + ['LICENSE.txt', 'README.md'] 15 | s.require_paths = ['lib'] 16 | 17 | s.add_runtime_dependency 'judge', '>= 2.0' 18 | s.add_runtime_dependency 'simple_form', '>= 3.0' 19 | 20 | s.add_development_dependency 'rake' 21 | s.add_development_dependency 'sqlite3', '~> 1.3.11' 22 | s.add_development_dependency 'rspec', '~> 3.5' 23 | s.add_development_dependency 'nokogiri', '~> 1.6' 24 | s.add_development_dependency 'appraisal', '~> 2.0.0' 25 | end 26 | -------------------------------------------------------------------------------- /LICENSE.txt: -------------------------------------------------------------------------------- 1 | Copyright (c) 2011 Joe Corcoran 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. 21 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # judge-simple_form 2 | 3 | [![Build status](https://secure.travis-ci.org/joecorcoran/judge-simple_form.png?branch=master)](http://travis-ci.org/joecorcoran/judge-simple_form) 4 | 5 | This is an adapter gem which allows you to use [Judge][judge] from within your [Simple Form](http://github.com/plataformatec/simple_form) forms. 6 | 7 | The current version supports Simple Form >= 3. For Simple Form 2 support use `'judge-simple_form', ~> '0.4'`. 8 | 9 | ## Usage 10 | 11 | Do this in your Gemfile: 12 | 13 | ```ruby 14 | gem 'judge-simple_form' 15 | ``` 16 | 17 | Remember to setup Judge in your SimpleForm initializer. Put `b.use :judge` above `b.use :input` or `b.use :input_label`: 18 | 19 | ```ruby 20 | config.wrappers do |b| 21 | b.use :judge 22 | end 23 | ``` 24 | 25 | Then add :validate => true to the input options in your views. That's all. 26 | 27 | ```erb 28 | <%= simple_form_for(@user) do |f| %> 29 | <%= f.input :name, :validate => true %> 30 | <% end %> 31 | ``` 32 | 33 | ## Judge 34 | 35 | [Judge][judge] is a client-side validation gem for Rails. 36 | 37 | http://blog.joecorcoran.co.uk 38 | 39 | [judge]: https://github.com/joecorcoran/judge 40 | -------------------------------------------------------------------------------- /spec/judge-simple_form_spec.rb: -------------------------------------------------------------------------------- 1 | require 'spec_helper' 2 | 3 | describe Judge::SimpleForm do 4 | before do 5 | SimpleForm.setup do |config| 6 | config.wrappers do |b| 7 | b.use :placeholder 8 | b.use :judge 9 | b.use :input 10 | end 11 | end 12 | end 13 | 14 | let(:template) do 15 | ActionView::Base.new(nil, {}, UsersController.new) 16 | end 17 | let(:builder) do 18 | SimpleForm::FormBuilder.new(:user, User.new, template, {}) 19 | end 20 | 21 | it 'adds data attribute when :validate option is true' do 22 | output = builder.input(:name, :validate => true) 23 | expect(output).to have_selector_with_attrs('div input', ['data-validate']) 24 | end 25 | 26 | it 'preserves other attributes' do 27 | output = builder.input(:name, :placeholder => 'foobar', :validate => true) 28 | expect(output).to have_selector_with_attrs('div input', ['data-validate', 'placeholder']) 29 | end 30 | 31 | it 'preserves attributes from input_html' do 32 | output = builder.input(:name, :input_html => { 'foo' => 'bar' }, :validate => true) 33 | expect(output).to have_selector_with_attrs('div input', ['data-validate', 'foo']) 34 | end 35 | 36 | it 'does not add data attribute otherwise' do 37 | output = builder.input(:name) 38 | expect(output).not_to have_selector_with_attrs('div input', ['data-validate']) 39 | end 40 | end 41 | -------------------------------------------------------------------------------- /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- 1 | # Contributor Code of Conduct 2 | 3 | As contributors and maintainers of this project, and in the interest of 4 | fostering an open and welcoming community, we pledge to respect all people who 5 | contribute through reporting issues, posting feature requests, updating 6 | documentation, submitting pull requests or patches, and other activities. 7 | 8 | We are committed to making participation in this project a harassment-free 9 | experience for everyone, regardless of level of experience, gender, gender 10 | identity and expression, sexual orientation, disability, personal appearance, 11 | body size, race, ethnicity, age, religion, or nationality. 12 | 13 | Examples of unacceptable behavior by participants include: 14 | 15 | * The use of sexualized language or imagery 16 | * Personal attacks 17 | * Trolling or insulting/derogatory comments 18 | * Public or private harassment 19 | * Publishing other's private information, such as physical or electronic 20 | addresses, without explicit permission 21 | * Other unethical or unprofessional conduct 22 | 23 | Project maintainers have the right and responsibility to remove, edit, or 24 | reject comments, commits, code, wiki edits, issues, and other contributions 25 | that are not aligned to this Code of Conduct, or to ban temporarily or 26 | permanently any contributor for other behaviors that they deem inappropriate, 27 | threatening, offensive, or harmful. 28 | 29 | By adopting this Code of Conduct, project maintainers commit themselves to 30 | fairly and consistently applying these principles to every aspect of managing 31 | this project. Project maintainers who do not follow or enforce the Code of 32 | Conduct may be permanently removed from the project team. 33 | 34 | This Code of Conduct applies both within project spaces and in public spaces 35 | when an individual is representing the project or its community. 36 | 37 | Instances of abusive, harassing, or otherwise unacceptable behavior may be 38 | reported by contacting a project maintainer at [INSERT EMAIL ADDRESS]. All 39 | complaints will be reviewed and investigated and will result in a response that 40 | is deemed necessary and appropriate to the circumstances. Maintainers are 41 | obligated to maintain confidentiality with regard to the reporter of an 42 | incident. 43 | 44 | 45 | This Code of Conduct is adapted from the [Contributor Covenant][homepage], 46 | version 1.3.0, available at 47 | [http://contributor-covenant.org/version/1/3/0/][version] 48 | 49 | [homepage]: http://contributor-covenant.org 50 | [version]: http://contributor-covenant.org/version/1/3/0/ 51 | -------------------------------------------------------------------------------- /gemfiles/simple_form_3_0.gemfile.lock: -------------------------------------------------------------------------------- 1 | PATH 2 | remote: .. 3 | specs: 4 | judge-simple_form (1.1.0) 5 | judge (>= 2.0) 6 | simple_form (>= 3.0) 7 | 8 | GEM 9 | remote: http://rubygems.org/ 10 | specs: 11 | actioncable (5.1.6) 12 | actionpack (= 5.1.6) 13 | nio4r (~> 2.0) 14 | websocket-driver (~> 0.6.1) 15 | actionmailer (5.1.6) 16 | actionpack (= 5.1.6) 17 | actionview (= 5.1.6) 18 | activejob (= 5.1.6) 19 | mail (~> 2.5, >= 2.5.4) 20 | rails-dom-testing (~> 2.0) 21 | actionpack (5.1.6) 22 | actionview (= 5.1.6) 23 | activesupport (= 5.1.6) 24 | rack (~> 2.0) 25 | rack-test (>= 0.6.3) 26 | rails-dom-testing (~> 2.0) 27 | rails-html-sanitizer (~> 1.0, >= 1.0.2) 28 | actionview (5.1.6) 29 | activesupport (= 5.1.6) 30 | builder (~> 3.1) 31 | erubi (~> 1.4) 32 | rails-dom-testing (~> 2.0) 33 | rails-html-sanitizer (~> 1.0, >= 1.0.3) 34 | activejob (5.1.6) 35 | activesupport (= 5.1.6) 36 | globalid (>= 0.3.6) 37 | activemodel (5.1.6) 38 | activesupport (= 5.1.6) 39 | activerecord (5.1.6) 40 | activemodel (= 5.1.6) 41 | activesupport (= 5.1.6) 42 | arel (~> 8.0) 43 | activesupport (5.1.6) 44 | concurrent-ruby (~> 1.0, >= 1.0.2) 45 | i18n (>= 0.7, < 2) 46 | minitest (~> 5.1) 47 | tzinfo (~> 1.1) 48 | appraisal (2.0.2) 49 | bundler 50 | rake 51 | thor (>= 0.14.0) 52 | arel (8.0.0) 53 | builder (3.2.3) 54 | concurrent-ruby (1.0.5) 55 | crass (1.0.4) 56 | diff-lcs (1.3) 57 | erubi (1.7.1) 58 | globalid (0.4.1) 59 | activesupport (>= 4.2.0) 60 | i18n (1.0.1) 61 | concurrent-ruby (~> 1.0) 62 | judge (3.0.0) 63 | rails (>= 5.0) 64 | loofah (2.2.2) 65 | crass (~> 1.0.2) 66 | nokogiri (>= 1.5.9) 67 | mail (2.7.0) 68 | mini_mime (>= 0.1.1) 69 | method_source (0.9.0) 70 | mini_mime (1.0.0) 71 | mini_portile2 (2.3.0) 72 | minitest (5.11.3) 73 | nio4r (2.3.0) 74 | nokogiri (1.8.2) 75 | mini_portile2 (~> 2.3.0) 76 | rack (2.0.4) 77 | rack-test (1.0.0) 78 | rack (>= 1.0, < 3) 79 | rails (5.1.6) 80 | actioncable (= 5.1.6) 81 | actionmailer (= 5.1.6) 82 | actionpack (= 5.1.6) 83 | actionview (= 5.1.6) 84 | activejob (= 5.1.6) 85 | activemodel (= 5.1.6) 86 | activerecord (= 5.1.6) 87 | activesupport (= 5.1.6) 88 | bundler (>= 1.3.0) 89 | railties (= 5.1.6) 90 | sprockets-rails (>= 2.0.0) 91 | rails-dom-testing (2.0.3) 92 | activesupport (>= 4.2.0) 93 | nokogiri (>= 1.6) 94 | rails-html-sanitizer (1.0.4) 95 | loofah (~> 2.2, >= 2.2.2) 96 | railties (5.1.6) 97 | actionpack (= 5.1.6) 98 | activesupport (= 5.1.6) 99 | method_source 100 | rake (>= 0.8.7) 101 | thor (>= 0.18.1, < 2.0) 102 | rake (12.3.1) 103 | rspec (3.7.0) 104 | rspec-core (~> 3.7.0) 105 | rspec-expectations (~> 3.7.0) 106 | rspec-mocks (~> 3.7.0) 107 | rspec-core (3.7.1) 108 | rspec-support (~> 3.7.0) 109 | rspec-expectations (3.7.0) 110 | diff-lcs (>= 1.2.0, < 2.0) 111 | rspec-support (~> 3.7.0) 112 | rspec-mocks (3.7.0) 113 | diff-lcs (>= 1.2.0, < 2.0) 114 | rspec-support (~> 3.7.0) 115 | rspec-support (3.7.1) 116 | simple_form (3.5.1) 117 | actionpack (> 4, < 5.2) 118 | activemodel (> 4, < 5.2) 119 | sprockets (3.7.1) 120 | concurrent-ruby (~> 1.0) 121 | rack (> 1, < 3) 122 | sprockets-rails (3.2.1) 123 | actionpack (>= 4.0) 124 | activesupport (>= 4.0) 125 | sprockets (>= 3.0.0) 126 | sqlite3 (1.3.13) 127 | thor (0.20.0) 128 | thread_safe (0.3.6) 129 | tzinfo (1.2.5) 130 | thread_safe (~> 0.1) 131 | websocket-driver (0.6.5) 132 | websocket-extensions (>= 0.1.0) 133 | websocket-extensions (0.1.3) 134 | 135 | PLATFORMS 136 | ruby 137 | 138 | DEPENDENCIES 139 | appraisal (~> 2.0.0) 140 | judge-simple_form! 141 | nokogiri (~> 1.6) 142 | rake 143 | rspec (~> 3.5) 144 | simple_form (~> 3.0) 145 | sqlite3 (~> 1.3.11) 146 | 147 | BUNDLED WITH 148 | 1.16.1 149 | -------------------------------------------------------------------------------- /gemfiles/simple_form_3_1.gemfile.lock: -------------------------------------------------------------------------------- 1 | PATH 2 | remote: .. 3 | specs: 4 | judge-simple_form (1.1.0) 5 | judge (>= 2.0) 6 | simple_form (>= 3.0) 7 | 8 | GEM 9 | remote: http://rubygems.org/ 10 | specs: 11 | actioncable (5.1.6) 12 | actionpack (= 5.1.6) 13 | nio4r (~> 2.0) 14 | websocket-driver (~> 0.6.1) 15 | actionmailer (5.1.6) 16 | actionpack (= 5.1.6) 17 | actionview (= 5.1.6) 18 | activejob (= 5.1.6) 19 | mail (~> 2.5, >= 2.5.4) 20 | rails-dom-testing (~> 2.0) 21 | actionpack (5.1.6) 22 | actionview (= 5.1.6) 23 | activesupport (= 5.1.6) 24 | rack (~> 2.0) 25 | rack-test (>= 0.6.3) 26 | rails-dom-testing (~> 2.0) 27 | rails-html-sanitizer (~> 1.0, >= 1.0.2) 28 | actionview (5.1.6) 29 | activesupport (= 5.1.6) 30 | builder (~> 3.1) 31 | erubi (~> 1.4) 32 | rails-dom-testing (~> 2.0) 33 | rails-html-sanitizer (~> 1.0, >= 1.0.3) 34 | activejob (5.1.6) 35 | activesupport (= 5.1.6) 36 | globalid (>= 0.3.6) 37 | activemodel (5.1.6) 38 | activesupport (= 5.1.6) 39 | activerecord (5.1.6) 40 | activemodel (= 5.1.6) 41 | activesupport (= 5.1.6) 42 | arel (~> 8.0) 43 | activesupport (5.1.6) 44 | concurrent-ruby (~> 1.0, >= 1.0.2) 45 | i18n (>= 0.7, < 2) 46 | minitest (~> 5.1) 47 | tzinfo (~> 1.1) 48 | appraisal (2.0.2) 49 | bundler 50 | rake 51 | thor (>= 0.14.0) 52 | arel (8.0.0) 53 | builder (3.2.3) 54 | concurrent-ruby (1.0.5) 55 | crass (1.0.4) 56 | diff-lcs (1.3) 57 | erubi (1.7.1) 58 | globalid (0.4.1) 59 | activesupport (>= 4.2.0) 60 | i18n (1.0.1) 61 | concurrent-ruby (~> 1.0) 62 | judge (3.0.0) 63 | rails (>= 5.0) 64 | loofah (2.2.2) 65 | crass (~> 1.0.2) 66 | nokogiri (>= 1.5.9) 67 | mail (2.7.0) 68 | mini_mime (>= 0.1.1) 69 | method_source (0.9.0) 70 | mini_mime (1.0.0) 71 | mini_portile2 (2.3.0) 72 | minitest (5.11.3) 73 | nio4r (2.3.0) 74 | nokogiri (1.8.2) 75 | mini_portile2 (~> 2.3.0) 76 | rack (2.0.4) 77 | rack-test (1.0.0) 78 | rack (>= 1.0, < 3) 79 | rails (5.1.6) 80 | actioncable (= 5.1.6) 81 | actionmailer (= 5.1.6) 82 | actionpack (= 5.1.6) 83 | actionview (= 5.1.6) 84 | activejob (= 5.1.6) 85 | activemodel (= 5.1.6) 86 | activerecord (= 5.1.6) 87 | activesupport (= 5.1.6) 88 | bundler (>= 1.3.0) 89 | railties (= 5.1.6) 90 | sprockets-rails (>= 2.0.0) 91 | rails-dom-testing (2.0.3) 92 | activesupport (>= 4.2.0) 93 | nokogiri (>= 1.6) 94 | rails-html-sanitizer (1.0.4) 95 | loofah (~> 2.2, >= 2.2.2) 96 | railties (5.1.6) 97 | actionpack (= 5.1.6) 98 | activesupport (= 5.1.6) 99 | method_source 100 | rake (>= 0.8.7) 101 | thor (>= 0.18.1, < 2.0) 102 | rake (12.3.1) 103 | rspec (3.7.0) 104 | rspec-core (~> 3.7.0) 105 | rspec-expectations (~> 3.7.0) 106 | rspec-mocks (~> 3.7.0) 107 | rspec-core (3.7.1) 108 | rspec-support (~> 3.7.0) 109 | rspec-expectations (3.7.0) 110 | diff-lcs (>= 1.2.0, < 2.0) 111 | rspec-support (~> 3.7.0) 112 | rspec-mocks (3.7.0) 113 | diff-lcs (>= 1.2.0, < 2.0) 114 | rspec-support (~> 3.7.0) 115 | rspec-support (3.7.1) 116 | simple_form (3.5.1) 117 | actionpack (> 4, < 5.2) 118 | activemodel (> 4, < 5.2) 119 | sprockets (3.7.1) 120 | concurrent-ruby (~> 1.0) 121 | rack (> 1, < 3) 122 | sprockets-rails (3.2.1) 123 | actionpack (>= 4.0) 124 | activesupport (>= 4.0) 125 | sprockets (>= 3.0.0) 126 | sqlite3 (1.3.13) 127 | thor (0.20.0) 128 | thread_safe (0.3.6) 129 | tzinfo (1.2.5) 130 | thread_safe (~> 0.1) 131 | websocket-driver (0.6.5) 132 | websocket-extensions (>= 0.1.0) 133 | websocket-extensions (0.1.3) 134 | 135 | PLATFORMS 136 | ruby 137 | 138 | DEPENDENCIES 139 | appraisal (~> 2.0.0) 140 | judge-simple_form! 141 | nokogiri (~> 1.6) 142 | rake 143 | rspec (~> 3.5) 144 | simple_form (~> 3.1) 145 | sqlite3 (~> 1.3.11) 146 | 147 | BUNDLED WITH 148 | 1.16.1 149 | -------------------------------------------------------------------------------- /gemfiles/simple_form_3_2.gemfile.lock: -------------------------------------------------------------------------------- 1 | PATH 2 | remote: .. 3 | specs: 4 | judge-simple_form (1.1.0) 5 | judge (>= 2.0) 6 | simple_form (>= 3.0) 7 | 8 | GEM 9 | remote: http://rubygems.org/ 10 | specs: 11 | actioncable (5.1.6) 12 | actionpack (= 5.1.6) 13 | nio4r (~> 2.0) 14 | websocket-driver (~> 0.6.1) 15 | actionmailer (5.1.6) 16 | actionpack (= 5.1.6) 17 | actionview (= 5.1.6) 18 | activejob (= 5.1.6) 19 | mail (~> 2.5, >= 2.5.4) 20 | rails-dom-testing (~> 2.0) 21 | actionpack (5.1.6) 22 | actionview (= 5.1.6) 23 | activesupport (= 5.1.6) 24 | rack (~> 2.0) 25 | rack-test (>= 0.6.3) 26 | rails-dom-testing (~> 2.0) 27 | rails-html-sanitizer (~> 1.0, >= 1.0.2) 28 | actionview (5.1.6) 29 | activesupport (= 5.1.6) 30 | builder (~> 3.1) 31 | erubi (~> 1.4) 32 | rails-dom-testing (~> 2.0) 33 | rails-html-sanitizer (~> 1.0, >= 1.0.3) 34 | activejob (5.1.6) 35 | activesupport (= 5.1.6) 36 | globalid (>= 0.3.6) 37 | activemodel (5.1.6) 38 | activesupport (= 5.1.6) 39 | activerecord (5.1.6) 40 | activemodel (= 5.1.6) 41 | activesupport (= 5.1.6) 42 | arel (~> 8.0) 43 | activesupport (5.1.6) 44 | concurrent-ruby (~> 1.0, >= 1.0.2) 45 | i18n (>= 0.7, < 2) 46 | minitest (~> 5.1) 47 | tzinfo (~> 1.1) 48 | appraisal (2.0.2) 49 | bundler 50 | rake 51 | thor (>= 0.14.0) 52 | arel (8.0.0) 53 | builder (3.2.3) 54 | concurrent-ruby (1.0.5) 55 | crass (1.0.4) 56 | diff-lcs (1.3) 57 | erubi (1.7.1) 58 | globalid (0.4.1) 59 | activesupport (>= 4.2.0) 60 | i18n (1.0.1) 61 | concurrent-ruby (~> 1.0) 62 | judge (3.0.0) 63 | rails (>= 5.0) 64 | loofah (2.2.2) 65 | crass (~> 1.0.2) 66 | nokogiri (>= 1.5.9) 67 | mail (2.7.0) 68 | mini_mime (>= 0.1.1) 69 | method_source (0.9.0) 70 | mini_mime (1.0.0) 71 | mini_portile2 (2.3.0) 72 | minitest (5.11.3) 73 | nio4r (2.3.0) 74 | nokogiri (1.8.2) 75 | mini_portile2 (~> 2.3.0) 76 | rack (2.0.4) 77 | rack-test (1.0.0) 78 | rack (>= 1.0, < 3) 79 | rails (5.1.6) 80 | actioncable (= 5.1.6) 81 | actionmailer (= 5.1.6) 82 | actionpack (= 5.1.6) 83 | actionview (= 5.1.6) 84 | activejob (= 5.1.6) 85 | activemodel (= 5.1.6) 86 | activerecord (= 5.1.6) 87 | activesupport (= 5.1.6) 88 | bundler (>= 1.3.0) 89 | railties (= 5.1.6) 90 | sprockets-rails (>= 2.0.0) 91 | rails-dom-testing (2.0.3) 92 | activesupport (>= 4.2.0) 93 | nokogiri (>= 1.6) 94 | rails-html-sanitizer (1.0.4) 95 | loofah (~> 2.2, >= 2.2.2) 96 | railties (5.1.6) 97 | actionpack (= 5.1.6) 98 | activesupport (= 5.1.6) 99 | method_source 100 | rake (>= 0.8.7) 101 | thor (>= 0.18.1, < 2.0) 102 | rake (12.3.1) 103 | rspec (3.7.0) 104 | rspec-core (~> 3.7.0) 105 | rspec-expectations (~> 3.7.0) 106 | rspec-mocks (~> 3.7.0) 107 | rspec-core (3.7.1) 108 | rspec-support (~> 3.7.0) 109 | rspec-expectations (3.7.0) 110 | diff-lcs (>= 1.2.0, < 2.0) 111 | rspec-support (~> 3.7.0) 112 | rspec-mocks (3.7.0) 113 | diff-lcs (>= 1.2.0, < 2.0) 114 | rspec-support (~> 3.7.0) 115 | rspec-support (3.7.1) 116 | simple_form (3.5.1) 117 | actionpack (> 4, < 5.2) 118 | activemodel (> 4, < 5.2) 119 | sprockets (3.7.1) 120 | concurrent-ruby (~> 1.0) 121 | rack (> 1, < 3) 122 | sprockets-rails (3.2.1) 123 | actionpack (>= 4.0) 124 | activesupport (>= 4.0) 125 | sprockets (>= 3.0.0) 126 | sqlite3 (1.3.13) 127 | thor (0.20.0) 128 | thread_safe (0.3.6) 129 | tzinfo (1.2.5) 130 | thread_safe (~> 0.1) 131 | websocket-driver (0.6.5) 132 | websocket-extensions (>= 0.1.0) 133 | websocket-extensions (0.1.3) 134 | 135 | PLATFORMS 136 | ruby 137 | 138 | DEPENDENCIES 139 | appraisal (~> 2.0.0) 140 | judge-simple_form! 141 | nokogiri (~> 1.6) 142 | rake 143 | rspec (~> 3.5) 144 | simple_form (~> 3.2) 145 | sqlite3 (~> 1.3.11) 146 | 147 | BUNDLED WITH 148 | 1.16.1 149 | -------------------------------------------------------------------------------- /gemfiles/simple_form_4_0.gemfile.lock: -------------------------------------------------------------------------------- 1 | PATH 2 | remote: .. 3 | specs: 4 | judge-simple_form (1.1.0) 5 | judge (>= 2.0) 6 | simple_form (>= 3.0) 7 | 8 | GEM 9 | remote: http://rubygems.org/ 10 | specs: 11 | actioncable (5.2.0) 12 | actionpack (= 5.2.0) 13 | nio4r (~> 2.0) 14 | websocket-driver (>= 0.6.1) 15 | actionmailer (5.2.0) 16 | actionpack (= 5.2.0) 17 | actionview (= 5.2.0) 18 | activejob (= 5.2.0) 19 | mail (~> 2.5, >= 2.5.4) 20 | rails-dom-testing (~> 2.0) 21 | actionpack (5.2.0) 22 | actionview (= 5.2.0) 23 | activesupport (= 5.2.0) 24 | rack (~> 2.0) 25 | rack-test (>= 0.6.3) 26 | rails-dom-testing (~> 2.0) 27 | rails-html-sanitizer (~> 1.0, >= 1.0.2) 28 | actionview (5.2.0) 29 | activesupport (= 5.2.0) 30 | builder (~> 3.1) 31 | erubi (~> 1.4) 32 | rails-dom-testing (~> 2.0) 33 | rails-html-sanitizer (~> 1.0, >= 1.0.3) 34 | activejob (5.2.0) 35 | activesupport (= 5.2.0) 36 | globalid (>= 0.3.6) 37 | activemodel (5.2.0) 38 | activesupport (= 5.2.0) 39 | activerecord (5.2.0) 40 | activemodel (= 5.2.0) 41 | activesupport (= 5.2.0) 42 | arel (>= 9.0) 43 | activestorage (5.2.0) 44 | actionpack (= 5.2.0) 45 | activerecord (= 5.2.0) 46 | marcel (~> 0.3.1) 47 | activesupport (5.2.0) 48 | concurrent-ruby (~> 1.0, >= 1.0.2) 49 | i18n (>= 0.7, < 2) 50 | minitest (~> 5.1) 51 | tzinfo (~> 1.1) 52 | appraisal (2.0.2) 53 | bundler 54 | rake 55 | thor (>= 0.14.0) 56 | arel (9.0.0) 57 | builder (3.2.3) 58 | concurrent-ruby (1.0.5) 59 | crass (1.0.4) 60 | diff-lcs (1.3) 61 | erubi (1.7.1) 62 | globalid (0.4.1) 63 | activesupport (>= 4.2.0) 64 | i18n (1.0.1) 65 | concurrent-ruby (~> 1.0) 66 | judge (3.0.0) 67 | rails (>= 5.0) 68 | loofah (2.2.2) 69 | crass (~> 1.0.2) 70 | nokogiri (>= 1.5.9) 71 | mail (2.7.0) 72 | mini_mime (>= 0.1.1) 73 | marcel (0.3.2) 74 | mimemagic (~> 0.3.2) 75 | method_source (0.9.0) 76 | mimemagic (0.3.2) 77 | mini_mime (1.0.0) 78 | mini_portile2 (2.3.0) 79 | minitest (5.11.3) 80 | nio4r (2.3.0) 81 | nokogiri (1.8.2) 82 | mini_portile2 (~> 2.3.0) 83 | rack (2.0.4) 84 | rack-test (1.0.0) 85 | rack (>= 1.0, < 3) 86 | rails (5.2.0) 87 | actioncable (= 5.2.0) 88 | actionmailer (= 5.2.0) 89 | actionpack (= 5.2.0) 90 | actionview (= 5.2.0) 91 | activejob (= 5.2.0) 92 | activemodel (= 5.2.0) 93 | activerecord (= 5.2.0) 94 | activestorage (= 5.2.0) 95 | activesupport (= 5.2.0) 96 | bundler (>= 1.3.0) 97 | railties (= 5.2.0) 98 | sprockets-rails (>= 2.0.0) 99 | rails-dom-testing (2.0.3) 100 | activesupport (>= 4.2.0) 101 | nokogiri (>= 1.6) 102 | rails-html-sanitizer (1.0.4) 103 | loofah (~> 2.2, >= 2.2.2) 104 | railties (5.2.0) 105 | actionpack (= 5.2.0) 106 | activesupport (= 5.2.0) 107 | method_source 108 | rake (>= 0.8.7) 109 | thor (>= 0.18.1, < 2.0) 110 | rake (12.3.1) 111 | rspec (3.7.0) 112 | rspec-core (~> 3.7.0) 113 | rspec-expectations (~> 3.7.0) 114 | rspec-mocks (~> 3.7.0) 115 | rspec-core (3.7.1) 116 | rspec-support (~> 3.7.0) 117 | rspec-expectations (3.7.0) 118 | diff-lcs (>= 1.2.0, < 2.0) 119 | rspec-support (~> 3.7.0) 120 | rspec-mocks (3.7.0) 121 | diff-lcs (>= 1.2.0, < 2.0) 122 | rspec-support (~> 3.7.0) 123 | rspec-support (3.7.1) 124 | simple_form (4.0.0) 125 | actionpack (> 4) 126 | activemodel (> 4) 127 | sprockets (3.7.1) 128 | concurrent-ruby (~> 1.0) 129 | rack (> 1, < 3) 130 | sprockets-rails (3.2.1) 131 | actionpack (>= 4.0) 132 | activesupport (>= 4.0) 133 | sprockets (>= 3.0.0) 134 | sqlite3 (1.3.13) 135 | thor (0.20.0) 136 | thread_safe (0.3.6) 137 | tzinfo (1.2.5) 138 | thread_safe (~> 0.1) 139 | websocket-driver (0.7.0) 140 | websocket-extensions (>= 0.1.0) 141 | websocket-extensions (0.1.3) 142 | 143 | PLATFORMS 144 | ruby 145 | 146 | DEPENDENCIES 147 | appraisal (~> 2.0.0) 148 | judge-simple_form! 149 | nokogiri (~> 1.6) 150 | rake 151 | rspec (~> 3.5) 152 | simple_form (~> 4.0) 153 | sqlite3 (~> 1.3.11) 154 | 155 | BUNDLED WITH 156 | 1.16.1 157 | --------------------------------------------------------------------------------