multipass 1.1.3 → 1.1.4
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/.gitignore +1 -0
- data/Rakefile +57 -0
- data/VERSION.yml +3 -2
- data/lib/multipass.rb +3 -1
- data/multipass.gemspec +50 -0
- metadata +10 -8
    
        data/.gitignore
    ADDED
    
    | @@ -0,0 +1 @@ | |
| 1 | 
            +
            .rake_tasks
         | 
    
        data/Rakefile
    ADDED
    
    | @@ -0,0 +1,57 @@ | |
| 1 | 
            +
            require 'rubygems'
         | 
| 2 | 
            +
            require 'rake'
         | 
| 3 | 
            +
             | 
| 4 | 
            +
            begin
         | 
| 5 | 
            +
              require 'jeweler'
         | 
| 6 | 
            +
              Jeweler::Tasks.new do |gem|
         | 
| 7 | 
            +
                gem.name = "multipass"
         | 
| 8 | 
            +
                gem.summary = 'Bare bones implementation of encoding and decoding MultiPass values for SSO.'
         | 
| 9 | 
            +
                gem.email = "technoweenie@gmail.com"
         | 
| 10 | 
            +
                gem.homepage = "http://github.com/entp/multipass"
         | 
| 11 | 
            +
                gem.authors = ["rick"]
         | 
| 12 | 
            +
                gem.add_dependency 'ezcrypto'
         | 
| 13 | 
            +
             | 
| 14 | 
            +
                # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
         | 
| 15 | 
            +
              end
         | 
| 16 | 
            +
            rescue LoadError
         | 
| 17 | 
            +
              puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
         | 
| 18 | 
            +
            end
         | 
| 19 | 
            +
             | 
| 20 | 
            +
            require 'rake/testtask'
         | 
| 21 | 
            +
            Rake::TestTask.new(:test) do |test|
         | 
| 22 | 
            +
              test.libs << 'lib' << 'test'
         | 
| 23 | 
            +
              test.pattern = 'test/**/*_test.rb'
         | 
| 24 | 
            +
              test.verbose = false
         | 
| 25 | 
            +
            end
         | 
| 26 | 
            +
             | 
| 27 | 
            +
            begin
         | 
| 28 | 
            +
              require 'rcov/rcovtask'
         | 
| 29 | 
            +
              Rcov::RcovTask.new do |test|
         | 
| 30 | 
            +
                test.libs << 'test'
         | 
| 31 | 
            +
                test.pattern = 'test/**/*_test.rb'
         | 
| 32 | 
            +
                test.verbose = true
         | 
| 33 | 
            +
              end
         | 
| 34 | 
            +
            rescue LoadError
         | 
| 35 | 
            +
              task :rcov do
         | 
| 36 | 
            +
                abort "RCov is not available. In order to run rcov, you must: sudo gem install spicycode-rcov"
         | 
| 37 | 
            +
              end
         | 
| 38 | 
            +
            end
         | 
| 39 | 
            +
             | 
| 40 | 
            +
             | 
| 41 | 
            +
            task :default => :test
         | 
| 42 | 
            +
             | 
| 43 | 
            +
            require 'rake/rdoctask'
         | 
| 44 | 
            +
            Rake::RDocTask.new do |rdoc|
         | 
| 45 | 
            +
              if File.exist?('VERSION.yml')
         | 
| 46 | 
            +
                config = YAML.load(File.read('VERSION.yml'))
         | 
| 47 | 
            +
                version = "#{config[:major]}.#{config[:minor]}.#{config[:patch]}"
         | 
| 48 | 
            +
              else
         | 
| 49 | 
            +
                version = ""
         | 
| 50 | 
            +
              end
         | 
| 51 | 
            +
             | 
| 52 | 
            +
              rdoc.rdoc_dir = 'rdoc'
         | 
| 53 | 
            +
              rdoc.title = "multipass #{version}"
         | 
| 54 | 
            +
              rdoc.rdoc_files.include('README*')
         | 
| 55 | 
            +
              rdoc.rdoc_files.include('lib/**/*.rb')
         | 
| 56 | 
            +
            end
         | 
| 57 | 
            +
             | 
    
        data/VERSION.yml
    CHANGED
    
    
    
        data/lib/multipass.rb
    CHANGED
    
    | @@ -72,10 +72,12 @@ class MultiPass | |
| 72 72 | 
             
                end
         | 
| 73 73 |  | 
| 74 74 | 
             
                options
         | 
| 75 | 
            -
              rescue  | 
| 75 | 
            +
              rescue CipherError
         | 
| 76 76 | 
             
                raise MultiPass::DecryptError
         | 
| 77 77 | 
             
              end
         | 
| 78 78 |  | 
| 79 | 
            +
              CipherError = OpenSSL.const_defined?(:CipherError) ? OpenSSL::CipherError : OpenSSL::Cipher::CipherError
         | 
| 80 | 
            +
             | 
| 79 81 | 
             
            private
         | 
| 80 82 | 
             
              if Object.const_defined?(:ActiveSupport)
         | 
| 81 83 | 
             
                def decode_json(s)
         | 
    
        data/multipass.gemspec
    ADDED
    
    | @@ -0,0 +1,50 @@ | |
| 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{multipass}
         | 
| 8 | 
            +
              s.version = "1.1.4"
         | 
| 9 | 
            +
             | 
| 10 | 
            +
              s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
         | 
| 11 | 
            +
              s.authors = ["rick"]
         | 
| 12 | 
            +
              s.date = %q{2009-12-17}
         | 
