friendly_id-mobility 0.5.4 → 0.5.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5b9dc85b6c90a5b80039281fc5215b8c42f0866c5a9e498b575973ea3b65e5c9
4
- data.tar.gz: bb492b5e1d921a9aa298a1779111af13d2521a25b7a2de763b0600fc23c6ec14
3
+ metadata.gz: 840900ad6048793b334abe0cd05aa0ed6fc2b73e66d57c09c29f8a1506f5bf05
4
+ data.tar.gz: 3966104a341f8c62d16ea49c7aa717ccbff308fb08febd25ccb51c377119accf
5
5
  SHA512:
6
- metadata.gz: 8a5a28fc2171ab3d3d72c8b9c5903a178bdc91045d2a8bed119909c04045ee91f191643f7427b93744417a40d6e207f111969eb3b641281ca2cb1670d556a98b
7
- data.tar.gz: 72ce38757353f93559053412771f0d8825921f00ae5c1fb4ccb428af2c7bee9cd1ba708147eb23816a4c7d6b3eee0fb8acbedfd79936032bb3bedd775b28fef3
6
+ metadata.gz: f7fee8e50ecec64024d8738e704c3b22ae2d5994d3903fceb70d63db8b99f4656bbe8fbadde824c4cd6ac8ead12f7f40e66adf6752d8660f203258f34cc27fe8
7
+ data.tar.gz: 43fda09d04218706315833a63c0ddc40bbc76998a93c8f00ccdfbee923eafbf8420c9cdc6bdb88e00f2ef46926b54d24410bb9e0656f63f874fd72d17c03e468
@@ -2,6 +2,10 @@
2
2
 
3
3
  ## 0.5
4
4
 
