diff --git a/CHANGELOG.md b/CHANGELOG.md index 0c819c4..9caf322 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,10 @@ # Change Log +## [0.0.4](https://github.com/biocross/unlimit/releases/tag/0.0.4) +Released on 2019-08-24. + +#### Fixed +- Unlimit adds a new binary `unlimit-xcode` to avoid a naming conflict with the system binary `unlimit`. Use this new command to run unlimit without bundler! + ## [0.0.3](https://github.com/biocross/unlimit/releases/tag/0.0.3) Released on 2019-08-24. diff --git a/Gemfile.lock b/Gemfile.lock index f0e3cd9..e2cf25c 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,7 +1,7 @@ PATH remote: . specs: - unlimit (0.0.2) + unlimit (0.0.4) configure_extensions fastlane (>= 2.116.0) highline diff --git a/README.md b/README.md index 15f1296..c8cbadc 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,17 @@ Unlimit is a simple tool to quickly run your app on your device without worrying ## Installation -If your iOS/Mac project does not have a `Gemfile` yet, [learn how to set it up here](https://www.mokacoding.com/blog/ruby-for-ios-developers-bundler/). It's highly recommended you use [**bundler**](https://bundler.io/) to maintain consistent versions of tools like `cocoapods`, `fastlane` etc within your team. +#### Using RubyGems + +Install unlimit by running: + +``` +$ gem install unlimit +``` + +#### Using Bundler + +If your Xcode project does not have a `Gemfile` yet, [learn how to set it up here](https://www.mokacoding.com/blog/ruby-for-ios-developers-bundler/). It's highly recommended you use [**bundler**](https://bundler.io/) to maintain consistent versions of tools like `cocoapods`, `fastlane` etc within your team. To use unlimit, add this line to your app's Gemfile: @@ -25,7 +35,13 @@ And then install it using [bundler](https://bundler.io/) by executing: ## Usage -After installing the gem, just run: +If you installed using `gem install`, run this in the same folder as your **.xcodeproj** file: + +``` +$ unlimit-xcode +``` + +If you're using `bundler`, run: $ bundle exec unlimit @@ -70,9 +86,11 @@ Like the above script, You can use a few handy variables that unlimit will autom | `UNLIMIT_APP_BUNDLE_ID` | The unique app **bundle ID** generated by unlimit | | `UNLIMIT_APP_GROUP_NAME` | The **app group id** generated by unlimit | -## Contributing +## Feedback & Contributing + +If unlimit does not work for you, please [report it](https://github.com/biocross/unlimit/issues/new), I might have missed a lot of edge cases! Any feedback or feature suggesions are also encouraged. -Bug reports and pull requests are welcome. Any feedback or feature suggesions are also encouraged. +Bug reports and pull requests are welcome. ## FAQs diff --git a/bin/unlimit-xcode b/bin/unlimit-xcode new file mode 100755 index 0000000..a27c5ed --- /dev/null +++ b/bin/unlimit-xcode @@ -0,0 +1,20 @@ +#!/usr/bin/env ruby +# frozen_string_literal: true + +require 'unlimit' +require 'optparse' + +unlimiter = Unlimit::CLI.new +options = {} + +OptionParser.new do |opt| + opt.on('--project XCODEPROJ') { |o| options['project_path'] = o } + opt.on('--plist INFO_PLIST') { |o| options['plist_path'] = o } + opt.on('--target TARGET_NAME') { |o| options['target_name'] = o } + opt.on('--team_id TEAM_ID') { |o| options['team_id'] = o } + opt.on('--configuration CONFIGURATION_YAML_FILE') { |o| options['configuration'] = o } + opt.on('--keep_fabric') { |_o| options['keep_fabric'] = true } + opt.on('--version') { unlimiter.showVersion } +end.parse! + +unlimiter.start(options) diff --git a/lib/unlimit/version.rb b/lib/unlimit/version.rb index 6faf7b4..d4f01a0 100644 --- a/lib/unlimit/version.rb +++ b/lib/unlimit/version.rb @@ -1,3 +1,3 @@ module Unlimit - VERSION = "0.0.3" + VERSION = "0.0.4" end diff --git a/unlimit.gemspec b/unlimit.gemspec index 6f0c1d7..e9b0749 100644 --- a/unlimit.gemspec +++ b/unlimit.gemspec @@ -31,7 +31,7 @@ Gem::Specification.new do |spec| spec.files = Dir.chdir(File.expand_path(__dir__)) do `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) } end - spec.executables = ['unlimit'] + spec.executables = %w[unlimit unlimit-xcode] spec.require_paths = ['lib'] spec.add_dependency 'xcodeproj'