Skip to content
This repository has been archived by the owner on Nov 19, 2018. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
Conflicts:
	Gemfile.lock
  • Loading branch information
KrauseFx committed Feb 22, 2015
2 parents b3b38db + dce39c9 commit 830c26b
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 4 deletions.
8 changes: 5 additions & 3 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ PATH
remote: .
specs:
fastlane_core (0.1.4)
babosa
capybara (~> 2.4.3)
colored
commander (>= 4.1.0)
Expand All @@ -16,6 +17,7 @@ GEM
remote: https://rubygems.org/
specs:
addressable (2.3.7)
babosa (1.0.2)
capybara (2.4.4)
mime-types (>= 1.16)
nokogiri (>= 1.3.3)
Expand Down Expand Up @@ -73,11 +75,11 @@ GEM
rspec-support (3.1.2)
safe_yaml (1.0.4)
security (0.1.3)
simplecov (0.9.1)
simplecov (0.9.2)
docile (~> 1.1.0)
multi_json (~> 1.0)
simplecov-html (~> 0.8.0)
simplecov-html (0.8.0)
simplecov-html (~> 0.9.0)
simplecov-html (0.9.0)
slop (3.6.0)
webmock (1.19.0)
addressable (>= 2.3.6)
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
<a href="https://github.com/KrauseFx/frameit">frameit</a> &bull;
<a href="https://github.com/KrauseFx/PEM">PEM</a> &bull;
<a href="https://github.com/KrauseFx/sigh">sigh</a> &bull;
<a href="https://github.com/KrauseFx/produce">produce</a>
<a href="https://github.com/KrauseFx/produce">produce</a> &bull;
<a href="https://github.com/KrauseFx/cert">cert</a>
</p>
-------

Expand Down
1 change: 1 addition & 0 deletions fastlane_core.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ Gem::Specification.new do |spec|
spec.add_dependency 'highline', '~> 1.6.21' # user inputs (e.g. passwords)
spec.add_dependency 'colored' # coloured terminal output
spec.add_dependency 'commander', '>= 4.1.0' # CLI parser
spec.add_dependency 'babosa' # transliterate strings

spec.add_dependency 'credentials_manager' # fastlane password manager

Expand Down
8 changes: 8 additions & 0 deletions lib/fastlane_core/developer_center/developer_center_helper.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
require 'babosa'

module FastlaneCore
class DeveloperCenter
# Download a file from the dev center, by using a HTTP client. This will return the content of the file
Expand Down Expand Up @@ -69,5 +71,11 @@ def wait_for_variable(name)
success = Proc.new { |r| r != nil }
return wait_for(method, name, success)
end

def valid_name_for(input)
latinazed = input.to_slug.transliterate.to_s # remove accents
latinazed.gsub!(/[^0-9A-Za-z\d\s]/, '') # remove non-valid characters
latinazed.squeeze # squeeze whitespaces
end
end
end

0 comments on commit 830c26b

Please sign in to comment.