firebase_dynamic_link 1.0.4 → 1.0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (66) hide show
  1. checksums.yaml +4 -4
  2. data/.env.template +2 -0
  3. data/.github/workflows/audit.yml +22 -0
  4. data/.github/workflows/codeql-analysis.yml +70 -0
  5. data/.github/workflows/coverage.yml +34 -0
  6. data/.github/workflows/gem-push.yml +45 -0
  7. data/.github/workflows/test.yml +25 -0
  8. data/.gitignore +2 -0
  9. data/.rubocop.yml +1 -146
  10. data/Appraisals +72 -12
  11. data/Gemfile +1 -1
  12. data/Guardfile +7 -5
  13. data/README.md +63 -53
  14. data/Rakefile +2 -2
  15. data/bin/bundle-audit +29 -0
  16. data/bin/bundler-audit +29 -0
  17. data/bin/console +3 -3
  18. data/docker-compose.yml +9 -0
  19. data/firebase_dynamic_link.gemspec +28 -25
  20. data/gemfiles/faraday_0.16_dry_0.11.gemfile +10 -0
  21. data/gemfiles/faraday_0.16_dry_0.11.gemfile.lock +82 -0
  22. data/gemfiles/faraday_0.16_dry_0.12.gemfile +10 -0
  23. data/gemfiles/faraday_0.16_dry_0.12.gemfile.lock +80 -0
  24. data/gemfiles/faraday_0.16_dry_0.13.gemfile +10 -0
  25. data/gemfiles/faraday_0.16_dry_0.13.gemfile.lock +80 -0
  26. data/gemfiles/faraday_0.16_dry_0.9.gemfile +10 -0
  27. data/gemfiles/faraday_0.16_dry_0.9.gemfile.lock +80 -0
  28. data/gemfiles/faraday_0.17_dry_0.11.gemfile +10 -0
  29. data/gemfiles/faraday_0.17_dry_0.11.gemfile.lock +82 -0
  30. data/gemfiles/faraday_0.17_dry_0.12.gemfile +10 -0
  31. data/gemfiles/faraday_0.17_dry_0.12.gemfile.lock +80 -0
  32. data/gemfiles/faraday_0.17_dry_0.13.gemfile +10 -0
  33. data/gemfiles/faraday_0.17_dry_0.13.gemfile.lock +80 -0
  34. data/gemfiles/faraday_0.17_dry_0.9.gemfile +10 -0
  35. data/gemfiles/faraday_0.17_dry_0.9.gemfile.lock +80 -0
  36. data/gemfiles/faraday_1.8.0_dry_0.11.gemfile +10 -0
  37. data/gemfiles/faraday_1.8.0_dry_0.11.gemfile.lock +99 -0
  38. data/gemfiles/faraday_1.8.0_dry_0.12.gemfile +10 -0
  39. data/gemfiles/faraday_1.8.0_dry_0.12.gemfile.lock +97 -0
  40. data/gemfiles/faraday_1.8.0_dry_0.13.gemfile +10 -0
  41. data/gemfiles/faraday_1.8.0_dry_0.13.gemfile.lock +97 -0
  42. data/gemfiles/faraday_1.8.0_dry_0.9.gemfile +10 -0
  43. data/gemfiles/faraday_1.8.0_dry_0.9.gemfile.lock +97 -0
  44. data/gemfiles/faraday_2.0.0_dry_0.11.gemfile +10 -0
  45. data/gemfiles/faraday_2.0.0_dry_0.11.gemfile.lock +84 -0
  46. data/gemfiles/faraday_2.0.0_dry_0.12.gemfile +10 -0
  47. data/gemfiles/faraday_2.0.0_dry_0.12.gemfile.lock +82 -0
  48. data/gemfiles/faraday_2.0.0_dry_0.13.gemfile +10 -0
  49. data/gemfiles/faraday_2.0.0_dry_0.13.gemfile.lock +82 -0
  50. data/gemfiles/faraday_2.0.0_dry_0.9.gemfile +10 -0
  51. data/gemfiles/faraday_2.0.0_dry_0.9.gemfile.lock +82 -0
  52. data/lib/firebase_dynamic_link/client.rb +14 -12
  53. data/lib/firebase_dynamic_link/connection.rb +1 -1
  54. data/lib/firebase_dynamic_link/link_renderer.rb +12 -11
  55. data/lib/firebase_dynamic_link/version.rb +1 -1
  56. data/lib/firebase_dynamic_link.rb +54 -14
  57. metadata +130 -36
  58. data/.travis.yml +0 -24
  59. data/gemfiles/version_2017a.gemfile +0 -8
  60. data/gemfiles/version_2017a.gemfile.lock +0 -75
  61. data/gemfiles/version_2017b.gemfile +0 -8
  62. data/gemfiles/version_2017b.gemfile.lock +0 -75
  63. data/gemfiles/version_2018.gemfile +0 -8
  64. data/gemfiles/version_2018.gemfile.lock +0 -75
  65. data/gemfiles/version_2020.gemfile +0 -8
  66. data/gemfiles/version_2020.gemfile.lock +0 -78
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8ab11d4a89e7db50a374e53454e1d065b7cfc6d066beceab4f8145ac51c93933
4
- data.tar.gz: e779c35872bfc268e79482b94c6f095f6bbd3fa6dd807e174fed29b3fcbd77db
3
+ metadata.gz: 85ef82823db14e8e061661f732e49baaedb5a4a9502870efbdee88b4a10ad818
4
+ data.tar.gz: 91b28eccfece2fd776cb0fe7e6ed983c849ac38c9d7c52c6e8a656b2b1ec6954
5
5
  SHA512:
