sunomono 0.3.0 → 0.3.1

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c5a21e942c9b0b7cb73b862db3f30ca92605a393
4
- data.tar.gz: e25df63ed527cbd79a2e3668f8dde2f862a530bd
3
+ metadata.gz: 812541d3339c2da0aebd704bb947ff5440e66973
4
+ data.tar.gz: addd53f13c8d9b96203d7cddd9fad2c802800c35
5
5
  SHA512:
6
- metadata.gz: c67b33691702e7df92e684de0c038b50e4ea30686119e194b4bbc87b0d49811a33550a72dff4e81977d657802a98d7416ab74aee085e9eea4d12ca50ae91de0a
7
- data.tar.gz: f0eaafc32888d37a7f497c229166843fe4e2a7d50c426f8d6c602e859f86119452d506a695af6412521f9a76804f4193a416e5b98101089f4e80c5ac179f3dda
6
+ metadata.gz: 33e7fca8f285101e3a1ae14130ba262536e65e4cc05263ee5aa1080b04f96ca60c2f6f4d76e2674b99149762c7a1fbcf2089c800e5aef3d61f44dc86df22aa48
7
+ data.tar.gz: 706956af6e7a3aeba067e01e10c41163dd8d4bfb2098985372ae85d58ccfd48f55ac901e2a14f46c578d4592f449df5fd0573df8e5c75734fd2d93ae27ca9ef5
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Sunomono
2
2
 
3
- [![Gem Version](https://badge.fury.io/rb/sunomono.svg)](https://badge.fury.io/rb/sunomono)
3
+ [![Gem Version](https://badge.fury.io/rb/sunomono.svg)](https://badge.fury.io/rb/sunomono) [![CircleCI](https://circleci.com/gh/concretesolutions/sunomono/tree/master.svg?style=svg)](https://circleci.com/gh/concretesolutions/sunomono/tree/master)
4
4
 
5
5
  > ***The new version of [cs-bdd](https://rubygems.org/gems/cs-bdd) gem. cs-bdd was deprecated and will be yanked in the future. Always refer to sunomono from now on.***
6
6
 
@@ -1,3 +1,3 @@
1
1
  module Sunomono
2
- VERSION = '0.3.0'.freeze
2
+ VERSION = '0.3.1'.freeze
3
3
  end
@@ -159,12 +159,12 @@ class AndroidScreenBase < Calabash::ABase
159
159
  should_have_exception
160
160
  end
161
161
 
162
- def enter(text, element, query = nil)
163
- if query.nil?
164
- query("* marked:'#{element}'", setText: text.to_s)
165
- else
166
- query(query, setText: text.to_s)
167
- end
162
+ def enter(text, element)
163
+ touch("* id:'#{element}'")
164
+
165
+ enter_text("* id:'#{element}'", text)
166
+
167
+ hide_soft_keyboard
168
168
  end
169
169
 
170
170
  def touch_screen_element(element, query = nil)
@@ -196,4 +196,20 @@ class AndroidScreenBase < Calabash::ABase
196
196
  # Clicking in the Done button
197
197
  touch "* id:'button1'"
198
198
  end
199
+
200
+ # @param [String] id The view's id
201
+ # @param [String] The complete view query (optional)
202
+ # @return [Array] return an array[String] associated with the views
203
+ def text_array_from(id, query = nil)
204
+ query = "* id:'#{id}'" if query.nil?
205
+ query(query, :text)
206
+ end
207
+
208
+ # @param [String] id The view's id
209
+ # @param [String] The complete view query (optional)
210
+ # @return [String] returns a string associated with a single view
211
+ def text_from(id, query = nil)
212
+ text_array_from(id, query).first
213
+ end
214
+
199
215
  end
@@ -259,4 +259,20 @@ class IOSScreenBase < Calabash::IBase
259
259
  # Touching the OK button to close the Picker
260
260
  touch "* marked:'OK'"
261
261
  end
262
+
263
+ # @param [String] marked The view's 'marked' attribute
264
+ # @param [String] query The complete view query (optional)
265
+ # @return [Array] return an array[String] associated with the views
266
+ def text_array_from(marked, query = nil)
267
+ query = "* marked:'#{marked}'" if query.nil?
268
+ query(query, :text)
269
+ end
270
+
271
+ # @param [String] marked The view's 'marked' attribute
272
+ # @param [String] query The complete view query (optional)
273
+ # @return [String] returns a string associated with a single view
274
+ def text_from(marked, query = nil)
275
+ text_array_from(marked, query).first
276
+ end
277
+
262
278
  end
data/sunomono.gemspec CHANGED
@@ -6,8 +6,8 @@ require 'sunomono/version'
6
6
  Gem::Specification.new do |spec|
7
7
  spec.name = 'sunomono'
8
8
  spec.version = Sunomono::VERSION
9
- spec.authors = ['Oscar Tanner']
10
- spec.email = ['oscarpanda@gmail.com']
9
+ spec.authors = ['Oscar Tanner', 'Wellington Avelino']
10
+ spec.email = ['oscarpanda@gmail.com', 'wellington.santos@concrete.com.br']
11
11
  spec.summary = 'Generates an android and iOS calabash project.'
12
12
  spec.description = %q{A simple gem to generate all files needed in a project that will support Calabash for both Android and iOS.}
13
13
  spec.homepage = 'https://github.com/concretesolutions/sunomono'
metadata CHANGED
@@ -1,14 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sunomono
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Oscar Tanner
8
+ - Wellington Avelino
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2017-01-10 00:00:00.000000000 Z
12
+ date: 2017-09-01 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: bundler
@@ -98,6 +99,7 @@ description: A simple gem to generate all files needed in a project that will su
98
99
  Calabash for both Android and iOS.
99
100
  email:
100
101
  - oscarpanda@gmail.com
102
+ - wellington.santos@concrete.com.br
101
103
  executables:
102
104
  - sunomono
103
105
  - suno
@@ -181,7 +183,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
181
183
  version: '0'
182
184
  requirements: []
183
185
  rubyforge_project:
184
- rubygems_version: 2.6.8
186
+ rubygems_version: 2.5.2
185
187
  signing_key:
186
188
  specification_version: 4
187
189
  summary: Generates an android and iOS calabash project.