htmlfive 0.1
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/.document +5 -0
- data/.gitignore +21 -0
- data/README.textile +2 -0
- data/Rakefile +55 -0
- data/htmlfive.gemspec +52 -0
- data/init.rb +2 -0
- data/install.rb +1 -0
- data/lib/helpers/ie.rb +35 -0
- data/lib/htmlfive.rb +2 -0
- data/test/helper.rb +11 -0
- data/test/test_htmlfive.rb +8 -0
- data/uninstall.rb +1 -0
- metadata +68 -0
    
        data/.document
    ADDED
    
    
    
        data/.gitignore
    ADDED
    
    
    
        data/README.textile
    ADDED
    
    
    
        data/Rakefile
    ADDED
    
    | @@ -0,0 +1,55 @@ | |
| 1 | 
            +
            require 'rubygems'
         | 
| 2 | 
            +
            require 'rake'
         | 
| 3 | 
            +
             | 
| 4 | 
            +
            begin
         | 
| 5 | 
            +
              require 'jeweler'
         | 
| 6 | 
            +
              Jeweler::Tasks.new do |gem|
         | 
| 7 | 
            +
                gem.name = "htmlfive"
         | 
| 8 | 
            +
                gem.summary = %Q{HTML5 today}
         | 
| 9 | 
            +
                gem.description = %Q{Useful helpers to create you HTML5 application today}
         | 
| 10 | 
            +
                gem.email = "kossnocorp@gmail.com"
         | 
| 11 | 
            +
                gem.homepage = "http://github.com/kossnocorp/htmlfive"
         | 
| 12 | 
            +
                gem.authors = ["Aleksandr Koss", "Edward Tsech"]
         | 
| 13 | 
            +
                gem.version = '0.1'
         | 
| 14 | 
            +
                #gem.add_development_dependency "thoughtbot-shoulda", ">= 0"
         | 
| 15 | 
            +
                # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
         | 
| 16 | 
            +
              end
         | 
| 17 | 
            +
              Jeweler::GemcutterTasks.new
         | 
| 18 | 
            +
            rescue LoadError
         | 
| 19 | 
            +
              puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
         | 
| 20 | 
            +
            end
         | 
| 21 | 
            +
             | 
| 22 | 
            +
            require 'rake/testtask'
         | 
| 23 | 
            +
            Rake::TestTask.new(:test) do |test|
         | 
| 24 | 
            +
              test.libs << 'lib' << 'test'
         | 
| 25 | 
            +
              test.pattern = 'test/**/test_*.rb'
         | 
| 26 | 
            +
              test.verbose = true
         | 
| 27 | 
            +
            end
         | 
| 28 | 
            +
             | 
| 29 | 
            +
            begin
         | 
| 30 | 
            +
              require 'rcov/rcovtask'
         | 
| 31 | 
            +
              Rcov::RcovTask.new do |test|
         | 
| 32 | 
            +
                test.libs << 'test'
         | 
| 33 | 
            +
                test.pattern = 'test/**/test_*.rb'
         | 
| 34 | 
            +
                test.verbose = true
         | 
| 35 | 
            +
              end
         | 
| 36 | 
            +
            rescue LoadError
         | 
| 37 | 
            +
              task :rcov do
         | 
| 38 | 
            +
                abort "RCov is not available. In order to run rcov, you must: sudo gem install spicycode-rcov"
         | 
| 39 | 
            +
              end
         | 
| 40 | 
            +
            end
         | 
| 41 | 
            +
             | 
| 42 | 
            +
            task :test => :check_dependencies
         | 
| 43 | 
            +
             | 
| 44 | 
            +
            task :default => :test
         | 
| 45 | 
            +
             | 
| 46 | 
            +
            require 'rake/rdoctask'
         | 
| 47 | 
            +
            Rake::RDocTask.new do |rdoc|
         | 
| 48 | 
            +
              version = File.exist?('VERSION') ? File.read('VERSION') : ""
         | 
| 49 | 
            +
             | 
| 50 | 
            +
              rdoc.rdoc_dir = 'rdoc'
         | 
| 51 | 
            +
              rdoc.title = "html5 #{version}"
         | 
| 52 | 
            +
              rdoc.rdoc_files.include('README*')
         | 
| 53 | 
            +
              rdoc.rdoc_files.include('lib/**/*.rb')
         | 
| 54 | 
            +
            end
         | 
| 55 | 
            +
             | 
    
        data/htmlfive.gemspec
    ADDED
    
    | @@ -0,0 +1,52 @@ | |
| 1 | 
            +
            # Generated by jeweler
         | 
| 2 | 
            +
            # DO NOT EDIT THIS FILE DIRECTLY
         | 
| 3 | 
            +
            # Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
         | 
| 4 | 
            +
            # -*- encoding: utf-8 -*-
         | 
| 5 | 
            +
             | 
| 6 | 
            +
            Gem::Specification.new do |s|
         | 
