beta-pod 1.1.2 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -2
- data/exe/beta-pod +11 -5
- data/lib/beta-pod/gem_version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e0cb4a6c2e6e86072e80b4744376b84467bd96e0
|
4
|
+
data.tar.gz: 491dac8b9d405cdb7e0839b49199883c3e1912b6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cf4f4ff13741823edea2deb06f1ed80e1fffa29fdf0c50ffe8a0a20c2b751dd1ba41932d81cdb7184698c1a97b19aa182eedc88fdbbc3d44657cb2bd8985d2da
|
7
|
+
data.tar.gz: 5cfd4209dcb65ae4eb1694b7fed0bac9ce87b32444d48f6d238e5b0dfeb1afe2e1b8c07dd52fae290481f7caed1fc3034a21888f4c38e68ee0fe762a372924b8
|
data/Gemfile.lock
CHANGED
data/exe/beta-pod
CHANGED
@@ -2,24 +2,30 @@
|
|
2
2
|
|
3
3
|
require 'bundler'
|
4
4
|
require 'bundler/friendly_errors'
|
5
|
-
require '
|
5
|
+
require 'open3'
|
6
6
|
require 'tempfile'
|
7
7
|
|
8
|
+
def request(url)
|
9
|
+
output, error, status = Open3.capture3('curl', '-L', url)
|
10
|
+
raise "Error requesting #{url}:\n\n#{error}" if !status.success?
|
11
|
+
output
|
12
|
+
end
|
13
|
+
|
8
14
|
def sha_for_ref(ref, owner)
|
9
15
|
url = "https://api.github.com/repos/#{owner}/CocoaPods/commits/#{ref}"
|
10
|
-
json =
|
11
|
-
json =~
|
16
|
+
json = request(url)
|
17
|
+
json =~ /\A{\s*"sha":\s*"([0-9a-f]{7,40})"/xi
|
12
18
|
$1
|
13
19
|
end
|
14
20
|
|
15
21
|
def gemfile_for_ref(ref, owner)
|
16
22
|
url = "https://raw.githubusercontent.com/#{owner}/CocoaPods/#{ref}/Gemfile"
|
17
|
-
|
23
|
+
request(url).gsub(/^gemspec$/, "gem 'cocoapods', git: 'https://github.com/#{owner}/CocoaPods', ref: '#{ref}'")
|
18
24
|
end
|
19
25
|
|
20
26
|
def lockfile_for_ref(ref, owner)
|
21
27
|
url = "https://raw.githubusercontent.com/#{owner}/CocoaPods/#{ref}/Gemfile.lock"
|
22
|
-
|
28
|
+
request(url)
|
23
29
|
end
|
24
30
|
|
25
31
|
def install(ref, owner)
|
data/lib/beta-pod/gem_version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: beta-pod
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Samuel Giddins
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-12-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -78,7 +78,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
78
78
|
version: '0'
|
79
79
|
requirements: []
|
80
80
|
rubyforge_project:
|
81
|
-
rubygems_version: 2.
|
81
|
+
rubygems_version: 2.5.0
|
82
82
|
signing_key:
|
83
83
|
specification_version: 4
|
84
84
|
summary: A tiny gem to make running beta CocoaPods versions a breeze.
|