cuesmash 0.1.9.3 → 0.1.9.4

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
  SHA1:
3
- metadata.gz: 24b88fa67a0b71f21ed1f54e5600d5c8ebdf86fc
4
- data.tar.gz: 9d4bacd9242c33595972e3466384f04696fb46c6
3
+ metadata.gz: 9921ccefe5c5c05062e464057755b77ee5d45c84
4
+ data.tar.gz: 268ce882d658ec066f96e17e07bb787367cd0e6d
5
5
  SHA512:
6
- metadata.gz: 9afa765f17faf14c3a24cb23cc6cd387059a6c503b41e6d1a373ba9c7000dfaaa86e07ff1cb8883b52e5bb4239df41bab47b708efba053c31bbde7a45b04a5ba
7
- data.tar.gz: 240023feb710a01266afde504f03af2d81aa97e9c07f682e87b8d339a9cc1b3f30311edee9183959469a1b97c9b9cf94fe3feb2e345d9f8e31c044ef74d6eec4
6
+ metadata.gz: 4a93d3163de9af411595fa0c0ca0c2c251837ac76e899b6f251fd7ce94423142fcfdd5cc4ce796886d1b81b5fd593acecf12980192b732ec277c8960c02ddfb4
7
+ data.tar.gz: 8baef544df548669dd995e49d0572e5d9e6592c9909cb6cd6d8ab1ba21ed41c2266f829d70f61c4b38bf76812e98d626b47c2d5138dbe0493ba80da53b6d44b0
data/cuesmash.gemspec CHANGED
@@ -4,11 +4,11 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = "cuesmash"
7
- spec.version = "0.1.9.3"
7
+ spec.version = "0.1.9.4"
8
8
  spec.authors = ["Alex Fish", "Jarod McBride", "Tiago Castro"]
9
9
  spec.email = ["fish@ustwo.co.uk", "jarod@ustwo.com", "castro@ustwo.com"]
10
- spec.description = "A gift for Juan"
11
- spec.summary = "Compile an app, point the app at sinatra, run cucumber with appium"
10
+ spec.description = "Appium project manager"
11
+ spec.summary = "Compile an app and run cucumber with appium"
12
12
  spec.homepage = "https://github.com/ustwo/cuesmash"
13
13
  spec.license = "MIT"
14
14
 
@@ -4,7 +4,7 @@ module Cuesmash
4
4
 
5
5
  #
6
6
  # iOS Specific compiler
7
- #
7
+ #
8
8
  class IosCompiler < Compiler
9
9
 
10
10
  attr_accessor :scheme
@@ -23,7 +23,7 @@ module Cuesmash
23
23
  #
24
24
  # @return [String] The full xcode build command with args
25
25
  def command
26
- xcode_command = "set -o pipefail && xcodebuild #{workspace} -scheme #{@scheme} -derivedDataPath #{@tmp_dir} -configuration #{@build_configuration} OBJROOT=#{@tmp_dir} SYMROOT=#{@tmp_dir} -sdk iphonesimulator build | bundle exec xcpretty -c"
26
+ xcode_command = "set -o pipefail && xcodebuild #{workspace} -scheme '#{@scheme}' -derivedDataPath #{@tmp_dir} -configuration #{@build_configuration} OBJROOT=#{@tmp_dir} SYMROOT=#{@tmp_dir} -sdk iphonesimulator build | bundle exec xcpretty -c"
27
27
 
28
28
  Logger.info "xcode_command == #{xcode_command}"
29
29
  xcode_command
@@ -31,7 +31,7 @@ module Cuesmash
31
31
 
32
32
  #
33
33
  # Looks in the current directory for the workspace file and
34
- # gets it's name if there is one
34
+ # gets its name if there is one
35
35
  #
36
36
  # @return [String] The name of the workspace file that was found along with the -workspace flag
37
37
  def workspace
@@ -46,4 +46,4 @@ module Cuesmash
46
46
  end
47
47
  end # workspace
48
48
  end # class IosCompiler
49
- end # module Cuesmash
49
+ end # module Cuesmash
@@ -24,6 +24,7 @@ module Cuesmash
24
24
  create_scripts_dir
25
25
  create_build_sh
26
26
  create_gemfile
27
+ create_cuesmash_yml
27
28
  end
28
29
 
29
30
  # TODO: the git checkouts needs to check to see if the dirs have already been
