noodall-form-builder 0.2.4 → 0.2.5
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.
| @@ -1,4 +1,12 @@ | |
| 1 | 
            -
             | 
| 1 | 
            +
             | 
| 2 | 
            +
            # in ruby 1.9, fastercsv was included as csv
         | 
| 3 | 
            +
            if RUBY_VERSION =~ /1\.8/
         | 
| 4 | 
            +
              require 'fastercsv'
         | 
| 5 | 
            +
              Abstracted_CSV_Class = FasterCSV
         | 
| 6 | 
            +
            else
         | 
| 7 | 
            +
              require 'csv'
         | 
| 8 | 
            +
              Abstracted_CSV_Class = CSV
         | 
| 9 | 
            +
            end
         | 
| 2 10 |  | 
| 3 11 | 
             
            module Noodall
         | 
| 4 12 | 
             
              class Admin::FormResponsesController < Noodall::Admin::BaseController
         | 
| @@ -18,7 +26,7 @@ module Noodall | |
| 18 26 |  | 
| 19 27 |  | 
| 20 28 | 
             
                    format.csv do
         | 
| 21 | 
            -
                      csv_string =  | 
| 29 | 
            +
                      csv_string = Abstracted_CSV_Class.generate do |csv|
         | 
| 22 30 | 
             
                        header_row = @form.fields.map do |field|
         | 
| 23 31 | 
             
                          field.name
         | 
| 24 32 | 
             
                        end
         | 
    
        metadata
    CHANGED
    
    | @@ -1,13 +1,13 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification 
         | 
| 2 2 | 
             
            name: noodall-form-builder
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version 
         | 
| 4 | 
            -
              hash:  | 
| 4 | 
            +
              hash: 29
         | 
| 5 5 | 
             
              prerelease: 
         | 
| 6 6 | 
             
              segments: 
         | 
| 7 7 | 
             
              - 0
         | 
| 8 8 | 
             
              - 2
         | 
| 9 | 
            -
              -  | 
| 10 | 
            -
              version: 0.2. | 
| 9 | 
            +
              - 5
         | 
| 10 | 
            +
              version: 0.2.5
         | 
| 11 11 | 
             
            platform: ruby
         | 
| 12 12 | 
             
            authors: []
         | 
| 13 13 |  | 
| @@ -15,12 +15,10 @@ autorequire: | |
| 15 15 | 
             
            bindir: bin
         | 
| 16 16 | 
             
            cert_chain: []
         | 
| 17 17 |  | 
| 18 | 
            -
            date: 2011-05- | 
| 18 | 
            +
            date: 2011-05-31 00:00:00 +01:00
         | 
| 19 19 | 
             
            default_executable: 
         | 
| 20 20 | 
             
            dependencies: 
         | 
| 21 21 | 
             
            - !ruby/object:Gem::Dependency 
         | 
| 22 | 
            -
              name: bundler
         | 
| 23 | 
            -
              prerelease: false
         | 
| 24 22 | 
             
              version_requirements: &id001 !ruby/object:Gem::Requirement 
         | 
| 25 23 | 
             
                none: false
         | 
| 26 24 | 
             
                requirements: 
         | 
| @@ -32,11 +30,11 @@ dependencies: | |
| 32 30 | 
             
                    - 0
         | 
| 33 31 | 
             
                    - 0
         | 
| 34 32 | 
             
                    version: 1.0.0
         | 
| 33 | 
            +
              prerelease: false
         | 
| 35 34 | 
             
              type: :development
         | 
| 36 35 | 
             
              requirement: *id001
         | 
| 36 | 
            +
              name: bundler
         | 
| 37 37 | 
             
            - !ruby/object:Gem::Dependency 
         | 
| 38 | 
            -
              name: fastercsv
         | 
| 39 | 
            -
              prerelease: false
         | 
| 40 38 | 
             
              version_requirements: &id002 !ruby/object:Gem::Requirement 
         | 
| 41 39 | 
             
                none: false
         | 
| 42 40 | 
             
                requirements: 
         | 
| @@ -46,8 +44,10 @@ dependencies: | |
| 46 44 | 
             
                    segments: 
         | 
| 47 45 | 
             
                    - 0
         | 
| 48 46 | 
             
                    version: "0"
         | 
| 47 | 
            +
              prerelease: false
         | 
| 49 48 | 
             
              type: :runtime
         | 
| 50 49 | 
             
              requirement: *id002
         | 
| 50 | 
            +
              name: fastercsv
         | 
| 51 51 | 
             
            description: Functionality for building custom forms
         | 
| 52 52 | 
             
            email: []
         | 
| 53 53 |  | 
| @@ -203,7 +203,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement | |
| 203 203 | 
             
            requirements: []
         | 
| 204 204 |  | 
| 205 205 | 
             
            rubyforge_project: 
         | 
| 206 | 
            -
            rubygems_version: 1. | 
| 206 | 
            +
            rubygems_version: 1.6.2
         | 
| 207 207 | 
             
            signing_key: 
         | 
| 208 208 | 
             
            specification_version: 3
         | 
| 209 209 | 
             
            summary: Noodall Form Builder
         |