sugarcube 2.3.0 → 2.4.0

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
  SHA1:
3
- metadata.gz: 4927c830c7506b761237ac68832cd66de069053c
4
- data.tar.gz: e8c5a0ce9349cda4d726d8867396a7f58f33b588
3
+ metadata.gz: 972bf2ad876cf570e97d61fdc891d4d8b9da1e42
4
+ data.tar.gz: 699b6b63231c98b2a8b4904b9a46d7632adf6e61
5
5
  SHA512:
6
- metadata.gz: a90054a85c93abbc71842479b0cdc19410d23e73500ab5862b20454e8f1e9c737d36286750272167e4f8894ae0bbb4c80ec5ec0b14e350a77403b576e15de4a8
7
- data.tar.gz: 883da51ede064c5d663aef73ff023473971ee8ab478183b2f268b8a96bafda318c114ff23fb7b9f8412267a76b7da61678e4f7205c6b281fd224a2c91249b815
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
@@ -1,3 +1,3 @@
1
1
  module SugarCube
2
- Version = '2.3.0'
2
+ Version = '2.4.0'
3
3
  end
@@ -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.3.0
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