6
- metadata.gz: 1377a22e552150f5a0f25a98a3a55008331d98a485b47d13cb4ce506226d4fd3f003f686d0a475f128f174f96ff2471b82b88e0308c77c24e89e6159b4572a0b
7
- data.tar.gz: 643222e3a24ad3162c4e6ba6720bc54aa595e356e54b3a4116c109f80f7fbbc62290d6bf43001d47d815d0f19e3a54e9b4e09cea09b1c6877054eaadfcd9fec1
6
+ metadata.gz: dd303538bd66b8ed2fb8fe92fceecdbb6ab2c0c72f9949d13b4e797ed31a0d6dd11e14727a72bfc835ba91064104e9757016b765f6e991f2b179906e7f59e9cb
7
+ data.tar.gz: '04785a853c9ab191d9533ce0f1c0a7c462c11515944fe64d7cdd373c962ca6b046e986eec967c29374aaa454120b67e96f609509106134b5fe8dc3e1fc1afb52'
data/.env.template ADDED
@@ -0,0 +1,2 @@
1
+ API_KEY='firebasewebapikey'
2
+ DYNAMIC_LINK_DOMAIN='https://yourfirebaseshort.link'
@@ -0,0 +1,22 @@
1
+ name: Audit
2
+
3
+ on:
4
+ push:
5
+ branches: [ master ]
6
+ pull_request:
7
+ branches: [ master ]
8
+ jobs:
9
+ audit:
10
+ runs-on: ubuntu-latest
11
+ steps:
12
+ - name: Checkout code
13
+ uses: actions/checkout@v2
14
+
15
+ - name: Setup Ruby and install gems
16
+ uses: ruby/setup-ruby@473e4d8fe5dd94ee328fdfca9f8c9c7afc9dae5e
17
+ with:
18
+ ruby-version: 2.7
19
+ bundler-cache: true
20
+ - name: Run security checks
21
+ run: |
22
+ bin/bundler-audit --update
@@ -0,0 +1,70 @@
1
+ # For most projects, this workflow file will not need changing; you simply need
2
+ # to commit it to your repository.
3
+ #
4
+ # You may wish to alter this file to override the set of languages analyzed,
5
+ # or to provide custom queries or build logic.
6
+ #
7
+ # ******** NOTE ********
8
+ # We have attempted to detect the languages in your repository. Please check
9
+ # the `language` matrix defined below to confirm you have the correct set of
10
+ # supported CodeQL languages.
11
+ #
12
+ name: "CodeQL"
13
+
14
+ on:
15
+ push:
16
+ branches: [ master ]
17
+ pull_request:
18
+ # The branches below must be a subset of the branches above
19
+ branches: [ master ]
20
+ schedule:
21
+ - cron: '21 10 * * 4'
22
+
23
+ jobs:
24
+ analyze:
25
+ name: Analyze
26
+ runs-on: ubuntu-latest
27
+ permissions:
28
+ actions: read
29
+ contents: read
30
+ security-events: write
31
+
32
+ strategy:
33
+ fail-fast: false
34
+ matrix:
35
+ language: [ 'ruby' ]
36
+ # CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
37
+ # Learn more about CodeQL language support at https://git.io/codeql-language-support
38
+
39
+ steps:
40
+ - name: Checkout repository
41
+ uses: actions/checkout@v2
42
+
43
+ # Initializes the CodeQL tools for scanning.
44
+ - name: Initialize CodeQL
45
+ uses: github/codeql-action/init@v1
46
+ with:
47
+ languages: ${{ matrix.language }}
48
+ # If you wish to specify custom queries, you can do so here or in a config file.
49
+ # By default, queries listed here will override any specified in a config file.
50
+ # Prefix the list here with "+" to use these queries and those in the config file.
51
+ # queries: ./path/to/local/query, your-org/your-repo/queries@main
52
+
53
+ # Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
54
+ # If this step fails, then you should remove it and run the build manually (see below)
55
+ - name: Autobuild
56
+ uses: github/codeql-action/autobuild@v1
57
+
58
+ # ℹ️ Command-line programs to run using the OS shell.
59
+ # 📚 https://git.io/JvXDl
60
+
61
+ # ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
62
+ # and modify them (or add more) to build your code if your project
63
+ # uses a compiled language
64
+
65
+ #- run: |
66
+ # make bootstrap
67
+ # make release
68
+
69
+ - name: Perform CodeQL Analysis
70
+ uses: github/codeql-action/analyze@v1
@@ -0,0 +1,34 @@
1
+ name: Test Coverage
2
+
3
+ on:
4
+ push:
5
+ branches: [ master ]
6
+ pull_request:
7
+ branches: [ master ]
8
+
9
+ jobs:
10
+ coverage:
11
+ name: coverage
12
+ runs-on: ubuntu-latest
13
+ steps:
14
+ - uses: actions/checkout@v2
15
+ - name: Set up Ruby
16
+ uses: ruby/setup-ruby@473e4d8fe5dd94ee328fdfca9f8c9c7afc9dae5e
17
+ with:
18
+ ruby-version: 2.7
19
+ bundler-cache: true # runs 'bundle install' and caches installed gems automatically
20
+ - name: Install cc-test-reporter and prebuild notification
21
+ run: |
22
+ curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
23
+ chmod +x ./cc-test-reporter
24
+ ./cc-test-reporter before-build
25
+ - name: Run tests
26
+ env:
27
+ COVERAGE: 1
28
+ API_KEY: "${{secrets.API_KEY}}"
29
+ DYNAMIC_LINK_DOMAIN: "${{ secrets.DYNAMIC_LINK_DOMAIN }}"
30
+ run: bundle exec rspec
31
+ - name: CodeClimate Post-build upload
32
+ env:
33
+ CC_TEST_REPORTER_ID: 22b531be7956bd878ec8ce211da98c483c9724eebc8eb72f99d064f00aa6e985
34
+ run: ./cc-test-reporter -d -t simplecov after-build
@@ -0,0 +1,45 @@
1
+ name: Push to Rubygems
2
+
3
+ on:
4
+ push:
5
+ branches: [master]
6
+ pull_request:
7
+ branches: [master]
8
+
9
+ jobs:
10
+ build:
11
+ name: Build + Publish
12
+ runs-on: ubuntu-latest
13
+ permissions:
14
+ contents: read
15
+ packages: write
16
+
17
+ steps:
18
+ - uses: actions/checkout@v2
19
+ - name: Set up Ruby 2.7
20
+ uses: actions/setup-ruby@v1
21
+ with:
22
+ ruby-version: 2.7.x
23
+
24
+ - name: Publish to GPR
25
+ run: |
26
+ mkdir -p $HOME/.gem
27
+ touch $HOME/.gem/credentials
28
+ chmod 0600 $HOME/.gem/credentials
29
+ printf -- "---\n:github: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
30
+ gem build *.gemspec
31
+ gem push --KEY github --host https://rubygems.pkg.github.com/${OWNER} *.gem
32
+ env:
33
+ GEM_HOST_API_KEY: "Bearer ${{secrets.GPR_TOKEN}}"
34
+ OWNER: ${{ github.repository_owner }}
35
+
36
+ - name: Publish to RubyGems
37
+ run: |
38
+ mkdir -p $HOME/.gem
39
+ touch $HOME/.gem/credentials
40
+ chmod 0600 $HOME/.gem/credentials
41
+ printf -- "---\n:rubygems_api_key: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
42
+ gem build *.gemspec
43
+ gem push *.gem
44
+ env:
45
+ GEM_HOST_API_KEY: "${{secrets.RUBYGEMS_AUTH_TOKEN}}"
@@ -0,0 +1,25 @@
1
+ name: Test
2
+
3
+ on:
4
+ - push
5
+ - pull_request
6
+
7
+ jobs:
8
+ test:
9
+ runs-on: ubuntu-latest
10
+ strategy:
11
+ matrix:
12
+ ruby-version: ['2.6', '2.7', '3.0']
13
+
14
+ steps:
15
+ - uses: actions/checkout@v2
16
+ - name: Set up Ruby
17
+ uses: ruby/setup-ruby@473e4d8fe5dd94ee328fdfca9f8c9c7afc9dae5e
18
+ with:
19
+ ruby-version: ${{ matrix.ruby-version }}
20
+ bundler-cache: true # runs 'bundle install' and caches installed gems automatically
21
+ - name: Run tests
22
+ env:
23
+ API_KEY: "${{secrets.API_KEY}}"
24
+ DYNAMIC_LINK_DOMAIN: "${{ secrets.DYNAMIC_LINK_DOMAIN }}"
25
+ run: bundle exec appraisal bundle install && bundle exec appraisal rspec
data/.gitignore CHANGED
@@ -14,3 +14,5 @@ spec/fixtures/vcr_cassettes/
14
14
  coverage
