cocoapods-sorted-search 0.1.0 → 0.1.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d8612a2226901a31f938c6050d9346daf6f9cb81
4
- data.tar.gz: 9823c86f56204cdf11bb0f2ec8c3ee488efba362
3
+ metadata.gz: 49bf00d7ec5cc70892f049a4794252e76afa9fc0
4
+ data.tar.gz: 2a425fb56bdd4fbe85d4c8b5ce5d23a13629b0b2
5
5
  SHA512:
6
- metadata.gz: 137160da6b61dc6285b61277176e4db9af7e167c269483d75048a90f3fbb45d08af9c9bdc68d6052fa45de93e18b6f01d7e98ee7641f16b0f0075656099e0227
7
- data.tar.gz: bd6ab400126b1890bdc97ac29017cd91ffc34e1eef8c095acbc84f5a14ca83948e8a329ac221cb050f8a06b4090a3d27cdde59ad5d0d466d9f64699e9df6ebf4
6
+ metadata.gz: be6f9f83c2ed81fee8cdc2da3d77a3b4e3e3037fe31b7381ae7763891f340d6b087cc48f5bd0caae61d1b09216dac2bc62640c1a4053904a17206cbd38b3318f
7
+ data.tar.gz: d0d36c049ac7008bbd5220921bff637320e869127435e93f0961a17b9e58de77454837b1ba571281ae5d1bd70f33691f71fbbdcb9fa80474348df478f4c67712
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- cocoapods-sorted-search (0.1.0)
4
+ cocoapods-sorted-search (0.1.1)
5
5
  cocoapods (~> 0.28)
6
6
  ruby-progressbar
7
7
 
data/README.md CHANGED
@@ -5,11 +5,11 @@ CocoaPods plugin which adds a `sort` subcommand for `pod search` to sort search
5
5
 
6
6
  ##Usage
7
7
 
8
- pod search sort --stars POD_NAME
8
+ pod search sort POD_NAME
9
9
 
10
10
  ## Params
11
11
 
12
- * **--stars** - sort by stars
12
+ * **--stars** - sort by stars - **default**
13
13
  * **--forks** - sort by forks
14
14
  * **--activity** - sort by most recent commits
15
15
 
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = "cocoapods-sorted-search"
7
- spec.version = '0.1.0'
7
+ spec.version = '0.1.1'
8
8
  spec.authors = ["Denys Telezhkin"]
9
9
  spec.email = ["strangervir@gmail.com"]
10
10
  spec.summary = %q{CocoaPods plugin for sorted searching amongst CocoaPods.}
@@ -17,6 +17,10 @@ module Pod
17
17
  @sort_by_stars = argv.flag?('stars')
18
18
  @sort_by_commits = argv.flag?('activity')
19
19
  @sort_by_forks = argv.flag?('forks')
20
+
21
+ if !@sort_by_forks && !@sort_by_commits
22
+ @sort_by_stars = true
23
+ end
20
24
  end
21
25
 
22
26
  def self.options
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cocoapods-sorted-search
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Denys Telezhkin