yui_rest_client 0.5.0 → 0.5.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ea981c5b7efbf645df05748af02a42230510892162b5279634794d527d82ddbc
4
- data.tar.gz: e3291d947be7d5e0d1d1257766fb4de0ccaf91891c4f53e7b049a05a90596a5d
3
+ metadata.gz: ca27d870afe905331021d8f5e4f5404fddbde8cbd6f1c30f99014a9e67c65e26
4
+ data.tar.gz: 4b80b15184d9ab7073a23bdf126366790571aa976892c79183b559b053b2fe1a
5
5
  SHA512:
6
- metadata.gz: 2aa47e95d61d4f9e4a6b7a02e81e55af1274c9d93c73bcc5f3856c6389083f482c7cd5fe125a65b0b2061704896f60777542b487a7d3ce24d5a59f69bb58f8ea
7
- data.tar.gz: 2307d790e8d50ba3abf495d055f283b2ba778b3b9e1655712e0d59d00ddbe0793e41d08bcda5ba52076645e2f46207545f9c624f79e94f4f6521280e3676713c
6
+ metadata.gz: f49a5754c51af9e4e97013872ed4b0b9db9b3b88cc436e54150e0247ef628dad4f22f5f2cde32a463d3e11427e11ba0ba209248b1e0adeefb516fde4d50d2a3e
7
+ data.tar.gz: 7f1aadb357cbce7897199832153388b5e421abf4ee651032ad75b18d21fc4042d2ed9eb960b6668b2a4a47e0cb7071f398c9b8be4b08a282043cb6bf9aaa37f4
data/README.md CHANGED
@@ -92,9 +92,9 @@ app.label(id: 'test_id').heading? # gets if label has bold font respresentation
92
92
  app.label(id: 'test_id').text # gets text from label with id 'test_id'
93
93
  ```
94
94
 
95
- ### Menubutton
95
+ ### MenuCollection
96
96
  ```ruby
97
- app.menubutton(id: 'test_id').click('button1') # clicks on 'button1' of menubutton with id 'test_id'
97
+ app.menucollection(id: 'test_id').click('item1') # clicks on 'item1' of menucollection with id 'test_id'
98
98
  ```
99
99
 
100
100
  ### Numberbox
@@ -73,14 +73,14 @@ module YuiRestClient
73
73
  Widgets::Label.new(@widget_controller, FilterExtractor.new(filter))
74
74
  end
75
75
 
76
- # Initializes new instance of Menubutton with the filter provided.
76
+ # Initializes new instance of Menucollection with the filter provided.
77
77
  # Does not make request to libyui-rest-api.
78
78
  # @param filter [Hash] filter to find a widget
79
- # @return [Widgets::Menubutton] new instance of Menubutton
79
+ # @return [Widgets::Menucollection] new instance of Menucollection
80
80
  # @example
81
- # app.menubutton(id: 'id', label: 'label', class: 'YMenuButton')
82
- def menubutton(filter)
83
- Widgets::Menubutton.new(@widget_controller, FilterExtractor.new(filter))
81
+ # app.menucollection(id: 'id', label: 'label', class: 'YMenuButton')
82
+ def menucollection(filter)
83
+ Widgets::Menucollection.new(@widget_controller, FilterExtractor.new(filter))
84
84
  end
85
85
 
86
86
  # Initializes new instance of Multilinebox with the filter provided.
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module YuiRestClient
4
- VERSION = '0.5.0'
4
+ VERSION = '0.5.1'
5
5
  API_VERSION = 'v1'
6
6
  end
@@ -10,7 +10,7 @@ module YuiRestClient
10
10
  require 'yui_rest_client/widgets/combobox'
11
11
  require 'yui_rest_client/widgets/datefield'
12
12
  require 'yui_rest_client/widgets/label'
13
- require 'yui_rest_client/widgets/menubutton'
13
+ require 'yui_rest_client/widgets/menucollection'
14
14
  require 'yui_rest_client/widgets/multilinebox'
15
15
  require 'yui_rest_client/widgets/numberbox'
16
16
  require 'yui_rest_client/widgets/progressbar'
@@ -2,13 +2,13 @@
2
2
 
3
3
  module YuiRestClient
4
4
  module Widgets
5
- # Class representing a menubutton in UI. It can be YMenuButton.
6
- class Menubutton < Widgets::Base
7
- # Sends action to click on one of the items of the menubutton in UI.
8
- # @param item [String] value to select from items.
9
- # @example Click button with label 'test_button' for menubutton with id 'test_id'.
5
+ # Class representing a menucollection in UI. It can be YMenuButton, YMenuBar.
6
+ class Menucollection < Widgets::Base
7
+ # Sends action to click on one item of a menu (menu button or menu bar) in UI.
8
+ # @param item [String] value to select from menu.
9
+ # @example Click button with label 'test_button' for menucollection with id 'test_id'.
10
10
  # @example
11
- # app.menubutton(id: 'test_id').click('test_button')
11
+ # app.menucollection(id: 'test_id').click('test_item')
12
12
  def click(item)
13
13
  action(action: Actions::PRESS, value: item)
14
14
  end
@@ -36,7 +36,7 @@ module YuiRestClient
36
36
  # "label": "button group"
37
37
  # }
38
38
  # @example
39
- # app.menubutton(id: 'test').items
39
+ # app.menucollection(id: 'test').items
40
40
  # # button1
41
41
  # # button2
42
42
  # # button3
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yui_rest_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joaquin Rivera
@@ -12,7 +12,7 @@ authors:
12
12
  autorequire:
13
13
  bindir: exe
14
14
  cert_chain: []
15
- date: 2020-10-14 00:00:00.000000000 Z
15
+ date: 2020-10-20 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: bundler
@@ -181,7 +181,7 @@ files:
181
181
  - lib/yui_rest_client/widgets/combobox.rb
182
182
  - lib/yui_rest_client/widgets/datefield.rb
183
183
  - lib/yui_rest_client/widgets/label.rb
184
- - lib/yui_rest_client/widgets/menubutton.rb
184
+ - lib/yui_rest_client/widgets/menucollection.rb
185
185
  - lib/yui_rest_client/widgets/multilinebox.rb
186
186
  - lib/yui_rest_client/widgets/numberbox.rb
187
187
  - lib/yui_rest_client/widgets/progressbar.rb