foaas 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +4 -0
- data/README.md +99 -12
- data/foaas.gemspec +4 -3
- data/lib/foaas.rb +24 -5
- data/lib/foaas/f_o.rb +1 -1
- data/lib/foaas/version.rb +2 -2
- data/lib/fuck/chainsaw.rb +15 -0
- data/lib/fuck/donut.rb +15 -0
- data/lib/fuck/everyone.rb +15 -0
- data/lib/fuck/everything.rb +15 -0
- data/lib/fuck/king.rb +15 -0
- data/lib/fuck/life.rb +15 -0
- data/lib/fuck/linus.rb +15 -0
- data/lib/fuck/off.rb +15 -0
- data/lib/fuck/pink.rb +15 -0
- data/lib/fuck/shakespeare.rb +15 -0
- data/lib/fuck/thanks.rb +15 -0
- data/lib/fuck/that.rb +15 -0
- data/lib/fuck/thing.rb +15 -0
- data/lib/fuck/this.rb +15 -0
- data/lib/fuck/you.rb +15 -0
- data/lib/salutations.rb +7 -0
- data/test/foaas/f_o_test.rb +2 -2
- data/test/minitest_helper.rb +4 -4
- data/test/unit/fuck/chainsaw_test.rb +30 -0
- data/test/unit/fuck/donut_test.rb +30 -0
- data/test/unit/fuck/everyone_test.rb +28 -0
- data/test/unit/fuck/everything_test.rb +28 -0
- data/test/unit/fuck/king_test.rb +30 -0
- data/test/unit/fuck/life_test.rb +28 -0
- data/test/unit/fuck/linus_test.rb +30 -0
- data/test/unit/fuck/off_test.rb +30 -0
- data/test/unit/fuck/pink_test.rb +28 -0
- data/test/unit/fuck/shakespeare_test.rb +30 -0
- data/test/unit/fuck/thanks_test.rb +28 -0
- data/test/unit/fuck/that_test.rb +28 -0
- data/test/unit/fuck/thing_test.rb +28 -0
- data/test/unit/fuck/this_test.rb +28 -0
- data/test/unit/fuck/you_test.rb +30 -0
- metadata +65 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3e854705cc9fb427588c41a52da77dc6ade0885a
|
4
|
+
data.tar.gz: 275e8f5b3869d170da5d352d9f29b8510f999224
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e4f1a65f3fa72fe47c5401a6ad8bdae3fa6fc6eb83b98872da33f716269526236eb0f6135da93bf847687323893368688a90ff6231210e7987bd7be82bdf4274
|
7
|
+
data.tar.gz: 37d44df32a3d13768942d9e62dd2307b09700b4ad4c46190a3cce905e58249f8b6f6a86f25461cdf8368ceda6a9850f752e0eaa5652f8d4709472b12e47843c6
|
data/.travis.yml
ADDED
data/README.md
CHANGED
@@ -1,26 +1,113 @@
|
|
1
|
-
#
|
1
|
+
# FOaaS [![Build Status](https://travis-ci.org/rthbound/foaas.png?branch=master)](https://travis-ci.org/rthbound/foaas) [![Coverage Status](https://coveralls.io/repos/rthbound/foaas/badge.png)](https://coveralls.io/r/rthbound/foaas) [![Code Climate](https://codeclimate.com/github/rthbound/foaas.png)](https://codeclimate.com/github/rthbound/foaas)
|
2
|
+
Ruby Interface to FOAAS ([http://foaas.herokuapp.com/](http://foaas.herokuapp.com/))
|
2
3
|
|
3
|
-
|
4
|
+
## What is FOAAS?
|
4
5
|
|
5
|
-
|
6
|
+
[FOAAS](http://foaas.herokuapp.com/)(Fuck Off As A Service) provides a modern,
|
7
|
+
RESTful, scalable solution to the common problem of telling people to fuck off.
|
6
8
|
|
7
|
-
|
9
|
+
# Usage
|
8
10
|
|
9
|
-
|
11
|
+
## /off/:name/:from
|
10
12
|
|
11
|
-
|
13
|
+
```ruby
|
14
|
+
Fuck::Off.new(name: "You", from: "Me").execute!
|
15
|
+
```
|
12
16
|
|
13
|
-
|
17
|
+
## /you/:name/:from
|
14
18
|
|
15
|
-
|
19
|
+
```ruby
|
20
|
+
Fuck::You.new(name: "You", from: "Me").execute!
|
21
|
+
```
|
16
22
|
|
17
|
-
|
23
|
+
## /this/:from
|
18
24
|
|
19
|
-
|
25
|
+
```ruby
|
26
|
+
Fuck::This.new(name: "You", from: "Me").execute!
|
27
|
+
```
|
20
28
|
|
21
|
-
|
29
|
+
## /that/:from
|
22
30
|
|
23
|
-
|
31
|
+
```ruby
|
32
|
+
Fuck::That.new(name: "You", from: "Me").execute!
|
33
|
+
```
|
34
|
+
|
35
|
+
## /everything/:from
|
36
|
+
|
37
|
+
```ruby
|
38
|
+
Fuck::Everything.new(name: "You", from: "Me").execute!
|
39
|
+
```
|
40
|
+
|
41
|
+
## /everyone/:from
|
42
|
+
|
43
|
+
```ruby
|
44
|
+
Fuck::Everyone.new(name: "You", from: "Me").execute!
|
45
|
+
```
|
46
|
+
|
47
|
+
## /donut/:name/:from
|
48
|
+
|
49
|
+
```ruby
|
50
|
+
Fuck::Donut.new(name: "You", from: "Me").execute!
|
51
|
+
```
|
52
|
+
|
53
|
+
## /shakespeare/:name/:from
|
54
|
+
|
55
|
+
```ruby
|
56
|
+
Fuck::Shakespeare.new(name: "You", from: "Me").execute!
|
57
|
+
```
|
58
|
+
|
59
|
+
## /linus/:name/:from
|
60
|
+
|
61
|
+
```ruby
|
62
|
+
Fuck::Linus.new(name: "You", from: "Me").execute!
|
63
|
+
```
|
64
|
+
|
65
|
+
## /king/:name/:from
|
66
|
+
|
67
|
+
```ruby
|
68
|
+
Fuck::King.new(name: "You", from: "Me").execute!
|
69
|
+
```
|
70
|
+
|
71
|
+
## /pink/:from
|
72
|
+
|
73
|
+
```ruby
|
74
|
+
Fuck::Pink.new(name: "You", from: "Me").execute!
|
75
|
+
```
|
76
|
+
|
77
|
+
## /life/:from
|
78
|
+
|
79
|
+
```ruby
|
80
|
+
Fuck::Life.new(name: "You", from: "Me").execute!
|
81
|
+
```
|
82
|
+
|
83
|
+
## /chainsaw/:name/:from
|
84
|
+
|
85
|
+
```ruby
|
86
|
+
Fuck::Chainsaw.new(name: "You", from: "Me").execute!
|
87
|
+
```
|
88
|
+
|
89
|
+
## /outside/:name/:from
|
90
|
+
|
91
|
+
```ruby
|
92
|
+
Fuck::Outside.new(name: "You", from: "Me").execute!
|
93
|
+
```
|
94
|
+
|
95
|
+
## /:thing/:from
|
96
|
+
|
97
|
+
```ruby
|
98
|
+
Fuck::Thing.new(name: "You", from: "Me").execute!
|
99
|
+
```
|
100
|
+
|
101
|
+
## /thanks/:from
|
102
|
+
|
103
|
+
```ruby
|
104
|
+
Fuck::Thanks.new(from: "Me").execute!
|
105
|
+
```
|
106
|
+
|
107
|
+
# Contributing
|
108
|
+
|
109
|
+
FOAAS may add some new, fun features. Taking advantage of those new features may
|
110
|
+
require updates. Please feel free to contribute. Caveat: tests or 'eff off ;)
|
24
111
|
|
25
112
|
1. Fork it
|
26
113
|
2. Create your feature branch (`git checkout -b my-new-feature`)
|
data/foaas.gemspec
CHANGED
@@ -5,11 +5,11 @@ require 'foaas/version'
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |spec|
|
7
7
|
spec.name = "foaas"
|
8
|
-
spec.version =
|
8
|
+
spec.version = FOaaS::VERSION
|
9
9
|
spec.authors = ["Ryan T. Hosford"]
|
10
10
|
spec.email = ["tad.hosford@gmail.com"]
|
11
|
-
spec.description = %q{
|
12
|
-
spec.summary = %q{
|
11
|
+
spec.description = %q{ Ruby interface to FOASS (http://foass.com)}
|
12
|
+
spec.summary = %q{ Fun stuff }
|
13
13
|
spec.homepage = ""
|
14
14
|
spec.license = "MIT"
|
15
15
|
|
@@ -22,6 +22,7 @@ Gem::Specification.new do |spec|
|
|
22
22
|
spec.add_development_dependency "bundler", "~> 1.3"
|
23
23
|
spec.add_development_dependency "pry"
|
24
24
|
spec.add_development_dependency "simplecov"
|
25
|
+
spec.add_development_dependency "coveralls"
|
25
26
|
spec.add_development_dependency "minitest"
|
26
27
|
|
27
28
|
spec.add_development_dependency "rake"
|
data/lib/foaas.rb
CHANGED
@@ -1,5 +1,24 @@
|
|
1
|
-
require
|
2
|
-
require
|
3
|
-
require
|
4
|
-
|
5
|
-
|
1
|
+
require 'pay_dirt'
|
2
|
+
require 'open-uri'
|
3
|
+
require 'json'
|
4
|
+
|
5
|
+
require_relative 'foaas/version'
|
6
|
+
require_relative 'foaas/f_o'
|
7
|
+
|
8
|
+
require_relative 'salutations'
|
9
|
+
require_relative 'fuck/thanks'
|
10
|
+
require_relative 'fuck/thing'
|
11
|
+
require_relative 'fuck/chainsaw'
|
12
|
+
require_relative 'fuck/life'
|
13
|
+
require_relative 'fuck/pink'
|
14
|
+
require_relative 'fuck/king'
|
15
|
+
require_relative 'fuck/linus'
|
16
|
+
require_relative 'fuck/shakespeare'
|
17
|
+
require_relative 'fuck/donut'
|
18
|
+
require_relative 'fuck/everyone'
|
19
|
+
require_relative 'fuck/everything'
|
20
|
+
require_relative 'fuck/that'
|
21
|
+
require_relative 'fuck/this'
|
22
|
+
require_relative 'fuck/you'
|
23
|
+
require_relative 'fuck/off'
|
24
|
+
|
data/lib/foaas/f_o.rb
CHANGED
data/lib/foaas/version.rb
CHANGED
@@ -1,3 +1,3 @@
|
|
1
|
-
module
|
2
|
-
VERSION = "0.0.
|
1
|
+
module FOaaS
|
2
|
+
VERSION = "0.0.2"
|
3
3
|
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
require 'pay_dirt'
|
2
|
+
|
3
|
+
module Fuck
|
4
|
+
class Chainsaw < PayDirt::Base
|
5
|
+
include Salutations
|
6
|
+
|
7
|
+
def initialize(options = {})
|
8
|
+
options = {
|
9
|
+
resource: "chainsaw",
|
10
|
+
}.merge(options)
|
11
|
+
|
12
|
+
load_options(:resource, :name, :from, options)
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
data/lib/fuck/donut.rb
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
require 'pay_dirt'
|
2
|
+
|
3
|
+
module Fuck
|
4
|
+
class Everything < PayDirt::Base
|
5
|
+
include Salutations
|
6
|
+
|
7
|
+
def initialize(options = {})
|
8
|
+
options = {
|
9
|
+
resource: "everything",
|
10
|
+
}.merge(options)
|
11
|
+
|
12
|
+
load_options(:resource, :from, options)
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
data/lib/fuck/king.rb
ADDED
data/lib/fuck/life.rb
ADDED
data/lib/fuck/linus.rb
ADDED
data/lib/fuck/off.rb
ADDED
data/lib/fuck/pink.rb
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
require 'pay_dirt'
|
2
|
+
|
3
|
+
module Fuck
|
4
|
+
class Shakespeare < PayDirt::Base
|
5
|
+
include Salutations
|
6
|
+
|
7
|
+
def initialize(options = {})
|
8
|
+
options = {
|
9
|
+
resource: "shakespeare",
|
10
|
+
}.merge(options)
|
11
|
+
|
12
|
+
load_options(:resource, :name, :from, options)
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
data/lib/fuck/thanks.rb
ADDED
data/lib/fuck/that.rb
ADDED
data/lib/fuck/thing.rb
ADDED
data/lib/fuck/this.rb
ADDED
data/lib/fuck/you.rb
ADDED
data/lib/salutations.rb
ADDED
data/test/foaas/f_o_test.rb
CHANGED
data/test/minitest_helper.rb
CHANGED
@@ -0,0 +1,30 @@
|
|
1
|
+
require 'minitest_helper'
|
2
|
+
|
3
|
+
describe Fuck::Chainsaw do
|
4
|
+
before do
|
5
|
+
@subject = Fuck::Chainsaw
|
6
|
+
@params = {
|
7
|
+
name: "Sweetheart",
|
8
|
+
from: "Honey"
|
9
|
+
}
|
10
|
+
end
|
11
|
+
|
12
|
+
describe "as a class" do
|
13
|
+
it "initializes properly" do
|
14
|
+
@subject.new(@params).must_respond_to :execute!
|
15
|
+
end
|
16
|
+
|
17
|
+
it "errors when initialized without required dependencies" do
|
18
|
+
-> { @subject.new(@params.reject { |k| k.to_s == 'name' }) }.must_raise RuntimeError
|
19
|
+
-> { @subject.new(@params.reject { |k| k.to_s == 'from' }) }.must_raise RuntimeError
|
20
|
+
end
|
21
|
+
end
|
22
|
+
|
23
|
+
describe "as an instance" do
|
24
|
+
it "executes successfully" do
|
25
|
+
result = @subject.new(@params).execute!
|
26
|
+
result.successful?.must_equal true
|
27
|
+
result.must_be_kind_of PayDirt::Result
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
@@ -0,0 +1,30 @@
|
|
1
|
+
require 'minitest_helper'
|
2
|
+
|
3
|
+
describe Fuck::Donut do
|
4
|
+
before do
|
5
|
+
@subject = Fuck::Donut
|
6
|
+
@params = {
|
7
|
+
name: "Sweetheart",
|
8
|
+
from: "Honey"
|
9
|
+
}
|
10
|
+
end
|
11
|
+
|
12
|
+
describe "as a class" do
|
13
|
+
it "initializes properly" do
|
14
|
+
@subject.new(@params).must_respond_to :execute!
|
15
|
+
end
|
16
|
+
|
17
|
+
it "errors when initialized without required dependencies" do
|
18
|
+
-> { @subject.new(@params.reject { |k| k.to_s == 'name' }) }.must_raise RuntimeError
|
19
|
+
-> { @subject.new(@params.reject { |k| k.to_s == 'from' }) }.must_raise RuntimeError
|
20
|
+
end
|
21
|
+
end
|
22
|
+
|
23
|
+
describe "as an instance" do
|
24
|
+
it "executes successfully" do
|
25
|
+
result = @subject.new(@params).execute!
|
26
|
+
result.successful?.must_equal true
|
27
|
+
result.must_be_kind_of PayDirt::Result
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
@@ -0,0 +1,28 @@
|
|
1
|
+
require 'minitest_helper'
|
2
|
+
|
3
|
+
describe Fuck::Everyone do
|
4
|
+
before do
|
5
|
+
@subject = Fuck::Everyone
|
6
|
+
@params = {
|
7
|
+
from: "Honey"
|
8
|
+
}
|
9
|
+
end
|
10
|
+
|
11
|
+
describe "as a class" do
|
12
|
+
it "initializes properly" do
|
13
|
+
@subject.new(@params).must_respond_to :execute!
|
14
|
+
end
|
15
|
+
|
16
|
+
it "errors when initialized without required dependencies" do
|
17
|
+
-> { @subject.new(@params.reject { |k| k.to_s == 'from' }) }.must_raise RuntimeError
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
21
|
+
describe "as an instance" do
|
22
|
+
it "executes successfully" do
|
23
|
+
result = @subject.new(@params).execute!
|
24
|
+
result.successful?.must_equal true
|
25
|
+
result.must_be_kind_of PayDirt::Result
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
@@ -0,0 +1,28 @@
|
|
1
|
+
require 'minitest_helper'
|
2
|
+
|
3
|
+
describe Fuck::Everything do
|
4
|
+
before do
|
5
|
+
@subject = Fuck::Everything
|
6
|
+
@params = {
|
7
|
+
from: "Honey"
|
8
|
+
}
|
9
|
+
end
|
10
|
+
|
11
|
+
describe "as a class" do
|
12
|
+
it "initializes properly" do
|
13
|
+
@subject.new(@params).must_respond_to :execute!
|
14
|
+
end
|
15
|
+
|
16
|
+
it "errors when initialized without required dependencies" do
|
17
|
+
-> { @subject.new(@params.reject { |k| k.to_s == 'from' }) }.must_raise RuntimeError
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
21
|
+
describe "as an instance" do
|
22
|
+
it "executes successfully" do
|
23
|
+
result = @subject.new(@params).execute!
|
24
|
+
result.successful?.must_equal true
|
25
|
+
result.must_be_kind_of PayDirt::Result
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
@@ -0,0 +1,30 @@
|
|
1
|
+
require 'minitest_helper'
|
2
|
+
|
3
|
+
describe Fuck::King do
|
4
|
+
before do
|
5
|
+
@subject = Fuck::King
|
6
|
+
@params = {
|
7
|
+
name: "Sweetheart",
|
8
|
+
from: "Honey"
|
9
|
+
}
|
10
|
+
end
|
11
|
+
|
12
|
+
describe "as a class" do
|
13
|
+
it "initializes properly" do
|
14
|
+
@subject.new(@params).must_respond_to :execute!
|
15
|
+
end
|
16
|
+
|
17
|
+
it "errors when initialized without required dependencies" do
|
18
|
+
-> { @subject.new(@params.reject { |k| k.to_s == 'name' }) }.must_raise RuntimeError
|
19
|
+
-> { @subject.new(@params.reject { |k| k.to_s == 'from' }) }.must_raise RuntimeError
|
20
|
+
end
|
21
|
+
end
|
22
|
+
|
23
|
+
describe "as an instance" do
|
24
|
+
it "executes successfully" do
|
25
|
+
result = @subject.new(@params).execute!
|
26
|
+
result.successful?.must_equal true
|
27
|
+
result.must_be_kind_of PayDirt::Result
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
@@ -0,0 +1,28 @@
|
|
1
|
+
require 'minitest_helper'
|
2
|
+
|
3
|
+
describe Fuck::Life do
|
4
|
+
before do
|
5
|
+
@subject = Fuck::Life
|
6
|
+
@params = {
|
7
|
+
from: "Honey"
|
8
|
+
}
|
9
|
+
end
|
10
|
+
|
11
|
+
describe "as a class" do
|
12
|
+
it "initializes properly" do
|
13
|
+
@subject.new(@params).must_respond_to :execute!
|
14
|
+
end
|
15
|
+
|
16
|
+
it "errors when initialized without required dependencies" do
|
17
|
+
-> { @subject.new(@params.reject { |k| k.to_s == 'from' }) }.must_raise RuntimeError
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
21
|
+
describe "as an instance" do
|
22
|
+
it "executes successfully" do
|
23
|
+
result = @subject.new(@params).execute!
|
24
|
+
result.successful?.must_equal true
|
25
|
+
result.must_be_kind_of PayDirt::Result
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
@@ -0,0 +1,30 @@
|
|
1
|
+
require 'minitest_helper'
|
2
|
+
|
3
|
+
describe Fuck::Linus do
|
4
|
+
before do
|
5
|
+
@subject = Fuck::Linus
|
6
|
+
@params = {
|
7
|
+
name: "Sweetheart",
|
8
|
+
from: "Honey"
|
9
|
+
}
|
10
|
+
end
|
11
|
+
|
12
|
+
describe "as a class" do
|
13
|
+
it "initializes properly" do
|
14
|
+
@subject.new(@params).must_respond_to :execute!
|
15
|
+
end
|
16
|
+
|
17
|
+
it "errors when initialized without required dependencies" do
|
18
|
+
-> { @subject.new(@params.reject { |k| k.to_s == 'name' }) }.must_raise RuntimeError
|
19
|
+
-> { @subject.new(@params.reject { |k| k.to_s == 'from' }) }.must_raise RuntimeError
|
20
|
+
end
|
21
|
+
end
|
22
|
+
|
23
|
+
describe "as an instance" do
|
24
|
+
it "executes successfully" do
|
25
|
+
result = @subject.new(@params).execute!
|
26
|
+
result.successful?.must_equal true
|
27
|
+
result.must_be_kind_of PayDirt::Result
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
@@ -0,0 +1,30 @@
|
|
1
|
+
require 'minitest_helper'
|
2
|
+
|
3
|
+
describe Fuck::Off do
|
4
|
+
before do
|
5
|
+
@subject = Fuck::Off
|
6
|
+
@params = {
|
7
|
+
name: "Sweetheart",
|
8
|
+
from: "Honey"
|
9
|
+
}
|
10
|
+
end
|
11
|
+
|
12
|
+
describe "as a class" do
|
13
|
+
it "initializes properly" do
|
14
|
+
@subject.new(@params).must_respond_to :execute!
|
15
|
+
end
|
16
|
+
|
17
|
+
it "errors when initialized without required dependencies" do
|
18
|
+
-> { @subject.new(@params.reject { |k| k.to_s == 'name' }) }.must_raise RuntimeError
|
19
|
+
-> { @subject.new(@params.reject { |k| k.to_s == 'from' }) }.must_raise RuntimeError
|
20
|
+
end
|
21
|
+
end
|
22
|
+
|
23
|
+
describe "as an instance" do
|
24
|
+
it "executes successfully" do
|
25
|
+
result = @subject.new(@params).execute!
|
26
|
+
result.successful?.must_equal true
|
27
|
+
result.must_be_kind_of PayDirt::Result
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
@@ -0,0 +1,28 @@
|
|
1
|
+
require 'minitest_helper'
|
2
|
+
|
3
|
+
describe Fuck::Pink do
|
4
|
+
before do
|
5
|
+
@subject = Fuck::Pink
|
6
|
+
@params = {
|
7
|
+
from: "Honey"
|
8
|
+
}
|
9
|
+
end
|
10
|
+
|
11
|
+
describe "as a class" do
|
12
|
+
it "initializes properly" do
|
13
|
+
@subject.new(@params).must_respond_to :execute!
|
14
|
+
end
|
15
|
+
|
16
|
+
it "errors when initialized without required dependencies" do
|
17
|
+
-> { @subject.new(@params.reject { |k| k.to_s == 'from' }) }.must_raise RuntimeError
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
21
|
+
describe "as an instance" do
|
22
|
+
it "executes successfully" do
|
23
|
+
result = @subject.new(@params).execute!
|
24
|
+
result.successful?.must_equal true
|
25
|
+
result.must_be_kind_of PayDirt::Result
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
@@ -0,0 +1,30 @@
|
|
1
|
+
require 'minitest_helper'
|
2
|
+
|
3
|
+
describe Fuck::Shakespeare do
|
4
|
+
before do
|
5
|
+
@subject = Fuck::Shakespeare
|
6
|
+
@params = {
|
7
|
+
name: "Sweetheart",
|
8
|
+
from: "Honey"
|
9
|
+
}
|
10
|
+
end
|
11
|
+
|
12
|
+
describe "as a class" do
|
13
|
+
it "initializes properly" do
|
14
|
+
@subject.new(@params).must_respond_to :execute!
|
15
|
+
end
|
16
|
+
|
17
|
+
it "errors when initialized without required dependencies" do
|
18
|
+
-> { @subject.new(@params.reject { |k| k.to_s == 'name' }) }.must_raise RuntimeError
|
19
|
+
-> { @subject.new(@params.reject { |k| k.to_s == 'from' }) }.must_raise RuntimeError
|
20
|
+
end
|
21
|
+
end
|
22
|
+
|
23
|
+
describe "as an instance" do
|
24
|
+
it "executes successfully" do
|
25
|
+
result = @subject.new(@params).execute!
|
26
|
+
result.successful?.must_equal true
|
27
|
+
result.must_be_kind_of PayDirt::Result
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
@@ -0,0 +1,28 @@
|
|
1
|
+
require 'minitest_helper'
|
2
|
+
|
3
|
+
describe Fuck::Thanks do
|
4
|
+
before do
|
5
|
+
@subject = Fuck::Thanks
|
6
|
+
@params = {
|
7
|
+
from: "Honey"
|
8
|
+
}
|
9
|
+
end
|
10
|
+
|
11
|
+
describe "as a class" do
|
12
|
+
it "initializes properly" do
|
13
|
+
@subject.new(@params).must_respond_to :execute!
|
14
|
+
end
|
15
|
+
|
16
|
+
it "errors when initialized without required dependencies" do
|
17
|
+
-> { @subject.new(@params.reject { |k| k.to_s == 'from' }) }.must_raise RuntimeError
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
21
|
+
describe "as an instance" do
|
22
|
+
it "executes successfully" do
|
23
|
+
result = @subject.new(@params).execute!
|
24
|
+
result.successful?.must_equal true
|
25
|
+
result.must_be_kind_of PayDirt::Result
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
@@ -0,0 +1,28 @@
|
|
1
|
+
require 'minitest_helper'
|
2
|
+
|
3
|
+
describe Fuck::That do
|
4
|
+
before do
|
5
|
+
@subject = Fuck::That
|
6
|
+
@params = {
|
7
|
+
from: "Honey"
|
8
|
+
}
|
9
|
+
end
|
10
|
+
|
11
|
+
describe "as a class" do
|
12
|
+
it "initializes properly" do
|
13
|
+
@subject.new(@params).must_respond_to :execute!
|
14
|
+
end
|
15
|
+
|
16
|
+
it "errors when initialized without required dependencies" do
|
17
|
+
-> { @subject.new(@params.reject { |k| k.to_s == 'from' }) }.must_raise RuntimeError
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
21
|
+
describe "as an instance" do
|
22
|
+
it "executes successfully" do
|
23
|
+
result = @subject.new(@params).execute!
|
24
|
+
result.successful?.must_equal true
|
25
|
+
result.must_be_kind_of PayDirt::Result
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
@@ -0,0 +1,28 @@
|
|
1
|
+
require 'minitest_helper'
|
2
|
+
|
3
|
+
describe Fuck::Thing do
|
4
|
+
before do
|
5
|
+
@subject = Fuck::Thing
|
6
|
+
@params = {
|
7
|
+
from: "Honey"
|
8
|
+
}
|
9
|
+
end
|
10
|
+
|
11
|
+
describe "as a class" do
|
12
|
+
it "initializes properly" do
|
13
|
+
@subject.new(@params).must_respond_to :execute!
|
14
|
+
end
|
15
|
+
|
16
|
+
it "errors when initialized without required dependencies" do
|
17
|
+
-> { @subject.new(@params.reject { |k| k.to_s == 'from' }) }.must_raise RuntimeError
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
21
|
+
describe "as an instance" do
|
22
|
+
it "executes successfully" do
|
23
|
+
result = @subject.new(@params).execute!
|
24
|
+
result.successful?.must_equal true
|
25
|
+
result.must_be_kind_of PayDirt::Result
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
@@ -0,0 +1,28 @@
|
|
1
|
+
require 'minitest_helper'
|
2
|
+
|
3
|
+
describe Fuck::This do
|
4
|
+
before do
|
5
|
+
@subject = Fuck::This
|
6
|
+
@params = {
|
7
|
+
from: "Honey"
|
8
|
+
}
|
9
|
+
end
|
10
|
+
|
11
|
+
describe "as a class" do
|
12
|
+
it "initializes properly" do
|
13
|
+
@subject.new(@params).must_respond_to :execute!
|
14
|
+
end
|
15
|
+
|
16
|
+
it "errors when initialized without required dependencies" do
|
17
|
+
-> { @subject.new(@params.reject { |k| k.to_s == 'from' }) }.must_raise RuntimeError
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
21
|
+
describe "as an instance" do
|
22
|
+
it "executes successfully" do
|
23
|
+
result = @subject.new(@params).execute!
|
24
|
+
result.successful?.must_equal true
|
25
|
+
result.must_be_kind_of PayDirt::Result
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
@@ -0,0 +1,30 @@
|
|
1
|
+
require 'minitest_helper'
|
2
|
+
|
3
|
+
describe Fuck::You do
|
4
|
+
before do
|
5
|
+
@subject = Fuck::You
|
6
|
+
@params = {
|
7
|
+
name: "Sweetheart",
|
8
|
+
from: "Honey"
|
9
|
+
}
|
10
|
+
end
|
11
|
+
|
12
|
+
describe "as a class" do
|
13
|
+
it "initializes properly" do
|
14
|
+
@subject.new(@params).must_respond_to :execute!
|
15
|
+
end
|
16
|
+
|
17
|
+
it "errors when initialized without required dependencies" do
|
18
|
+
-> { @subject.new(@params.reject { |k| k.to_s == 'name' }) }.must_raise RuntimeError
|
19
|
+
-> { @subject.new(@params.reject { |k| k.to_s == 'from' }) }.must_raise RuntimeError
|
20
|
+
end
|
21
|
+
end
|
22
|
+
|
23
|
+
describe "as an instance" do
|
24
|
+
it "executes successfully" do
|
25
|
+
result = @subject.new(@params).execute!
|
26
|
+
result.successful?.must_equal true
|
27
|
+
result.must_be_kind_of PayDirt::Result
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: foaas
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryan T. Hosford
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-07-
|
11
|
+
date: 2013-07-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pay_dirt
|
@@ -66,6 +66,20 @@ dependencies:
|
|
66
66
|
- - '>='
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: coveralls
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - '>='
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - '>='
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
69
83
|
- !ruby/object:Gem::Dependency
|
70
84
|
name: minitest
|
71
85
|
requirement: !ruby/object:Gem::Requirement
|
@@ -94,7 +108,7 @@ dependencies:
|
|
94
108
|
- - '>='
|
95
109
|
- !ruby/object:Gem::Version
|
96
110
|
version: '0'
|
97
|
-
description:
|
111
|
+
description: ' Ruby interface to FOASS (http://foass.com)'
|
98
112
|
email:
|
99
113
|
- tad.hosford@gmail.com
|
100
114
|
executables: []
|
@@ -102,6 +116,7 @@ extensions: []
|
|
102
116
|
extra_rdoc_files: []
|
103
117
|
files:
|
104
118
|
- .gitignore
|
119
|
+
- .travis.yml
|
105
120
|
- Gemfile
|
106
121
|
- LICENSE.txt
|
107
122
|
- README.md
|
@@ -110,8 +125,39 @@ files:
|
|
110
125
|
- lib/foaas.rb
|
111
126
|
- lib/foaas/f_o.rb
|
112
127
|
- lib/foaas/version.rb
|
128
|
+
- lib/fuck/chainsaw.rb
|
129
|
+
- lib/fuck/donut.rb
|
130
|
+
- lib/fuck/everyone.rb
|
131
|
+
- lib/fuck/everything.rb
|
132
|
+
- lib/fuck/king.rb
|
133
|
+
- lib/fuck/life.rb
|
134
|
+
- lib/fuck/linus.rb
|
135
|
+
- lib/fuck/off.rb
|
136
|
+
- lib/fuck/pink.rb
|
137
|
+
- lib/fuck/shakespeare.rb
|
138
|
+
- lib/fuck/thanks.rb
|
139
|
+
- lib/fuck/that.rb
|
140
|
+
- lib/fuck/thing.rb
|
141
|
+
- lib/fuck/this.rb
|
142
|
+
- lib/fuck/you.rb
|
143
|
+
- lib/salutations.rb
|
113
144
|
- test/foaas/f_o_test.rb
|
114
145
|
- test/minitest_helper.rb
|
146
|
+
- test/unit/fuck/chainsaw_test.rb
|
147
|
+
- test/unit/fuck/donut_test.rb
|
148
|
+
- test/unit/fuck/everyone_test.rb
|
149
|
+
- test/unit/fuck/everything_test.rb
|
150
|
+
- test/unit/fuck/king_test.rb
|
151
|
+
- test/unit/fuck/life_test.rb
|
152
|
+
- test/unit/fuck/linus_test.rb
|
153
|
+
- test/unit/fuck/off_test.rb
|
154
|
+
- test/unit/fuck/pink_test.rb
|
155
|
+
- test/unit/fuck/shakespeare_test.rb
|
156
|
+
- test/unit/fuck/thanks_test.rb
|
157
|
+
- test/unit/fuck/that_test.rb
|
158
|
+
- test/unit/fuck/thing_test.rb
|
159
|
+
- test/unit/fuck/this_test.rb
|
160
|
+
- test/unit/fuck/you_test.rb
|
115
161
|
homepage: ''
|
116
162
|
licenses:
|
117
163
|
- MIT
|
@@ -135,7 +181,22 @@ rubyforge_project:
|
|
135
181
|
rubygems_version: 2.0.3
|
136
182
|
signing_key:
|
137
183
|
specification_version: 4
|
138
|
-
summary:
|
184
|
+
summary: Fun stuff
|
139
185
|
test_files:
|
140
186
|
- test/foaas/f_o_test.rb
|
141
187
|
- test/minitest_helper.rb
|
188
|
+
- test/unit/fuck/chainsaw_test.rb
|
189
|
+
- test/unit/fuck/donut_test.rb
|
190
|
+
- test/unit/fuck/everyone_test.rb
|
191
|
+
- test/unit/fuck/everything_test.rb
|
192
|
+
- test/unit/fuck/king_test.rb
|
193
|
+
- test/unit/fuck/life_test.rb
|
194
|
+
- test/unit/fuck/linus_test.rb
|
195
|
+
- test/unit/fuck/off_test.rb
|
196
|
+
- test/unit/fuck/pink_test.rb
|
197
|
+
- test/unit/fuck/shakespeare_test.rb
|
198
|
+
- test/unit/fuck/thanks_test.rb
|
199
|
+
- test/unit/fuck/that_test.rb
|
200
|
+
- test/unit/fuck/thing_test.rb
|
201
|
+
- test/unit/fuck/this_test.rb
|
202
|
+
- test/unit/fuck/you_test.rb
|