thefuntasty_danger 0.1.5 → 0.5.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 +6 -5
  3. metadata +12 -12
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 24f758a34f8867657ceb604352d044e60ebf933cb89e58e89b2be7c624459cc3
4
- data.tar.gz: e4d75eca57f1bda783de7a5a6de55f1adf273068860d562ea00d28efb306012e
3
+ metadata.gz: 6c36bdfa85dd234321b57a90270bcd3568cefd6d26a692aaa41039460ef4f7e1
4
+ data.tar.gz: 39a810f7cdf540f3371d9deda8f3dcacd610c71342a06023edbf997b4324187f
5
5
  SHA512:
6
- metadata.gz: ab5551b553d44d8cc6d1cea75e47d32bb413231c2b0418e84d78507e3821bee21e82150b6cab28a69fcfe197239cb425bea7072ab304219423a36fc3b2008946
7
- data.tar.gz: 2855fd074b34e6af2e4b4b85af394c9e363e1b0e5e875d71f05d84b83b4ea347da140a023b25aec7ed8b448ccb93aaa2170a907a62821382c3c83a42b559b154
6
+ metadata.gz: c317e2406b8fb737f41fcc534afe2c107ef7d81b632e82745b4d30fc66e3e7d5ea112b948f670555cc27a1455b00eee1f2878a4c2d6c53d10e95876cdf49d850
7
+ data.tar.gz: 4917f61ad26ac86e7808ffeca1983caf28cdb673563db2d060a7574facdafb4d9f6bf3ae1c9faf12fb99f6ff3cd0c90e5f7ce4099b4ffa3c68408baa9b57d40d
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)\//)
14
+ can_be_merged_to_master = 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,7 @@ 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
+ fail("Only develop, hotfix and release can point to master.") if !can_be_merged_to_master and github.branch_for_base == "master"
27
27
 
28
28
  # Throw descriptive warnings
29
29
  warn("Branch name should have `release/`, `hotfix/`, `fix/`, `housekeep/` or `feature/` prefix.") if !has_correct_prefix
@@ -46,9 +46,10 @@ end
46
46
  # Check commit messages
47
47
  commit_lint.check warn: :all, disable: [:subject_length]
48
48
 
49
- # Lint Swift files if possible
50
- if File.file?(swiftlint_binary_path) then
51
- swiftlint.binary_path = './Pods/SwiftLint/swiftlint'
49
+ # Run Swiftlint if possible.
50
+ # There is no easier way to check, if danger-swiftlint is installed
51
+ if `gem list -i danger-swiftlint`.strip == "true" then
52
+ swiftlint.binary_path = swiftlint_binary_path if File.file?(swiftlint_binary_path)
52
53
  swiftlint.max_num_violations = 20
53
54
  swiftlint.lint_files inline_mode: true
54
55
  end
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.1.5
4
+ version: 0.5.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-02-25 00:00:00.000000000 Z
11
+ date: 2020-09-02 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: '6'
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: '6'
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
@@ -93,8 +93,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
93
93
  - !ruby/object:Gem::Version
94
94
  version: '0'
95
95
  requirements: []
96
- rubygems_version: 3.0.2
97
- signing_key:
96
+ rubygems_version: 3.0.3
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: []