rswift-tvos 0.0.9

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 967a0197dec7564816d96988a2f85dd935d1ca2b
4
+ data.tar.gz: c1722084d2b46752444801b7562005c99df410c5
5
+ SHA512:
6
+ metadata.gz: 9fe4122c30dfa0ee33333832cd32ce9437ace76f382618e424424bf09611b48f3b299446d11dfdf9529c7ae6579eb78e882bf3c151a3801c54a626decbfec632
7
+ data.tar.gz: 48be457137e25475a1933e53d64a678f7dc06c6724d799ff59e9a24aa2da367f7bcf66d39c23d3ad0a822e89231deb91512ec98b67db8c98e10718ea921b9633
data/.gitignore ADDED
@@ -0,0 +1,11 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
10
+ .idea/
11
+ .byebug_history
data/.rspec ADDED
@@ -0,0 +1,2 @@
1
+ --format documentation
2
+ --color
data/Gemfile ADDED
@@ -0,0 +1,5 @@
1
+ source 'https://rubygems.org'
2
+ source 'https://5YyzJYEbx9Sxn2e_Eb12@gem.fury.io/lukwol/'
3
+
4
+ # Specify your gem's dependencies in rswift-tvos.gemspec
5
+ gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2015 Lukasz Wolanczyk
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,76 @@
1
+ # RSwift::TVOS
2
+
3
+ RSwift::TVOS lets you execute rake commands specific to tvOS project.
4
+
5
+ RSwift::TVOS uses rswift and rswift-shared gems.
6
+
7
+ ## Installation
8
+
9
+ Add this line to your application's Gemfile:
10
+
11
+ ```ruby
12
+ gem 'rswift-tvos'
13
+ ```
14
+
15
+ And then execute:
16
+
17
+ $ bundle
18
+
19
+ Or install it yourself as:
20
+
21
+ $ gem install rswift-tvos
22
+
23
+ ## Usage
24
+
25
+ Add this line to `Rakefile` in project directory
26
+
27
+ ```ruby
28
+ require 'rswift/tvos'
29
+ ```
30
+
31
+ By default rswift will find project settings on it's own.
32
+ Group names and configurations have default initial values.
33
+ If you use custom configuration create `.rswift.yml` to specify different project settings.
34
+
35
+ ```yml
36
+ app_scheme_name: MyApp
37
+ product_name: MyApp
38
+ app_group: MyApp #Default: app
39
+ spec_group: MyAppSpec #Default: spec
40
+ debug_build_configuration: Debug #Default: Debug
41
+ release_build_configuration: Release #Default: Release
42
+ debug_product_bundle_identifier: co.rswift.myapp
43
+ release_product_bundle_identifier: co.rswift.myapp
44
+ ```
45
+
46
+ To display all tasks simply run `rake -T`
47
+
48
+ ### Available tasks
49
+
50
+ ```
51
+ rake build # Build workspace
52
+ rake clean # Clean build objects
53
+ rake pod:clean # Clean cocoapods
54
+ rake simulator # Run the simulator
55
+ rake simulator:clean # Clean all simulators
56
+ rake spec # Run the test/spec suite on the simulator
57
+ rake update:references # Update file references
58
+ ```
59
+
60
+ Default task is `rake simulator`
61
+
62
+ Additionaly `rake simulator` can be executed with flag `debug=1`, which enables LLDB.
63
+
64
+ ## Development
65
+
66
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
67
+
68
+ ## Contributing
69
+
70
+ Bug reports and pull requests are welcome on GitHub at https://github.com/lukwol/rswift-tvos.
71
+
72
+
73
+ ## License
74
+
75
+ The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
76
+
data/Rakefile ADDED
@@ -0,0 +1,6 @@
1
+ require "bundler/gem_tasks"
2
+ require "rspec/core/rake_task"
3
+
4
+ RSpec::Core::RakeTask.new(:spec)
5
+
6
+ task :default => :spec
@@ -0,0 +1,53 @@
1
+ require 'rake'
2
+ require 'rswift'
3
+
4
+ DERIVED_DATA_PATH = 'build'
5
+ DEFAULT_DEVICE_NAME = 'Apple TV 1080p'
6
+ DEBUG_ENV_KEY = 'debug'
7
+
8
+ device_name = DEFAULT_DEVICE_NAME
9
+ debug = ENV[DEBUG_ENV_KEY]
10
+ debug ||= '0'
11
+
12
+ workspace = RSwift::WorkspaceProvider.workspace
13
+ project = Xcodeproj::Project.open(Dir.glob('*.xcodeproj').first)
14
+ device_udid = RSwift::DeviceProvider.udid_for_device(device_name, :tvos)
15
+
16
+ task :default => :simulator
17
+
18
+ desc 'Build workspace'
19
+ task :build do
20
+ output = ""
21
+ IO.popen("xcodebuild -workspace #{workspace} -scheme #{project.app_scheme_name} -destination 'platform=appletvsimulator,id=#{device_udid}' -derivedDataPath #{DERIVED_DATA_PATH} | xcpretty").each do |line|
22
+ puts line.chomp
23
+ output = line.chomp
24
+ end
25
+ success = output.include? "Build Succeeded"
26
+ abort unless success
27
+ end
28
+
29
+ desc 'Run the simulator'
30
+ task :simulator => [:build] do
31
+ system "xcrun instruments -w #{device_udid}"
32
+ system "xcrun simctl install booted #{DERIVED_DATA_PATH}/Build/Products/#{project.debug_build_configuration.name}-appletvsimulator/#{project.app_target.product_name}.app"
33
+ system "xcrun simctl launch booted #{project.app_target.debug_product_bundle_identifier}"
34
+ if debug.to_i.nonzero?
35
+ exec "lldb -n #{project.app_target.product_name}"
36
+ else
37
+ exec "tail -f ~/Library/Logs/CoreSimulator/#{device_udid}/system.log"
38
+ end
39
+ end
40
+
41
+ desc 'Run the test/spec suite on the simulator'
42
+ task :spec do
43
+ exec "xcodebuild test -workspace #{workspace} -scheme #{project.app_scheme_name} -destination 'platform=appletvsimulator,id=#{device_udid}' -derivedDataPath #{DERIVED_DATA_PATH} | xcpretty -tc"
44
+ end
45
+
46
+ namespace :simulator do
47
+
48
+ desc 'Clean all simulators'
49
+ task :clean do
50
+ system 'killall Simulator'
51
+ system 'xcrun simctl erase all'
52
+ end
53
+ end
@@ -0,0 +1,5 @@
1
+ module RSwift
2
+ module TVOS
3
+ VERSION = '0.0.9'
4
+ end
5
+ end
@@ -0,0 +1,7 @@
1
+ require 'rswift/shared'
2
+ Dir.glob(File.expand_path('tvos/tasks/*.rake', File.dirname(__FILE__))).each { |r| load r}
3
+
4
+ module RSwift
5
+ module TVOS
6
+ end
7
+ end
@@ -0,0 +1,26 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'rswift/tvos/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = 'rswift-tvos'
8
+ spec.version = RSwift::TVOS::VERSION
9
+ spec.authors = ['Lukasz Wolanczyk']
10
+ spec.email = ['wolanczyk.lukasz@gmail.com']
11
+
12
+ spec.summary = 'Rake tasks for tvOS projects using rswift.'
13
+ spec.homepage = 'https://github.com/lukwol/rswift-tvos'
14
+ spec.license = 'MIT'
15
+
16
+ spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
17
+ spec.require_paths = ['lib']
18
+
19
+ spec.add_development_dependency 'bundler'
20
+ spec.add_development_dependency 'rspec'
21
+ spec.add_development_dependency 'byebug'
22
+ spec.add_runtime_dependency 'rswift'
23
+ spec.add_runtime_dependency 'rswift-shared'
24
+ spec.add_runtime_dependency 'rake'
25
+ spec.add_runtime_dependency 'xcpretty'
26
+ end
metadata ADDED
@@ -0,0 +1,152 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: rswift-tvos
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.9
5
+ platform: ruby
6
+ authors:
7
+ - Lukasz Wolanczyk
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2016-04-08 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: '0'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rspec
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: byebug
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rswift
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: rswift-shared
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: rake
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :runtime
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: xcpretty
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :runtime
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ description:
112
+ email:
113
+ - wolanczyk.lukasz@gmail.com
114
+ executables: []
115
+ extensions: []
116
+ extra_rdoc_files: []
117
+ files:
118
+ - ".gitignore"
119
+ - ".rspec"
120
+ - Gemfile
121
+ - LICENSE.txt
122
+ - README.md
123
+ - Rakefile
124
+ - lib/rswift/tvos.rb
125
+ - lib/rswift/tvos/tasks/tvos.rake
126
+ - lib/rswift/tvos/version.rb
127
+ - rswift-tvos.gemspec
128
+ homepage: https://github.com/lukwol/rswift-tvos
129
+ licenses:
130
+ - MIT
131
+ metadata: {}
132
+ post_install_message:
133
+ rdoc_options: []
134
+ require_paths:
135
+ - lib
136
+ required_ruby_version: !ruby/object:Gem::Requirement
137
+ requirements:
138
+ - - ">="
139
+ - !ruby/object:Gem::Version
140
+ version: '0'
141
+ required_rubygems_version: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - ">="
144
+ - !ruby/object:Gem::Version
145
+ version: '0'
146
+ requirements: []
147
+ rubyforge_project:
148
+ rubygems_version: 2.4.6
149
+ signing_key:
150
+ specification_version: 4
151
+ summary: Rake tasks for tvOS projects using rswift.
152
+ test_files: []