agent_smith 0.0.3 → 0.0.4

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: 5c18ca3c5103283b9b2987d8f4c412205d2e9ea7
4
- data.tar.gz: 8193965b8a98437490da7ad14607d5a6d63dbe4b
3
+ metadata.gz: 627ac3dd42995a32cf4ad4745cc232f67fa21fe9
4
+ data.tar.gz: 0640f9c76ec2739046c6df4e97a000e6e5fe22f9
5
5
  SHA512:
6
- metadata.gz: 66a051dd26c64ac5f61036607acfbdc851e165b2a4e8a0ad5a294573265062a7e4449934579983932d9464108e994b4b0a3d6e6c4ccae13623fc589198002006
7
- data.tar.gz: 895936461e2f7c3c367028521fd8624946cdbd83575ea0ab69314e8198f20d193373642f71761b3007b2189331fdb7e62929f451c18bc887d21b437ae0f5af9e
6
+ metadata.gz: b154c5d3c187e0857a3c776a132d2aa5ddfb4097e1c288b70fd747895ee7e37a1c482dbbafbc58bb0945833aa4dd531baec7c6b57055fe2177b56080db4fc7be
7
+ data.tar.gz: 40e9308361ae7d73388d02fcfd1042994f70d7b5f63b4d9825ce29d5f634057dc9cd4ac676c48a2d23e67884a05e3005eceec075a31f0fb3c98b034406ffa934
@@ -1,3 +1,3 @@
1
1
  module AgentSmith
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
data/lib/agent_smith.rb CHANGED
@@ -36,6 +36,7 @@ LONGDESC
36
36
 
37
37
  Dir.mktmpdir do |dir|
38
38
 
39
+ system "mkdir -p #{PROVISIONING_PATH.gsub(" ","\\ ")}"
39
40
  system "git clone #{options[:repo]} #{dir} &> /dev/null"
40
41
  certificate = open(APPLE_ROOT_CERTIFICATE_URL).read()
41
42
 
@@ -53,6 +54,7 @@ LONGDESC
53
54
  store.add_cert(cert)
54
55
  verification = p7.verify([cert], store)
55
56
 
57
+
56
58
  if verification
57
59
  plist = Plist::parse_xml(p7.data)
58
60
  uuid = plist["UUID"]
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: agent_smith
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Luca Querella
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-10-15 00:00:00.000000000 Z
11
+ date: 2014-11-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler