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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c2fb52fa5a0d1b0c2be4db0bdae04baa1e9e05f73fe02600bba36c7b495cff49
4
- data.tar.gz: 92517f64428dea76860c25feeceff393134e81fe585a1fc3e3675694f921ac76
3
+ metadata.gz: 556bf58aecd8e40196f529480790e60cb7bfe375e168f57193a0e00d1f93379d
4
+ data.tar.gz: 259c09a631831d1c85c2e7dec0221a02d5730aafd61dd1e85b491e91a25e8d64
5
5
  SHA512:
6
- metadata.gz: c150736fe9ee2b82d757bc425f4ebcf578e314a38479159ff7935d148b25e3d268ce6ed21bb129a75165a59981498f944bcb5932e1735406c662cee3611239e3
7
- data.tar.gz: 31469407c9ed1053a7294d9a98c77f1ad78a77fd3cc611a3789f9f91e7a7891df851c75cc9aa1bed00692e7bd6bacf84555415ddb729a4be19d1d0e0ca0ead05
6
+ metadata.gz: 0d636e00d1c07011d4d2781aa8b4db8e680dbaa68b24497daddef1ada5a2c2e1f6b6fd96bf59fa85064af83965eae7e687998423eac09fee32c99efaa3016b1c
7
+ data.tar.gz: e9e728a0aa54f82e1df57c4821592fcd205b31e9066365dd0dd8adcdb4ce31846ce4b1f97bd250634820000972510167481d444fa38e84cd6386cb498328d8e8
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Change Log
2
2
 
3
+ ## 0.0.3
4
+
5
+ - On `fact` failure of `String` `#empty?` and `#include?`, display the involved objects
6
+
3
7
  ## 0.0.2
4
8
 
5
9
  - On `fact` failure of `String` equality or inequality, display the two compared objects
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 a `String` equality/inequality comparison, the library will automatically print the values of the two compared `String` objects.
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.2
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.2 ruby lib
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.2"
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: glimmer-dsl-specification
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andy Maleh