15
15
  doc
16
16
  Gemfile.lock
17
+ .env
18
+ .secrets
data/.rubocop.yml CHANGED
@@ -1,146 +1 @@
1
- Metrics/BlockLength:
2
- Exclude:
3
- - 'Rakefile'
4
- - '**/*.rake'
5
- - 'spec/**/*.rb'
6
-
7
- # Prefer &&/|| over and/or.
8
- Style/AndOr:
9
- Enabled: true
10
-
11
- # Do not use braces for hash literals when they are the last argument of a
12
- # method call.
13
- Style/BracesAroundHashParameters:
14
- Enabled: true
15
- EnforcedStyle: context_dependent
16
-
17
- # Align `when` with `case`.
18
- Layout/CaseIndentation:
19
- Enabled: true
20
-
21
- # Align comments with method definitions.
22
- Layout/CommentIndentation:
23
- Enabled: true
24
-
25
- Layout/ElseAlignment:
26
- Enabled: true
27
-
28
- # Align `end` with the matching keyword or starting expression except for
29
- # assignments, where it should be aligned with the LHS.
30
- Layout/EndAlignment:
31
- Enabled: true
32
- EnforcedStyleAlignWith: variable
33
- AutoCorrect: true
34
-
35
- Layout/EmptyLineAfterMagicComment:
36
- Enabled: true
37
-
38
- # In a regular class definition, no empty lines around the body.
39
- Layout/EmptyLinesAroundClassBody:
40
- Enabled: true
41
-
42
- # In a regular method definition, no empty lines around the body.
43
- Layout/EmptyLinesAroundMethodBody:
44
- Enabled: true
45
-
46
- # In a regular module definition, no empty lines around the body.
47
- Layout/EmptyLinesAroundModuleBody:
48
- Enabled: true
49
-
50
- Layout/FirstParameterIndentation:
51
- Enabled: true
52
-
53
- # Use Ruby >= 1.9 syntax for hashes. Prefer { a: :b } over { :a => :b }.
54
- Style/HashSyntax:
55
- Enabled: true
56
-
57
- # Two spaces, no tabs (for indentation).
58
- Layout/IndentationWidth:
59
- Enabled: true
60
-
61
- Layout/LeadingCommentSpace:
62
- Enabled: true
63
-
64
- Layout/SpaceAfterColon:
65
- Enabled: true
66
-
67
- Layout/SpaceAfterComma:
68
- Enabled: true
69
-
70
- Layout/SpaceAroundEqualsInParameterDefault:
71
- Enabled: true
72
-
73
- Layout/SpaceAroundKeyword:
74
- Enabled: true
75
-
76
- Layout/SpaceAroundOperators:
77
- Enabled: true
78
-
79
- Layout/SpaceBeforeComma:
80
- Enabled: true
81
-
82
- Layout/SpaceBeforeFirstArg:
83
- Enabled: true
84
-
85
- Style/DefWithParentheses:
86
- Enabled: true
87
-
88
- # Defining a method with parameters needs parentheses.
89
- Style/MethodDefParentheses:
90
- Enabled: true
91
-
92
- Style/FrozenStringLiteralComment:
93
- Enabled: true
94
- EnforcedStyle: always
95
-
96
- # Use `foo {}` not `foo{}`.
97
- Layout/SpaceBeforeBlockBraces:
98
- Enabled: true
99
-
100
- # Use `foo { bar }` not `foo {bar}`.
101
- Layout/SpaceInsideBlockBraces:
102
- Enabled: true
103
-
104
- # Use `{ a: 1 }` not `{a:1}`.
105
- Layout/SpaceInsideHashLiteralBraces:
106
- Enabled: true
107
-
108
- Layout/SpaceInsideParens:
109
- Enabled: true
110
-
111
- # Check quotes usage according to lint rule below.
112
- Style/StringLiterals:
113
- Enabled: true
114
- EnforcedStyle: double_quotes
115
-
116
- # Detect hard tabs, no hard tabs.
117
- Layout/Tab:
118
- Enabled: true
119
-
120
- # Blank lines should not have any spaces.
121
- Layout/TrailingBlankLines:
122
- Enabled: true
123
-
124
- # No trailing whitespace.
125
- Layout/TrailingWhitespace:
126
- Enabled: true
127
-
128
- # Use quotes for string literals when they are enough.
129
- Style/UnneededPercentQ:
130
- Enabled: true
131
-
132
- # Use my_method(my_arg) not my_method( my_arg ) or my_method my_arg.
133
- Lint/RequireParentheses:
134
- Enabled: true
135
-
136
- Style/RedundantReturn:
137
- Enabled: true
138
- AllowMultipleReturnValues: true
139
-
140
- Style/Semicolon:
141
- Enabled: true
142
- AllowAsExpressionSeparator: true
143
-
144
- # Prefer Foo.method over Foo::method
145
- Style/ColonMethodCall:
146
- Enabled: true
1
+ require: rubocop-rspec
data/Appraisals CHANGED
@@ -1,21 +1,81 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- appraise "version-2018" do
4
- gem "dry-configurable", "0.7.0"
5
- gem "faraday", "0.14.0"
3
+ appraise 'faraday-0.16-dry-0.9' do
4
+ gem 'dry-configurable', '0.9.0'
5
+ gem 'faraday', '0.16.2'
6
6
  end