| 7 | 
            +
              s.name = %q{htmlfive}
         | 
| 8 | 
            +
              s.version = "0.1"
         | 
| 9 | 
            +
             | 
| 10 | 
            +
              s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
         | 
| 11 | 
            +
              s.authors = ["Aleksandr Koss", "Edward Tsech"]
         | 
| 12 | 
            +
              s.date = %q{2009-12-01}
         | 
| 13 | 
            +
              s.description = %q{Useful helpers to create you HTML5 application today}
         | 
| 14 | 
            +
              s.email = %q{kossnocorp@gmail.com}
         | 
| 15 | 
            +
              s.extra_rdoc_files = [
         | 
| 16 | 
            +
                "README.textile"
         | 
| 17 | 
            +
              ]
         | 
| 18 | 
            +
              s.files = [
         | 
| 19 | 
            +
                ".document",
         | 
| 20 | 
            +
                 ".gitignore",
         | 
| 21 | 
            +
                 "README.textile",
         | 
| 22 | 
            +
                 "Rakefile",
         | 
| 23 | 
            +
                 "htmlfive.gemspec",
         | 
| 24 | 
            +
                 "init.rb",
         | 
| 25 | 
            +
                 "install.rb",
         | 
| 26 | 
            +
                 "lib/helpers/ie.rb",
         | 
| 27 | 
            +
                 "lib/htmlfive.rb",
         | 
| 28 | 
            +
                 "test/helper.rb",
         | 
| 29 | 
            +
                 "test/test_htmlfive.rb",
         | 
| 30 | 
            +
                 "uninstall.rb"
         | 
| 31 | 
            +
              ]
         | 
