like_a_boss 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.
@@ -0,0 +1,3 @@
1
+ pkg/*
2
+ *.gem
3
+ .bundle
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source "http://rubygems.org"
2
+
3
+ # Specify your gem's dependencies in like_a_boss.gemspec
4
+ gemspec
@@ -0,0 +1,45 @@
1
+ h1. Like a Boss
2
+
3
+ Have you ever wanted to code like a boss? Now you can...
4
+
5
+ "http://www.youtube.com/watch?v=NisCkxU544c":http://www.youtube.com/watch?v=NisCkxU544c (cant embed Youtube videos in READMEs)
6
+
7
+
8
+ h2. Examples
9
+
10
+ <pre><code>
11
+ # Okay, so take us through a day in the life of the boss...
12
+
13
+ the_first_thing_I_do_is = [
14
+ 'Talk to to corporate'.like_a_boss,
15
+ 'Approve memos'.like_a_boss,
16
+ 'Lead a workshop'.like_a_boss,
17
+ 'Remember birthdays'.like_a_boss,
18
+ 'Direct workflow'.like_a_boss
19
+ ]
20
+
21
+ # If you're worried that your code wont work just run it like_a_boss! and no one will second guess it!
22
+ i_can_continue = false
23
+
24
+ if i_can_continue.like_a_boss!
25
+ puts "I just continued!".like_a_boss
26
+ end
27
+ # => 'I just continued!'
28
+
29
+ # Want to do math like a boss?
30
+
31
+ puts (1+1).like_a_boss
32
+
33
+ </code></pre>
34
+
35
+ h3. Want to test like a boss?
36
+
37
+ <pre><code>
38
+ describe Item do
39
+ context "when you're the boss" do
40
+ it 'should be nil like a boss' do
41
+ nil.should be_nil.like_a_boss
42
+ end
43
+ end
44
+ end
45
+ </code></pre>
@@ -0,0 +1,2 @@
1
+ require 'bundler'
2
+ Bundler::GemHelper.install_tasks
data/init.rb ADDED
@@ -0,0 +1 @@
1
+ require 'like_a_boss'
@@ -0,0 +1,13 @@
1
+ module LikeABoss
2
+ def like_a_boss
3
+ self
4
+ end
5
+
6
+ def like_a_boss!
7
+ true
8
+ end
9
+ end
10
+
11
+ class Object
12
+ include LikeABoss
13
+ end
@@ -0,0 +1,3 @@
1
+ module LikeABoss
2
+ VERSION = "0.0.1"
3
+ end
@@ -0,0 +1,22 @@
1
+ # -*- encoding: utf-8 -*-
2
+ $:.push File.expand_path("../lib", __FILE__)
3
+ require "like_a_boss/version"
4
+
5
+ Gem::Specification.new do |s|
6
+ s.name = "like_a_boss"
7
+ s.version = LikeABoss::VERSION
8
+ s.platform = Gem::Platform::RUBY
9
+ s.authors = ["Dane Harrigan"]
10
+ s.email = ["dane.harrigan@gmail.com"]
11
+ s.homepage = ""
12
+ s.summary = %q{Want to code like a boss? Now you can.}
13
+ s.description = %q{The only gem you need if you want to write Ruby like a boss.}
14
+
15
+ s.rubyforge_project = "like_a_boss"
16
+ s.add_development_dependency 'rspec', '~> 2.3.0'
17
+
18
+ s.files = `git ls-files`.split("\n")
19
+ s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
20
+ s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
21
+ s.require_paths = ["lib"]
22
+ end
@@ -0,0 +1,24 @@
1
+ require 'spec_helper'
2
+
3
+ describe LikeABoss do
4
+ describe '#like_a_boss' do
5
+ it 'can add like a boss' do
6
+ (1 + 2).should == 3.like_a_boss
7
+ end
8
+
9
+ it 'can be nil like a boss' do
10
+ nil.should be_nil.like_a_boss
11
+ end
12
+
13
+ it 'can assign values like a boss' do
14
+ value = 'Foo'.like_a_boss
15
+ value.should == 'Foo'
16
+ end
17
+ end
18
+
19
+ describe '#like_a_boss!' do
20
+ it 'is always true even if its false, like a boss' do
21
+ false.like_a_boss!.should == true
22
+ end
23
+ end
24
+ end
@@ -0,0 +1 @@
1
+ require 'like_a_boss'
metadata ADDED
@@ -0,0 +1,89 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: like_a_boss
3
+ version: !ruby/object:Gem::Version
4
+ prerelease: false
5
+ segments:
6
+ - 0
7
+ - 0
8
+ - 1
9
+ version: 0.0.1
10
+ platform: ruby
11
+ authors:
12
+ - Dane Harrigan
13
+ autorequire:
14
+ bindir: bin
15
+ cert_chain: []
16
+
17
+ date: 2011-01-08 00:00:00 -05:00
18
+ default_executable:
19
+ dependencies:
20
+ - !ruby/object:Gem::Dependency
21
+ name: rspec
22
+ prerelease: false
23
+ requirement: &id001 !ruby/object:Gem::Requirement
24
+ none: false
25
+ requirements:
26
+ - - ~>
27
+ - !ruby/object:Gem::Version
28
+ segments:
29
+ - 2
30
+ - 3
31
+ - 0
32
+ version: 2.3.0
33
+ type: :development
34
+ version_requirements: *id001
35
+ description: The only gem you need if you want to write Ruby like a boss.
36
+ email:
37
+ - dane.harrigan@gmail.com
38
+ executables: []
39
+
40
+ extensions: []
41
+
42
+ extra_rdoc_files: []
43
+
44
+ files:
45
+ - .gitignore
46
+ - Gemfile
47
+ - README.textile
48
+ - Rakefile
49
+ - init.rb
50
+ - lib/like_a_boss.rb
51
+ - lib/like_a_boss/version.rb
52
+ - like_a_boss.gemspec
53
+ - spec/like_a_boss_spec.rb
54
+ - spec/spec_helper.rb
55
+ has_rdoc: true
56
+ homepage: ""
57
+ licenses: []
58
+
59
+ post_install_message:
60
+ rdoc_options: []
61
+
62
+ require_paths:
63
+ - lib
64
+ required_ruby_version: !ruby/object:Gem::Requirement
65
+ none: false
66
+ requirements:
67
+ - - ">="
68
+ - !ruby/object:Gem::Version
69
+ segments:
70
+ - 0
71
+ version: "0"
72
+ required_rubygems_version: !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ">="
76
+ - !ruby/object:Gem::Version
77
+ segments:
78
+ - 0
79
+ version: "0"
80
+ requirements: []
81
+
82
+ rubyforge_project: like_a_boss
83
+ rubygems_version: 1.3.7
84
+ signing_key:
85
+ specification_version: 3
86
+ summary: Want to code like a boss? Now you can.
87
+ test_files:
88
+ - spec/like_a_boss_spec.rb
89
+ - spec/spec_helper.rb