motion-cocoapods 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/motion/project/cocoapods.rb +8 -3
- metadata +51 -36
@@ -36,18 +36,23 @@ module Motion::Project
|
|
36
36
|
def pods(&block)
|
37
37
|
@pods ||= Motion::Project::CocoaPods.new(self)
|
38
38
|
if block
|
39
|
-
|
39
|
+
# We run the update/install commands only if necessary.
|
40
|
+
podfile_lock = File.join(self.project_dir, 'vendor', 'Podfile.lock')
|
41
|
+
podfile_changed = (!File.exist?(podfile_lock) or File.mtime(self.project_file) > File.mtime(podfile_lock))
|
42
|
+
if podfile_changed and !ENV['COCOAPODS_NO_UPDATE']
|
40
43
|
Pod::Command::Repo.new(Pod::Command::ARGV.new(["update"])).run
|
41
44
|
end
|
42
45
|
@pods.instance_eval(&block)
|
43
|
-
|
46
|
+
if podfile_changed
|
47
|
+
@pods.install!
|
48
|
+
end
|
44
49
|
end
|
45
50
|
@pods
|
46
51
|
end
|
47
52
|
end
|
48
53
|
|
49
54
|
class CocoaPods
|
50
|
-
VERSION = '1.1.
|
55
|
+
VERSION = '1.1.1'
|
51
56
|
PODS_ROOT = 'vendor/Pods'
|
52
57
|
|
53
58
|
def initialize(config)
|
metadata
CHANGED
@@ -1,68 +1,83 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: motion-cocoapods
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: 17
|
5
5
|
prerelease:
|
6
|
+
segments:
|
7
|
+
- 1
|
8
|
+
- 1
|
9
|
+
- 1
|
10
|
+
version: 1.1.1
|
6
11
|
platform: ruby
|
7
|
-
authors:
|
12
|
+
authors:
|
8
13
|
- Laurent Sansonetti
|
9
14
|
autorequire:
|
10
15
|
bindir: bin
|
11
16
|
cert_chain: []
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
requirement: !ruby/object:Gem::Requirement
|
17
|
+
|
18
|
+
date: 2012-09-03 00:00:00 Z
|
19
|
+
dependencies:
|
20
|
+
- !ruby/object:Gem::Dependency
|
21
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
17
22
|
none: false
|
18
|
-
requirements:
|
19
|
-
- -
|
20
|
-
- !ruby/object:Gem::Version
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
hash: 57
|
27
|
+
segments:
|
28
|
+
- 0
|
29
|
+
- 9
|
30
|
+
- 1
|
21
31
|
version: 0.9.1
|
22
|
-
type: :runtime
|
23
32
|
prerelease: false
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
version: 0.9.1
|
30
|
-
description: motion-cocoapods allows RubyMotion projects to have access to the CocoaPods
|
31
|
-
dependency manager.
|
33
|
+
type: :runtime
|
34
|
+
name: cocoapods
|
35
|
+
version_requirements: *id001
|
36
|
+
description: motion-cocoapods allows RubyMotion projects to have access to the CocoaPods dependency manager.
|
32
37
|
email: lrz@hipbyte.com
|
33
38
|
executables: []
|
39
|
+
|
34
40
|
extensions: []
|
41
|
+
|
35
42
|
extra_rdoc_files: []
|
36
|
-
|
43
|
+
|
44
|
+
files:
|
37
45
|
- lib/motion/project/cocoapods.rb
|
38
46
|
- lib/motion-cocoapods.rb
|
39
47
|
- README.rdoc
|
40
48
|
- LICENSE
|
41
49
|
homepage: http://www.rubymotion.com
|
42
50
|
licenses: []
|
51
|
+
|
43
52
|
post_install_message:
|
44
53
|
rdoc_options: []
|
45
|
-
|
54
|
+
|
55
|
+
require_paths:
|
46
56
|
- lib
|
47
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
57
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
48
58
|
none: false
|
49
|
-
requirements:
|
50
|
-
- -
|
51
|
-
- !ruby/object:Gem::Version
|
52
|
-
|
53
|
-
segments:
|
59
|
+
requirements:
|
60
|
+
- - ">="
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
hash: 3
|
63
|
+
segments:
|
54
64
|
- 0
|
55
|
-
|
56
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
65
|
+
version: "0"
|
66
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
57
67
|
none: false
|
58
|
-
requirements:
|
59
|
-
- -
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
|
68
|
+
requirements:
|
69
|
+
- - ">="
|
70
|
+
- !ruby/object:Gem::Version
|
71
|
+
hash: 3
|
72
|
+
segments:
|
73
|
+
- 0
|
74
|
+
version: "0"
|
62
75
|
requirements: []
|
76
|
+
|
63
77
|
rubyforge_project:
|
64
|
-
rubygems_version: 1.8.
|
78
|
+
rubygems_version: 1.8.24
|
65
79
|
signing_key:
|
66
80
|
specification_version: 3
|
67
81
|
summary: CocoaPods integration for RubyMotion projects
|
68
82
|
test_files: []
|
83
|
+
|