7
7
 
8
- appraise "version-2017b" do
9
- gem "dry-configurable", "0.6.0"
10
- gem "faraday", "0.11.0"
8
+ appraise 'faraday-0.17-dry-0.9' do
9
+ gem 'dry-configurable', '0.9.0'
10
+ gem 'faraday', '0.17.4'
11
11
  end
12
12
 
13
- appraise "version-2017a" do
14
- gem "dry-configurable", "0.6.0"
15
- gem "faraday", "0.10.1"
13
+ appraise 'faraday-1.8.0-dry-0.9' do
14
+ gem 'dry-configurable', '0.9.0'
15
+ gem 'faraday', '1.8.0'
16
16
  end
17
17
 
18
- appraise "version-2020" do
19
- gem "dry-configurable", "0.11.6"
20
- gem "faraday", "1.0.1"
18
+ appraise 'faraday-2.0.0-dry-0.9' do
19
+ gem 'dry-configurable', '0.9.0'
20
+ gem 'faraday', '2.0.0.alpha.pre.3'
21
+ end
22
+
23
+ appraise 'faraday-0.16-dry-0.11' do
24
+ gem 'dry-configurable', '0.11.6'
25
+ gem 'faraday', '0.16.2'
26
+ end
27
+
28
+ appraise 'faraday-0.17-dry-0.11' do
29
+ gem 'dry-configurable', '0.11.6'
30
+ gem 'faraday', '0.17.4'
31
+ end
32
+
33
+ appraise 'faraday-1.8.0-dry-0.11' do
34
+ gem 'dry-configurable', '0.11.6'
35
+ gem 'faraday', '1.8.0'
36
+ end
37
+
38
+ appraise 'faraday-2.0.0-dry-0.11' do
39
+ gem 'dry-configurable', '0.11.6'
40
+ gem 'faraday', '2.0.0.alpha.pre.3'
41
+ end
42
+
43
+ appraise 'faraday-0.16-dry-0.12' do
44
+ gem 'dry-configurable', '0.12.1'
45
+ gem 'faraday', '0.16.2'
46
+ end
47
+
48
+ appraise 'faraday-0.17-dry-0.12' do
49
+ gem 'dry-configurable', '0.12.1'
50
+ gem 'faraday', '0.17.4'
51
+ end
52
+
53
+ appraise 'faraday-1.8.0-dry-0.12' do
54
+ gem 'dry-configurable', '0.12.1'
55
+ gem 'faraday', '1.8.0'
56
+ end
57
+
58
+ appraise 'faraday-2.0.0-dry-0.12' do
59
+ gem 'dry-configurable', '0.12.1'
60
+ gem 'faraday', '2.0.0.alpha.pre.3'
61
+ end
62
+
63
+ appraise 'faraday-0.16-dry-0.13' do
64
+ gem 'dry-configurable', '0.13.0'
65
+ gem 'faraday', '0.16.2'
66
+ end
67
+
68
+ appraise 'faraday-0.17-dry-0.13' do
69
+ gem 'dry-configurable', '0.13.0'
70
+ gem 'faraday', '0.17.4'
71
+ end
72
+
73
+ appraise 'faraday-1.8.0-dry-0.13' do
74
+ gem 'dry-configurable', '0.13.0'
75
+ gem 'faraday', '1.8.0'
76
+ end
77
+
78
+ appraise 'faraday-2.0.0-dry-0.13' do
79
+ gem 'dry-configurable', '0.13.0'
80
+ gem 'faraday', '2.0.0.alpha.pre.3'
21
81
  end
