sugarcube 1.0.0 → 1.0.1

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.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- sugarcube (1.0.0)
4
+ sugarcube (1.0.1)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -1,3 +1,3 @@
1
1
  module SugarCube
2
- Version = '1.0.0'
2
+ Version = '1.0.1'
3
3
  end
@@ -12,4 +12,8 @@ class NSURL
12
12
  NSURLRequest.requestWithURL(self)
13
13
  end
14
14
 
15
+ def nsmutableurlrequest
16
+ NSMutableURLRequest.alloc.initWithURL(self)
17
+ end
18
+
15
19
  end
data/spec/nsurl_spec.rb CHANGED
@@ -16,4 +16,8 @@ describe "NSURL" do
16
16
  NSURLRequest.should === 'https://github.com'.nsurl.nsurlrequest
17
17
  end
18
18
 
19
+ it "should have a method #nsmutableurlrequest" do
20
+ NSMutableURLRequest.should === 'https://github.com'.nsurl.nsmutableurlrequest
21
+ end
22
+
19
23
  end
@@ -113,6 +113,10 @@ describe 'UIActionSheet' do
113
113
  proper_wait 0.6
114
114
  end
115
115
 
116
+ after do
117
+ @alert.dismissWithClickedButtonIndex(-1, animated: false) if @alert.visible?
118
+ end
119
+
116
120
  it 'should call block with "cancel" when cancel button is pressed' do
117
121
  @alert.cancelButtonIndex.should == 1
118
122
  @alert.dismissWithClickedButtonIndex(@alert.cancelButtonIndex, animated: false)
@@ -139,6 +143,10 @@ describe 'UIActionSheet' do
139
143
  proper_wait 0.6
140
144
  end
141
145
 
146
+ after do
147
+ @alert.dismissWithClickedButtonIndex(-1, animated: false) if @alert.visible?
148
+ end
149
+
142
150
  it 'should call block with "cancel" when cancel button is pressed' do
143
151
  @alert.cancelButtonIndex.should == 1
144
152
  @alert.dismissWithClickedButtonIndex(@alert.cancelButtonIndex, animated: false)
@@ -165,6 +173,10 @@ describe 'UIActionSheet' do
165
173
  proper_wait 0.6
166
174
  end
167
175
 
176
+ after do
177
+ @alert.dismissWithClickedButtonIndex(-1, animated: false) if @alert.visible?
178
+ end
179
+
168
180
  it 'should call block with "cancel" when cancel button is pressed' do
169
181
  @alert.cancelButtonIndex.should == -1
170
182
  end
@@ -191,6 +203,10 @@ describe 'UIActionSheet' do
191
203
  proper_wait 0.6
192
204
  end
193
205
 
206
+ after do
207
+ @alert.dismissWithClickedButtonIndex(-1, animated: false) if @alert.visible?
208
+ end
209
+
194
210
  it 'should call block with "cancel" when cancel button is pressed' do
195
211
  @alert.cancelButtonIndex.should == -1
196
212
  end
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: 1.0.0
4
+ version: 1.0.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: