sunomono 0.2.0.pre
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +17 -0
- data/Gemfile +9 -0
- data/LICENSE.txt +22 -0
- data/README.md +157 -0
- data/Rakefile +1 -0
- data/bin/suno +3 -0
- data/bin/sunomono +3 -0
- data/lib/aws/android/app_installation_hooks.rb +30 -0
- data/lib/aws/android/app_life_cycle_hooks.rb +13 -0
- data/lib/aws/ios/01_launch.rb +43 -0
- data/lib/helpers/sunomono_helpers.rb +136 -0
- data/lib/helpers/zip_helpers.rb +49 -0
- data/lib/skeleton/.gitignore +9 -0
- data/lib/skeleton/Gemfile +7 -0
- data/lib/skeleton/README.md +165 -0
- data/lib/skeleton/config/cucumber.yml +7 -0
- data/lib/skeleton/config/email/template.html +14 -0
- data/lib/skeleton/config/load_classes.rb +31 -0
- data/lib/skeleton/config/scripts/android/run_tests_all_devices.sh +41 -0
- data/lib/skeleton/config/scripts/android/start_emulators.sh +52 -0
- data/lib/skeleton/config/scripts/android/stop_emulators.sh +13 -0
- data/lib/skeleton/config/scripts/break_build_if_failed.sh +6 -0
- data/lib/skeleton/config/scripts/check_if_tests_failed.sh +11 -0
- data/lib/skeleton/config/scripts/ios/build_app.rb +71 -0
- data/lib/skeleton/config/scripts/ios/build_app.yml +13 -0
- data/lib/skeleton/config/scripts/ios/devices.txt +4 -0
- data/lib/skeleton/config/scripts/ios/run_tests_all_devices.sh +57 -0
- data/lib/skeleton/features/android/features/.gitkeep +0 -0
- data/lib/skeleton/features/android/screens/.gitkeep +0 -0
- data/lib/skeleton/features/android/step_definitions/.gitkeep +0 -0
- data/lib/skeleton/features/android/support/app_installation_hooks.rb +36 -0
- data/lib/skeleton/features/android/support/app_life_cycle_hooks.rb +11 -0
- data/lib/skeleton/features/android/support/hooks.rb +0 -0
- data/lib/skeleton/features/ios/features/.gitkeep +0 -0
- data/lib/skeleton/features/ios/screens/.gitkeep +0 -0
- data/lib/skeleton/features/ios/step_definitions/.gitkeep +0 -0
- data/lib/skeleton/features/ios/support/01_launch.rb +94 -0
- data/lib/skeleton/features/ios/support/02_pre_stop_hooks.rb +0 -0
- data/lib/skeleton/features/support/env.rb +5 -0
- data/lib/skeleton/features/support/exceptions.rb +11 -0
- data/lib/skeleton/screenshots/android/.gitkeep +0 -0
- data/lib/skeleton/screenshots/ios/.gitkeep +0 -0
- data/lib/sunomono.rb +238 -0
- data/lib/sunomono/locales/en.yml +27 -0
- data/lib/sunomono/locales/pt.yml +27 -0
- data/lib/sunomono/version.rb +3 -0
- data/lib/templates/android_screen_base.tt +186 -0
- data/lib/templates/base_steps.tt +48 -0
- data/lib/templates/feature.tt +8 -0
- data/lib/templates/ios_screen_base.tt +249 -0
- data/lib/templates/screen.tt +13 -0
- data/lib/templates/steps.tt +5 -0
- data/sunomono.gemspec +27 -0
- metadata +184 -0
@@ -0,0 +1,13 @@
|
|
1
|
+
class <%= config[:name] %>Screen < <%= config[:platform] %>ScreenBase
|
2
|
+
# <%= I18n.translate 'comments.trait' %>
|
3
|
+
# trait(:trait) { "* <%= (config[:platform] == 'Android') ? 'id' : 'marked' %>:'#{layout_name}'" }
|
4
|
+
|
5
|
+
# <%= I18n.translate 'comments.elements' %>
|
6
|
+
# element(:layout_name) { pending 'Insert layout identificator' }
|
7
|
+
# element(:button) { pending 'Insert button identificator' }
|
8
|
+
|
9
|
+
# <%= I18n.translate 'comments.actions' %>
|
10
|
+
# action(:touch_button) do
|
11
|
+
# touch("* <%= (config[:platform] == 'Android') ? 'id' : 'marked' %>:'#{button}'")
|
12
|
+
# end
|
13
|
+
end
|
data/sunomono.gemspec
ADDED
@@ -0,0 +1,27 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'sunomono/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = 'sunomono'
|
8
|
+
spec.version = Sunomono::VERSION
|
9
|
+
spec.authors = ['Oscar Tanner']
|
10
|
+
spec.email = ['oscarpanda@gmail.com']
|
11
|
+
spec.summary = 'Generates an android and iOS calabash project.'
|
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
|
+
spec.homepage = 'https://github.com/concretesolutions/sunomono'
|
14
|
+
spec.license = 'MIT'
|
15
|
+
|
16
|
+
spec.files = `git ls-files -z`.split("\x0")
|
17
|
+
spec.executables = ['sunomono', 'suno']
|
18
|
+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
|
+
spec.require_paths = ['lib']
|
20
|
+
|
21
|
+
spec.add_runtime_dependency 'bundler', '>= 1.7'
|
22
|
+
spec.add_runtime_dependency 'rake', '>= 10.0'
|
23
|
+
spec.add_runtime_dependency 'thor', '>= 0.19.1'
|
24
|
+
spec.add_runtime_dependency 'i18n', '>= 0.6.11'
|
25
|
+
spec.add_runtime_dependency 'gherkin', '2.12.2'
|
26
|
+
spec.add_runtime_dependency 'rubyzip', '~>1.1'
|
27
|
+
end
|
metadata
ADDED
@@ -0,0 +1,184 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: sunomono
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.2.0.pre
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Oscar Tanner
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2016-08-19 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.7'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.7'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '10.0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '10.0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: thor
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: 0.19.1
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 0.19.1
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: i18n
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 0.6.11
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 0.6.11
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: gherkin
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - '='
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: 2.12.2
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - '='
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: 2.12.2
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: rubyzip
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '1.1'
|
90
|
+
type: :runtime
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '1.1'
|
97
|
+
description: A simple gem to generate all files needed in a project that will support
|
98
|
+
Calabash for both Android and iOS.
|
99
|
+
email:
|
100
|
+
- oscarpanda@gmail.com
|
101
|
+
executables:
|
102
|
+
- sunomono
|
103
|
+
- suno
|
104
|
+
extensions: []
|
105
|
+
extra_rdoc_files: []
|
106
|
+
files:
|
107
|
+
- ".gitignore"
|
108
|
+
- Gemfile
|
109
|
+
- LICENSE.txt
|
110
|
+
- README.md
|
111
|
+
- Rakefile
|
112
|
+
- bin/suno
|
113
|
+
- bin/sunomono
|
114
|
+
- lib/aws/android/app_installation_hooks.rb
|
115
|
+
- lib/aws/android/app_life_cycle_hooks.rb
|
116
|
+
- lib/aws/ios/01_launch.rb
|
117
|
+
- lib/helpers/sunomono_helpers.rb
|
118
|
+
- lib/helpers/zip_helpers.rb
|
119
|
+
- lib/skeleton/.gitignore
|
120
|
+
- lib/skeleton/Gemfile
|
121
|
+
- lib/skeleton/README.md
|
122
|
+
- lib/skeleton/config/cucumber.yml
|
123
|
+
- lib/skeleton/config/email/template.html
|
124
|
+
- lib/skeleton/config/load_classes.rb
|
125
|
+
- lib/skeleton/config/scripts/android/run_tests_all_devices.sh
|
126
|
+
- lib/skeleton/config/scripts/android/start_emulators.sh
|
127
|
+
- lib/skeleton/config/scripts/android/stop_emulators.sh
|
128
|
+
- lib/skeleton/config/scripts/break_build_if_failed.sh
|
129
|
+
- lib/skeleton/config/scripts/check_if_tests_failed.sh
|
130
|
+
- lib/skeleton/config/scripts/ios/build_app.rb
|
131
|
+
- lib/skeleton/config/scripts/ios/build_app.yml
|
132
|
+
- lib/skeleton/config/scripts/ios/devices.txt
|
133
|
+
- lib/skeleton/config/scripts/ios/run_tests_all_devices.sh
|
134
|
+
- lib/skeleton/features/android/features/.gitkeep
|
135
|
+
- lib/skeleton/features/android/screens/.gitkeep
|
136
|
+
- lib/skeleton/features/android/step_definitions/.gitkeep
|
137
|
+
- lib/skeleton/features/android/support/app_installation_hooks.rb
|
138
|
+
- lib/skeleton/features/android/support/app_life_cycle_hooks.rb
|
139
|
+
- lib/skeleton/features/android/support/hooks.rb
|
140
|
+
- lib/skeleton/features/ios/features/.gitkeep
|
141
|
+
- lib/skeleton/features/ios/screens/.gitkeep
|
142
|
+
- lib/skeleton/features/ios/step_definitions/.gitkeep
|
143
|
+
- lib/skeleton/features/ios/support/01_launch.rb
|
144
|
+
- lib/skeleton/features/ios/support/02_pre_stop_hooks.rb
|
145
|
+
- lib/skeleton/features/support/env.rb
|
146
|
+
- lib/skeleton/features/support/exceptions.rb
|
147
|
+
- lib/skeleton/screenshots/android/.gitkeep
|
148
|
+
- lib/skeleton/screenshots/ios/.gitkeep
|
149
|
+
- lib/sunomono.rb
|
150
|
+
- lib/sunomono/locales/en.yml
|
151
|
+
- lib/sunomono/locales/pt.yml
|
152
|
+
- lib/sunomono/version.rb
|
153
|
+
- lib/templates/android_screen_base.tt
|
154
|
+
- lib/templates/base_steps.tt
|
155
|
+
- lib/templates/feature.tt
|
156
|
+
- lib/templates/ios_screen_base.tt
|
157
|
+
- lib/templates/screen.tt
|
158
|
+
- lib/templates/steps.tt
|
159
|
+
- sunomono.gemspec
|
160
|
+
homepage: https://github.com/concretesolutions/sunomono
|
161
|
+
licenses:
|
162
|
+
- MIT
|
163
|
+
metadata: {}
|
164
|
+
post_install_message:
|
165
|
+
rdoc_options: []
|
166
|
+
require_paths:
|
167
|
+
- lib
|
168
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
169
|
+
requirements:
|
170
|
+
- - ">="
|
171
|
+
- !ruby/object:Gem::Version
|
172
|
+
version: '0'
|
173
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
174
|
+
requirements:
|
175
|
+
- - ">"
|
176
|
+
- !ruby/object:Gem::Version
|
177
|
+
version: 1.3.1
|
178
|
+
requirements: []
|
179
|
+
rubyforge_project:
|
180
|
+
rubygems_version: 2.5.1
|
181
|
+
signing_key:
|
182
|
+
specification_version: 4
|
183
|
+
summary: Generates an android and iOS calabash project.
|
184
|
+
test_files: []
|