data/Gemfile CHANGED
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- source "https://rubygems.org"
3
+ source 'https://rubygems.org'
4
4
 
5
5
  git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }
6
6
 
data/Guardfile CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # A sample Guardfile
2
4
  # More info at https://github.com/guard/guard#readme
3
5
 
@@ -15,7 +17,7 @@
15
17
  #
16
18
  # and, you'll have to watch "config/Guardfile" instead of "Guardfile"
17
19
 
18
- # Note: The cmd option is now required due to the increasing number of ways
20
+ # NOTE: The cmd option is now required due to the increasing number of ways
19
21
  # rspec may be run, below are examples of the most common uses.
20
22
  # * bundler: 'bundle exec rspec'
21
23
  # * bundler binstubs: 'bin/rspec'
@@ -24,8 +26,8 @@
24
26
  # * zeus: 'zeus rspec' (requires the server to be started separately)
25
27
  # * 'just' rspec: 'rspec'
26
28
 
27
- guard :rspec, cmd: "bundle exec rspec" do
28
- require "guard/rspec/dsl"
29
+ guard :rspec, cmd: 'bundle exec rspec' do
30
+ require 'guard/rspec/dsl'
29
31
  dsl = Guard::RSpec::Dsl.new(self)
30
32
 
31
33
  # Feel free to open issues for suggestions and improvements
@@ -41,7 +43,7 @@ guard :rspec, cmd: "bundle exec rspec" do
41
43
  dsl.watch_spec_files_for(ruby.lib_files)
42
44
 
43
45
  # Rails files
44
- rails = dsl.rails(view_extensions: %w(erb haml slim))
46
+ rails = dsl.rails(view_extensions: %w[erb haml slim])
45
47
  dsl.watch_spec_files_for(rails.app_files)
46
48
  dsl.watch_spec_files_for(rails.views)
47
49
 
@@ -65,6 +67,6 @@ guard :rspec, cmd: "bundle exec rspec" do
65
67
  # Turnip features and steps
66
68
  watch(%r{^spec/acceptance/(.+)\.feature$})
67
69
  watch(%r{^spec/acceptance/steps/(.+)_steps\.rb$}) do |m|
68
- Dir[File.join("**/#{m[1]}.feature")][0] || "spec/acceptance"
70
+ Dir[File.join("**/#{m[1]}.feature")][0] || 'spec/acceptance'
69
71
  end
70
72
  end