itsniluntilyoushipit 0.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.
- checksums.yaml +7 -0
- data/.gitignore +17 -0
- data/.rspec +1 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +22 -0
- data/README.md +21 -0
- data/Rakefile +1 -0
- data/bin/is_it_nil +11 -0
- data/itsniluntilyoushipit.gemspec +24 -0
- data/lib/itsniluntilyoushipit/version.rb +3 -0
- data/lib/itsniluntilyoushipit.rb +9 -0
- data/spec/itsniluntilyoushipit/isitnil_spec.rb +14 -0
- data/spec/spec_helper.rb +13 -0
- metadata +103 -0
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA1:
|
|
3
|
+
metadata.gz: 07416908d10822dbb08d9d1199fa33efd37b897c
|
|
4
|
+
data.tar.gz: f1e690c99b3ee239912402973532819cd24e7684
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: 271b75dd8e024e5ab93aeea1b3efaefca2c5f0e4f3bd508650e926cb48853e7ea60a55b1f65bd7c5d653954592cf2b3259ff10abd8d74a88fbbefe0bd8aa8656
|
|
7
|
+
data.tar.gz: ba9e28579e2eefaa068a92d1bdf3c6eafeb82d278cfca6a2f48e733b4d337bcaec305825634eba56d71433b5927556f1cf2631bac29d4835fa9ea7f7ff22b3cd
|
data/.gitignore
ADDED
data/.rspec
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
--color
|
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
Copyright (c) 2013 José Tomás Albornoz
|
|
2
|
+
|
|
3
|
+
MIT License
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
6
|
+
a copy of this software and associated documentation files (the
|
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
|
11
|
+
the following conditions:
|
|
12
|
+
|
|
13
|
+
The above copyright notice and this permission notice shall be
|
|
14
|
+
included in all copies or substantial portions of the Software.
|
|
15
|
+
|
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# Itsniluntilyoushipit
|
|
2
|
+
|
|
3
|
+
I did this project to get the free t-shirt that the people from (Base)[https://getbase.com] were giving away as long as you commited to an open source project in (Railsberry)[http://railsberry.com] 2013, in Kraków.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
Install it yourself as:
|
|
8
|
+
|
|
9
|
+
$ gem install itsniluntilyoushipit
|
|
10
|
+
|
|
11
|
+
## Usage
|
|
12
|
+
|
|
13
|
+
$ is_it_nil
|
|
14
|
+
|
|
15
|
+
## Contributing
|
|
16
|
+
|
|
17
|
+
1. Fork it
|
|
18
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
|
19
|
+
3. Commit your changes (`git commit -am 'Add some feature'`)
|
|
20
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
|
21
|
+
5. Create new Pull Request
|
data/Rakefile
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require "bundler/gem_tasks"
|
data/bin/is_it_nil
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
#!/usr/bin/env ruby
|
|
2
|
+
require 'itsniluntilyoushipit'
|
|
3
|
+
puts "Has it been shipped?"
|
|
4
|
+
shipped = gets.strip.downcase[0]
|
|
5
|
+
is_it_nil_processor = Itsniluntilyoushipit::Isitnil.new
|
|
6
|
+
is_it_nil = is_it_nil_processor.is_it_nil?(:shipped => shipped)
|
|
7
|
+
if is_it_nil then
|
|
8
|
+
puts "your project it's nil :("
|
|
9
|
+
else
|
|
10
|
+
puts "yay! it's not nil, you shipped it!"
|
|
11
|
+
end
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
|
+
require 'itsniluntilyoushipit/version'
|
|
5
|
+
|
|
6
|
+
Gem::Specification.new do |spec|
|
|
7
|
+
spec.name = "itsniluntilyoushipit"
|
|
8
|
+
spec.version = Itsniluntilyoushipit::VERSION
|
|
9
|
+
spec.authors = ["José Tomás Albornoz"]
|
|
10
|
+
spec.email = ["jojo@eljojo.net"]
|
|
11
|
+
spec.description = %q{The only gem in the world that's capable of telling you if your project is nil or not}
|
|
12
|
+
spec.summary = %q{The only gem in the world that's capable of telling you if your project is nil or not}
|
|
13
|
+
spec.homepage = ""
|
|
14
|
+
spec.license = "MIT"
|
|
15
|
+
|
|
16
|
+
spec.files = `git ls-files`.split($/)
|
|
17
|
+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
|
18
|
+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
|
19
|
+
spec.require_paths = ["lib"]
|
|
20
|
+
|
|
21
|
+
spec.add_development_dependency "bundler", "~> 1.3"
|
|
22
|
+
spec.add_development_dependency "rake"
|
|
23
|
+
spec.add_development_dependency "rspec"
|
|
24
|
+
end
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
require 'spec_helper'
|
|
2
|
+
describe Itsniluntilyoushipit do
|
|
3
|
+
context Itsniluntilyoushipit::Isitnil do
|
|
4
|
+
before do
|
|
5
|
+
@is_it_nil = Itsniluntilyoushipit::Isitnil.new
|
|
6
|
+
end
|
|
7
|
+
it "returns true when it hasn't been shipped" do
|
|
8
|
+
@is_it_nil.is_it_nil?(:shipped => false).should == true
|
|
9
|
+
end
|
|
10
|
+
it "returns false when it has been shipped" do
|
|
11
|
+
@is_it_nil.is_it_nil?(:shipped => true).should == false
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
data/spec/spec_helper.rb
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
require 'itsniluntilyoushipit'
|
|
2
|
+
|
|
3
|
+
# http://stackoverflow.com/questions/1819614/how-do-i-globally-configure-rspec-to-keep-the-color-and-format-specdoc-o
|
|
4
|
+
RSpec.configure do |config|
|
|
5
|
+
# Use color in STDOUT
|
|
6
|
+
config.color_enabled = true
|
|
7
|
+
|
|
8
|
+
# Use color not only in STDOUT but also in pagers and files
|
|
9
|
+
config.tty = true
|
|
10
|
+
|
|
11
|
+
# Use the specified formatter
|
|
12
|
+
config.formatter = :documentation # :progress, :html, :textmate
|
|
13
|
+
end
|
metadata
ADDED
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: itsniluntilyoushipit
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 0.0.1
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- José Tomás Albornoz
|
|
8
|
+
autorequire:
|
|
9
|
+
bindir: bin
|
|
10
|
+
cert_chain: []
|
|
11
|
+
date: 2013-04-23 00:00:00.000000000 Z
|
|
12
|
+
dependencies:
|
|
13
|
+
- !ruby/object:Gem::Dependency
|
|
14
|
+
name: bundler
|
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
|
16
|
+
requirements:
|
|
17
|
+
- - ~>
|
|
18
|
+
- !ruby/object:Gem::Version
|
|
19
|
+
version: '1.3'
|
|
20
|
+
type: :development
|
|
21
|
+
prerelease: false
|
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
23
|
+
requirements:
|
|
24
|
+
- - ~>
|
|
25
|
+
- !ruby/object:Gem::Version
|
|
26
|
+
version: '1.3'
|
|
27
|
+
- !ruby/object:Gem::Dependency
|
|
28
|
+
name: rake
|
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
|
30
|
+
requirements:
|
|
31
|
+
- - '>='
|
|
32
|
+
- !ruby/object:Gem::Version
|
|
33
|
+
version: '0'
|
|
34
|
+
type: :development
|
|
35
|
+
prerelease: false
|
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
37
|
+
requirements:
|
|
38
|
+
- - '>='
|
|
39
|
+
- !ruby/object:Gem::Version
|
|
40
|
+
version: '0'
|
|
41
|
+
- !ruby/object:Gem::Dependency
|
|
42
|
+
name: rspec
|
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
|
44
|
+
requirements:
|
|
45
|
+
- - '>='
|
|
46
|
+
- !ruby/object:Gem::Version
|
|
47
|
+
version: '0'
|
|
48
|
+
type: :development
|
|
49
|
+
prerelease: false
|
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
51
|
+
requirements:
|
|
52
|
+
- - '>='
|
|
53
|
+
- !ruby/object:Gem::Version
|
|
54
|
+
version: '0'
|
|
55
|
+
description: The only gem in the world that's capable of telling you if your project
|
|
56
|
+
is nil or not
|
|
57
|
+
email:
|
|
58
|
+
- jojo@eljojo.net
|
|
59
|
+
executables:
|
|
60
|
+
- is_it_nil
|
|
61
|
+
extensions: []
|
|
62
|
+
extra_rdoc_files: []
|
|
63
|
+
files:
|
|
64
|
+
- .gitignore
|
|
65
|
+
- .rspec
|
|
66
|
+
- Gemfile
|
|
67
|
+
- LICENSE.txt
|
|
68
|
+
- README.md
|
|
69
|
+
- Rakefile
|
|
70
|
+
- bin/is_it_nil
|
|
71
|
+
- itsniluntilyoushipit.gemspec
|
|
72
|
+
- lib/itsniluntilyoushipit.rb
|
|
73
|
+
- lib/itsniluntilyoushipit/version.rb
|
|
74
|
+
- spec/itsniluntilyoushipit/isitnil_spec.rb
|
|
75
|
+
- spec/spec_helper.rb
|
|
76
|
+
homepage: ''
|
|
77
|
+
licenses:
|
|
78
|
+
- MIT
|
|
79
|
+
metadata: {}
|
|
80
|
+
post_install_message:
|
|
81
|
+
rdoc_options: []
|
|
82
|
+
require_paths:
|
|
83
|
+
- lib
|
|
84
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
85
|
+
requirements:
|
|
86
|
+
- - '>='
|
|
87
|
+
- !ruby/object:Gem::Version
|
|
88
|
+
version: '0'
|
|
89
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
90
|
+
requirements:
|
|
91
|
+
- - '>='
|
|
92
|
+
- !ruby/object:Gem::Version
|
|
93
|
+
version: '0'
|
|
94
|
+
requirements: []
|
|
95
|
+
rubyforge_project:
|
|
96
|
+
rubygems_version: 2.0.0
|
|
97
|
+
signing_key:
|
|
98
|
+
specification_version: 4
|
|
99
|
+
summary: The only gem in the world that's capable of telling you if your project is
|
|
100
|
+
nil or not
|
|
101
|
+
test_files:
|
|
102
|
+
- spec/itsniluntilyoushipit/isitnil_spec.rb
|
|
103
|
+
- spec/spec_helper.rb
|