styled_inputs 0.1.1 → 0.1.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.
- data/CHANGELOG.rdoc +4 -0
- data/LICENSE +1 -1
- data/Rakefile +18 -16
- data/test/helpers/form_helper_test.rb +2 -2
- metadata +14 -15
    
        data/CHANGELOG.rdoc
    CHANGED
    
    
    
        data/LICENSE
    CHANGED
    
    
    
        data/Rakefile
    CHANGED
    
    | @@ -1,13 +1,15 @@ | |
| 1 | 
            +
            require 'rubygems'
         | 
| 2 | 
            +
            require 'rake'
         | 
| 1 3 | 
             
            require 'rake/testtask'
         | 
| 2 4 | 
             
            require 'rake/rdoctask'
         | 
| 3 5 | 
             
            require 'rake/gempackagetask'
         | 
| 4 | 
            -
            require 'rake/contrib/sshpublisher'
         | 
| 5 6 |  | 
| 6 7 | 
             
            spec = Gem::Specification.new do |s|
         | 
| 7 8 | 
             
              s.name              = 'styled_inputs'
         | 
| 8 | 
            -
              s.version           = '0.1. | 
| 9 | 
            +
              s.version           = '0.1.2'
         | 
| 9 10 | 
             
              s.platform          = Gem::Platform::RUBY
         | 
| 10 | 
            -
              s.summary           = 'Adds automated styling of input fields with css classes'
         | 
| 11 | 
            +
              s.summary           = 'Adds automated styling of input fields with css classes in Rails'
         | 
| 12 | 
            +
              s.description       = s.summary
         | 
| 11 13 |  | 
| 12 14 | 
             
              s.files             = FileList['{lib,test}/**/*'] + %w(CHANGELOG.rdoc init.rb LICENSE Rakefile README.rdoc) - FileList['test/app_root/{log,log/*,script,script/*}']
         | 
| 13 15 | 
             
              s.require_path      = 'lib'
         | 
| @@ -52,20 +54,27 @@ Rake::RDocTask.new(:rdoc) do |rdoc| | |
| 52 54 | 
             
              rdoc.options << '--line-numbers' << '--inline-source'
         | 
| 53 55 | 
             
              rdoc.rdoc_files.include('README.rdoc', 'CHANGELOG.rdoc', 'LICENSE', 'lib/**/*.rb')
         | 
| 54 56 | 
             
            end
         | 
| 55 | 
            -
             | 
| 57 | 
            +
             | 
| 58 | 
            +
            desc 'Generate a gemspec file.'
         | 
| 59 | 
            +
            task :gemspec do
         | 
| 60 | 
            +
              File.open("#{spec.name}.gemspec", 'w') do |f|
         | 
| 61 | 
            +
                f.write spec.to_ruby
         | 
| 62 | 
            +
              end
         | 
| 63 | 
            +
            end
         | 
| 64 | 
            +
             | 
| 56 65 | 
             
            Rake::GemPackageTask.new(spec) do |p|
         | 
| 57 66 | 
             
              p.gem_spec = spec
         | 
| 58 | 
            -
              p.need_tar = true
         | 
| 59 | 
            -
              p.need_zip = true
         | 
| 60 67 | 
             
            end
         | 
| 61 68 |  | 
| 62 69 | 
             
            desc 'Publish the beta gem.'
         | 
| 63 70 | 
             
            task :pgem => [:package] do
         | 
| 71 | 
            +
              require 'rake/contrib/sshpublisher'
         | 
| 64 72 | 
             
              Rake::SshFilePublisher.new('aaron@pluginaweek.org', '/home/aaron/gems.pluginaweek.org/public/gems', 'pkg', "#{spec.name}-#{spec.version}.gem").upload
         | 
| 65 73 | 
             
            end
         | 
| 66 74 |  | 
| 67 75 | 
             
            desc 'Publish the API documentation.'
         | 
| 68 76 | 
             
            task :pdoc => [:rdoc] do
         | 
| 77 | 
            +
              require 'rake/contrib/sshpublisher'
         | 
| 69 78 | 
             
              Rake::SshDirPublisher.new('aaron@pluginaweek.org', "/home/aaron/api.pluginaweek.org/public/#{spec.name}", 'rdoc').upload
         | 
| 70 79 | 
             
            end
         | 
| 71 80 |  | 
| @@ -74,15 +83,8 @@ task :publish => [:pgem, :pdoc, :release] | |
| 74 83 |  | 
| 75 84 | 
             
            desc 'Publish the release files to RubyForge.'
         | 
| 76 85 | 
             
            task :release => [:gem, :package] do
         | 
| 77 | 
            -
              require ' | 
| 78 | 
            -
              
         | 
| 79 | 
            -
              ruby_forge = RubyForge.new.configure
         | 
| 80 | 
            -
              ruby_forge.login
         | 
| 86 | 
            +
              require 'rake/gemcutter'
         | 
| 81 87 |  | 
| 82 | 
            -
               | 
| 83 | 
            -
             | 
| 84 | 
            -
                puts "Releasing #{File.basename(file)}..."
         | 
| 85 | 
            -
                
         | 
| 86 | 
            -
                ruby_forge.add_release(spec.rubyforge_project, spec.name, spec.version, file)
         | 
| 87 | 
            -
              end
         | 
| 88 | 
            +
              Rake::Gemcutter::Tasks.new(spec)
         | 
| 89 | 
            +
              Rake::Task['gem:push'].invoke
         | 
| 88 90 | 
             
            end
         | 
| @@ -30,8 +30,8 @@ class FormHelperTest < ActionView::TestCase | |
| 30 30 |  | 
| 31 31 | 
             
              def test_should_style_check_box
         | 
| 32 32 | 
             
                expected =
         | 
| 33 | 
            -
                  '<input  | 
| 34 | 
            -
                  '<input name="person[agree]" type=" | 
| 33 | 
            +
                  '<input name="person[agree]" type="hidden" value="0" />' +
         | 
| 34 | 
            +
                  '<input class="checkbox" id="person_agree" name="person[agree]" type="checkbox" value="1" />'
         | 
| 35 35 | 
             
                assert_equal expected, check_box(:person, :agree)
         | 
| 36 36 | 
             
              end
         | 
| 37 37 |  | 
    
        metadata
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification 
         | 
| 2 2 | 
             
            name: styled_inputs
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version 
         | 
| 4 | 
            -
              version: 0.1. | 
| 4 | 
            +
              version: 0.1.2
         | 
| 5 5 | 
             
            platform: ruby
         | 
| 6 6 | 
             
            authors: 
         | 
| 7 7 | 
             
            - Aaron Pfeifer
         | 
| @@ -9,11 +9,11 @@ autorequire: | |
| 9 9 | 
             
            bindir: bin
         | 
| 10 10 | 
             
            cert_chain: []
         | 
| 11 11 |  | 
| 12 | 
            -
            date:  | 
| 12 | 
            +
            date: 2010-03-07 00:00:00 -05:00
         | 
| 13 13 | 
             
            default_executable: 
         | 
| 14 14 | 
             
            dependencies: []
         | 
| 15 15 |  | 
| 16 | 
            -
            description: 
         | 
| 16 | 
            +
            description: Adds automated styling of input fields with css classes in Rails
         | 
| 17 17 | 
             
            email: aaron@pluginaweek.org
         | 
| 18 18 | 
             
            executables: []
         | 
| 19 19 |  | 
| @@ -22,18 +22,15 @@ extensions: [] | |
| 22 22 | 
             
            extra_rdoc_files: []
         | 
| 23 23 |  | 
| 24 24 | 
             
            files: 
         | 
| 25 | 
            -
            - lib/styled_inputs
         | 
| 26 | 
            -
            - lib/styled_inputs/extensions
         | 
| 27 | 
            -
            - lib/styled_inputs/extensions/tag_helper.rb
         | 
| 28 | 
            -
            - lib/styled_inputs/extensions/instance_tag.rb
         | 
| 29 25 | 
             
            - lib/styled_inputs.rb
         | 
| 26 | 
            +
            - lib/styled_inputs/extensions/instance_tag.rb
         | 
| 27 | 
            +
            - lib/styled_inputs/extensions/tag_helper.rb
         | 
| 30 28 | 
             
            - test/test_helper.rb
         | 
| 31 | 
            -
            - test/helpers
         | 
| 32 | 
            -
            - test/helpers/tag_helper_test.rb
         | 
| 33 | 
            -
            - test/helpers/styled_inputs_test.rb
         | 
| 34 29 | 
             
            - test/helpers/form_helper_test.rb
         | 
| 30 | 
            +
            - test/helpers/styled_inputs_test.rb
         | 
| 35 31 | 
             
            - test/helpers/date_helper_test.rb
         | 
| 36 32 | 
             
            - test/helpers/form_tag_helper_test.rb
         | 
| 33 | 
            +
            - test/helpers/tag_helper_test.rb
         | 
| 37 34 | 
             
            - CHANGELOG.rdoc
         | 
| 38 35 | 
             
            - init.rb
         | 
| 39 36 | 
             
            - LICENSE
         | 
| @@ -41,6 +38,8 @@ files: | |
| 41 38 | 
             
            - README.rdoc
         | 
| 42 39 | 
             
            has_rdoc: true
         | 
| 43 40 | 
             
            homepage: http://www.pluginaweek.org
         | 
| 41 | 
            +
            licenses: []
         | 
| 42 | 
            +
             | 
| 44 43 | 
             
            post_install_message: 
         | 
| 45 44 | 
             
            rdoc_options: []
         | 
| 46 45 |  | 
| @@ -61,13 +60,13 @@ required_rubygems_version: !ruby/object:Gem::Requirement | |
| 61 60 | 
             
            requirements: []
         | 
| 62 61 |  | 
| 63 62 | 
             
            rubyforge_project: pluginaweek
         | 
| 64 | 
            -
            rubygems_version: 1. | 
| 63 | 
            +
            rubygems_version: 1.3.5
         | 
| 65 64 | 
             
            signing_key: 
         | 
| 66 | 
            -
            specification_version:  | 
| 67 | 
            -
            summary: Adds automated styling of input fields with css classes
         | 
| 65 | 
            +
            specification_version: 3
         | 
| 66 | 
            +
            summary: Adds automated styling of input fields with css classes in Rails
         | 
| 68 67 | 
             
            test_files: 
         | 
| 69 | 
            -
            - test/helpers/tag_helper_test.rb
         | 
| 70 | 
            -
            - test/helpers/styled_inputs_test.rb
         | 
| 71 68 | 
             
            - test/helpers/form_helper_test.rb
         | 
| 69 | 
            +
            - test/helpers/styled_inputs_test.rb
         | 
| 72 70 | 
             
            - test/helpers/date_helper_test.rb
         | 
| 73 71 | 
             
            - test/helpers/form_tag_helper_test.rb
         | 
| 72 | 
            +
            - test/helpers/tag_helper_test.rb
         |