fastandand 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,3 @@
1
+ pkg/*
2
+ *.gem
3
+ .bundle
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source :gemcutter
2
+
3
+ # Specify your gem's dependencies in fastandand.gemspec
4
+ gemspec
@@ -0,0 +1,2 @@
1
+ require 'bundler'
2
+ Bundler::GemHelper.install_tasks
@@ -0,0 +1,22 @@
1
+ # -*- encoding: utf-8 -*-
2
+ require File.expand_path("../lib/fastandand/version", __FILE__)
3
+
4
+ Gem::Specification.new do |s|
5
+ s.name = "fastandand"
6
+ s.version = Fastandand::VERSION
7
+ s.platform = Gem::Platform::RUBY
8
+ s.authors = ["Burke Libbey"]
9
+ s.email = ["burke@burkelibbey.org"]
10
+ s.homepage = "http://rubygems.org/gems/fastandand"
11
+ s.summary = "Implements the basic case use of AndAnd (nicer API for #try). Is fast."
12
+ s.description = "Implements the basic case use of AndAnd (nicer API for #try). Is fast."
13
+
14
+ s.required_rubygems_version = ">= 1.3.6"
15
+ s.rubyforge_project = "fastandand"
16
+
17
+ s.add_development_dependency "bundler", ">= 1.0.0"
18
+
19
+ s.files = `git ls-files`.split("\n")
20
+ s.executables = `git ls-files`.split("\n").map{|f| f =~ /^bin\/(.*)/ ? $1 : nil}.compact
21
+ s.require_path = 'lib'
22
+ end
@@ -0,0 +1,13 @@
1
+ class NilClass
2
+ NILAND = lambda { x = Object.new; def x.method_missing(sym); nil end; x }[]
3
+ def andand
4
+ NILAND
5
+ end
6
+ end
7
+
8
+ class Object
9
+ def andand
10
+ self
11
+ end
12
+ end
13
+
@@ -0,0 +1,3 @@
1
+ module Fastandand
2
+ VERSION = "1.0.0"
3
+ end
metadata ADDED
@@ -0,0 +1,90 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: fastandand
3
+ version: !ruby/object:Gem::Version
4
+ hash: 23
5
+ prerelease: false
6
+ segments:
7
+ - 1
8
+ - 0
9
+ - 0
10
+ version: 1.0.0
11
+ platform: ruby
12
+ authors:
13
+ - Burke Libbey
14
+ autorequire:
15
+ bindir: bin
16
+ cert_chain: []
17
+
18
+ date: 2010-10-13 00:00:00 -05:00
19
+ default_executable:
20
+ dependencies:
21
+ - !ruby/object:Gem::Dependency
22
+ name: bundler
23
+ prerelease: false
24
+ requirement: &id001 !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ hash: 23
30
+ segments:
31
+ - 1
32
+ - 0
33
+ - 0
34
+ version: 1.0.0
35
+ type: :development
36
+ version_requirements: *id001
37
+ description: "Implements the basic case use of AndAnd (nicer API for #try). Is fast."
38
+ email:
39
+ - burke@burkelibbey.org
40
+ executables: []
41
+
42
+ extensions: []
43
+
44
+ extra_rdoc_files: []
45
+
46
+ files:
47
+ - .gitignore
48
+ - Gemfile
49
+ - Rakefile
50
+ - fastandand.gemspec
51
+ - lib/fastandand.rb
52
+ - lib/fastandand/version.rb
53
+ has_rdoc: true
54
+ homepage: http://rubygems.org/gems/fastandand
55
+ licenses: []
56
+
57
+ post_install_message:
58
+ rdoc_options: []
59
+
60
+ require_paths:
61
+ - lib
62
+ required_ruby_version: !ruby/object:Gem::Requirement
63
+ none: false
64
+ requirements:
65
+ - - ">="
66
+ - !ruby/object:Gem::Version
67
+ hash: 3
68
+ segments:
69
+ - 0
70
+ version: "0"
71
+ required_rubygems_version: !ruby/object:Gem::Requirement
72
+ none: false
73
+ requirements:
74
+ - - ">="
75
+ - !ruby/object:Gem::Version
76
+ hash: 23
77
+ segments:
78
+ - 1
79
+ - 3
80
+ - 6
81
+ version: 1.3.6
82
+ requirements: []
83
+
84
+ rubyforge_project: fastandand
85
+ rubygems_version: 1.3.7
86
+ signing_key:
87
+ specification_version: 3
88
+ summary: "Implements the basic case use of AndAnd (nicer API for #try). Is fast."
89
+ test_files: []
90
+