thefuntasty_danger 0.2.0 → 0.7.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/Dangerfile +5 -3
  3. metadata +11 -11
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 59cdac319667f1bc7861ed4623e6cfb91bdced41e6ddd8216f9b94394a9a8e55
4
- data.tar.gz: adf97e7d462e62ec21704a95122c551f37bdfac49215dff47a4bccbe7fd2b8e0
3
+ metadata.gz: 165cdf4cbf8afa43a572bdd11b5d9e2e4eef8f2ad7332a3aeeb72d78efd01a9a
4
+ data.tar.gz: 4dbcc2f24dd2407d59bf0e26db879116a93c25b509beaa380fd4a0514f70cf94
5
5
  SHA512:
6
- metadata.gz: 9e351decf32749f00108dd8bd25b9bb586e9be96a815748a83fa1510f0ebd58d2537157a598264095f61b28043057799e206940160359e02a5b7464f56d097ba
7
- data.tar.gz: 64e95fe5f9aa778104dd629409c357df4be8983b606d95d45656c15aa1360f63537c985f8b227cd27805b12d2c25474a91e89f373786e2df5722d8a0c9b2ced0
6
+ metadata.gz: 844b68032260a02b173d6861db4c79000961c36575446fb921739f37abf4c5963aaba5c68207bbf9c21a0c03bab54b93c4bcd9ea203a36bfc80b90aa382d128a
7
+ data.tar.gz: 2b059c65668cce72b95e048eb86f3d9ff5902091902e2bc33e69db61fe8edcf51200b6bd1e2012f65089560d0fcb6bb63e90a8c3dbe49b45ce1e9a414c18efe7
data/Dangerfile CHANGED
@@ -11,7 +11,7 @@ branch_name_pattern = /^(feature|hotfix|fix)\/([A-Z]{2,})-\d+-/
11
11
  # Convenience variables
12
12
  has_correct_prefix = github.branch_for_head.match(/^(feature|hotfix|fix|release|housekeep)\//)
13
13
  is_feature_or_fix = github.branch_for_head.match(/^(feature|hotfix|fix)\//)
14
- can_be_merged_to_master = github.branch_for_head.match(/^(release|hotfix|develop)\//)
14
+ can_be_merged_to_main = github.branch_for_head.match(/^((release|hotfix)\/|develop$)/)
15
15
 
16
16
  branch_contains_jira_id = github.branch_for_head.match(branch_name_pattern)
17
17
  title_contains_jira_id = github.pr_title.match(pr_title_pattern)
@@ -23,7 +23,9 @@ is_pr_big = git.insertions > max_pr_length
23
23
  github.dismiss_out_of_range_messages
24
24
 
25
25
  # Throw errors
26
- fail("Only hotfix and release can point to master.") if !can_be_merged_to_master and github.branch_for_base == "master"
26
+ if !can_be_merged_to_main and ["main", "master"].include? github.branch_for_base then
27
+ fail("Only develop, hotfix and release can point to main.")
28
+ end
27
29
 
28
30
  # Throw descriptive warnings
29
31
  warn("Branch name should have `release/`, `hotfix/`, `fix/`, `housekeep/` or `feature/` prefix.") if !has_correct_prefix
@@ -46,7 +48,7 @@ end
46
48
  # Check commit messages
47
49
  commit_lint.check warn: :all, disable: [:subject_length]
48
50
 
49
- # Run Swiftlint if possible.
51
+ # Run Swiftlint if possible.
50
52
  # There is no easier way to check, if danger-swiftlint is installed
51
53
  if `gem list -i danger-swiftlint`.strip == "true" then
52
54
  swiftlint.binary_path = swiftlint_binary_path if File.file?(swiftlint_binary_path)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: thefuntasty_danger
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matěj Kašpar Jirásek
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-10-18 00:00:00.000000000 Z
11
+ date: 2020-09-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: danger
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '5'
19
+ version: '8'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '5'
26
+ version: '8'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: danger-commit_lint
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -66,19 +66,19 @@ dependencies:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
- description: Danger configuration used at The Funtasty, currently mainly for iOS development
69
+ description: Danger configuration used at Futured, currently mainly for iOS development
70
70
  email:
71
- - matej.jirasek@thefuntasty.com
71
+ - matej.jirasek@futured.app
72
72
  executables: []
73
73
  extensions: []
74
74
  extra_rdoc_files: []
75
75
  files:
76
76
  - Dangerfile
77
- homepage: https://github.com/thefuntasty/danger
77
+ homepage: https://github.com/futuredapp/danger
78
78
  licenses:
79
79
  - MIT
80
80
  metadata: {}
81
- post_install_message:
81
+ post_install_message:
82
82
  rdoc_options: []
83
83
  require_paths:
84
84
  - lib
@@ -94,7 +94,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
94
94
  version: '0'
95
95
  requirements: []
96
96
  rubygems_version: 3.0.3
97
- signing_key:
97
+ signing_key:
98
98
  specification_version: 4
99
- summary: The Danger rules we use at The Funtasty
99
+ summary: The Danger rules we use at Futured
100
100
  test_files: []