teacup 2.1.7 → 2.1.8
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/teacup/teacup_view.rb +1 -1
- data/lib/teacup/version.rb +1 -1
- data/spec/ios/view_spec.rb +11 -0
- metadata +2 -2
data/Gemfile.lock
CHANGED
data/lib/teacup/teacup_view.rb
CHANGED
data/lib/teacup/version.rb
CHANGED
data/spec/ios/view_spec.rb
CHANGED
@@ -18,6 +18,9 @@ describe "Teacup::View" do
|
|
18
18
|
@stylesheet = Teacup::Stylesheet.new do
|
19
19
|
style :label,
|
20
20
|
text: "Stylesheet1 Label1"
|
21
|
+
|
22
|
+
style :new_style,
|
23
|
+
text: 'new style'
|
21
24
|
end
|
22
25
|
end
|
23
26
|
|
@@ -44,6 +47,14 @@ describe "Teacup::View" do
|
|
44
47
|
end
|
45
48
|
end
|
46
49
|
|
50
|
+
describe 'add_style_class' do
|
51
|
+
it "should add the new style to the view" do
|
52
|
+
@view.stylesheet = @stylesheet
|
53
|
+
@view.add_style_class :new_style
|
54
|
+
@view.text.should == "new style"
|
55
|
+
end
|
56
|
+
end
|
57
|
+
|
47
58
|
describe 'stylesheet=' do
|
48
59
|
it 'should work' do
|
49
60
|
@view.stylesheet = @stylesheet
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: teacup
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
4
|
+
version: 2.1.8
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-08-
|
12
|
+
date: 2013-08-05 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: ! 'Teacup is a community-driven DSL for making CSS-like styling, and
|
15
15
|
layouts for
|