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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2d1f209f3c9ae08386bdd83f8db98590c5fd2a18
4
- data.tar.gz: 0bfe43143778df1426ffa40538ade54c54e2829d
3
+ metadata.gz: e0cb4a6c2e6e86072e80b4744376b84467bd96e0
4
+ data.tar.gz: 491dac8b9d405cdb7e0839b49199883c3e1912b6
5
5
  SHA512:
6
- metadata.gz: 17c484819e4158ea742d60df8ea0a8e7e1dd906ca9b1bc6ee7f07382ddb1bcc92aaf9915abd333b7b7729305102fc8ce3fbc156fdc926b355aa78d5ff37f64ec
7
- data.tar.gz: 06a59679fca98f6b7cd85d7637f3d7c35cc5b276a3cb0cf1c1662c2cffebfaf934abb4525aa154e225da41dcd645a5fe1c93f5f4ebd7d96256c92d9ef0167f03
6
+ metadata.gz: cf4f4ff13741823edea2deb06f1ed80e1fffa29fdf0c50ffe8a0a20c2b751dd1ba41932d81cdb7184698c1a97b19aa182eedc88fdbbc3d44657cb2bd8985d2da
7
+ data.tar.gz: 5cfd4209dcb65ae4eb1694b7fed0bac9ce87b32444d48f6d238e5b0dfeb1afe2e1b8c07dd52fae290481f7caed1fc3034a21888f4c38e68ee0fe762a372924b8
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- beta-pod (1.1.2)
4
+ beta-pod (1.2.0)
5
5
  bundler (~> 1.10)
6
6
 
7
7
  GEM
@@ -17,4 +17,4 @@ DEPENDENCIES
17
17
  rake (~> 10.4)
18
18
 
19
19
  BUNDLED WITH
20
- 1.10.6
20
+ 1.11.0.pre.1
data/exe/beta-pod CHANGED
@@ -2,24 +2,30 @@
2
2
 
3
3
  require 'bundler'
4
4
  require 'bundler/friendly_errors'
5
- require 'open-uri'
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 = open(url).read
11
- json =~ /{"sha": "([0-9a-f]{7,40})"/xi
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
- open(url).string.gsub(/^gemspec$/, "gem 'cocoapods', git: 'https://github.com/#{owner}/CocoaPods', ref: '#{ref}'")
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
- open(url).string
28
+ request(url)
23
29
  end
24
30
 
25
31
  def install(ref, owner)
@@ -1,3 +1,3 @@
1
1
  module BetaPod
2
- VERSION = '1.1.2'
2
+ VERSION = '1.2.0'
3
3
  end
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.1.2
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-10-27 00:00:00.000000000 Z
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.4.8
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.