strong_form 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +70 -0
- data/Rakefile +5 -8
- data/lib/strong_form/nested_form.rb +5 -2
- data/lib/strong_form/version.rb +1 -1
- data/spec/dummy/app/views/base/nested_form_gem.html.haml +5 -2
- data/spec/dummy/log/test.log +2970 -0
- data/spec/examples.txt +55 -52
- data/spec/features/strong_form_spec.rb +25 -4
- metadata +3 -2
    
        data/spec/examples.txt
    CHANGED
    
    | @@ -1,52 +1,55 @@ | |
| 1 | 
            -
            example_id | 
| 2 | 
            -
             | 
| 3 | 
            -
            ./spec/features/strong_form_spec.rb[1:1:1:1] | 
| 4 | 
            -
            ./spec/features/strong_form_spec.rb[1:1:1:2] | 
| 5 | 
            -
            ./spec/features/strong_form_spec.rb[1:1:1:3] | 
| 6 | 
            -
            ./spec/features/strong_form_spec.rb[1:1:1:4] | 
| 7 | 
            -
            ./spec/features/strong_form_spec.rb[1:1:2:1] | 
| 8 | 
            -
            ./spec/features/strong_form_spec.rb[1:1:2:2] | 
| 9 | 
            -
            ./spec/features/strong_form_spec.rb[1:1:2:3] | 
| 10 | 
            -
            ./spec/features/strong_form_spec.rb[1:1:2:4] | 
| 11 | 
            -
            ./spec/features/strong_form_spec.rb[1:2:1:1:1] | 
| 12 | 
            -
            ./spec/features/strong_form_spec.rb[1:2:1:1:2] | 
| 13 | 
            -
            ./spec/features/strong_form_spec.rb[1:2:1:1:3] | 
| 14 | 
            -
            ./spec/features/strong_form_spec.rb[1:2:1:1:4] | 
| 15 | 
            -
            ./spec/features/strong_form_spec.rb[1:2:1:1:5] | 
| 16 | 
            -
            ./spec/features/strong_form_spec.rb[1:2:1:1:6] | 
| 17 | 
            -
            ./spec/features/strong_form_spec.rb[1:2:2:1:1] | 
| 18 | 
            -
            ./spec/features/strong_form_spec.rb[1:2:2:1:2] | 
| 19 | 
            -
            ./spec/features/strong_form_spec.rb[1:2:2:1:3] | 
| 20 | 
            -
            ./spec/features/strong_form_spec.rb[1:2:2:1:4] | 
| 21 | 
            -
            ./spec/features/strong_form_spec.rb[1:2:2:2:1] | 
| 22 | 
            -
            ./spec/features/strong_form_spec.rb[1:2:2:2:2] | 
| 23 | 
            -
            ./spec/features/strong_form_spec.rb[1:2:3:1:1] | 
| 24 | 
            -
            ./spec/features/strong_form_spec.rb[1:2:3:1:2] | 
| 25 | 
            -
            ./spec/features/strong_form_spec.rb[1:2:3:1:3] | 
| 26 | 
            -
            ./spec/features/strong_form_spec.rb[1:2:3:1:4] | 
| 27 | 
            -
            ./spec/features/strong_form_spec.rb[1:2:3:2:1] | 
| 28 | 
            -
            ./spec/features/strong_form_spec.rb[1:2:3:2:2] | 
| 29 | 
            -
            ./spec/features/strong_form_spec.rb[1:3:1:1:1] | 
| 30 | 
            -
            ./spec/features/strong_form_spec.rb[1:3:1:1:2] | 
| 31 | 
            -
            ./spec/features/strong_form_spec.rb[1:3:2:1:1] | 
| 32 | 
            -
            ./spec/features/strong_form_spec.rb[1:3:2:1:2] | 
| 33 | 
            -
            ./spec/features/strong_form_spec.rb[1:4:1] | 
| 34 | 
            -
            ./spec/features/strong_form_spec.rb[1:4:2:1:1] | passed | 0. | 
| 35 | 
            -
            ./spec/features/strong_form_spec.rb[1:4:2:1:2] | passed | 0. | 
| 36 | 
            -
            ./spec/features/strong_form_spec.rb[1:4:2:2:1] | passed | 0. | 
