nutrasuite 0.1.0 → 0.1.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.
- data/lib/nutrasuite/contexts.rb +7 -18
- data/lib/nutrasuite/version.rb +1 -1
- metadata +2 -2
data/lib/nutrasuite/contexts.rb
CHANGED
@@ -1,23 +1,12 @@
|
|
1
1
|
module Nutrasuite
|
2
2
|
module ContextHelpers
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
Context.push(name, &block)
|
11
|
-
end
|
12
|
-
|
13
|
-
def and(name, &block)
|
14
|
-
name = "and " << name
|
15
|
-
Context.push(name, &block)
|
16
|
-
end
|
17
|
-
|
18
|
-
def that(name, &block)
|
19
|
-
name = "that " << name
|
20
|
-
Context.push(name, &block)
|
3
|
+
["a", "an", "and", "that", "the"].each do |article|
|
4
|
+
eval <<-HERE
|
5
|
+
def #{article}(name, &block)
|
6
|
+
name = "#{article} #{name}"
|
7
|
+
Context.push(name, &block)
|
8
|
+
end
|
9
|
+
HERE
|
21
10
|
end
|
22
11
|
|
23
12
|
# Code to be run before the context
|
data/lib/nutrasuite/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nutrasuite
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2012-02-
|
13
|
+
date: 2012-02-21 00:00:00.000000000 Z
|
14
14
|
dependencies: []
|
15
15
|
description: Nutrasuite is a low-calorie syntax sweetener for minitest
|
16
16
|
email:
|