sugarcube 0.18.5 → 0.18.6
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
@@ -132,6 +132,10 @@ distance.miles # => 0.932056427001953
|
|
132
132
|
NSAttributedString
|
133
133
|
---------
|
134
134
|
|
135
|
+
```ruby
|
136
|
+
require 'sugarcube-attributedstring'
|
137
|
+
```
|
138
|
+
|
135
139
|
These become pretty fun! Check out `nsattributedstring_spec.rb` for all the
|
136
140
|
supported attributes (in theory they are all supported, but there's weird
|
137
141
|
issues with missing constants).
|
data/Rakefile
CHANGED
data/lib/sugarcube/version.rb
CHANGED
File without changes
|
@@ -0,0 +1,23 @@
|
|
1
|
+
unless defined?(Motion::Project::Config)
|
2
|
+
raise "The sugarcube gem must be required within a RubyMotion project Rakefile."
|
3
|
+
end
|
4
|
+
|
5
|
+
|
6
|
+
Motion::Project::App.setup do |app|
|
7
|
+
# scans app.files until it finds app/ (the default)
|
8
|
+
# if found, it inserts just before those files, otherwise it will insert to
|
9
|
+
# the end of the list
|
10
|
+
insert_point = 0
|
11
|
+
app.files.each_index do |index|
|
12
|
+
file = app.files[index]
|
13
|
+
if file =~ /^(?:\.\/)?app\//
|
14
|
+
# found app/, so stop looking
|
15
|
+
break
|
16
|
+
end
|
17
|
+
insert_point = index + 1
|
18
|
+
end
|
19
|
+
|
20
|
+
Dir.glob(File.join(File.dirname(__FILE__), 'sugarcube-attributedstring/**/*.rb')).reverse.each do |file|
|
21
|
+
app.files.insert(insert_point, file)
|
22
|
+
end
|
23
|
+
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.18.
|
4
|
+
version: 0.18.6
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -51,6 +51,8 @@ files:
|
|
51
51
|
- app/app_delegate.rb
|
52
52
|
- lib/sugarcube-568.rb
|
53
53
|
- lib/sugarcube-568/uiimage.rb
|
54
|
+
- lib/sugarcube-attributedstring.rb
|
55
|
+
- lib/sugarcube-attributedstring/nsattributedstring.rb
|
54
56
|
- lib/sugarcube-gestures.rb
|
55
57
|
- lib/sugarcube-gestures/gestures.rb
|
56
58
|
- lib/sugarcube-unholy.rb
|
@@ -67,7 +69,6 @@ files:
|
|
67
69
|
- lib/sugarcube/modal.rb
|
68
70
|
- lib/sugarcube/notifications.rb
|
69
71
|
- lib/sugarcube/nsarray.rb
|
70
|
-
- lib/sugarcube/nsattributedstring.rb
|
71
72
|
- lib/sugarcube/nscoder.rb
|
72
73
|
- lib/sugarcube/nsdata.rb
|
73
74
|
- lib/sugarcube/nsdate.rb
|
@@ -204,3 +205,4 @@ test_files:
|
|
204
205
|
- spec/uiview_attr_updates_spec.rb
|
205
206
|
- spec/uiview_spec.rb
|
206
207
|
- spec/unholy_spec.rb
|
208
|
+
has_rdoc:
|