cuesmash 0.1.7 → 0.1.7.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
  SHA1:
3
- metadata.gz: 33cad57b15822471d9d65794484f93b4f53f9a0b
4
- data.tar.gz: e6ade54f465a4ebf3fdb308e68e265c4f300c929
3
+ metadata.gz: ab02397923ae6bcc8a4d50e9669002b717e238cf
4
+ data.tar.gz: 49b186b927bff4dab83ac849d725638ff573b413
5
5
  SHA512:
6
- metadata.gz: 3035d66484e46195764894659540bb664c27b989ec7aa12745150e16e24fb06bad2198e3e97bda12258dd96e21119829da4bba3f38ca07ebc7d5fbe0ed5c39fe
7
- data.tar.gz: e4b7bb8e1f4292a35174f7a3f6cded3a50922c2de628c58cae02c411b286e294d9a3d3260b0c47384f50dbf33bfacae80703de780c13bd8cdd16bfa3bcb408a0
6
+ metadata.gz: 16d9547be2c387b300fe344cec9f8e5208b0e69b94bce6ada59bbf1e44daa8d21c709d1e717a08d8d3bbdd928e723a902227855bc32161c190d4c05e84bf2bbe
7
+ data.tar.gz: ba1036e189318efedbdef926b43638a9e01fc83aa33d3561152505a7fdefd4022b6ec3ec65054974f45278f4f56104bb32ab68314336421f6c9d5fd8ad73e5c9
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- cuesmash (0.1.7)
4
+ cuesmash (0.1.7.1)
5
5
  CFPropertyList (>= 2.2.8)
6
6
  rest-client (~> 1.7.2)
7
7
  thor (>= 0.19.1)
data/README.md CHANGED
@@ -71,6 +71,16 @@ Cover how to configure the travis.yml file
71
71
 
72
72
  $ rspec
73
73
 
74
+ ## Building and pushing
75
+
76
+ - make sure all tests are passing
77
+ - update `cuesmash.gemspec` version number
78
+ - `gem build cuesmash.gemspec `
79
+ - `gem uninstall -x cuesmash && rake install `
80
+ - manually test
81
+ - push to rubygems.org `gem push cuesmash-0.1.7.gem `
82
+
83
+
74
84
  ## TODO:
75
85
 
76
86
  1. reporting - at the end of a run provide reports of the results.
data/cuesmash.gemspec CHANGED
@@ -4,7 +4,7 @@ $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.7"
7
+ spec.version = "0.1.7.1"
8
8
  spec.authors = ["Alex Fish", "Jarod McBride"]
9
9
  spec.email = ["fish@ustwo.co.uk", "jarod@ustwo.com"]
10
10
  spec.description = "A gift for Juan"
@@ -29,9 +29,10 @@ module Cuesmash
29
29
  # @param travis_build [Boolean] if the build is running on travis-ci
30
30
  #
31
31
  # @return [App] A app instance
32
- def initialize(file_name:, travis_build: false)
32
+ def initialize(file_name:, travis_build: false, build_configuration:)
33
33
  @app_name = "#{file_name}" << ".app"
34
34
  @tmp_dir = Dir.mktmpdir(file_name)
35
+ @build_configuration = build_configuration
35
36
 
36
37
  # if we are running this on travis then we want to build inside the project
37
38
  # dir (it's a VM so it gets cleaned up each run). Otherwise let's create
@@ -39,7 +40,7 @@ module Cuesmash
39
40
  if travis_build
40
41
  @app_dir = "./build/Release-iphonesimulator/"
41
42
  else
42
- @app_dir = "#{@tmp_dir}" << "/Release-iphonesimulator/"
43
+ @app_dir = "#{@tmp_dir}" << "/#{@build_configuration}-iphonesimulator/"
43
44
  end
44
45
  @app_path = "#{@app_dir}" << "#{@app_name}"
45
46
  end
@@ -81,7 +81,7 @@ module Cuesmash
81
81
  end
82
82
 
83
83
  # Create new IosApp object
84
- app = IosApp.new(file_name: options[:scheme])
84
+ app = IosApp.new(file_name: options[:scheme], build_configuration: config['build_configuration'])
85
85
 
86
86
  # Compile the project
87
87
  compiler = Cuesmash::Compiler.new(options[:scheme], app.tmp_dir, config['build_configuration'])
data/spec/iosapp_spec.rb CHANGED
@@ -5,25 +5,25 @@ describe Cuesmash::IosApp do
5
5
 
6
6
  it "should have an app_dir instance" do
7
7
  stub_dir
8
- @iosapp = Cuesmash::IosApp.new(file_name: "MyApp")
9
- expect(@iosapp.app_dir).to match("/tmp/Release-iphonesimulator/")
8
+ @iosapp = Cuesmash::IosApp.new(file_name: "MyApp", build_configuration: "Debug")
9
+ expect(@iosapp.app_dir).to match("/tmp/Debug-iphonesimulator/")
10
10
  end
11
11
 
12
12
  it "should have an app_path instance" do
13
13
  stub_dir
14
- @iosapp = Cuesmash::IosApp.new(file_name: "MyApp")
15
- expect(@iosapp.app_path).to match("/tmp/Release-iphonesimulator/MyApp.app")
14
+ @iosapp = Cuesmash::IosApp.new(file_name: "MyApp", build_configuration: "Debug")
15
+ expect(@iosapp.app_path).to match("/tmp/Debug-iphonesimulator/MyApp.app")
16
16
  end
17
17
 
18
18
  it "should have a tmp_dir instance" do
19
19
  stub_dir
20
- @iosapp = Cuesmash::IosApp.new(file_name: "MyApp")
20
+ @iosapp = Cuesmash::IosApp.new(file_name: "MyApp", build_configuration: "Debug")
21
21
  expect(@iosapp.tmp_dir).to match("/tmp")
22
22
  end
23
23
 
24
24
  it "should have an app_name instance" do
25
25
 
26
- @iosapp = Cuesmash::IosApp.new(file_name: "MyApp")
26
+ @iosapp = Cuesmash::IosApp.new(file_name: "MyApp", build_configuration: "Debug")
27
27
  expect(@iosapp.app_name).to match("MyApp.app")
28
28
  end
29
29
 
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.7
4
+ version: 0.1.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex Fish