glimmer-dsl-specification 0.0.2 → 0.0.3
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 +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +1 -1
- data/VERSION +1 -1
- data/glimmer-dsl-specification.gemspec +2 -2
- data/lib/glimmer/specification/ext/string.rb +14 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 556bf58aecd8e40196f529480790e60cb7bfe375e168f57193a0e00d1f93379d
|
4
|
+
data.tar.gz: 259c09a631831d1c85c2e7dec0221a02d5730aafd61dd1e85b491e91a25e8d64
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0d636e00d1c07011d4d2781aa8b4db8e680dbaa68b24497daddef1ada5a2c2e1f6b6fd96bf59fa85064af83965eae7e687998423eac09fee32c99efaa3016b1c
|
7
|
+
data.tar.gz: e9e728a0aa54f82e1df57c4821592fcd205b31e9066365dd0dd8adcdb4ce31846ce4b1f97bd250634820000972510167481d444fa38e84cd6386cb498328d8e8
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -224,7 +224,7 @@ Specifications do not care about what specific "classes" or "methods" are execut
|
|
224
224
|
|
225
225
|
`fact {}` states a fact embodied by a boolean result for the passed block of code.
|
226
226
|
|
227
|
-
Upon failure of a `fact` with
|
227
|
+
Upon failure of a `fact` with `String` `==`/`!=`/`#empty?`/`#include?` verification methods, the library will automatically print the values of the involved objects.
|
228
228
|
|
229
229
|
## Process
|
230
230
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.3
|
@@ -2,11 +2,11 @@
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
3
|
# Instead, edit Juwelier::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
|
-
# stub: glimmer-dsl-specification 0.0.
|
5
|
+
# stub: glimmer-dsl-specification 0.0.3 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "glimmer-dsl-specification".freeze
|
9
|
-
s.version = "0.0.
|
9
|
+
s.version = "0.0.3"
|
10
10
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
|
12
12
|
s.require_paths = ["lib".freeze]
|
@@ -35,4 +35,18 @@ class String
|
|
35
35
|
@non_equal_in_progress = false
|
36
36
|
end
|
37
37
|
end
|
38
|
+
|
39
|
+
alias empty_without_glimmer? empty?
|
40
|
+
def empty?
|
41
|
+
empty_without_glimmer?.tap do |result|
|
42
|
+
puts Colours::RED + "FAILED: '#{self}'.empty?" if Glimmer::Specification::Element::Fact.fact_block_in_progress && !result
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
alias include_without_glimmer? include?
|
47
|
+
def include?(other)
|
48
|
+
include_without_glimmer?(other).tap do |result|
|
49
|
+
puts Colours::RED + "FAILED: '#{self}'.include?('#{other}')" if Glimmer::Specification::Element::Fact.fact_block_in_progress && !result
|
50
|
+
end
|
51
|
+
end
|
38
52
|
end
|