sugarcube 0.9.4 → 0.10

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -447,6 +447,20 @@ control.segmentedControlStyle = :bar.uisegmentedstyle
447
447
  # =>
448
448
 
449
449
  UISegmentedControl.bar(["one", "ah-two-whoo", "thr-r-r-ree"])
450
+ ```
451
+
452
+ ###### UIActivityViewIndicator
453
+
454
+ ```ruby
455
+ UIActivityIndicatorView.alloc.initWithActivityIndicatorStyle(:white.uiactivityindicatorstyle)
456
+ UIActivityIndicatorView.alloc.initWithActivityIndicatorStyle(:large.uiactivityindicatorstyle)
457
+ UIActivityIndicatorView.alloc.initWithActivityIndicatorStyle(:gray.uiactivityindicatorstyle)
458
+
459
+ # =>
460
+
461
+ UIActivityIndicatorView.white
462
+ UIActivityIndicatorView.large
463
+ UIActivityIndicatorView.gray
450
464
  ```
451
465
 
452
466
  UIControl
@@ -0,0 +1,8 @@
1
+ class NSError
2
+ def to_s
3
+ "#<#{self.class.name}:0x#{self.object_id.to_s(16)}, "+
4
+ "description=#{self.localizedDescription.inspect}, code=#{code}, "+
5
+ "domain=#{domain.inspect}, userInfo=#{userInfo.inspect}"+
6
+ ">"
7
+ end
8
+ end
@@ -0,0 +1,16 @@
1
+ class UIActivityIndicatorView
2
+ class << self
3
+
4
+ def large
5
+ self.alloc.initWithActivityIndicatorStyle(:large.uiactivityindicatorstyle)
6
+ end
7
+
8
+ def white
9
+ self.alloc.initWithActivityIndicatorStyle(:white.uiactivityindicatorstyle)
10
+ end
11
+
12
+ def gray
13
+ self.alloc.initWithActivityIndicatorStyle(:gray.uiactivityindicatorstyle)
14
+ end
15
+ end
16
+ end
@@ -1,3 +1,3 @@
1
1
  module SugarCube
2
- Version = '0.9.4'
2
+ Version = '0.10'
3
3
  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: 0.9.4
4
+ version: '0.10'
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2012-10-03 00:00:00.000000000 Z
13
+ date: 2012-10-19 00:00:00.000000000 Z
14
14
  dependencies: []
15
15
  description: ! '== Description
16
16
 
@@ -64,11 +64,13 @@ files:
64
64
  - lib/sugarcube/symbol.rb
65
65
  - lib/sugarcube/symbol/symbol_uicolor.rb
66
66
  - lib/sugarcube/timer.rb
67
+ - lib/sugarcube/to_s/nserror.rb
67
68
  - lib/sugarcube/to_s/nsset.rb
68
69
  - lib/sugarcube/to_s/uicolor.rb
69
70
  - lib/sugarcube/to_s/uievent.rb
70
71
  - lib/sugarcube/to_s/uitouch.rb
71
72
  - lib/sugarcube/to_s/uiview.rb
73
+ - lib/sugarcube/uiactivityindicator.rb
72
74
  - lib/sugarcube/uialertview.rb
73
75
  - lib/sugarcube/uibutton.rb
74
76
  - lib/sugarcube/uicolor.rb