motion-cocoapods 1.3.6 → 1.3.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.rdoc +2 -2
- data/lib/motion-cocoapods.rb +1 -0
- data/lib/motion/project/cocoapods.rb +31 -6
- data/lib/motion/project/version.rb +29 -0
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d03a62fa181ba305ae74b453108a2e5a22774293
|
4
|
+
data.tar.gz: f06e706c4d317d22dd527082a2aa6420529112a1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b5641b33a7b7aae45b1842e2555db2d276ab7f6f07599cb760dc731a9bfc67617962400b7d88a4201e2000117994d318866a3fe06f6c0b15bd987461f10f90a5
|
7
|
+
data.tar.gz: 8d4a8bbb18d4d296aef5e35e5d009475fe2e982617bb0e84e7087f34c597cca6dee6defcbf3aa3836bf81e73bcdfe497cd816d3ec1112f5491866155be83849f
|
data/README.rdoc
CHANGED
@@ -41,9 +41,9 @@ dependencies, build them and link them to your application executable.
|
|
41
41
|
== Options
|
42
42
|
|
43
43
|
If a Podfile.lock file exists, this will be used to install specific versions.
|
44
|
-
To update the versions, you can set the +
|
44
|
+
To update the versions, you can set the +COCOCAPODS_UPDATE+ env variable.
|
45
45
|
|
46
|
-
$ rake
|
46
|
+
$ rake COCOCAPODS_UPDATE=1
|
47
47
|
|
48
48
|
By default the output of CocoaPods doing its work is silenced. If, however, you
|
49
49
|
would like to see the output, you can set the +COCOAPODS_VERBOSE+ env variable.
|
data/lib/motion-cocoapods.rb
CHANGED
@@ -38,26 +38,42 @@ module Motion::Project
|
|
38
38
|
@pods ||= Motion::Project::CocoaPods.new(self)
|
39
39
|
if block
|
40
40
|
@pods.instance_eval(&block)
|
41
|
+
end
|
42
|
+
@pods
|
43
|
+
end
|
44
|
+
end
|
41
45
|
|
46
|
+
class App
|
47
|
+
class << self
|
48
|
+
def build_with_cocoapods(platform, opts = {})
|
49
|
+
_config = config
|
50
|
+
pods = _config.pods
|
42
51
|
# We run the update/install commands only if necessary.
|
43
52
|
cp_config = Pod::Config.instance
|
44
|
-
analyzer = Pod::Installer::Analyzer.new(cp_config.sandbox,
|
53
|
+
analyzer = Pod::Installer::Analyzer.new(cp_config.sandbox, pods.podfile, cp_config.lockfile)
|
45
54
|
begin
|
46
55
|
need_install = analyzer.needs_install?
|
47
56
|
rescue
|
48
57
|
need_install = true
|
49
58
|
end
|
50
|
-
|
51
|
-
|
59
|
+
if ENV['COCOCAPODS_UPDATE']
|
60
|
+
pods.install!(true)
|
61
|
+
else
|
62
|
+
pods.install! if need_install
|
63
|
+
end
|
64
|
+
pods.link_project
|
65
|
+
|
66
|
+
build_without_cocoapods(platform, opts)
|
52
67
|
end
|
53
|
-
|
68
|
+
|
69
|
+
alias_method "build_without_cocoapods", "build"
|
70
|
+
alias_method "build", "build_with_cocoapods"
|
54
71
|
end
|
55
72
|
end
|
56
73
|
|
57
74
|
#---------------------------------------------------------------------------#
|
58
75
|
|
59
76
|
class CocoaPods
|
60
|
-
VERSION = '1.3.6'
|
61
77
|
PODS_ROOT = 'vendor/Pods'
|
62
78
|
|
63
79
|
attr_accessor :podfile
|
@@ -111,7 +127,8 @@ module Motion::Project
|
|
111
127
|
# Let RubyMotion re-generate the BridgeSupport file whenever the list of
|
112
128
|
# installed pods changes.
|
113
129
|
#
|
114
|
-
def install!
|
130
|
+
def install!(update=false)
|
131
|
+
pods_installer.update_mode = update
|
115
132
|
pods_installer.install!
|
116
133
|
if bridgesupport_file.exist? && !pods_installer.installed_specs.empty?
|
117
134
|
bridgesupport_file.delete
|
@@ -220,3 +237,11 @@ module Motion::Project
|
|
220
237
|
end
|
221
238
|
end
|
222
239
|
end
|
240
|
+
|
241
|
+
namespace :pod do
|
242
|
+
desc "Update outdated pods and build objects"
|
243
|
+
task :update do
|
244
|
+
ENV['COCOCAPODS_UPDATE'] = "true"
|
245
|
+
Rake::Task["build"].invoke
|
246
|
+
end
|
247
|
+
end
|
@@ -0,0 +1,29 @@
|
|
1
|
+
# Copyright (c) 2012, Laurent Sansonetti <lrz@hipbyte.com>
|
2
|
+
# All rights reserved.
|
3
|
+
#
|
4
|
+
# Redistribution and use in source and binary forms, with or without
|
5
|
+
# modification, are permitted provided that the following conditions are met:
|
6
|
+
#
|
7
|
+
# 1. Redistributions of source code must retain the above copyright notice,
|
8
|
+
# this list of conditions and the following disclaimer.
|
9
|
+
# 2. Redistributions in binary form must reproduce the above copyright notice,
|
10
|
+
# this list of conditions and the following disclaimer in the documentation
|
11
|
+
# and/or other materials provided with the distribution.
|
12
|
+
#
|
13
|
+
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
14
|
+
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
15
|
+
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
16
|
+
# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
|
17
|
+
# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
18
|
+
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
19
|
+
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
20
|
+
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
21
|
+
# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
22
|
+
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
23
|
+
# POSSIBILITY OF SUCH DAMAGE.
|
24
|
+
|
25
|
+
module Motion::Project
|
26
|
+
class CocoaPods
|
27
|
+
VERSION = '1.3.7'
|
28
|
+
end
|
29
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: motion-cocoapods
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Laurent Sansonetti
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-09-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cocoapods
|
@@ -32,6 +32,7 @@ extensions: []
|
|
32
32
|
extra_rdoc_files: []
|
33
33
|
files:
|
34
34
|
- lib/motion/project/cocoapods.rb
|
35
|
+
- lib/motion/project/version.rb
|
35
36
|
- lib/motion-cocoapods.rb
|
36
37
|
- README.rdoc
|
37
38
|
- LICENSE
|
@@ -54,9 +55,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
54
55
|
version: '0'
|
55
56
|
requirements: []
|
56
57
|
rubyforge_project:
|
57
|
-
rubygems_version: 2.
|
58
|
+
rubygems_version: 2.1.5
|
58
59
|
signing_key:
|
59
60
|
specification_version: 4
|
60
61
|
summary: CocoaPods integration for RubyMotion projects
|
61
62
|
test_files: []
|
62
|
-
has_rdoc:
|