5
+ ### 0.5.5
6
+ * Bump friendly_id dependency version to 5.4.0
7
+ ([#19](https://github.com/shioyama/friendly_id-mobility/pull/19/files))
8
+
5
9
  ### 0.5.4
6
10
  * Generate all translated slugs when model is saved
7
11
  ([#12](https://github.com/shioyama/friendly_id-mobility/pull/12))
data/Gemfile CHANGED
@@ -6,7 +6,11 @@ gemspec
6
6
  group :development, :test do
7
7
  gem 'rake'
8
8
 
9
- gem 'sqlite3'
9
+ if ENV['RAILS_VERSION'] && ENV['RAILS_VERSION'] < '5.2'
10
+ gem 'sqlite3', '~> 1.3.13'
11
+ else
12
+ gem 'sqlite3'
13
+ end
10
14
 
11
15
  if ENV['RAILS_VERSION'] == '5.1'
12
16
  gem 'rails', '>= 5.1', '< 5.2'
@@ -1,160 +1,159 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- friendly_id-mobility (0.5.3)
5
- friendly_id (>= 5.0.0, <= 5.3.0)
4
+ friendly_id-mobility (0.5.5)
5
+ friendly_id (>= 5.0.0, <= 5.4.0)
6
6
  mobility (>= 0.5.1, < 1.0)
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
- actioncable (5.2.0.rc2)
12
- actionpack (= 5.2.0.rc2)
11
+ actioncable (5.2.4.2)
12
+ actionpack (= 5.2.4.2)
13
13
  nio4r (~> 2.0)
14
14
  websocket-driver (>= 0.6.1)
15
- actionmailer (5.2.0.rc2)
16
- actionpack (= 5.2.0.rc2)
17
- actionview (= 5.2.0.rc2)
18
- activejob (= 5.2.0.rc2)
15
+ actionmailer (5.2.4.2)
16
+ actionpack (= 5.2.4.2)
17
+ actionview (= 5.2.4.2)
18
+ activejob (= 5.2.4.2)
19
19
  mail (~> 2.5, >= 2.5.4)
20
20
  rails-dom-testing (~> 2.0)
21
- actionpack (5.2.0.rc2)
22
- actionview (= 5.2.0.rc2)
23
- activesupport (= 5.2.0.rc2)
24
- rack (~> 2.0)
21
+ actionpack (5.2.4.2)
22
+ actionview (= 5.2.4.2)
23
+ activesupport (= 5.2.4.2)
24
+ rack (~> 2.0, >= 2.0.8)
25
25
  rack-test (>= 0.6.3)
26
26
  rails-dom-testing (~> 2.0)
27
27
  rails-html-sanitizer (~> 1.0, >= 1.0.2)
28
- actionview (5.2.0.rc2)
29
- activesupport (= 5.2.0.rc2)
28
+ actionview (5.2.4.2)
29
+ activesupport (= 5.2.4.2)
30
30
  builder (~> 3.1)
31
31
  erubi (~> 1.4)
32
32
  rails-dom-testing (~> 2.0)
33
33
  rails-html-sanitizer (~> 1.0, >= 1.0.3)
34
- activejob (5.2.0.rc2)
35
- activesupport (= 5.2.0.rc2)
34
+ activejob (5.2.4.2)
35
+ activesupport (= 5.2.4.2)
36
36
  globalid (>= 0.3.6)
37
- activemodel (5.2.0.rc2)
38
- activesupport (= 5.2.0.rc2)
39
- activerecord (5.2.0.rc2)
40
- activemodel (= 5.2.0.rc2)
41
- activesupport (= 5.2.0.rc2)
37
+ activemodel (5.2.4.2)
38
+ activesupport (= 5.2.4.2)
39
+ activerecord (5.2.4.2)
40
+ activemodel (= 5.2.4.2)
41
+ activesupport (= 5.2.4.2)
42
42
  arel (>= 9.0)
43
- activestorage (5.2.0.rc2)
44
- actionpack (= 5.2.0.rc2)
45
- activerecord (= 5.2.0.rc2)
43
+ activestorage (5.2.4.2)
44
+ actionpack (= 5.2.4.2)
45
+ activerecord (= 5.2.4.2)
46
46
  marcel (~> 0.3.1)
47
- activesupport (5.2.0.rc2)
47
+ activesupport (5.2.4.2)
48
48
  concurrent-ruby (~> 1.0, >= 1.0.2)
49
49
  i18n (>= 0.7, < 2)
50
50
  minitest (~> 5.1)
51
51
  tzinfo (~> 1.1)
52
52
  arel (9.0.0)
53
- builder (3.2.3)
54
- byebug (10.0.1)
53
+ builder (3.2.4)
54
+ byebug (11.1.1)
55
55
  coderay (1.1.2)
56
- concurrent-ruby (1.0.5)
57
- crass (1.0.3)
58
- database_cleaner (1.6.2)
56
+ concurrent-ruby (1.1.6)
57
+ crass (1.0.6)
58
+ database_cleaner (1.8.4)
59
59
  diff-lcs (1.3)
60
- erubi (1.7.1)
61
- friendly_id (5.2.4)
60
+ erubi (1.9.0)
61
+ friendly_id (5.4.0)
62
62
  activerecord (>= 4.0.0)
63
63
  generator_spec (0.9.4)
64
64
  activesupport (>= 3.0.0)
65
65
  railties (>= 3.0.0)
66
- globalid (0.4.1)
66
+ globalid (0.4.2)
67
67
  activesupport (>= 4.2.0)
68
- i18n (1.0.1)
68
+ i18n (1.8.2)
69
69
  concurrent-ruby (~> 1.0)
70
- loofah (2.2.2)
70
+ loofah (2.5.0)
71
71
  crass (~> 1.0.2)
72
72
  nokogiri (>= 1.5.9)
73
- mail (2.7.0)
73
+ mail (2.7.1)
74
74
  mini_mime (>= 0.1.1)
75
- marcel (0.3.2)
75
+ marcel (0.3.3)
76
76
  mimemagic (~> 0.3.2)
77
- method_source (0.9.0)
78
- mimemagic (0.3.2)
79
- mini_mime (1.0.0)
80
- mini_portile2 (2.3.0)
81
- minitest (5.11.3)
82
- mobility (0.5.1)
83
- i18n (>= 0.6.10, < 1.1)
77
+ method_source (1.0.0)
78
+ mimemagic (0.3.4)
79
+ mini_mime (1.0.2)
80
+ mini_portile2 (2.4.0)
81
+ minitest (5.14.0)
82
+ mobility (0.8.13)
83
+ i18n (>= 0.6.10, < 2)
84
84
  request_store (~> 1.0)
85
- nio4r (2.3.0)
86
- nokogiri (1.8.2)
87
- mini_portile2 (~> 2.3.0)
88
- pry (0.11.3)
89
- coderay (~> 1.1.0)
90
- method_source (~> 0.9.0)
91
- pry-byebug (3.6.0)
92
- byebug (~> 10.0)
93
- pry (~> 0.10)
94
- rack (2.0.4)
95
- rack-test (1.0.0)
85
+ nio4r (2.5.2)
86
+ nokogiri (1.10.9)
87
+ mini_portile2 (~> 2.4.0)
88
+ pry (0.13.0)
89
+ coderay (~> 1.1)
90
+ method_source (~> 1.0)
91
+ pry-byebug (3.9.0)
92
+ byebug (~> 11.0)
93
+ pry (~> 0.13.0)
94
+ rack (2.2.2)
95
+ rack-test (1.1.0)
96
96
  rack (>= 1.0, < 3)
97
- rails (5.2.0.rc2)
98
- actioncable (= 5.2.0.rc2)
99
- actionmailer (= 5.2.0.rc2)
100
- actionpack (= 5.2.0.rc2)
101
- actionview (= 5.2.0.rc2)
102
- activejob (= 5.2.0.rc2)
103
- activemodel (= 5.2.0.rc2)
104
- activerecord (= 5.2.0.rc2)
105
- activestorage (= 5.2.0.rc2)
106
- activesupport (= 5.2.0.rc2)
97
+ rails (5.2.4.2)
98
+ actioncable (= 5.2.4.2)
99
+ actionmailer (= 5.2.4.2)
100
+ actionpack (= 5.2.4.2)
101
+ actionview (= 5.2.4.2)
102
+ activejob (= 5.2.4.2)
103
+ activemodel (= 5.2.4.2)
104
+ activerecord (= 5.2.4.2)
105
+ activestorage (= 5.2.4.2)
106
+ activesupport (= 5.2.4.2)
107
107
  bundler (>= 1.3.0)
108
- railties (= 5.2.0.rc2)
108
+ railties (= 5.2.4.2)
109
109
  sprockets-rails (>= 2.0.0)
110
110
  rails-dom-testing (2.0.3)
111
111
  activesupport (>= 4.2.0)
112
112
  nokogiri (>= 1.6)
113
- rails-html-sanitizer (1.0.4)
114
- loofah (~> 2.2, >= 2.2.2)
115
- railties (5.2.0.rc2)
116
- actionpack (= 5.2.0.rc2)
117
- activesupport (= 5.2.0.rc2)
113
+ rails-html-sanitizer (1.3.0)
114
+ loofah (~> 2.3)
115
+ railties (5.2.4.2)
116
+ actionpack (= 5.2.4.2)
117
+ activesupport (= 5.2.4.2)
118
118
  method_source
119
119
  rake (>= 0.8.7)
120
- thor (>= 0.18.1, < 2.0)
121
- rake (12.3.1)
122
- request_store (1.4.1)
120
+ thor (>= 0.19.0, < 2.0)
121
+ rake (13.0.1)
122
+ request_store (1.5.0)
123
123
  rack (>= 1.4)
124
- rspec (3.7.0)
125
- rspec-core (~> 3.7.0)
126
- rspec-expectations (~> 3.7.0)
127
- rspec-mocks (~> 3.7.0)
128
- rspec-core (3.7.1)
129
- rspec-support (~> 3.7.0)
130
- rspec-expectations (3.7.0)
124
+ rspec (3.9.0)
125
+ rspec-core (~> 3.9.0)
126
+ rspec-expectations (~> 3.9.0)
127
+ rspec-mocks (~> 3.9.0)
128
+ rspec-core (3.9.1)
129
+ rspec-support (~> 3.9.1)
130
+ rspec-expectations (3.9.1)
131
131
  diff-lcs (>= 1.2.0, < 2.0)
132
- rspec-support (~> 3.7.0)
133
- rspec-mocks (3.7.0)
132
+ rspec-support (~> 3.9.0)
133
+ rspec-mocks (3.9.1)
134
134
  diff-lcs (>= 1.2.0, < 2.0)
135
- rspec-support (~> 3.7.0)
136
- rspec-support (3.7.1)
137
- sprockets (3.7.1)
135
+ rspec-support (~> 3.9.0)
136
+ rspec-support (3.9.2)
137
+ sprockets (4.0.0)
138
138
  concurrent-ruby (~> 1.0)
139
139
  rack (> 1, < 3)
140
140
  sprockets-rails (3.2.1)
141
141
  actionpack (>= 4.0)
142
142
  activesupport (>= 4.0)
143
143
  sprockets (>= 3.0.0)
144
- sqlite3 (1.3.13)
145
- thor (0.20.0)
144
+ sqlite3 (1.4.2)
145
+ thor (1.0.1)
146
146
  thread_safe (0.3.6)
147
- tzinfo (1.2.5)
147
+ tzinfo (1.2.7)
148
148
  thread_safe (~> 0.1)
149
- websocket-driver (0.7.0)
149
+ websocket-driver (0.7.1)
150
150
  websocket-extensions (>= 0.1.0)
151
- websocket-extensions (0.1.3)
151
+ websocket-extensions (0.1.4)
152
152
 
153
153
  PLATFORMS
154
154
  ruby
155
155
 
156
156
  DEPENDENCIES
157
- bundler (~> 1.12)
158
157
  database_cleaner (~> 1.5, >= 1.5.3)
159
158
  friendly_id-mobility!
160
159
  generator_spec (~> 0.9.3)
@@ -166,4 +165,4 @@ DEPENDENCIES
166
165
  sqlite3
167
166
 
168
167
  BUNDLED WITH
169
- 1.16.1
168
+ 2.0.2
data/README.md CHANGED
@@ -3,9 +3,11 @@ FriendlyId Mobility
3
3
 
4
4
  [![Gem Version](https://badge.fury.io/rb/friendly_id-mobility.svg)][gem]
5
5
  [![Build Status](https://travis-ci.org/shioyama/friendly_id-mobility.svg?branch=master)][travis]
6
+ [![Code Climate](https://api.codeclimate.com/v1/badges/1dad5895b69b4ae5bd38/maintainability.svg)][codeclimate]
6
7
 
7
8
  [gem]: https://rubygems.org/gems/friendly_id-mobility
8
9
  [travis]: https://travis-ci.org/shioyama/friendly_id-mobility
10
+ [codeclimate]: https://codeclimate.com/github/shioyama/friendly_id-mobility
9
11
 
10
12
  [Mobility](https://github.com/shioyama/mobility) support for
11
13
  [FriendlyId](https://github.com/norman/friendly_id).
@@ -71,7 +73,7 @@ class Journalist < ActiveRecord::Base
71
73
  translates :slug
72
74
 
73
75
  extend FriendlyId
74
- friendly_id :title, use: :mobility
76
+ friendly_id :name, use: :mobility
75
77
  end
76
78
  ```
77
79
 
@@ -175,15 +177,6 @@ rails generate friendly_id_mobility
175
177
 
176
178
  Then run the generated migration with `rake db:migrate`.
177
179
 
178
- Contributing
179
- ------------
180
-
181
- Bug reports and pull requests are welcome on GitHub at
182
- https://github.com/shioyama/friendly_id-mobility. This project is intended to
183
- be a safe, welcoming space for collaboration, and contributors are expected to
184
- adhere to the [Contributor Covenant](http://contributor-covenant.org) code of
185
- conduct.
186
-
187
180
  License
188
181
  -------
189
182
 
@@ -1,5 +1,5 @@
1
1
  module FriendlyId
2
2
  module Mobility
3
- VERSION = "0.5.4"
3
+ VERSION = "0.5.5"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: friendly_id-mobility
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.4
4
+ version: 0.5.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Salzberg
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-08-05 00:00:00.000000000 Z
11
+ date: 2020-11-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mobility
@@ -39,7 +39,7 @@ dependencies:
39
39
  version: 5.0.0
40
40
  - - "<="
41
41
  - !ruby/object:Gem::Version
42
- version: 5.3.0
42
+ version: 5.4.0
43
43
  type: :runtime
44
44
  prerelease: false
45
45
  version_requirements: !ruby/object:Gem::Requirement
@@ -49,35 +49,21 @@ dependencies:
49
49
  version: 5.0.0
50
50
  - - "<="
51
51
  - !ruby/object:Gem::Version
52
- version: 5.3.0
53
- - !ruby/object:Gem::Dependency
54
- name: bundler
55
- requirement: !ruby/object:Gem::Requirement
56
- requirements:
57
- - - "~>"
58
- - !ruby/object:Gem::Version
59
- version: '1.12'
60
- type: :development
61
- prerelease: false
62
- version_requirements: !ruby/object:Gem::Requirement
63
- requirements:
64
- - - "~>"
65
- - !ruby/object:Gem::Version
66
- version: '1.12'
52
+ version: 5.4.0
67
53
  - !ruby/object:Gem::Dependency
68
54
  name: rake
69
55
  requirement: !ruby/object:Gem::Requirement
70
56
  requirements:
71
- - - "~>"
57
+ - - ">="
72
58
  - !ruby/object:Gem::Version
73
- version: '10.0'
59
+ version: 12.3.3
74
60
  type: :development
75
61
  prerelease: false
76
62
  version_requirements: !ruby/object:Gem::Requirement
77
63
  requirements:
78
- - - "~>"
64
+ - - ">="
79
65
  - !ruby/object:Gem::Version
80
- version: '10.0'
66
+ version: 12.3.3
81
67
  - !ruby/object:Gem::Dependency
82
68
  name: rspec
83
69
  requirement: !ruby/object:Gem::Requirement
@@ -126,7 +112,7 @@ dependencies:
126
112
  - - "~>"
127
113
  - !ruby/object:Gem::Version
128
114
  version: 0.9.3
129
- description:
115
+ description:
130
116
  email:
131
117
  - chris@dejimata.com
132
118
  executables: []
@@ -134,10 +120,8 @@ extensions: []
134
120
  extra_rdoc_files: []
135
121
  files:
136
122
  - CHANGELOG.md
137
- - CODE_OF_CONDUCT.md
138
123
  - Gemfile
139
124
  - Gemfile.lock
140
- - Guardfile
141
125
  - LICENSE.txt
142
126
  - README.md
143
127
  - Rakefile
@@ -150,7 +134,7 @@ homepage: https://github.com/shioyama/friendly_id-mobility
150
134
  licenses:
151
135
  - MIT
152
136
  metadata: {}
153
- post_install_message:
137
+ post_install_message:
154
138
  rdoc_options: []
155
139
  require_paths:
156
140
  - lib
@@ -165,9 +149,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
165
149
  - !ruby/object:Gem::Version
166
150
  version: '0'
167
151
  requirements: []
168
- rubyforge_project:
169
- rubygems_version: 2.7.6
170
- signing_key:
152
+ rubygems_version: 3.0.6
153
+ signing_key:
171
154
  specification_version: 4
172
155
  summary: Translate your FriendlyId slugs with Mobility.
173
156
  test_files: []
@@ -1,49 +0,0 @@
1
- # Contributor Code of Conduct
2
-
3
- As contributors and maintainers of this project, and in the interest of
4
- fostering an open and welcoming community, we pledge to respect all people who
5
- contribute through reporting issues, posting feature requests, updating
6
- documentation, submitting pull requests or patches, and other activities.
7
-
8
- We are committed to making participation in this project a harassment-free
9
- experience for everyone, regardless of level of experience, gender, gender
10
- identity and expression, sexual orientation, disability, personal appearance,
11
- body size, race, ethnicity, age, religion, or nationality.
12
-
13
- Examples of unacceptable behavior by participants include:
14
-
15
- * The use of sexualized language or imagery
16
- * Personal attacks
17
- * Trolling or insulting/derogatory comments
18
- * Public or private harassment
19
- * Publishing other's private information, such as physical or electronic
20
- addresses, without explicit permission
21
- * Other unethical or unprofessional conduct
22
-
23
- Project maintainers have the right and responsibility to remove, edit, or
24
- reject comments, commits, code, wiki edits, issues, and other contributions
25
- that are not aligned to this Code of Conduct, or to ban temporarily or
26
- permanently any contributor for other behaviors that they deem inappropriate,
27
- threatening, offensive, or harmful.
28
-
29
- By adopting this Code of Conduct, project maintainers commit themselves to
30
- fairly and consistently applying these principles to every aspect of managing
31
- this project. Project maintainers who do not follow or enforce the Code of
32
- Conduct may be permanently removed from the project team.
33
-
34
- This code of conduct applies both within project spaces and in public spaces
35
- when an individual is representing the project or its community.
36
-
37
- Instances of abusive, harassing, or otherwise unacceptable behavior may be
38
- reported by contacting a project maintainer at chris@dejimata.com. All
39
- complaints will be reviewed and investigated and will result in a response that
40
- is deemed necessary and appropriate to the circumstances. Maintainers are
41
- obligated to maintain confidentiality with regard to the reporter of an
42
- incident.
43
-
44
- This Code of Conduct is adapted from the [Contributor Covenant][homepage],
45
- version 1.3.0, available at
46
- [http://contributor-covenant.org/version/1/3/0/][version]
47
-
48
- [homepage]: http://contributor-covenant.org
49
- [version]: http://contributor-covenant.org/version/1/3/0/
data/Guardfile DELETED
@@ -1,70 +0,0 @@
1
- # A sample Guardfile
2
- # More info at https://github.com/guard/guard#readme
3
-
4
- ## Uncomment and set this to only include directories you want to watch
5
- # directories %w(app lib config test spec features) \
6
- # .select{|d| Dir.exists?(d) ? d : UI.warning("Directory #{d} does not exist")}
7
-
8
- ## Note: if you are using the `directories` clause above and you are not
9
- ## watching the project directory ('.'), then you will want to move
10
- ## the Guardfile to a watched dir and symlink it back, e.g.
11
- #
12
- # $ mkdir config
13
- # $ mv Guardfile config/
14
- # $ ln -s config/Guardfile .
15
- #
16
- # and, you'll have to watch "config/Guardfile" instead of "Guardfile"
17
-
18
- # Note: The cmd option is now required due to the increasing number of ways
19
- # rspec may be run, below are examples of the most common uses.
20
- # * bundler: 'bundle exec rspec'
21
- # * bundler binstubs: 'bin/rspec'
22
- # * spring: 'bin/rspec' (This will use spring if running and you have
23
- # installed the spring binstubs per the docs)
24
- # * zeus: 'zeus rspec' (requires the server to be started separately)
25
- # * 'just' rspec: 'rspec'
26
-
27
- guard :rspec, cmd: "bundle exec rspec" do
28
- require "guard/rspec/dsl"
29
- dsl = Guard::RSpec::Dsl.new(self)
30
-
31
- # Feel free to open issues for suggestions and improvements
32
-
33
- # RSpec files
34
- rspec = dsl.rspec
35
- watch(rspec.spec_helper) { rspec.spec_dir }
36
- watch(rspec.spec_support) { rspec.spec_dir }
37
- watch(rspec.spec_files)
38
-
39
- # Ruby files
40
- ruby = dsl.ruby
41
- dsl.watch_spec_files_for(ruby.lib_files)
42
-
43
- # Rails files
44
- rails = dsl.rails(view_extensions: %w(erb haml slim))
45
- dsl.watch_spec_files_for(rails.app_files)
46
- dsl.watch_spec_files_for(rails.views)
47
-
48
- watch(rails.controllers) do |m|
49
- [
50
- rspec.spec.call("routing/#{m[1]}_routing"),
51
- rspec.spec.call("controllers/#{m[1]}_controller"),
52
- rspec.spec.call("acceptance/#{m[1]}")
53
- ]
54
- end
55
-
56
- # Rails config changes
57
- watch(rails.spec_helper) { rspec.spec_dir }
58
- watch(rails.routes) { "#{rspec.spec_dir}/routing" }
59
- watch(rails.app_controller) { "#{rspec.spec_dir}/controllers" }
60
-
61
- # Capybara features specs
62
- watch(rails.view_dirs) { |m| rspec.spec.call("features/#{m[1]}") }
63
- watch(rails.layouts) { |m| rspec.spec.call("features/#{m[1]}") }
64
-
65
- # Turnip features and steps
66
- watch(%r{^spec/acceptance/(.+)\.feature$})
67
- watch(%r{^spec/acceptance/steps/(.+)_steps\.rb$}) do |m|
68
- Dir[File.join("**/#{m[1]}.feature")][0] || "spec/acceptance"
69
- end
70
- end