aprilfool 0.0.1.1

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of aprilfool might be problematic. Click here for more details.

data/.gitignore ADDED
@@ -0,0 +1,37 @@
1
+ *.gem
2
+ *.rbc
3
+ .bundle
4
+ .config
5
+ .ruby-version
6
+ coverage
7
+ coverage.data
8
+ InstalledFiles
9
+ lib/bundler/man
10
+ pkg
11
+ rdoc
12
+ spec/reports
13
+ test/tmp
14
+ test/version_tmp
15
+ tmp
16
+
17
+ # bundler
18
+ vendor/
19
+
20
+ # YARD artifacts
21
+ .yardoc
22
+ _yardoc
23
+ doc/
24
+
25
+ # tmp-old
26
+ .old
27
+
28
+ # editor
29
+ *~
30
+ .redcar
31
+
32
+ # other
33
+ *.lock
34
+ *.bak
35
+ tool/
36
+ *\#*
37
+ .rbx/
data/.travis.yml ADDED
@@ -0,0 +1,17 @@
1
+ language: ruby
2
+ rvm:
3
+ - ruby-head
4
+ - 2.0.0
5
+ - 1.9.3
6
+ - 1.9.2
7
+ - rbx-19mode
8
+ - jruby-head
9
+ - jruby-19mode
10
+ matrix:
11
+ allow_failures:
12
+ - rvm: ruby-head
13
+ - rvm: rbx-19mode
14
+ - rvm: jruby-head
15
+ - rvm: jruby-19mode
16
+ before_install:
17
+ - gem install bundler
data/Gemfile ADDED
@@ -0,0 +1,11 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gemspec
4
+
5
+ group :development do
6
+ gem 'rake'
7
+ end
8
+
9
+ group :test do
10
+ gem 'rake'
11
+ end
data/README.md ADDED
@@ -0,0 +1,50 @@
1
+ aprilfool
2
+ =============
3
+
4
+ [![Build Status](https://secure.travis-ci.org/kachick/aprilfool.png)](http://travis-ci.org/kachick/aprilfool)
5
+ [![Gem Version](https://badge.fury.io/rb/aprilfool.png)](http://badge.fury.io/rb/aprilfool)
6
+
7
+ Description
8
+ -----------
9
+
10
+ A joke gem
11
+
12
+ Features
13
+ --------
14
+
15
+ * :)
16
+
17
+ Usage
18
+ -----
19
+
20
+ ```ruby
21
+ require 'aprilfool'
22
+
23
+ p foobar
24
+ ```
25
+
26
+ Requirements
27
+ -------------
28
+
29
+ * [Ruby 1.9.2 or later](http://travis-ci.org/#!/kachick/aprilfool)
30
+
31
+ Install
32
+ -------
33
+
34
+ ```bash
35
+ $ gem install aprilfool
36
+ ```
37
+
38
+ Link
39
+ ----
40
+
41
+ * [code](https://github.com/kachick/aprilfool)
42
+ * [issues](https://github.com/kachick/aprilfool/issues)
43
+ * [CI](http://travis-ci.org/#!/kachick/aprilfool)
44
+ * [gem](https://rubygems.org/gems/aprilfool)
45
+
46
+ License
47
+ --------
48
+
49
+ WTFPL v2
50
+ See WTFPL-LICENSE for further details
data/Rakefile ADDED
@@ -0,0 +1,11 @@
1
+ #!/usr/bin/env rake
2
+ require 'bundler/gem_tasks'
3
+
4
+ require 'rspec/core/rake_task'
5
+
6
+ task default: [:spec]
7
+
8
+ RSpec::Core::RakeTask.new(:spec) do |t|
9
+ t.pattern = 'spec/**/*_spec.rb'
10
+ t.ruby_opts = %w[-w]
11
+ end
data/WTFPL-LICENSE ADDED
@@ -0,0 +1,13 @@
1
+ DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
2
+ Version 2, December 2004
3
+
4
+ Copyright (C) 2012 Kenichi Kamiya
5
+
6
+ Everyone is permitted to copy and distribute verbatim or modified
7
+ copies of this license document, and changing it is allowed as long
8
+ as the name is changed.
9
+
10
+ DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
11
+ TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
12
+
13
+ 0. You just DO WHAT THE FUCK YOU WANT TO.
data/aprilfool.gemspec ADDED
@@ -0,0 +1,21 @@
1
+ Gem::Specification.new do |gem|
2
+ gem.authors = ['Kenichi Kamiya']
3
+ gem.email = ['kachick1+ruby@gmail.com']
4
+ gem.description = %q{A joke gem.}
5
+ gem.summary = gem.description.dup
6
+ gem.homepage = 'https://github.com/kachick/aprilfool'
7
+
8
+ gem.files = `git ls-files`.split($\)
9
+ gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
10
+ gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
11
+ gem.name = 'aprilfool'
12
+ gem.require_paths = ['lib']
13
+ gem.version = '0.0.1.1'
14
+
15
+ gem.required_ruby_version = '>= 1.9.2'
16
+
17
+ gem.add_development_dependency 'yard', '>= 0.8.5.2', '< 2'
18
+ gem.add_development_dependency 'rspec', '>= 2.13', '< 3'
19
+ gem.add_development_dependency 'rake', '>= 10', '< 20'
20
+ gem.add_development_dependency 'bundler', '>= 1.3.0', '< 2'
21
+ end
data/example.rb ADDED
@@ -0,0 +1,3 @@
1
+ require_relative 'lib/aprilfool'
2
+
3
+ p [7, '7', :'7']
data/lib/aprilfool.rb ADDED
@@ -0,0 +1,22 @@
1
+ # Copyright (C) 2012 Kenichi Kamiya
2
+ # apilfool - A joke library.
3
+
4
+ # This program is free software. It comes without any warranty, to
5
+ # the extent permitted by applicable law. You can redistribute it
6
+ # and/or modify it under the terms of the Do What The Fuck You Want
7
+ # To Public License, Version 2, as published by Sam Hocevar. See
8
+ # http://sam.zoy.org/wtfpl/COPYING for more details.
9
+
10
+ require_relative 'time/aprilfool'
11
+
12
+ if Time.now.aprilfool?
13
+ module Kernel
14
+ def p(*args)
15
+ args.each do |arg|
16
+ puts "Not #{arg.inspect} ;)"
17
+ end
18
+ end
19
+ end
20
+ else
21
+ $stderr.puts 'WARN: Get back to your normal life. o_0'
22
+ end
@@ -0,0 +1,7 @@
1
+ class Time
2
+
3
+ def aprilfool?
4
+ (month == 4) && (day == 1)
5
+ end
6
+
7
+ end
@@ -0,0 +1,17 @@
1
+ require_relative 'helper'
2
+
3
+ describe "aprilfool" do
4
+ context Time do
5
+ context "#aprilfool" do
6
+ it "returns true when the current date is 4/1" do
7
+ expect(Time.local(2013, 4, 1).aprilfool?).to equal(true)
8
+ end
9
+
10
+ it "returns false when the current date is not 4/1" do
11
+ expect(Time.local(2013, 3, 31).aprilfool?).to equal(false)
12
+ expect(Time.local(2013, 4, 2).aprilfool?).to equal(false)
13
+ expect(Time.local(2013, 5, 1).aprilfool?).to equal(false)
14
+ end
15
+ end
16
+ end
17
+ end
data/spec/helper.rb ADDED
@@ -0,0 +1,4 @@
1
+ require 'rspec'
2
+ require 'stringio'
3
+
4
+ require_relative '../lib/aprilfool'
metadata ADDED
@@ -0,0 +1,148 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: aprilfool
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1.1
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Kenichi Kamiya
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2013-04-01 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: yard
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: 0.8.5.2
22
+ - - <
23
+ - !ruby/object:Gem::Version
24
+ version: '2'
25
+ type: :development
26
+ prerelease: false
27
+ version_requirements: !ruby/object:Gem::Requirement
28
+ none: false
29
+ requirements:
30
+ - - ! '>='
31
+ - !ruby/object:Gem::Version
32
+ version: 0.8.5.2
33
+ - - <
34
+ - !ruby/object:Gem::Version
35
+ version: '2'
36
+ - !ruby/object:Gem::Dependency
37
+ name: rspec
38
+ requirement: !ruby/object:Gem::Requirement
39
+ none: false
40
+ requirements:
41
+ - - ! '>='
42
+ - !ruby/object:Gem::Version
43
+ version: '2.13'
44
+ - - <
45
+ - !ruby/object:Gem::Version
46
+ version: '3'
47
+ type: :development
48
+ prerelease: false
49
+ version_requirements: !ruby/object:Gem::Requirement
50
+ none: false
51
+ requirements:
52
+ - - ! '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '2.13'
55
+ - - <
56
+ - !ruby/object:Gem::Version
57
+ version: '3'
58
+ - !ruby/object:Gem::Dependency
59
+ name: rake
60
+ requirement: !ruby/object:Gem::Requirement
61
+ none: false
62
+ requirements:
63
+ - - ! '>='
64
+ - !ruby/object:Gem::Version
65
+ version: '10'
66
+ - - <
67
+ - !ruby/object:Gem::Version
68
+ version: '20'
69
+ type: :development
70
+ prerelease: false
71
+ version_requirements: !ruby/object:Gem::Requirement
72
+ none: false
73
+ requirements:
74
+ - - ! '>='
75
+ - !ruby/object:Gem::Version
76
+ version: '10'
77
+ - - <
78
+ - !ruby/object:Gem::Version
79
+ version: '20'
80
+ - !ruby/object:Gem::Dependency
81
+ name: bundler
82
+ requirement: !ruby/object:Gem::Requirement
83
+ none: false
84
+ requirements:
85
+ - - ! '>='
86
+ - !ruby/object:Gem::Version
87
+ version: 1.3.0
88
+ - - <
89
+ - !ruby/object:Gem::Version
90
+ version: '2'
91
+ type: :development
92
+ prerelease: false
93
+ version_requirements: !ruby/object:Gem::Requirement
94
+ none: false
95
+ requirements:
96
+ - - ! '>='
97
+ - !ruby/object:Gem::Version
98
+ version: 1.3.0
99
+ - - <
100
+ - !ruby/object:Gem::Version
101
+ version: '2'
102
+ description: A joke gem.
103
+ email:
104
+ - kachick1+ruby@gmail.com
105
+ executables: []
106
+ extensions: []
107
+ extra_rdoc_files: []
108
+ files:
109
+ - .gitignore
110
+ - .travis.yml
111
+ - Gemfile
112
+ - README.md
113
+ - Rakefile
114
+ - WTFPL-LICENSE
115
+ - aprilfool.gemspec
116
+ - example.rb
117
+ - lib/aprilfool.rb
118
+ - lib/time/aprilfool.rb
119
+ - spec/aprilfool_spec.rb
120
+ - spec/helper.rb
121
+ homepage: https://github.com/kachick/aprilfool
122
+ licenses: []
123
+ post_install_message:
124
+ rdoc_options: []
125
+ require_paths:
126
+ - lib
127
+ required_ruby_version: !ruby/object:Gem::Requirement
128
+ none: false
129
+ requirements:
130
+ - - ! '>='
131
+ - !ruby/object:Gem::Version
132
+ version: 1.9.2
133
+ required_rubygems_version: !ruby/object:Gem::Requirement
134
+ none: false
135
+ requirements:
136
+ - - ! '>='
137
+ - !ruby/object:Gem::Version
138
+ version: '0'
139
+ requirements: []
140
+ rubyforge_project:
141
+ rubygems_version: 1.8.23
142
+ signing_key:
143
+ specification_version: 3
144
+ summary: A joke gem.
145
+ test_files:
146
+ - spec/aprilfool_spec.rb
147
+ - spec/helper.rb
148
+ has_rdoc: