osaka 0.4.5 → 0.4.6

Sign up to get free protection for your applications and to get access to all the features.
data/lib/osaka/numbers.rb CHANGED
@@ -42,7 +42,12 @@ module Osaka
42
42
 
43
43
  def set_column_count(amount)
44
44
  control.tell("tell document 1; tell sheet 1; tell table 1; set column count to #{amount}; end tell; end tell; end tell")
45
+ end
46
+
47
+ def set_header_columns(column)
48
+ control.click_menu_bar(at.menu_item(column.to_s).menu(1).menu_item("Header Columns"), "Table")
45
49
  end
46
50
 
51
+
47
52
  end
48
53
  end
data/lib/osaka/pages.rb CHANGED
@@ -98,7 +98,7 @@ module Osaka
98
98
  end
99
99
  control.click(at.button("OK").sheet(1))
100
100
  end
101
-
101
+
102
102
  def mail_merge_field(field_name)
103
103
  control.click_menu_bar(at.menu_item(field_name).menu(1).menu_item("Merge Field"), "Insert")
104
104
  end
data/lib/osaka/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
 
2
2
  module Osaka
3
- VERSION = "0.4.5"
3
+ VERSION = "0.4.6"
4
4
  end
data/spec/numbers_spec.rb CHANGED
@@ -41,6 +41,11 @@ describe "Osaka::Numbers" do
41
41
  subject.new_document
42
42
  end
43
43
 
44
+ it "Should be able to change the header columns" do
45
+ expect_click_menu_bar(at.menu_item("0").menu(1).menu_item("Header Columns"), "Table")
46
+ subject.set_header_columns(0)
47
+ end
48
+
44
49
  it "Should be able to use a class method for creating documents quickly" do
45
50
  Osaka::Numbers.should_receive(:new).any_number_of_times.and_return(mock("App"))
46
51
  subject.should_receive(:create_document)
data/spec/pages_spec.rb CHANGED
@@ -103,13 +103,10 @@ describe "Osaka::Pages" do
103
103
 
104
104
  end
105
105
 
106
-
107
106
  it "Should be able to insert a merge field" do
108
107
  expect_click_menu_bar(at.menu_item("Data").menu(1).menu_item("Merge Field"), "Insert")
109
108
  subject.mail_merge_field("Data")
110
109
  end
111
-
112
-
113
110
  end
114
111
 
115
112
  describe "Osaka::Pages Inspector" do
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: osaka
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.4.5
5
+ version: 0.4.6
6
6
  platform: ruby
7
7
  authors:
8
8
  - Bas Vodde