| 13 | 
            +
              s.email = %q{technoweenie@gmail.com}
         | 
| 14 | 
            +
              s.extra_rdoc_files = [
         | 
| 15 | 
            +
                "LICENSE",
         | 
| 16 | 
            +
                 "README"
         | 
| 17 | 
            +
              ]
         | 
| 18 | 
            +
              s.files = [
         | 
| 19 | 
            +
                ".gitignore",
         | 
| 20 | 
            +
                 "LICENSE",
         | 
| 21 | 
            +
                 "README",
         | 
| 22 | 
            +
                 "Rakefile",
         | 
| 23 | 
            +
                 "VERSION.yml",
         | 
| 24 | 
            +
                 "lib/multipass.rb",
         | 
| 25 | 
            +
                 "multipass.gemspec",
         | 
| 26 | 
            +
                 "test/multipass_test.rb"
         | 
| 27 | 
            +
              ]
         | 
| 28 | 
            +
              s.homepage = %q{http://github.com/entp/multipass}
         | 
| 29 | 
            +
              s.rdoc_options = ["--charset=UTF-8"]
         | 
| 30 | 
            +
              s.require_paths = ["lib"]
         | 
| 31 | 
            +
              s.rubygems_version = %q{1.3.5}
         | 
| 32 | 
            +
              s.summary = %q{Bare bones implementation of encoding and decoding MultiPass values for SSO.}
         | 
| 33 | 
            +
              s.test_files = [
         | 
| 34 | 
            +
                "test/multipass_test.rb"
         | 
| 35 | 
            +
              ]
         | 
| 36 | 
            +
             | 
| 37 | 
            +
              if s.respond_to? :specification_version then
         | 
| 38 | 
            +
                current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
         | 
| 39 | 
            +
                s.specification_version = 3
         | 
| 40 | 
            +
             | 
| 41 | 
            +
                if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
         | 
| 42 | 
            +
                  s.add_runtime_dependency(%q<ezcrypto>, [">= 0"])
         | 
| 43 | 
            +
                else
         | 
| 44 | 
            +
                  s.add_dependency(%q<ezcrypto>, [">= 0"])
         | 
| 45 | 
            +
                end
         | 
| 46 | 
            +
              else
         | 
| 47 | 
            +
                s.add_dependency(%q<ezcrypto>, [">= 0"])
         | 
| 48 | 
            +
              end
         | 
| 49 | 
            +
            end
         | 
| 50 | 
            +
             | 
    
        metadata
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification 
         | 
| 2 2 | 
             
            name: multipass
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version 
         | 
| 4 | 
            -
              version: 1.1. | 
| 4 | 
            +
              version: 1.1.4
         | 
| 5 5 | 
             
            platform: ruby
         | 
| 6 6 | 
             
            authors: 
         | 
| 7 7 | 
             
            - rick
         | 
| @@ -9,7 +9,7 @@ autorequire: | |
| 9 9 | 
             
            bindir: bin
         | 
| 10 10 | 
             
            cert_chain: []
         | 
| 11 11 |  | 
| 12 | 
            -
            date: 2009- | 
| 12 | 
            +
            date: 2009-12-17 00:00:00 -08:00
         | 
| 13 13 | 
             
            default_executable: 
         | 
| 14 14 | 
             
            dependencies: 
         | 
| 15 15 | 
             
            - !ruby/object:Gem::Dependency 
         | 
| @@ -29,21 +29,23 @@ executables: [] | |
| 29 29 | 
             
            extensions: []
         | 
| 30 30 |  | 
| 31 31 | 
             
            extra_rdoc_files: 
         | 
| 32 | 
            -
            - README
         | 
| 33 32 | 
             
            - LICENSE
         | 
| 33 | 
            +
            - README
         | 
| 34 34 | 
             
            files: 
         | 
| 35 | 
            +
            - .gitignore
         | 
| 36 | 
            +
            - LICENSE
         | 
| 37 | 
            +
            - README
         | 
| 38 | 
            +
            - Rakefile
         | 
| 35 39 | 
             
            - VERSION.yml
         | 
| 36 40 | 
             
            - lib/multipass.rb
         | 
| 41 | 
            +
            - multipass.gemspec
         | 
| 37 42 | 
             
            - test/multipass_test.rb
         | 
| 38 | 
            -
            - README
         | 
| 39 | 
            -
            - LICENSE
         | 
| 40 43 | 
             
            has_rdoc: true
         | 
| 41 44 | 
             
            homepage: http://github.com/entp/multipass
         | 
| 42 45 | 
             
            licenses: []
         | 
| 43 46 |  | 
| 44 47 | 
             
            post_install_message: 
         | 
| 45 48 | 
             
            rdoc_options: 
         | 
| 46 | 
            -
            - --inline-source
         | 
| 47 49 | 
             
            - --charset=UTF-8
         | 
| 48 50 | 
             
            require_paths: 
         | 
| 49 51 | 
             
            - lib
         | 
| @@ -66,5 +68,5 @@ rubygems_version: 1.3.5 | |
| 66 68 | 
             
            signing_key: 
         | 
| 67 69 | 
             
            specification_version: 3
         | 
| 68 70 | 
             
            summary: Bare bones implementation of encoding and decoding MultiPass values for SSO.
         | 
| 69 | 
            -
            test_files:  | 
| 70 | 
            -
             | 
| 71 | 
            +
            test_files: 
         | 
| 72 | 
            +
            - test/multipass_test.rb
         |