@@ -85,6 +86,10 @@ module Cuesmash
85
86
  download_gist(gist_id:"ea786f1cf0fdbe0febb3", final_file:"Gemfile")
86
87
  end
87
88
 
89
+ def create_cuesmash_yml
90
+ download_gist(gist_id:"146a3b40991e68cb261b", final_file:".cuesmash.yml")
91
+ end
92
+
88
93
  #
89
94
  # Run the command line
90
95
  #
@@ -117,7 +122,7 @@ module Cuesmash
117
122
  #
118
123
  # Download gists files without git.
119
124
  # @param gist_id: [String] the gist id
120
- # @param final_file: [String] where the final file gets saved
125
+ # @param final_file: [String] where the final file gets saved in relationship to the directory where the script is run.
121
126
  #
122
127
  def download_gist(gist_id:, final_file:)
123
128
  base_url = URI("https://api.github.com/gists/")
@@ -7,6 +7,7 @@ require 'cuesmash/ios_compiler'
7
7
  require 'cuesmash/android_app'
8
8
  require 'cuesmash/android_compiler'
9
9
  require 'cuesmash/android_command'
10
+ require 'cuesmash/setup'
10
11
  require 'byebug'
11
12
 
12
13
  module Cuesmash
@@ -34,7 +35,7 @@ module Cuesmash
34
35
  --profile -p which cucumber.yml profile to use\n
35
36
  --quiet -q BOOLEAN cucumber quiet mode
36
37
  LONGDESC
37
- method_option :scheme, type: :string, aliases: "-s", desc: "iOS only: the Xcode scheme to build"
38
+ method_option :scheme, type: :array, aliases: "-s", desc: "iOS only: the Xcode scheme to build"
38
39
  method_option :app_name, type: :string, aliases: "-n", desc: "Android only: the name of the app"
39
40
  method_option :tags, type: :array, aliases: "-t", desc: "the tags to pass to cucumber, for multiple tags pass one per tag"
40
41
  method_option :debug, type: :boolean, default: false, aliases: "-d", desc: "turn on debug output"
@@ -66,7 +67,7 @@ module Cuesmash
66
67
  os: os,
67
68
  server: options[:server],
68
69
  tags: options[:tags],
69
- scheme: options[:scheme],
70
+ scheme: options[:scheme].join(" "),
70
71
  debug: options[:debug],
71
72
  app: @app,
72
73
  profile: options[:profile],
@@ -109,7 +110,7 @@ module Cuesmash
109
110
  --scheme -s iOS: the Xcode scheme to build\n
110
111
  --app_name -n Android: the app name
111
112
  LONGDESC
112
- method_option :scheme, type: :string, aliases: "-s", desc: "the Xcode scheme to build"
113
+ method_option :scheme, type: :array, aliases: "-s", desc: "the Xcode scheme to build"
113
114
  method_option :app_name, type: :string, aliases: "-n", desc: "Android only: the name of the app"
114
115
  def build
115
116
 
@@ -158,7 +159,7 @@ module Cuesmash
158
159
  @app = IosApp.new(file_name: options[:scheme], build_configuration: @config['build_configuration'])
159
160
 
160
161
  # Compile the project
161
- compiler = Cuesmash::IosCompiler.new(scheme: options[:scheme], tmp_dir: @app.tmp_dir, build_configuration: @config['build_configuration'])
162
+ compiler = Cuesmash::IosCompiler.new(scheme: options[:scheme].join(" "), tmp_dir: @app.tmp_dir, build_configuration: @config['build_configuration'])
162
163
  compiler.compile
163
164
 
164
165
  ios_appium_text
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cuesmash
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.9.3
4
+ version: 0.1.9.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex Fish
@@ -166,7 +166,7 @@ dependencies:
166
166
  - - "~>"
167
167
  - !ruby/object:Gem::Version
168
168
  version: 1.7.2
169
- description: A gift for Juan
169
+ description: Appium project manager
170
170
  email:
171
171
  - fish@ustwo.co.uk
172
172
  - jarod@ustwo.com
@@ -235,7 +235,7 @@ rubyforge_project:
235
235
  rubygems_version: 2.2.2
236
236
  signing_key:
237
237
  specification_version: 4
238
- summary: Compile an app, point the app at sinatra, run cucumber with appium
238
+ summary: Compile an app and run cucumber with appium
239
239
  test_files:
240
240
  - spec/android_compiler_spec.rb
241
241
  - spec/appium_text_spec.rb