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 +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +10 -0
- data/cuesmash.gemspec +1 -1
- data/lib/cuesmash/iosapp.rb +3 -2
- data/lib/cuesmash/start.rb +1 -1
- data/spec/iosapp_spec.rb +6 -6
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ab02397923ae6bcc8a4d50e9669002b717e238cf
|
4
|
+
data.tar.gz: 49b186b927bff4dab83ac849d725638ff573b413
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 16d9547be2c387b300fe344cec9f8e5208b0e69b94bce6ada59bbf1e44daa8d21c709d1e717a08d8d3bbdd928e723a902227855bc32161c190d4c05e84bf2bbe
|
7
|
+
data.tar.gz: ba1036e189318efedbdef926b43638a9e01fc83aa33d3561152505a7fdefd4022b6ec3ec65054974f45278f4f56104bb32ab68314336421f6c9d5fd8ad73e5c9
|
data/Gemfile.lock
CHANGED
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"
|
data/lib/cuesmash/iosapp.rb
CHANGED
@@ -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}" << "
|
43
|
+
@app_dir = "#{@tmp_dir}" << "/#{@build_configuration}-iphonesimulator/"
|
43
44
|
end
|
44
45
|
@app_path = "#{@app_dir}" << "#{@app_name}"
|
45
46
|
end
|
data/lib/cuesmash/start.rb
CHANGED
@@ -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/
|
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/
|
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
|
|