fastlane-plugin-logme 0.1.1 → 0.1.2

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: 179a3d78a611c8f6eb65bb7be00188b58a13b0da
4
- data.tar.gz: e11156241b1c917efc96e72192e11ede81728719
3
+ metadata.gz: f1af4f75bec7974a6757deb651ceb0c275bcd685
4
+ data.tar.gz: ceac91b8251c3401721ba255d0f031f7f2b777e8
5
5
  SHA512:
6
- metadata.gz: 3e6852bfd0189b09dee7382ecdcb8f7a62b794b253011baec9a1fac83f830339ab121c3af5e8dac77b793bf9aa19f98f17bf70e29a6d551aff5d11953d74bd03
7
- data.tar.gz: 4473a755bd95f5f450e18778a3e9d7526700f67871f8bb6799cbd3248fc250a3e585620d4d8b652bd36801f64fe6816fc81bb6f38a97c94fe05e39c9cf1e3f64
6
+ metadata.gz: 3e77f423737571a1b799259e4b6caac4a0e78179fa4c4082695fc0d60fa36af37eeec7ad6263ca76cda16708feeef2c8d480682137932b52fe899c1ad1f0668e
7
+ data.tar.gz: aab823f41f0c2f81e3ee48218fa6a2cda8bca8e24124ba09117e4d0597d3b721d3a673e657cd066ccc7a6388245a670a21da07d38fe5bf01b68a45a87c4438ce
data/README.md CHANGED
@@ -24,6 +24,7 @@ Just invoke *logme* in your Fastfile action. Logme will return the commit messag
24
24
  | `to_revision` | End revision commit | false |
25
25
  | `from_revision` | From revision commit | false |
26
26
  | `message_regexp_filters` | Regexp filters like. ie '^MDM-\|^CTS:' | true |
27
+ | `message_regexp_exclude_filters` | Regexp filters like. ie '^MDM-TST\|^CTS:UI' | true |
27
28
 
28
29
  ## Example
29
30
  Check out the [example `Fastfile`](fastlane/Fastfile) to see how to use this plugin. Try it by cloning the repo, running `fastlane install_plugins` and `bundle exec fastlane test`.
@@ -4,9 +4,11 @@ module Fastlane
4
4
 
5
5
  def self.run(options)
6
6
  regexp_filter = Regexp.new(options[:message_regexp_filters])
7
+ exclude_regexp_filter = Regexp.new(options[:message_regexp_exclude_filters])
7
8
  Actions.sh("git log --pretty=format:\"%s\" --no-merges #{options[:from_revision]}...#{options[:to_revision]}")
8
9
  .split(/\n/)
9
- .select{|message| message[regexp_filter]}
10
+ .select{|message| message[regexp_filter] != nil}
11
+ .select{|message| message[exclude_regexp_filter] == nil}
10
12
  .join("\n")
11
13
  end
12
14
 
@@ -29,6 +31,10 @@ module Fastlane
29
31
  FastlaneCore::ConfigItem.new(key: :message_regexp_filters,
30
32
  description: "Regexp filters like. ie '^MDM-|^CTS:'",
31
33
  default_value: '.',
34
+ optional: true),
35
+ FastlaneCore::ConfigItem.new(key: :message_regexp_exclude_filters,
36
+ description: "Regexp filters like. ie '^MDM-TST|^MDM-UI'",
37
+ default_value: '.',
32
38
  optional: true)
33
39
  ]
34
40
  end
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module Logme
3
- VERSION = "0.1.1"
3
+ VERSION = "0.1.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-logme
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Luís Esteves