| 37 | 
            -
            ./spec/features/strong_form_spec.rb[1:4: | 
| 38 | 
            -
            ./spec/features/strong_form_spec.rb[1:4: | 
| 39 | 
            -
            ./spec/features/strong_form_spec.rb[1:4: | 
| 40 | 
            -
            ./spec/features/strong_form_spec.rb[1:4: | 
| 41 | 
            -
            ./spec/features/strong_form_spec.rb[1:4: | 
| 42 | 
            -
            ./spec/features/strong_form_spec.rb[1:4: | 
| 43 | 
            -
            ./spec/features/strong_form_spec.rb[1:4:4:1: | 
| 44 | 
            -
            ./spec/features/strong_form_spec.rb[1:4:4:1: | 
| 45 | 
            -
            ./spec/features/strong_form_spec.rb[1:4:4:1: | 
| 46 | 
            -
            ./spec/features/strong_form_spec.rb[1:4:4: | 
| 47 | 
            -
            ./spec/features/strong_form_spec.rb[1:4: | 
| 48 | 
            -
            ./spec/ | 
| 49 | 
            -
            ./spec/ | 
| 50 | 
            -
            ./spec/ | 
| 51 | 
            -
            ./spec/models/user_spec.rb[1:1: | 
| 52 | 
            -
            ./spec/models/user_spec.rb[1:1:2: | 
| 1 | 
            +
            example_id                                       | status | run_time        |
         | 
| 2 | 
            +
            ------------------------------------------------ | ------ | --------------- |
         | 
| 3 | 
            +
            ./spec/features/strong_form_spec.rb[1:1:1:1]     | passed | 0.00477 seconds |
         | 
| 4 | 
            +
            ./spec/features/strong_form_spec.rb[1:1:1:2]     | passed | 0.00326 seconds |
         | 
| 5 | 
            +
            ./spec/features/strong_form_spec.rb[1:1:1:3]     | passed | 0.00329 seconds |
         | 
| 6 | 
            +
            ./spec/features/strong_form_spec.rb[1:1:1:4]     | passed | 0.0033 seconds  |
         | 
| 7 | 
            +
            ./spec/features/strong_form_spec.rb[1:1:2:1]     | passed | 0.0043 seconds  |
         | 
| 8 | 
            +
            ./spec/features/strong_form_spec.rb[1:1:2:2]     | passed | 0.00409 seconds |
         | 
| 9 | 
            +
            ./spec/features/strong_form_spec.rb[1:1:2:3]     | passed | 0.00529 seconds |
         | 
| 10 | 
            +
            ./spec/features/strong_form_spec.rb[1:1:2:4]     | passed | 0.00749 seconds |
         | 
| 11 | 
            +
            ./spec/features/strong_form_spec.rb[1:2:1:1:1]   | passed | 0.00672 seconds |
         | 
| 12 | 
            +
            ./spec/features/strong_form_spec.rb[1:2:1:1:2]   | passed | 0.0089 seconds  |
         | 
| 13 | 
            +
            ./spec/features/strong_form_spec.rb[1:2:1:1:3]   | passed | 0.00926 seconds |
         | 
| 14 | 
            +
            ./spec/features/strong_form_spec.rb[1:2:1:1:4]   | passed | 0.00816 seconds |
         | 
| 15 | 
            +
            ./spec/features/strong_form_spec.rb[1:2:1:1:5]   | passed | 0.00754 seconds |
         | 
| 16 | 
            +
            ./spec/features/strong_form_spec.rb[1:2:1:1:6]   | passed | 0.00908 seconds |
         | 
| 17 | 
            +
            ./spec/features/strong_form_spec.rb[1:2:2:1:1]   | passed | 0.00663 seconds |
         | 
| 18 | 
            +
            ./spec/features/strong_form_spec.rb[1:2:2:1:2]   | passed | 0.00595 seconds |
         | 
| 19 | 
            +
            ./spec/features/strong_form_spec.rb[1:2:2:1:3]   | passed | 0.00786 seconds |
         | 
| 20 | 
            +
            ./spec/features/strong_form_spec.rb[1:2:2:1:4]   | passed | 0.00586 seconds |
         | 
| 21 | 
            +
            ./spec/features/strong_form_spec.rb[1:2:2:2:1]   | passed | 0.00666 seconds |
         | 
| 22 | 
            +
            ./spec/features/strong_form_spec.rb[1:2:2:2:2]   | passed | 0.01 seconds    |
         | 
| 23 | 
            +
            ./spec/features/strong_form_spec.rb[1:2:3:1:1]   | passed | 0.00663 seconds |
         | 
| 24 | 
            +
            ./spec/features/strong_form_spec.rb[1:2:3:1:2]   | passed | 0.00587 seconds |
         | 
| 25 | 
            +
            ./spec/features/strong_form_spec.rb[1:2:3:1:3]   | passed | 0.00628 seconds |
         | 
| 26 | 
            +
            ./spec/features/strong_form_spec.rb[1:2:3:1:4]   | passed | 0.00633 seconds |
         | 
| 27 | 
            +
            ./spec/features/strong_form_spec.rb[1:2:3:2:1]   | passed | 0.00796 seconds |
         | 
| 28 | 
            +
            ./spec/features/strong_form_spec.rb[1:2:3:2:2]   | passed | 0.02549 seconds |
         | 
| 29 | 
            +
            ./spec/features/strong_form_spec.rb[1:3:1:1:1]   | passed | 0.0081 seconds  |
         | 
| 30 | 
            +
            ./spec/features/strong_form_spec.rb[1:3:1:1:2]   | passed | 0.00648 seconds |
         | 
| 31 | 
            +
            ./spec/features/strong_form_spec.rb[1:3:2:1:1]   | passed | 0.1627 seconds  |
         | 
| 32 | 
            +
            ./spec/features/strong_form_spec.rb[1:3:2:1:2]   | passed | 0.00913 seconds |
         | 
| 33 | 
            +
            ./spec/features/strong_form_spec.rb[1:4:1]       | passed | 0.01003 seconds |
         | 
| 34 | 
            +
            ./spec/features/strong_form_spec.rb[1:4:2:1:1:1] | passed | 0.00708 seconds |
         | 
| 35 | 
            +
            ./spec/features/strong_form_spec.rb[1:4:2:1:1:2] | passed | 0.00698 seconds |
         | 
| 36 | 
            +
            ./spec/features/strong_form_spec.rb[1:4:2:1:2:1] | passed | 0.0097 seconds  |
         | 
| 37 | 
            +
            ./spec/features/strong_form_spec.rb[1:4:2:1:2:2] | passed | 0.01332 seconds |
         | 
| 38 | 
            +
            ./spec/features/strong_form_spec.rb[1:4:2:1:3]   | passed | 0.00823 seconds |
         | 
| 39 | 
            +
            ./spec/features/strong_form_spec.rb[1:4:2:2:1]   | passed | 0.0082 seconds  |
         | 
| 40 | 
            +
            ./spec/features/strong_form_spec.rb[1:4:3:1:1]   | passed | 0.00995 seconds |
         | 
| 41 | 
            +
            ./spec/features/strong_form_spec.rb[1:4:3:1:2]   | passed | 0.01124 seconds |
         | 
| 42 | 
            +
            ./spec/features/strong_form_spec.rb[1:4:3:2:1]   | passed | 0.00934 seconds |
         | 
| 43 | 
            +
            ./spec/features/strong_form_spec.rb[1:4:4:1:1]   | passed | 0.01473 seconds |
         | 
| 44 | 
            +
            ./spec/features/strong_form_spec.rb[1:4:4:1:2]   | passed | 0.01693 seconds |
         | 
| 45 | 
            +
            ./spec/features/strong_form_spec.rb[1:4:4:1:3]   | passed | 0.00802 seconds |
         | 
| 46 | 
            +
            ./spec/features/strong_form_spec.rb[1:4:4:1:4]   | passed | 0.01345 seconds |
         | 
| 47 | 
            +
            ./spec/features/strong_form_spec.rb[1:4:4:1:5]   | passed | 0.00991 seconds |
         | 
| 48 | 
            +
            ./spec/features/strong_form_spec.rb[1:4:4:1:6]   | passed | 0.01141 seconds |
         | 
| 49 | 
            +
            ./spec/features/strong_form_spec.rb[1:4:4:2:1]   | passed | 0.01324 seconds |
         | 
| 50 | 
            +
            ./spec/features/strong_form_spec.rb[1:4:5:1:1]   | passed | 0.00958 seconds |
         | 
| 51 | 
            +
            ./spec/models/user_spec.rb[1:1:1:1]              | passed | 0.00053 seconds |
         | 
| 52 | 
            +
            ./spec/models/user_spec.rb[1:1:2:1]              | passed | 0.00035 seconds |
         | 
| 53 | 
            +
            ./spec/models/user_spec.rb[1:1:2:2]              | passed | 0.00146 seconds |
         | 
| 54 | 
            +
            ./spec/models/user_spec.rb[1:1:2:3]              | passed | 0.00046 seconds |
         | 
| 55 | 
            +
            ./spec/models/user_spec.rb[1:1:2:4]              | passed | 0.00053 seconds |
         | 
| @@ -206,7 +206,8 @@ RSpec.describe 'strong form' do | |
| 206 206 | 
             
              end
         | 
| 207 207 |  | 
| 208 208 | 
             
              describe 'nested form gem' do
         | 
| 209 | 
            -
                 | 
| 209 | 
            +
                let(:extra_params) { {} }
         | 
| 210 | 
            +
                subject { visit('/nested_form_gem?' + extra_params.to_query) }
         | 
| 210 211 |  | 
| 211 212 | 
             
                it 'should work' do
         | 
| 212 213 | 
             
                  subject
         | 
| @@ -216,9 +217,29 @@ RSpec.describe 'strong form' do | |
| 216 217 | 
             
                  before(:each) { subject }
         | 
| 217 218 |  | 
| 218 219 | 
             
                  describe 'link to add' do
         | 
| 219 | 
            -
                     | 
| 220 | 
            -
                       | 
| 221 | 
            -
                         | 
| 220 | 
            +
                    context 'with block syntax' do
         | 
| 221 | 
            +
                      it 'should be displayed' do
         | 
| 222 | 
            +
                        expect(page)
         | 
| 223 | 
            +
                          .to have_selector('[data-blueprint-id="addresses_fields_blueprint"]')
         | 
| 224 | 
            +
                      end
         | 
| 225 | 
            +
             | 
| 226 | 
            +
                      it 'should have extra html attributes' do
         | 
| 227 | 
            +
                        expect(page.find('[data-blueprint-id="addresses_fields_blueprint"]')[:bla])
         | 
| 228 | 
            +
                          .to eql('blub')
         | 
| 229 | 
            +
                      end
         | 
| 230 | 
            +
                    end
         | 
| 231 | 
            +
             | 
| 232 | 
            +
                    context 'without block syntax' do
         | 
| 233 | 
            +
                      let(:extra_params) { { inline_link_to_add: true } }
         | 
| 234 | 
            +
                      it 'should be displayed' do
         | 
| 235 | 
            +
                        expect(page)
         | 
| 236 | 
            +
                          .to have_selector('[data-blueprint-id="addresses_fields_blueprint"]')
         | 
| 237 | 
            +
                      end
         | 
| 238 | 
            +
             | 
| 239 | 
            +
                      it 'should have extra html attributes' do
         | 
| 240 | 
            +
                        expect(page.find('[data-blueprint-id="addresses_fields_blueprint"]')[:bla])
         | 
| 241 | 
            +
                          .to eql('blub')
         | 
| 242 | 
            +
                      end
         | 
| 222 243 | 
             
                    end
         | 
| 223 244 |  | 
| 224 245 | 
             
                    it 'blueprint should not have disabled fields' do
         | 
    
        metadata
    CHANGED
    
    | @@ -1,14 +1,14 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: strong_form
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 0.0. | 
| 4 | 
            +
              version: 0.0.2
         | 
| 5 5 | 
             
            platform: ruby
         | 
| 6 6 | 
             
            authors:
         | 
| 7 7 | 
             
            - Markus Doits
         | 
| 8 8 | 
             
            autorequire: 
         | 
| 9 9 | 
             
            bindir: bin
         | 
| 10 10 | 
             
            cert_chain: []
         | 
| 11 | 
            -
            date: 2015- | 
| 11 | 
            +
            date: 2015-07-02 00:00:00.000000000 Z
         | 
| 12 12 | 
             
            dependencies:
         | 
| 13 13 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 14 14 | 
             
              name: rails
         | 
| @@ -116,6 +116,7 @@ extensions: [] | |
| 116 116 | 
             
            extra_rdoc_files: []
         | 
| 117 117 | 
             
            files:
         | 
| 118 118 | 
             
            - AGPL-LICENSE
         | 
| 119 | 
            +
            - README.md
         | 
| 119 120 | 
             
            - Rakefile
         | 
| 120 121 | 
             
            - lib/strong_form.rb
         | 
| 121 122 | 
             
            - lib/strong_form/finder.rb
         |