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.
@@ -1,23 +1,12 @@
1
1
  module Nutrasuite
2
2
  module ContextHelpers
3
- def a(name, &block)
4
- name = "a " << name
5
- Context.push(name, &block)
6
- end
7
-
8
- def an(name, &block)
9
- name = "an " << name
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
@@ -1,3 +1,3 @@
1
1
  module Nutrasuite
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
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.0
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-19 00:00:00.000000000 Z
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: