activeadmin 1.4.2 → 1.4.3
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of activeadmin might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/.circleci/config.yml +112 -7
- data/.gitignore +1 -31
- data/.rubocop.yml +5 -0
- data/.simplecov +1 -3
- data/CHANGELOG.md +146 -136
- data/CONTRIBUTING.md +7 -1
- data/Gemfile +21 -1
- data/Gemfile.common +8 -35
- data/Gemfile.lock +67 -65
- data/README.md +3 -3
- data/Rakefile +11 -10
- data/gemfiles/rails_42.gemfile +1 -1
- data/gemfiles/rails_42.gemfile.lock +36 -107
- data/gemfiles/rails_50.gemfile +1 -1
- data/gemfiles/rails_50.gemfile.lock +39 -110
- data/gemfiles/rails_51.gemfile +1 -1
- data/gemfiles/rails_51.gemfile.lock +39 -109
- data/lib/active_admin/batch_actions/controller.rb +1 -1
- data/lib/active_admin/resource_controller/scoping.rb +1 -1
- data/lib/active_admin/version.rb +1 -1
- data/lib/active_admin/view_helpers/method_or_proc_helper.rb +1 -0
- data/tasks/application_generator.rb +4 -2
- data/tasks/gemfiles.rake +1 -1
- data/tasks/lint.rake +2 -2
- data/tasks/release.rake +6 -0
- data/tasks/test.rake +4 -5
- metadata +3 -3
- data/codecov.yml +0 -25
data/CONTRIBUTING.md
CHANGED
@@ -184,7 +184,9 @@ Maintainers need to do the following to push out a release:
|
|
184
184
|
|
185
185
|
* Make sure all pull requests are in and that changelog is current
|
186
186
|
* Update `version.rb` file and changelog with new version number
|
187
|
-
*
|
187
|
+
* If it's not a patch level release, create a stable branch for that release,
|
188
|
+
otherwise switch to the stable branch corresponding to the patch release you
|
189
|
+
want to ship:
|
188
190
|
|
189
191
|
```sh
|
190
192
|
git checkout master
|
@@ -195,8 +197,12 @@ Maintainers need to do the following to push out a release:
|
|
195
197
|
git push activeadmin N-N-stable:N-N-stable
|
196
198
|
```
|
197
199
|
|
200
|
+
* Make sure you have [chandler] properly configured. Chandler is used to
|
201
|
+
automatically submit github release notes from the changelog right after
|
202
|
+
pushing the gem to rubygems.
|
198
203
|
* `bundle exec rake release`
|
199
204
|
|
205
|
+
[chandler]: https://github.com/mattbrictson/chandler#2-configure-credentials
|
200
206
|
[chromedriver]: https://sites.google.com/a/chromium.org/chromedriver/getting-started
|
201
207
|
[mailing list]: http://groups.google.com/group/activeadmin
|
202
208
|
[Stack Overflow]: http://stackoverflow.com/questions/tagged/activeadmin
|
data/Gemfile
CHANGED
@@ -2,7 +2,27 @@ source "https://rubygems.org"
|
|
2
2
|
|
3
3
|
eval_gemfile(File.expand_path("Gemfile.common", __dir__))
|
4
4
|
|
5
|
-
|
5
|
+
group :release do
|
6
|
+
gem 'chandler', git: 'https://github.com/deivid-rodriguez/chandler', branch: 'submit_link_references' # Github releases from changelog
|
7
|
+
end
|
8
|
+
|
9
|
+
group :lint do
|
10
|
+
# Code style
|
11
|
+
gem 'rubocop', '0.59.2'
|
12
|
+
gem 'rubocop-rspec', '~> 1.30'
|
13
|
+
gem 'mdl', '0.5.0'
|
14
|
+
|
15
|
+
# Translations
|
16
|
+
gem 'i18n-tasks'
|
17
|
+
gem 'i18n-spec'
|
18
|
+
end
|
19
|
+
|
20
|
+
group :docs do
|
21
|
+
gem 'yard' # Documentation generator
|
22
|
+
gem 'kramdown' # Markdown implementation (for yard)
|
23
|
+
end
|
24
|
+
|
25
|
+
gem "rails", "~> 5.2.1"
|
6
26
|
gem "devise", "~> 4.4"
|
7
27
|
gem "draper", "~> 3.0"
|
8
28
|
gem "activerecord-jdbcsqlite3-adapter", ">= 52.0", platforms: :jruby
|
data/Gemfile.common
CHANGED
@@ -1,51 +1,24 @@
|
|
1
|
-
# Optional dependencies
|
2
|
-
gem 'cancan'
|
3
|
-
gem 'pundit'
|
4
|
-
gem 'jruby-openssl', '~> 0.10.1', platforms: :jruby
|
5
|
-
|
6
1
|
# Utility gems used in both development & test environments
|
7
2
|
gem 'rake'
|
8
|
-
gem 'parallel_tests', '~> 2.26'
|
9
|
-
|
10
|
-
# Debugging
|
11
3
|
gem 'pry' # Easily debug from your console with `binding.pry`
|
12
|
-
gem 'pry-byebug', platforms: :mri
|
13
|
-
|
14
|
-
group :lint do
|
15
|
-
# Code style
|
16
|
-
gem 'rubocop', '0.59.2'
|
17
|
-
gem 'mdl', '0.4.0'
|
18
|
-
|
19
|
-
# Translations
|
20
|
-
gem 'i18n-tasks'
|
21
|
-
gem 'i18n-spec'
|
22
|
-
end
|
23
|
-
|
24
|
-
# Documentation
|
25
|
-
gem 'yard' # Documentation generator
|
26
|
-
gem 'redcarpet', platforms: :mri # Markdown implementation (for yard)
|
27
|
-
gem 'kramdown', platforms: :jruby # Markdown implementation (for yard)
|
28
|
-
|
29
|
-
group :development do
|
30
|
-
# Debugging
|
31
|
-
gem 'better_errors' # Web UI to debug exceptions. Go to /__better_errors to access the latest one
|
32
|
-
|
33
|
-
gem 'binding_of_caller', platforms: :mri # Retrieve the binding of a method's caller
|
34
|
-
|
35
|
-
# Performance
|
36
|
-
gem 'rack-mini-profiler', '>= 0.10.1' # Inline app profiler. See ?pp=help for options.
|
37
|
-
end
|
4
|
+
gem 'pry-byebug', platforms: :mri # Step-by-step debugging
|
38
5
|
|
39
6
|
group :test do
|
40
7
|
gem 'capybara', '~> 3.10'
|
8
|
+
|
9
|
+
# Optional dependencies
|
10
|
+
gem 'cancan'
|
11
|
+
gem 'pundit'
|
12
|
+
gem 'jruby-openssl', '~> 0.10.1', platforms: :jruby
|
13
|
+
|
41
14
|
gem 'simplecov', require: false # Test coverage generator. Go to /coverage/ after running tests
|
42
|
-
gem 'codecov', require: false # Test coverage website. Go to https://codecov.io
|
43
15
|
gem 'cucumber-rails', '~> 1.5', require: false
|
44
16
|
gem 'cucumber'
|
45
17
|
gem 'database_cleaner'
|
46
18
|
gem 'jasmine'
|
47
19
|
gem 'jasmine-core', '2.9.1' # last release with Ruby 2.2 support.
|
48
20
|
gem 'launchy'
|
21
|
+
gem 'parallel_tests', '~> 2.26'
|
49
22
|
gem 'rails-i18n' # Provides default i18n for many languages
|
50
23
|
gem 'rspec-rails'
|
51
24
|
gem 'sqlite3', platforms: :mri
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,16 @@
|
|
1
|
+
GIT
|
2
|
+
remote: https://github.com/deivid-rodriguez/chandler
|
3
|
+
revision: 71ca85925b54a1b1e6ba785efa450a012364efe6
|
4
|
+
branch: submit_link_references
|
5
|
+
specs:
|
6
|
+
chandler (0.7.0)
|
7
|
+
netrc
|
8
|
+
octokit (>= 2.2.0)
|
9
|
+
|
1
10
|
PATH
|
2
11
|
remote: .
|
3
12
|
specs:
|
4
|
-
activeadmin (1.4.
|
13
|
+
activeadmin (1.4.3)
|
5
14
|
arbre (>= 1.1.1)
|
6
15
|
coffee-rails
|
7
16
|
formtastic (~> 3.1)
|
@@ -17,52 +26,52 @@ PATH
|
|
17
26
|
GEM
|
18
27
|
remote: https://rubygems.org/
|
19
28
|
specs:
|
20
|
-
actioncable (5.2.1)
|
21
|
-
actionpack (= 5.2.1)
|
29
|
+
actioncable (5.2.1.1)
|
30
|
+
actionpack (= 5.2.1.1)
|
22
31
|
nio4r (~> 2.0)
|
23
32
|
websocket-driver (>= 0.6.1)
|
24
|
-
actionmailer (5.2.1)
|
25
|
-
actionpack (= 5.2.1)
|
26
|
-
actionview (= 5.2.1)
|
27
|
-
activejob (= 5.2.1)
|
33
|
+
actionmailer (5.2.1.1)
|
34
|
+
actionpack (= 5.2.1.1)
|
35
|
+
actionview (= 5.2.1.1)
|
36
|
+
activejob (= 5.2.1.1)
|
28
37
|
mail (~> 2.5, >= 2.5.4)
|
29
38
|
rails-dom-testing (~> 2.0)
|
30
|
-
actionpack (5.2.1)
|
31
|
-
actionview (= 5.2.1)
|
32
|
-
activesupport (= 5.2.1)
|
39
|
+
actionpack (5.2.1.1)
|
40
|
+
actionview (= 5.2.1.1)
|
41
|
+
activesupport (= 5.2.1.1)
|
33
42
|
rack (~> 2.0)
|
34
43
|
rack-test (>= 0.6.3)
|
35
44
|
rails-dom-testing (~> 2.0)
|
36
45
|
rails-html-sanitizer (~> 1.0, >= 1.0.2)
|
37
|
-
actionview (5.2.1)
|
38
|
-
activesupport (= 5.2.1)
|
46
|
+
actionview (5.2.1.1)
|
47
|
+
activesupport (= 5.2.1.1)
|
39
48
|
builder (~> 3.1)
|
40
49
|
erubi (~> 1.4)
|
41
50
|
rails-dom-testing (~> 2.0)
|
42
51
|
rails-html-sanitizer (~> 1.0, >= 1.0.3)
|
43
|
-
activejob (5.2.1)
|
44
|
-
activesupport (= 5.2.1)
|
52
|
+
activejob (5.2.1.1)
|
53
|
+
activesupport (= 5.2.1.1)
|
45
54
|
globalid (>= 0.3.6)
|
46
|
-
activemodel (5.2.1)
|
47
|
-
activesupport (= 5.2.1)
|
55
|
+
activemodel (5.2.1.1)
|
56
|
+
activesupport (= 5.2.1.1)
|
48
57
|
activemodel-serializers-xml (1.0.2)
|
49
58
|
activemodel (> 5.x)
|
50
59
|
activesupport (> 5.x)
|
51
60
|
builder (~> 3.1)
|
52
|
-
activerecord (5.2.1)
|
53
|
-
activemodel (= 5.2.1)
|
54
|
-
activesupport (= 5.2.1)
|
61
|
+
activerecord (5.2.1.1)
|
62
|
+
activemodel (= 5.2.1.1)
|
63
|
+
activesupport (= 5.2.1.1)
|
55
64
|
arel (>= 9.0)
|
56
65
|
activerecord-jdbc-adapter (52.1-java)
|
57
66
|
activerecord (~> 5.2.0)
|
58
67
|
activerecord-jdbcsqlite3-adapter (52.1-java)
|
59
68
|
activerecord-jdbc-adapter (= 52.1)
|
60
69
|
jdbc-sqlite3 (~> 3.8, < 3.30)
|
61
|
-
activestorage (5.2.1)
|
62
|
-
actionpack (= 5.2.1)
|
63
|
-
activerecord (= 5.2.1)
|
70
|
+
activestorage (5.2.1.1)
|
71
|
+
actionpack (= 5.2.1.1)
|
72
|
+
activerecord (= 5.2.1.1)
|
64
73
|
marcel (~> 0.3.1)
|
65
|
-
activesupport (5.2.1)
|
74
|
+
activesupport (5.2.1.1)
|
66
75
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
67
76
|
i18n (>= 0.7, < 2)
|
68
77
|
minitest (~> 5.1)
|
@@ -76,16 +85,10 @@ GEM
|
|
76
85
|
backports (3.11.4)
|
77
86
|
bcrypt (3.1.12)
|
78
87
|
bcrypt (3.1.12-java)
|
79
|
-
better_errors (2.5.0)
|
80
|
-
coderay (>= 1.0.0)
|
81
|
-
erubi (>= 1.0.0)
|
82
|
-
rack (>= 0.9.0)
|
83
|
-
binding_of_caller (0.8.0)
|
84
|
-
debug_inspector (>= 0.0.1)
|
85
88
|
builder (3.2.3)
|
86
89
|
byebug (10.0.2)
|
87
90
|
cancan (1.6.10)
|
88
|
-
capybara (3.
|
91
|
+
capybara (3.12.0)
|
89
92
|
addressable
|
90
93
|
mini_mime (>= 0.1.3)
|
91
94
|
nokogiri (~> 1.8)
|
@@ -95,10 +98,6 @@ GEM
|
|
95
98
|
xpath (~> 3.2)
|
96
99
|
childprocess (0.9.0)
|
97
100
|
ffi (~> 1.0, >= 1.0.11)
|
98
|
-
codecov (0.1.13)
|
99
|
-
json
|
100
|
-
simplecov
|
101
|
-
url
|
102
101
|
coderay (1.1.2)
|
103
102
|
coffee-rails (4.2.2)
|
104
103
|
coffee-script (>= 2.2.0)
|
@@ -132,7 +131,6 @@ GEM
|
|
132
131
|
cucumber-tag_expressions (1.1.1)
|
133
132
|
cucumber-wire (0.0.1)
|
134
133
|
database_cleaner (1.7.0)
|
135
|
-
debug_inspector (0.0.3)
|
136
134
|
devise (4.5.0)
|
137
135
|
bcrypt (~> 3.0)
|
138
136
|
orm_adapter (~> 0.1)
|
@@ -149,6 +147,8 @@ GEM
|
|
149
147
|
request_store (~> 1.0)
|
150
148
|
erubi (1.7.1)
|
151
149
|
execjs (2.7.0)
|
150
|
+
faraday (0.15.4)
|
151
|
+
multipart-post (>= 1.2, < 3)
|
152
152
|
ffi (1.9.25)
|
153
153
|
ffi (1.9.25-java)
|
154
154
|
formtastic (3.1.5)
|
@@ -222,11 +222,11 @@ GEM
|
|
222
222
|
mini_mime (>= 0.1.1)
|
223
223
|
marcel (0.3.3)
|
224
224
|
mimemagic (~> 0.3.2)
|
225
|
-
mdl (0.
|
225
|
+
mdl (0.5.0)
|
226
226
|
kramdown (~> 1.12, >= 1.12.0)
|
227
227
|
mixlib-cli (~> 1.7, >= 1.7.0)
|
228
228
|
mixlib-config (~> 2.2, >= 2.2.1)
|
229
|
-
method_source (0.9.
|
229
|
+
method_source (0.9.2)
|
230
230
|
mime-types (3.2.2)
|
231
231
|
mime-types-data (~> 3.2015)
|
232
232
|
mime-types-data (3.2018.0812)
|
@@ -239,11 +239,15 @@ GEM
|
|
239
239
|
tomlrb
|
240
240
|
multi_json (1.13.1)
|
241
241
|
multi_test (0.1.2)
|
242
|
+
multipart-post (2.0.0)
|
243
|
+
netrc (0.11.0)
|
242
244
|
nio4r (2.3.1)
|
243
245
|
nio4r (2.3.1-java)
|
244
246
|
nokogiri (1.8.5)
|
245
247
|
mini_portile2 (~> 2.3.0)
|
246
248
|
nokogiri (1.8.5-java)
|
249
|
+
octokit (4.13.0)
|
250
|
+
sawyer (~> 0.8.0, >= 0.5.3)
|
247
251
|
orm_adapter (0.5.0)
|
248
252
|
parallel (1.12.1)
|
249
253
|
parallel_tests (2.26.0)
|
@@ -265,23 +269,21 @@ GEM
|
|
265
269
|
public_suffix (3.0.3)
|
266
270
|
pundit (2.0.0)
|
267
271
|
activesupport (>= 3.0.0)
|
268
|
-
rack (2.0.
|
269
|
-
rack-mini-profiler (1.0.0)
|
270
|
-
rack (>= 1.2.0)
|
272
|
+
rack (2.0.6)
|
271
273
|
rack-test (1.1.0)
|
272
274
|
rack (>= 1.0, < 3)
|
273
|
-
rails (5.2.1)
|
274
|
-
actioncable (= 5.2.1)
|
275
|
-
actionmailer (= 5.2.1)
|
276
|
-
actionpack (= 5.2.1)
|
277
|
-
actionview (= 5.2.1)
|
278
|
-
activejob (= 5.2.1)
|
279
|
-
activemodel (= 5.2.1)
|
280
|
-
activerecord (= 5.2.1)
|
281
|
-
activestorage (= 5.2.1)
|
282
|
-
activesupport (= 5.2.1)
|
275
|
+
rails (5.2.1.1)
|
276
|
+
actioncable (= 5.2.1.1)
|
277
|
+
actionmailer (= 5.2.1.1)
|
278
|
+
actionpack (= 5.2.1.1)
|
279
|
+
actionview (= 5.2.1.1)
|
280
|
+
activejob (= 5.2.1.1)
|
281
|
+
activemodel (= 5.2.1.1)
|
282
|
+
activerecord (= 5.2.1.1)
|
283
|
+
activestorage (= 5.2.1.1)
|
284
|
+
activesupport (= 5.2.1.1)
|
283
285
|
bundler (>= 1.3.0)
|
284
|
-
railties (= 5.2.1)
|
286
|
+
railties (= 5.2.1.1)
|
285
287
|
sprockets-rails (>= 2.0.0)
|
286
288
|
rails-dom-testing (2.0.3)
|
287
289
|
activesupport (>= 4.2.0)
|
@@ -291,9 +293,9 @@ GEM
|
|
291
293
|
rails-i18n (5.1.1)
|
292
294
|
i18n (>= 0.7, < 2)
|
293
295
|
railties (>= 5.0, < 6)
|
294
|
-
railties (5.2.1)
|
295
|
-
actionpack (= 5.2.1)
|
296
|
-
activesupport (= 5.2.1)
|
296
|
+
railties (5.2.1.1)
|
297
|
+
actionpack (= 5.2.1.1)
|
298
|
+
activesupport (= 5.2.1.1)
|
297
299
|
method_source
|
298
300
|
rake (>= 0.8.7)
|
299
301
|
thor (>= 0.19.0, < 2.0)
|
@@ -308,8 +310,7 @@ GEM
|
|
308
310
|
rb-fsevent (0.10.3)
|
309
311
|
rb-inotify (0.9.10)
|
310
312
|
ffi (>= 0.5.0, < 2)
|
311
|
-
|
312
|
-
regexp_parser (1.2.0)
|
313
|
+
regexp_parser (1.3.0)
|
313
314
|
request_store (1.4.1)
|
314
315
|
rack (>= 1.4)
|
315
316
|
responders (2.4.0)
|
@@ -340,6 +341,8 @@ GEM
|
|
340
341
|
rainbow (>= 2.2.2, < 4.0)
|
341
342
|
ruby-progressbar (~> 1.7)
|
342
343
|
unicode-display_width (~> 1.0, >= 1.0.1)
|
344
|
+
rubocop-rspec (1.30.0)
|
345
|
+
rubocop (>= 0.58.0)
|
343
346
|
ruby-progressbar (1.10.0)
|
344
347
|
rubyzip (1.2.2)
|
345
348
|
sass (3.7.2)
|
@@ -347,6 +350,9 @@ GEM
|
|
347
350
|
sass-listen (4.0.0)
|
348
351
|
rb-fsevent (~> 0.9, >= 0.9.4)
|
349
352
|
rb-inotify (~> 0.9, >= 0.9.7)
|
353
|
+
sawyer (0.8.1)
|
354
|
+
addressable (>= 2.3.5, < 2.6)
|
355
|
+
faraday (~> 0.8, < 1.0)
|
350
356
|
selenium-webdriver (3.141.0)
|
351
357
|
childprocess (~> 0.5)
|
352
358
|
rubyzip (~> 1.2, >= 1.2.2)
|
@@ -367,14 +373,13 @@ GEM
|
|
367
373
|
sqlite3 (1.3.13)
|
368
374
|
terminal-table (1.8.0)
|
369
375
|
unicode-display_width (~> 1.1, >= 1.1.1)
|
370
|
-
thor (0.20.
|
376
|
+
thor (0.20.3)
|
371
377
|
thread_safe (0.3.6)
|
372
378
|
thread_safe (0.3.6-java)
|
373
379
|
tomlrb (1.2.7)
|
374
380
|
tzinfo (1.2.5)
|
375
381
|
thread_safe (~> 0.1)
|
376
382
|
unicode-display_width (1.4.0)
|
377
|
-
url (0.3.2)
|
378
383
|
warden (1.2.7)
|
379
384
|
rack (>= 1.0)
|
380
385
|
websocket-driver (0.7.0)
|
@@ -393,11 +398,9 @@ PLATFORMS
|
|
393
398
|
DEPENDENCIES
|
394
399
|
activeadmin!
|
395
400
|
activerecord-jdbcsqlite3-adapter (>= 52.0)
|
396
|
-
better_errors
|
397
|
-
binding_of_caller
|
398
401
|
cancan
|
399
402
|
capybara (~> 3.10)
|
400
|
-
|
403
|
+
chandler!
|
401
404
|
cucumber
|
402
405
|
cucumber-rails (~> 1.5)
|
403
406
|
database_cleaner
|
@@ -410,18 +413,17 @@ DEPENDENCIES
|
|
410
413
|
jruby-openssl (~> 0.10.1)
|
411
414
|
kramdown
|
412
415
|
launchy
|
413
|
-
mdl (= 0.
|
416
|
+
mdl (= 0.5.0)
|
414
417
|
parallel_tests (~> 2.26)
|
415
418
|
pry
|
416
419
|
pry-byebug
|
417
420
|
pundit
|
418
|
-
|
419
|
-
rails (~> 5.2.x)
|
421
|
+
rails (~> 5.2.1)
|
420
422
|
rails-i18n
|
421
423
|
rake
|
422
|
-
redcarpet
|
423
424
|
rspec-rails
|
424
425
|
rubocop (= 0.59.2)
|
426
|
+
rubocop-rspec (~> 1.30)
|
425
427
|
selenium-webdriver
|
426
428
|
simplecov
|
427
429
|
sqlite3
|
data/README.md
CHANGED
@@ -5,7 +5,7 @@ creating elegant backends for website administration.
|
|
5
5
|
|
6
6
|
[![Version ][rubygems_badge]][rubygems]
|
7
7
|
[![Circle CI ][circle_badge]][circle]
|
8
|
-
[![Coverage ][
|
8
|
+
[![Coverage ][coverage_badge]][coverage]
|
9
9
|
[![Tidelift ][tidelift_badge]][tidelift]
|
10
10
|
[![Inch CI ][inch_badge]][inch]
|
11
11
|
|
@@ -67,8 +67,8 @@ Tool | Description
|
|
67
67
|
[rubygems]: https://rubygems.org/gems/activeadmin
|
68
68
|
[circle_badge]: https://circleci.com/gh/activeadmin/activeadmin/tree/master.svg
|
69
69
|
[circle]: https://circleci.com/gh/activeadmin/activeadmin/tree/master
|
70
|
-
[
|
71
|
-
[
|
70
|
+
[coverage_badge]: https://api.codeclimate.com/v1/badges/779e407d22bacff19733/test_coverage
|
71
|
+
[coverage]: https://codeclimate.com/github/activeadmin/activeadmin/test_coverage
|
72
72
|
[inch_badge]: http://inch-ci.org/github/activeadmin/activeadmin.svg?branch=master
|
73
73
|
[inch]: http://inch-ci.org/github/activeadmin/activeadmin
|
74
74
|
[tidelift_badge]: https://tidelift.com/badges/github/activeadmin/activeadmin
|
data/Rakefile
CHANGED
@@ -1,18 +1,19 @@
|
|
1
1
|
require 'bundler/gem_tasks'
|
2
2
|
|
3
|
-
|
4
|
-
|
3
|
+
import 'tasks/gemfiles.rake'
|
4
|
+
import 'tasks/local.rake'
|
5
|
+
import 'tasks/test.rake'
|
6
|
+
|
7
|
+
if ENV['BUNDLE_GEMFILE'] == File.expand_path('Gemfile')
|
8
|
+
import 'tasks/docs.rake'
|
9
|
+
import 'tasks/lint.rake'
|
10
|
+
import 'tasks/release.rake'
|
11
|
+
end
|
5
12
|
|
6
13
|
task default: :test
|
7
14
|
|
8
|
-
|
9
|
-
|
10
|
-
load 'jasmine/tasks/jasmine.rake'
|
11
|
-
rescue LoadError
|
12
|
-
task :jasmine do
|
13
|
-
abort 'Jasmine is not available. In order to run jasmine, you must: (sudo) gem install jasmine'
|
14
|
-
end
|
15
|
-
end
|
15
|
+
require 'jasmine'
|
16
|
+
load 'jasmine/tasks/jasmine.rake'
|
16
17
|
|
17
18
|
task :console do
|
18
19
|
require 'irb'
|