sugarcube 0.6.1 → 0.7

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/README.md CHANGED
@@ -509,6 +509,22 @@ floats = Pointer.new(:float, 3)
509
509
  floats[0] = 0.0
510
510
  floats[1] = 1.1
511
511
  floats[2] = 2.2
512
+ ```
513
+
514
+ UUID
515
+ ------
516
+
517
+ Quick wrapper for `CFUUIDCreate()` and `CFUUIDCreateString()`. Identical to the
518
+ `BubbleWrap::create_uuid` method.
519
+
520
+ ```ruby
521
+ > SugarCube::UUID::uuid
522
+ "0A3A76C6-9738-4458-969E-3B9DF174A3D9"
523
+
524
+ # or
525
+ > include SugarCube::UUID
526
+ > uuid
527
+ # => "0A3A76C6-9738-4458-969E-3B9DF174A3D9"
512
528
  ```
513
529
 
514
530
  [BubbleWrap]: https://github.com/rubymotion/BubbleWrap
@@ -0,0 +1,10 @@
1
+ module SugarCube
2
+ module UUID
3
+ module_function
4
+
5
+ def uuid
6
+ new_id = CFUUIDCreate(nil)
7
+ CFUUIDCreateString(nil, new_id)
8
+ end
9
+ end
10
+ end
@@ -1,3 +1,3 @@
1
1
  module SugarCube
2
- Version = '0.6.1'
2
+ Version = '0.7'
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.6.1
4
+ version: '0.7'
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -14,7 +14,7 @@ date: 2012-08-16 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rake
17
- requirement: &70179309033960 !ruby/object:Gem::Requirement
17
+ requirement: &70258774105540 !ruby/object:Gem::Requirement
18
18
  none: false
19
19
  requirements:
20
20
  - - ! '>='
@@ -22,10 +22,10 @@ dependencies:
22
22
  version: '0'
23
23
  type: :runtime
24
24
  prerelease: false
25
- version_requirements: *70179309033960
25
+ version_requirements: *70258774105540
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: rspec
28
- requirement: &70179309033020 !ruby/object:Gem::Requirement
28
+ requirement: &70258774104900 !ruby/object:Gem::Requirement
29
29
  none: false
30
30
  requirements:
31
31
  - - ! '>='
@@ -33,7 +33,7 @@ dependencies:
33
33
  version: '0'
34
34
  type: :development
35
35
  prerelease: false
36
- version_requirements: *70179309033020
36
+ version_requirements: *70258774104900
37
37
  description: ! 'CocoaTouch/iOS is a *verbose* framework. These extensions hope to
38
38
  make
39
39
 
@@ -90,6 +90,7 @@ files:
90
90
  - lib/sugarcube/uitableview.rb
91
91
  - lib/sugarcube/uiview.rb
92
92
  - lib/sugarcube/uiviewcontroller.rb
93
+ - lib/sugarcube/uuid.rb
93
94
  - lib/sugarcube/version.rb
94
95
  - sugarcube.gemspec
95
96
  homepage: https://github.com/fusionbox/sugarcube