--- !ruby/object:Gem::Specification name: proc_for_case_equality version: !ruby/object:Gem::Version version: '0.1' prerelease: platform: ruby authors: - De Santis Maurizio autorequire: bindir: bin cert_chain: - ! '-----BEGIN CERTIFICATE----- MIIDRDCCAiygAwIBAgIBADANBgkqhkiG9w0BAQUFADBIMRowGAYDVQQDDBFkZXNh bnRpcy5tYXVyaXppbzEVMBMGCgmSJomT8ixkARkWBWdtYWlsMRMwEQYKCZImiZPy LGQBGRYDY29tMB4XDTExMDYzMDExMjIyOVoXDTEyMDYyOTExMjIyOVowSDEaMBgG A1UEAwwRZGVzYW50aXMubWF1cml6aW8xFTATBgoJkiaJk/IsZAEZFgVnbWFpbDET MBEGCgmSJomT8ixkARkWA2NvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoC ggEBANa1yrC8nNkg8hfVU5LNqgh6WwaXSh6tGPn6V0XtMIyMiHF1ess24NPQqPpl 43t4hWOEGrcfwmnQso1sJsK+TiQ29dyC9upfRz4H0BxzIUUQNQae2F1d2BfptnUg xPFPBhBztkpL9I6O1MeZn8zyCczqEHwV18dwbeLssxbJLloVEIpVQFvOI6DSZB1r v4T8EieG79jsS2pf2yK9gWuyTnxq27RlTQxHghC0Xnu79b8TrUkiJt8sbjgGP2Ax g08RtZP/owHzNWgLCT4exO68gEnRct/34ju0VL7zaG7TbA1cUFBWEtDR/YQw06+x LseG3fuRWZIuENeXUJFLUkLF/Z8CAwEAAaM5MDcwCQYDVR0TBAIwADAdBgNVHQ4E FgQUcbnTN20o+PJYFy32iMllDe8CuE0wCwYDVR0PBAQDAgSwMA0GCSqGSIb3DQEB BQUAA4IBAQBCkfsLuziCNp2uBRWwyr4b0/Yct172ftsAcgGQilVkaGx3VYu9G3WZ uxLoofO1c1pgvPqbjLAKq0EUqLxna54ILER6WVaPk70RtIQc2d3Rkj7CEpTI+veW ki7IL2OzjVD5Mxad5PEEyCLWrC5Ky2I8OqP8HfwnG0a19YfZRhxAH9XOkQX5HB3O t7xlgHGYIHKHfIFCo3UZfaqn354vtbetA0Omt52ZHjt88PsVG0rTrovNctkh61Vq 99PUQdKGcIRcEsw4zQN3XgwJEqRVV5F6gGQyUY2LIeyyf+58kuHL2UkpVJU7b+7d 1qFkvs/eJXM+w3TkQ2vaW9KFXQkIewZs -----END CERTIFICATE----- ' date: 2012-01-20 00:00:00.000000000 Z dependencies: [] description: proc_for_case_equality - For using procs in case comparisons email: desantis.maurizio@gmail.com executables: [] extensions: [] extra_rdoc_files: - CHANGELOG - LICENSE - README.rdoc - lib/proc_for_case_equality.rb - lib/proc_for_case_equality/pfce.rb files: - CHANGELOG - LICENSE - README.rdoc - Rakefile - lib/proc_for_case_equality.rb - lib/proc_for_case_equality/pfce.rb - spec/pfce_spec.rb - spec/proc_for_case_equality_spec.rb - spec/spec_helper.rb - Manifest - proc_for_case_equality.gemspec homepage: https://github.com/ProGNOMmers/proc_for_case_equality licenses: [] post_install_message: rdoc_options: - --line-numbers - --inline-source - --title - Proc_for_case_equality - --main - README.rdoc require_paths: - lib required_ruby_version: !ruby/object:Gem::Requirement none: false requirements: - - ! '>=' - !ruby/object:Gem::Version version: '0' required_rubygems_version: !ruby/object:Gem::Requirement none: false requirements: - - ! '>=' - !ruby/object:Gem::Version version: '1.2' requirements: [] rubyforge_project: proc_for_case_equality rubygems_version: 1.8.15 signing_key: specification_version: 3 summary: ! 'It lets you use procs for case comparisons. Example: all_multiples_of_3 = ProcForCaseEquality.new { |numbers| numbers.all? { |number| number.modulo(3).zero? } } any_multiple_of_3 = ProcForCaseEquality.new { |numbers| numbers.any? { |number| number.modulo(3).zero? } } case [1, 2, 3] when all_multiples_of_3 then puts ''all numbers are multiples of 3'' when any_multiple_of_3 then puts ''at least one number is multiple of 3'' else puts ''no multiples of 3'' end' test_files: []