essay 1.0.3 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/essay/helpers/feature_helper.rb +3 -3
- data/lib/essay/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bf366521203e669fbe983484c66fa8c90ada19f7
|
4
|
+
data.tar.gz: 7cf65ba5cc3e47c09ead5bb408422e558391125f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 717c01be8ac2546beaf0b4718292fe897d84d24acb1c8f999443b3ca6ca74cae6d562e2e9f2d502e0affebc6efe0bc15f0e7ba683479a89cc37fb5afff56490d
|
7
|
+
data.tar.gz: 9ef1b952345a08f0dd1b795fe8a02d507c0573d2f64d24ae9d9337e9524a91f41d9ef60ee1e6818c98c5f98bded485df5b7bd29c18575db01463747e9b137f4f
|
@@ -4,15 +4,15 @@
|
|
4
4
|
module Essay
|
5
5
|
module FeatureHelper
|
6
6
|
def is(thing)
|
7
|
-
|
7
|
+
try(thing)
|
8
8
|
end
|
9
9
|
|
10
10
|
def not(thing)
|
11
|
-
|
11
|
+
try(thing)
|
12
12
|
end
|
13
13
|
|
14
14
|
def with(thing, &block)
|
15
|
-
obj =
|
15
|
+
obj = try(thing)
|
16
16
|
block.call(obj) if obj
|
17
17
|
end
|
18
18
|
end
|
data/lib/essay/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: essay
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yaroslav Konoplov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-10-
|
11
|
+
date: 2016-10-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|