sunomono 0.2.0.pre

Sign up to get free protection for your applications and to get access to all the features.
Files changed (55) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +17 -0
  3. data/Gemfile +9 -0
  4. data/LICENSE.txt +22 -0
  5. data/README.md +157 -0
  6. data/Rakefile +1 -0
  7. data/bin/suno +3 -0
  8. data/bin/sunomono +3 -0
  9. data/lib/aws/android/app_installation_hooks.rb +30 -0
  10. data/lib/aws/android/app_life_cycle_hooks.rb +13 -0
  11. data/lib/aws/ios/01_launch.rb +43 -0
  12. data/lib/helpers/sunomono_helpers.rb +136 -0
  13. data/lib/helpers/zip_helpers.rb +49 -0
  14. data/lib/skeleton/.gitignore +9 -0
  15. data/lib/skeleton/Gemfile +7 -0
  16. data/lib/skeleton/README.md +165 -0
  17. data/lib/skeleton/config/cucumber.yml +7 -0
  18. data/lib/skeleton/config/email/template.html +14 -0
  19. data/lib/skeleton/config/load_classes.rb +31 -0
  20. data/lib/skeleton/config/scripts/android/run_tests_all_devices.sh +41 -0
  21. data/lib/skeleton/config/scripts/android/start_emulators.sh +52 -0
  22. data/lib/skeleton/config/scripts/android/stop_emulators.sh +13 -0
  23. data/lib/skeleton/config/scripts/break_build_if_failed.sh +6 -0
  24. data/lib/skeleton/config/scripts/check_if_tests_failed.sh +11 -0
  25. data/lib/skeleton/config/scripts/ios/build_app.rb +71 -0
  26. data/lib/skeleton/config/scripts/ios/build_app.yml +13 -0
  27. data/lib/skeleton/config/scripts/ios/devices.txt +4 -0
  28. data/lib/skeleton/config/scripts/ios/run_tests_all_devices.sh +57 -0
  29. data/lib/skeleton/features/android/features/.gitkeep +0 -0
  30. data/lib/skeleton/features/android/screens/.gitkeep +0 -0
  31. data/lib/skeleton/features/android/step_definitions/.gitkeep +0 -0
  32. data/lib/skeleton/features/android/support/app_installation_hooks.rb +36 -0
  33. data/lib/skeleton/features/android/support/app_life_cycle_hooks.rb +11 -0
  34. data/lib/skeleton/features/android/support/hooks.rb +0 -0
  35. data/lib/skeleton/features/ios/features/.gitkeep +0 -0
  36. data/lib/skeleton/features/ios/screens/.gitkeep +0 -0
  37. data/lib/skeleton/features/ios/step_definitions/.gitkeep +0 -0
  38. data/lib/skeleton/features/ios/support/01_launch.rb +94 -0
  39. data/lib/skeleton/features/ios/support/02_pre_stop_hooks.rb +0 -0
  40. data/lib/skeleton/features/support/env.rb +5 -0
  41. data/lib/skeleton/features/support/exceptions.rb +11 -0
  42. data/lib/skeleton/screenshots/android/.gitkeep +0 -0
  43. data/lib/skeleton/screenshots/ios/.gitkeep +0 -0
  44. data/lib/sunomono.rb +238 -0
  45. data/lib/sunomono/locales/en.yml +27 -0
  46. data/lib/sunomono/locales/pt.yml +27 -0
  47. data/lib/sunomono/version.rb +3 -0
  48. data/lib/templates/android_screen_base.tt +186 -0
  49. data/lib/templates/base_steps.tt +48 -0
  50. data/lib/templates/feature.tt +8 -0
  51. data/lib/templates/ios_screen_base.tt +249 -0
  52. data/lib/templates/screen.tt +13 -0
  53. data/lib/templates/steps.tt +5 -0
  54. data/sunomono.gemspec +27 -0
  55. 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
@@ -0,0 +1,5 @@
1
+ ######### <%= I18n.translate( :given ).upcase %> #########
2
+
3
+ ######### <%= I18n.translate( :when ).upcase %> #########
4
+
5
+ ######### <%= I18n.translate( :then ).upcase %> #########
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: []