sugarcube 2.3.0 → 2.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ios/sugarcube-factories/uiblureffect.rb +15 -0
- data/lib/version.rb +1 -1
- data/spec/ios/factories_spec.rb +13 -0
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 972bf2ad876cf570e97d61fdc891d4d8b9da1e42
|
4
|
+
data.tar.gz: 699b6b63231c98b2a8b4904b9a46d7632adf6e61
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 93e69135801963c8c513797c7233171102c061bfa39dde8b91864121d3e5bd0dda2e50eb1cce54b69534609b69b294979379a054f436ce7e041323e32129654b
|
7
|
+
data.tar.gz: bd648614288a354c55e1a8d7ace67c1ff5012f3f8a6584d5ef18255d90aab0bde31181b633fcfa52cc74a2e86e5be78230ba99903ca0c3e2bb1b8648708ae98c
|
@@ -0,0 +1,15 @@
|
|
1
|
+
class UIBlurEffect
|
2
|
+
class << self
|
3
|
+
def dark
|
4
|
+
self.effectWithStyle(UIBlurEffectStyleDark)
|
5
|
+
end
|
6
|
+
|
7
|
+
def light
|
8
|
+
self.effectWithStyle(UIBlurEffectStyleLight)
|
9
|
+
end
|
10
|
+
|
11
|
+
def extra_light
|
12
|
+
self.effectWithStyle(UIBlurEffectStyleExtraLight)
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
data/lib/version.rb
CHANGED
data/spec/ios/factories_spec.rb
CHANGED
@@ -61,6 +61,19 @@ describe 'SugarCube Factories' do
|
|
61
61
|
end
|
62
62
|
end
|
63
63
|
|
64
|
+
describe UIBlurEffect do
|
65
|
+
[
|
66
|
+
'with #dark', -> { UIBlurEffect.dark },
|
67
|
+
'with #light', -> { UIBlurEffect.light },
|
68
|
+
'with #extra_light', -> { UIBlurEffect.extra_light },
|
69
|
+
].each_slice(2) do |description, factory|
|
70
|
+
it "should work #{description}" do
|
71
|
+
error = factory.call
|
72
|
+
error.should.be.kind_of UIBlurEffect
|
73
|
+
end
|
74
|
+
end
|
75
|
+
end
|
76
|
+
|
64
77
|
describe UIButton do
|
65
78
|
[
|
66
79
|
'with #custom', -> { UIButton.custom },
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sugarcube
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Colin T.A. Gray
|
@@ -108,6 +108,7 @@ files:
|
|
108
108
|
- lib/ios/sugarcube-factories/uialertcontroller.rb
|
109
109
|
- lib/ios/sugarcube-factories/uialertview.rb
|
110
110
|
- lib/ios/sugarcube-factories/uibarbuttonitem.rb
|
111
|
+
- lib/ios/sugarcube-factories/uiblureffect.rb
|
111
112
|
- lib/ios/sugarcube-factories/uibutton.rb
|
112
113
|
- lib/ios/sugarcube-factories/uisegmentedcontrol.rb
|
113
114
|
- lib/ios/sugarcube-factories/uitabbaritem.rb
|