teacup 2.1.10 → 2.1.11

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- teacup (2.1.10)
4
+ teacup (2.1.11)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -15,6 +15,7 @@ class DummyTableView < NSTableView
15
15
  private
16
16
  def dummy
17
17
  setAllowSelection(value)
18
+ setSelectionHighlightStyle(value)
18
19
  end
19
20
  end
20
21
 
@@ -5,8 +5,8 @@ module Teacup
5
5
  view.instance_exec(&amount)
6
6
  elsif amount.is_a?(String) && amount.include?('%')
7
7
  location = amount.index '%'
8
- offset = amount[(location+1)..-1].gsub(' ', '').to_f
9
- percent = amount[0...location].to_f / 100.0
8
+ offset = amount.slice(location+1, amount.size).gsub(' ', '').to_f
9
+ percent = amount.slice(0, location).to_f / 100.0
10
10
 
11
11
  case dimension
12
12
  when :width
@@ -133,7 +133,7 @@ module Teacup
133
133
  end
134
134
 
135
135
  def get_stylesheet_cache(stylename, target, orientation)
136
- stylesheet_cache[stylename][target][orientation]
136
+ self.stylesheet_cache[stylename][target][orientation]
137
137
  end
138
138
 
139
139
  def set_stylesheet_cache(stylename, target, orientation, value)
@@ -186,14 +186,14 @@ module Teacup
186
186
  end
187
187
 
188
188
  if original_constraint.relative_to && ! constraint.relative_to
189
- puts "Could not find #{original_constraint.relative_to.inspect}"
190
189
  container = self
191
- tab = ' '
192
- while container && constraint.relative_to.nil?
190
+ tab = ''
191
+ while container
193
192
  tab << '->'
194
193
  puts "#{tab} #{container.stylename.inspect}"
195
194
  container = container.superview
196
195
  end
196
+ raise "Could not find #{original_constraint.relative_to.inspect}"
197
197
  end
198
198
 
199
199
  # the return value, for the map
@@ -1,5 +1,5 @@
1
1
  module Teacup
2
2
 
3
- VERSION = '2.1.10'
3
+ VERSION = '2.1.11'
4
4
 
5
5
  end
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.10
4
+ version: 2.1.11
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-09-09 00:00:00.000000000 Z
12
+ date: 2013-10-04 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