cocoapods-keys 1.5.2 → 1.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/Gemfile.lock +1 -1
- data/lib/cocoapods_keys.rb +1 -1
- data/lib/pod/command/keys.rb +1 -0
- data/lib/pod/command/keys/export.rb +30 -0
- data/spec/functional_spec.rb +11 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4efe92530d8cf8df66b335ffced3d0f30e53ca2a
|
4
|
+
data.tar.gz: 273b80759d865b986ea7b640c59e0d77edc01654
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 864fa1dc9e1a845857ea1eafc3b7a053025bfd4515780c2ab7ff2dfb81769e952530f487ab7d5275ce1f08cbc111d4ece0131625f6755f4ee7f96d1941288b52
|
7
|
+
data.tar.gz: f140fff40e931630cb2db004fec188201ecba954e570e4f863410febd9f7772db1a5c121b9c3361b2ee8c0e28ee5d8150d844d0635c1495088751dc72ddaa5ad
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
data/lib/cocoapods_keys.rb
CHANGED
data/lib/pod/command/keys.rb
CHANGED
@@ -0,0 +1,30 @@
|
|
1
|
+
require 'keyring_liberator'
|
2
|
+
|
3
|
+
module Pod
|
4
|
+
class Command
|
5
|
+
class Keys
|
6
|
+
class Export < Keys
|
7
|
+
self.summary = 'Exports commands to recreate the key setup.'
|
8
|
+
|
9
|
+
self.description = <<-DESC
|
10
|
+
Gives a list of all the pod keys commands necessary to recreate the key setup on another machine.
|
11
|
+
DESC
|
12
|
+
|
13
|
+
def run
|
14
|
+
# List all settings for current app
|
15
|
+
this_keyring = get_current_keyring
|
16
|
+
raise 'Could not load keyring' unless this_keyring
|
17
|
+
export_current_keyring this_keyring
|
18
|
+
end
|
19
|
+
|
20
|
+
def export_current_keyring(keyring)
|
21
|
+
data = keyring.keychain_data
|
22
|
+
data.each do |key, value|
|
23
|
+
UI.puts "pod keys set #{key} \"#{value}\" #{keyring.name}"
|
24
|
+
end
|
25
|
+
UI.puts
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
data/spec/functional_spec.rb
CHANGED
@@ -49,6 +49,17 @@ describe 'CocoaPodsKeys functional tests' do
|
|
49
49
|
end
|
50
50
|
end
|
51
51
|
|
52
|
+
it 'is able to export the correct keys from the command-line' do
|
53
|
+
Dir.chdir(@tmpdir) do
|
54
|
+
exported_keys = <<-EOS
|
55
|
+
pod keys set KeyWithData "such-data" TestProject
|
56
|
+
pod keys set AnotherKeyWithData "other-data" TestProject
|
57
|
+
pod keys set UnusedKey "-" TestProject
|
58
|
+
EOS
|
59
|
+
expect(`pod keys export`.strip).to eq(exported_keys.strip)
|
60
|
+
end
|
61
|
+
end
|
62
|
+
|
52
63
|
describe 'with a built keys implementation' do
|
53
64
|
before :all do
|
54
65
|
name = 'TestProjectKeys'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cocoapods-keys
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Orta Therox
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-
|
12
|
+
date: 2015-11-07 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: osx_keychain
|
@@ -124,6 +124,7 @@ files:
|
|
124
124
|
- lib/name_whisperer.rb
|
125
125
|
- lib/plugin.rb
|
126
126
|
- lib/pod/command/keys.rb
|
127
|
+
- lib/pod/command/keys/export.rb
|
127
128
|
- lib/pod/command/keys/get.rb
|
128
129
|
- lib/pod/command/keys/list.rb
|
129
130
|
- lib/pod/command/keys/rm.rb
|