当前仓库属于暂停状态,部分功能使用受限,详情请查阅 仓库状态说明
1 Star 1 Fork 0

LongDD / stool
暂停

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

Stool

Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file lib/stool. To experiment with that code, run bin/console for an interactive prompt.

TODO: Delete this and the text above, and describe your gem

Installation

Add this line to your application's Gemfile:

gem 'stool'

And then execute:

$ bundle

Or install it yourself as:

$ gem install stool

Usage

1、更新stool/ConfigFile.rb \n

#stool 配置
Config.new do |c|

  #添加一个本地lib pool,池中是你clone下来的各个pod
  #name - 随意取
  #path - lib pool的本地路径
  c.addPool do |p|
    p.name = '本地lib池 - 1'
    p.path = ''
  end

  #再添加一个本地lib pool
  # c.addPool do |p|
  #     p.name = '本地lib池 - 2'
  #     p.path = ''
  # end

  #添加一个主工程,iOS-workspace工程
  #name - 随意取
  #tag - 命令操作需要,工程的唯一标识
  #path - 路径目下要有workspace/podfile文件
  #addLocalLib - 项目使用的本地lib(再无需手动修改Podfile),默认都是源码
  #addOtherLibUseCode - 非本地lib,配置使用源码
  #allLibsUseCode - 是否所有lib都使用源码,默认false
  c.addTask do |t|
    t.name = 'workspace主工程-1'
    t.tag = '1'
    t.path = ''
    t.addLocalLib(['pod1',
      'pod2',
      'pod3'])
    t.addOtherLibUseCode(['pod4'])
    #t.allLibsUseCode
  end
end

2、入口:终端输入sl \n

Usage:

 $ sl COMMAND

   smart tool - 对iOS相关工作,进行自动化整合。

Commands:

+ lib       本地lib信息、处理
+ lp        LibPool - 本地pod池.
+ rp        cocoapods的repos信息,及相关操作
+ util      常用工具的集合
+ ws        workSpaces - 本地的Workspace项目,关于pod相关的整合

3、更新libpool中的某个lib版本号

sl lib vadd [libName]

示例:sl lib vadd AFNetWorking

4、主工程workspace执行pod update

sl ws up [tag]

示例:sl ws up 1

Development

After checking out the repo, run bin/setup to install dependencies. Then, run rake spec to run the tests. You can also run bin/console for an interactive prompt that will allow you to experiment.

To install this gem onto your local machine, run bundle exec rake install. To release a new version, update the version number in version.rb, and then run bundle exec rake release, which will create a git tag for the version, push git commits and tags, and push the .gem file to rubygems.org.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/stool. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.

License

The gem is available as open source under the terms of the MIT License.

Code of Conduct

Everyone interacting in the Stool project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.

The MIT License (MIT) Copyright (c) 2018 chendongdong Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

暂无描述 展开 收起
Ruby
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
Ruby
1
https://gitee.com/CWDong/stool.git
git@gitee.com:CWDong/stool.git
CWDong
stool
stool
master

搜索帮助