| 32 | 
            +
              s.homepage = %q{http://github.com/kossnocorp/htmlfive}
         | 
| 33 | 
            +
              s.rdoc_options = ["--charset=UTF-8"]
         | 
| 34 | 
            +
              s.require_paths = ["lib"]
         | 
| 35 | 
            +
              s.rubygems_version = %q{1.3.5}
         | 
| 36 | 
            +
              s.summary = %q{HTML5 today}
         | 
| 37 | 
            +
              s.test_files = [
         | 
| 38 | 
            +
                "test/test_htmlfive.rb",
         | 
| 39 | 
            +
                 "test/helper.rb"
         | 
| 40 | 
            +
              ]
         | 
| 41 | 
            +
             | 
| 42 | 
            +
              if s.respond_to? :specification_version then
         | 
| 43 | 
            +
                current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
         | 
| 44 | 
            +
                s.specification_version = 3
         | 
| 45 | 
            +
             | 
| 46 | 
            +
                if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
         | 
| 47 | 
            +
                else
         | 
| 48 | 
            +
                end
         | 
| 49 | 
            +
              else
         | 
| 50 | 
            +
              end
         | 
| 51 | 
            +
            end
         | 
| 52 | 
            +
             | 
    
        data/init.rb
    ADDED
    
    
    
        data/install.rb
    ADDED
    
    | @@ -0,0 +1 @@ | |
| 1 | 
            +
            # Install hook code here
         | 
    
        data/lib/helpers/ie.rb
    ADDED
    
    | @@ -0,0 +1,35 @@ | |
| 1 | 
            +
            module Htmlfive
         | 
| 2 | 
            +
                module Ie
         | 
| 3 | 
            +
                def self.included base
         | 
| 4 | 
            +
                  base.class_eval do
         | 
| 5 | 
            +
                    # Internet Explorer HTML5 elements initialization
         | 
| 6 | 
            +
             | 
| 7 | 
            +
                    def ie_add_elements
         | 
| 8 | 
            +
                      script = content_tag ('script', 
         | 
| 9 | 
            +
            <<EOF
         | 
| 10 | 
            +
            ce=document.createElement;
         | 
| 11 | 
            +
            es=['article', 'aside', 'audio', 
         | 
| 12 | 
            +
                          'canvas', 'command', 
         | 
| 13 | 
            +
                          'datalist', 'details', 'dialog', 
         | 
| 14 | 
            +
                          'embed', 
         | 
| 15 | 
            +
                          'figure', 'footer', 
         | 
| 16 | 
            +
                          'header', 'hgroup', 
         | 
| 17 | 
            +
                          'keygen',
         | 
| 18 | 
            +
                          'mark', 'meter', 
         | 
| 19 | 
            +
                          'nav', 
         | 
| 20 | 
            +
                          'output', 'progress', 
         | 
| 21 | 
            +
                          'rt', 'rp', 'ruby', 
         | 
| 22 | 
            +
                          'section', 'source', 
         | 
| 23 | 
            +
                          'time', 'video'];
         | 
| 24 | 
            +
                      for(i=0;i<es.length;i++) ce(es[i]);
         | 
| 25 | 
            +
            EOF
         | 
| 26 | 
            +
                      )
         | 
| 27 | 
            +
                      ie_comment = '<!--[if IE]>' + script + '<![endif]-->'
         | 
| 28 | 
            +
                    end
         | 
| 29 | 
            +
                  end
         | 
| 30 | 
            +
                end
         | 
| 31 | 
            +
              end
         | 
| 32 | 
            +
            end
         | 
| 33 | 
            +
             | 
| 34 | 
            +
            ActionView::Base.send :include, Htmlfive::Ie
         | 
| 35 | 
            +
             | 
    
        data/lib/htmlfive.rb
    ADDED
    
    
    
        data/test/helper.rb
    ADDED
    
    
    
        data/uninstall.rb
    ADDED
    
    | @@ -0,0 +1 @@ | |
| 1 | 
            +
            # Uninstall hook code here
         | 
    
        metadata
    ADDED
    
    | @@ -0,0 +1,68 @@ | |
| 1 | 
            +
            --- !ruby/object:Gem::Specification 
         | 
| 2 | 
            +
            name: htmlfive
         | 
| 3 | 
            +
            version: !ruby/object:Gem::Version 
         | 
| 4 | 
            +
              version: "0.1"
         | 
| 5 | 
            +
            platform: ruby
         | 
| 6 | 
            +
            authors: 
         | 
| 7 | 
            +
            - Aleksandr Koss
         | 
| 8 | 
            +
            - Edward Tsech
         | 
| 9 | 
            +
            autorequire: 
         | 
| 10 | 
            +
            bindir: bin
         | 
| 11 | 
            +
            cert_chain: []
         | 
| 12 | 
            +
             | 
| 13 | 
            +
            date: 2009-12-01 00:00:00 +06:00
         | 
| 14 | 
            +
            default_executable: 
         | 
| 15 | 
            +
            dependencies: []
         | 
| 16 | 
            +
             | 
| 17 | 
            +
            description: Useful helpers to create you HTML5 application today
         | 
| 18 | 
            +
            email: kossnocorp@gmail.com
         | 
| 19 | 
            +
            executables: []
         | 
| 20 | 
            +
             | 
| 21 | 
            +
            extensions: []
         | 
| 22 | 
            +
             | 
| 23 | 
            +
            extra_rdoc_files: 
         | 
| 24 | 
            +
            - README.textile
         | 
| 25 | 
            +
            files: 
         | 
| 26 | 
            +
            - .document
         | 
| 27 | 
            +
            - .gitignore
         | 
| 28 | 
            +
            - README.textile
         | 
| 29 | 
            +
            - Rakefile
         | 
| 30 | 
            +
            - htmlfive.gemspec
         | 
| 31 | 
            +
            - init.rb
         | 
| 32 | 
            +
            - install.rb
         | 
| 33 | 
            +
            - lib/helpers/ie.rb
         | 
| 34 | 
            +
            - lib/htmlfive.rb
         | 
| 35 | 
            +
            - test/helper.rb
         | 
| 36 | 
            +
            - test/test_htmlfive.rb
         | 
| 37 | 
            +
            - uninstall.rb
         | 
| 38 | 
            +
            has_rdoc: true
         | 
| 39 | 
            +
            homepage: http://github.com/kossnocorp/htmlfive
         | 
| 40 | 
            +
            licenses: []
         | 
| 41 | 
            +
             | 
| 42 | 
            +
            post_install_message: 
         | 
| 43 | 
            +
            rdoc_options: 
         | 
| 44 | 
            +
            - --charset=UTF-8
         | 
| 45 | 
            +
            require_paths: 
         | 
| 46 | 
            +
            - lib
         | 
| 47 | 
            +
            required_ruby_version: !ruby/object:Gem::Requirement 
         | 
| 48 | 
            +
              requirements: 
         | 
| 49 | 
            +
              - - ">="
         | 
| 50 | 
            +
                - !ruby/object:Gem::Version 
         | 
| 51 | 
            +
                  version: "0"
         | 
| 52 | 
            +
              version: 
         | 
| 53 | 
            +
            required_rubygems_version: !ruby/object:Gem::Requirement 
         | 
| 54 | 
            +
              requirements: 
         | 
| 55 | 
            +
              - - ">="
         | 
| 56 | 
            +
                - !ruby/object:Gem::Version 
         | 
| 57 | 
            +
                  version: "0"
         | 
| 58 | 
            +
              version: 
         | 
| 59 | 
            +
            requirements: []
         | 
| 60 | 
            +
             | 
| 61 | 
            +
            rubyforge_project: 
         | 
| 62 | 
            +
            rubygems_version: 1.3.5
         | 
| 63 | 
            +
            signing_key: 
         | 
| 64 | 
            +
            specification_version: 3
         | 
| 65 | 
            +
            summary: HTML5 today
         | 
| 66 | 
            +
            test_files: 
         | 
| 67 | 
            +
            - test/test_htmlfive.rb
         | 
| 68 | 
            +
            - test/helper.rb
         |