credentials_manager 0.0.1 → 0.1.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: 26653ecd3f629c5c898c14974f86a934afc79039
4
- data.tar.gz: b798286e071ca660f0feefca1a0e06656637108d
3
+ metadata.gz: 3b4cdc4b439e40abeb6fdb4cb1d0cc6c418095d4
4
+ data.tar.gz: 01b64648325c1381f33189299638d4d6ae8a369a
5
5
  SHA512:
6
- metadata.gz: e39574838aa27694de859188d15a286f4c8e359a966ec6f49f46234414965452225cf97d5d3800780c6798bded68767a376e695d6281cfcefd65f3234dc05d03
7
- data.tar.gz: f08c8eee8e42848150e8687d37a8a93873f45d648f493399062e88b8cd7a9735082dac6e55bb624514e9bbac550b1b3110d9932bf32726e1d93274686b09cc97
6
+ metadata.gz: 8d14db23b09b6ac56001720ac4399df568c1cac6438517d4f23ee45bc9cd69a01b757c6e874282facb71447af1ff7dcc2f61c5719c551aa7490d448c8160e011
7
+ data.tar.gz: e2b045e7c3ebd8c2849e662d93c87f3f12e9734064f9c9ad7ed20967d85a07d763516142da5046e300fc14720182888694c94190e2c97c661da2ccba4b0ac924
data/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2014 Felix Krause
3
+ Copyright (c) 2015 Felix Krause
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
data/README.md CHANGED
@@ -1,6 +1,23 @@
1
- ```CredentialsManager``` is used by most of the tools part of the [fastlane.tools](https://fastlane.tools) Toolchain.
1
+ CredentialsManager
2
+ ===================
2
3
 
3
- To get more information about how your credentials are stored in the Mac OS Keychain, check out the description of [fastlane](https://github.com/KrauseFx/fastlane).
4
+ ```CredentialsManager``` is used by most of the tools part of the [fastlane.tools](https://fastlane.tools) toolchain.
5
+
6
+ Every code, related to your username and password can be found here: [password_manager.rb](httpshttps://github.com/KrauseFx/CredentialsManager/blob/master/lib/credentials_manager/password_manager.rb)
7
+
8
+ ## Storing in the Keychain
9
+ By default, when entering your Apple credentials, they will be stored in the Keychain from Mac OS X. You can easily delete them, by opening the "Keychain App" switching to *All Items* and searching for "*deliver*".
10
+
11
+ ## Passing using environment variables
12
+ ```
13
+ DELIVER_USER
14
+ DELIVER_PASSWORD
15
+ ```
16
+
17
+ ## Implement your custom solution
18
+ All ```fastlane``` tools are based on Ruby, you can take a look at the source to easily implement your own authentication solution.
19
+
20
+ Your password will only be stored locally on your computer.
4
21
 
5
22
  # License
6
23
  This project is licensed under the terms of the MIT license. See the LICENSE file.
@@ -13,3 +30,4 @@ This project is licensed under the terms of the MIT license. See the LICENSE fil
13
30
  4. Commit your changes (`git commit -am 'Add some feature'`)
14
31
  5. Push to the branch (`git push origin my-new-feature`)
15
32
  6. Create a new Pull Request
33
+
@@ -1,5 +1,6 @@
1
1
  require 'security'
2
2
  require 'highline/import' # to hide the entered password
3
+ require 'credentials_manager/appfile_config'
3
4
 
4
5
  module CredentialsManager
5
6
  # Handles reading out the password from the keychain or asking for login data
@@ -40,8 +41,6 @@ module CredentialsManager
40
41
  # This method is called, when the iTunes backend returns that the login data is wrong
41
42
  # This will ask the user, if he wants to re-enter the password
42
43
  def password_seems_wrong
43
- return false if Helper.is_test?
44
-
45
44
  puts "It seems like the username or password for the account '#{self.username}' is wrong.".red
46
45
  reenter = agree("Do you want to re-enter your username and password? (y/n)", true)
47
46
  if reenter
@@ -61,7 +60,7 @@ module CredentialsManager
61
60
  def ask_for_login
62
61
  puts "---------------------------------------------------------------------------".green
63
62
  puts "The login information you enter now will be stored in your keychain ".green
64
- puts "More information about that on GitHub: https://github.com/krausefx/fastlane".green
63
+ puts "More information about that on GitHub: https://github.com/KrauseFx/fastlane".green
65
64
  puts "---------------------------------------------------------------------------".green
66
65
 
67
66
  username_was_there = self.username
@@ -86,14 +85,14 @@ module CredentialsManager
86
85
  if Security::InternetPassword.add(hostname, self.username, self.password)
87
86
  return true
88
87
  else
89
- Helper.log.error "Could not store password in keychain".red
88
+ puts "Could not store password in keychain".red
90
89
  return false
91
90
  end
92
91
  end
93
92
  end
94
93
 
95
94
  def remove_from_keychain
96
- Helper.log.info "removing keychain item: #{hostname}".yellow
95
+ puts "Removing keychain item: #{hostname}".yellow
97
96
  Security::InternetPassword.delete(:server => hostname)
98
97
  end
99
98
 
@@ -108,4 +107,4 @@ module CredentialsManager
108
107
  [HOST, self.username].join('.')
109
108
  end
110
109
  end
111
- end
110
+ end
@@ -1,3 +1,3 @@
1
1
  module CredentialsManager
2
- VERSION = "0.0.1"
2
+ VERSION = "0.1.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: credentials_manager
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Felix Krause
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-12-14 00:00:00.000000000 Z
11
+ date: 2015-01-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: highline
@@ -94,9 +94,9 @@ dependencies:
94
94
  - - ~>
95
95
  - !ruby/object:Gem::Version
96
96
  version: 3.1.0
97
- description: Password manager used in Fastlane.tools
97
+ description: Password manager used in fastlane.tools
98
98
  email:
99
- - krausefx@gmail.com
99
+ - fastlane@krausefx.com
100
100
  executables: []
101
101
  extensions: []
102
102
  extra_rdoc_files: []
@@ -130,5 +130,5 @@ rubyforge_project:
130
130
  rubygems_version: 2.2.2
131
131
  signing_key:
132
132
  specification_version: 4
133
- summary: Password manager used in Fastlane.tools
133
+ summary: Password manager used in fastlane.tools
134
134
  test_files: []