sugarcube 0.20.8 → 0.20.9
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 +1 -1
- data/lib/sugarcube/nsdata.rb +1 -1
- data/lib/sugarcube/nsstring.rb +1 -1
- data/lib/sugarcube/timer.rb +0 -11
- data/lib/sugarcube/version.rb +1 -1
- data/spec/nsdata_spec.rb +1 -13
- data/spec/symbol_uicolor_spec.rb +95 -0
- metadata +3 -1
data/Gemfile.lock
CHANGED
data/lib/sugarcube/nsdata.rb
CHANGED
data/lib/sugarcube/nsstring.rb
CHANGED
data/lib/sugarcube/timer.rb
CHANGED
data/lib/sugarcube/version.rb
CHANGED
data/spec/nsdata_spec.rb
CHANGED
@@ -49,19 +49,7 @@ describe "NSData" do
|
|
49
49
|
path.exists?.should == true
|
50
50
|
url.nsdata.nsstring.should == contents
|
51
51
|
end
|
52
|
-
|
53
|
-
end
|
54
|
-
|
55
|
-
describe 'base64' do
|
56
|
-
|
57
|
-
it 'should convert nsstring data to base64' do
|
58
|
-
'much longer test'.nsdata.base64.should == 'bXVjaCBsb25nZXIgdGVzdA=='
|
59
|
-
end
|
60
|
-
|
61
|
-
it 'should convert image data (PNG) to base64' do
|
62
|
-
'test'.uiimage.nsdata.base64.should == 'iVBORw0KGgoAAAANSUhEUgAAAAEAAAHgCAIAAADrGJBNAAAAHElEQVQ4jWO4a8TAxMAwikfxKB7Fo3gUj2I6YgAAiQTO+8u2PwAAAABJRU5ErkJggg=='
|
63
|
-
end
|
64
|
-
|
52
|
+
|
65
53
|
end
|
66
54
|
|
67
55
|
end
|
@@ -0,0 +1,95 @@
|
|
1
|
+
describe "Symbol uicolor" do
|
2
|
+
|
3
|
+
before do
|
4
|
+
@colors = Symbol.uicolors
|
5
|
+
end
|
6
|
+
|
7
|
+
it 'should have 21 colors' do
|
8
|
+
@colors.size.should == 21
|
9
|
+
end
|
10
|
+
|
11
|
+
it 'should have black color' do
|
12
|
+
@colors[:black].should == :blackColor
|
13
|
+
end
|
14
|
+
|
15
|
+
it 'should have blue color' do
|
16
|
+
@colors[:blue].should == :blueColor
|
17
|
+
end
|
18
|
+
|
19
|
+
it 'should have brown color' do
|
20
|
+
@colors[:brown].should == :brownColor
|
21
|
+
end
|
22
|
+
|
23
|
+
it 'should have cyan color' do
|
24
|
+
@colors[:cyan].should == :cyanColor
|
25
|
+
end
|
26
|
+
|
27
|
+
it 'should have darkgray color' do
|
28
|
+
@colors[:darkgray].should == :darkGrayColor
|
29
|
+
end
|
30
|
+
|
31
|
+
it 'should have gray color' do
|
32
|
+
@colors[:gray].should == :grayColor
|
33
|
+
end
|
34
|
+
|
35
|
+
it 'should have green color' do
|
36
|
+
@colors[:green].should == :greenColor
|
37
|
+
end
|
38
|
+
|
39
|
+
it 'should have lightgray color' do
|
40
|
+
@colors[:lightgray].should == :lightGrayColor
|
41
|
+
end
|
42
|
+
|
43
|
+
it 'should have magenta color' do
|
44
|
+
@colors[:magenta].should == :magentaColor
|
45
|
+
end
|
46
|
+
|
47
|
+
it 'should have orange color' do
|
48
|
+
@colors[:orange].should == :orangeColor
|
49
|
+
end
|
50
|
+
|
51
|
+
it 'should have purple color' do
|
52
|
+
@colors[:purple].should == :purpleColor
|
53
|
+
end
|
54
|
+
|
55
|
+
it 'should have red color' do
|
56
|
+
@colors[:red].should == :redColor
|
57
|
+
end
|
58
|
+
|
59
|
+
it 'should have yellow color' do
|
60
|
+
@colors[:yellow].should == :yellowColor
|
61
|
+
end
|
62
|
+
|
63
|
+
it 'should have white color' do
|
64
|
+
@colors[:white].should == :whiteColor
|
65
|
+
end
|
66
|
+
|
67
|
+
it 'should have clear color' do
|
68
|
+
@colors[:clear].should == :clearColor
|
69
|
+
end
|
70
|
+
|
71
|
+
it 'should have light_text color' do
|
72
|
+
@colors[:light_text].should == :lightTextColor
|
73
|
+
end
|
74
|
+
|
75
|
+
it 'should have dark_text color' do
|
76
|
+
@colors[:dark_text].should == :darkTextColor
|
77
|
+
end
|
78
|
+
|
79
|
+
it 'should have table_view color' do
|
80
|
+
@colors[:table_view].should == :groupTableViewBackgroundColor
|
81
|
+
end
|
82
|
+
|
83
|
+
it 'should have scroll_view color' do
|
84
|
+
@colors[:scroll_view].should == :scrollViewTexturedBackgroundColor
|
85
|
+
end
|
86
|
+
|
87
|
+
it 'should have flipside color' do
|
88
|
+
@colors[:flipside].should == :viewFlipsideBackgroundColor
|
89
|
+
end
|
90
|
+
|
91
|
+
it 'should have under_page color' do
|
92
|
+
@colors[:under_page].should == :underPageBackgroundColor
|
93
|
+
end
|
94
|
+
|
95
|
+
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.20.
|
4
|
+
version: 0.20.9
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -157,6 +157,7 @@ files:
|
|
157
157
|
- spec/nsurl_spec.rb
|
158
158
|
- spec/numeric_spec.rb
|
159
159
|
- spec/symbol_spec.rb
|
160
|
+
- spec/symbol_uicolor_spec.rb
|
160
161
|
- spec/timer_spec.rb
|
161
162
|
- spec/uibarbuttonitem_spec.rb
|
162
163
|
- spec/uicolor_components_spec.rb
|
@@ -221,6 +222,7 @@ test_files:
|
|
221
222
|
- spec/nsurl_spec.rb
|
222
223
|
- spec/numeric_spec.rb
|
223
224
|
- spec/symbol_spec.rb
|
225
|
+
- spec/symbol_uicolor_spec.rb
|
224
226
|
- spec/timer_spec.rb
|
225
227
|
- spec/uibarbuttonitem_spec.rb
|
226
228
|
- spec/uicolor_components_spec.rb
|