activeadmin_addons 0.4.0 → 0.5.0
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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dd92629876e0e6126a5c8c3817e9461f3081457d
|
4
|
+
data.tar.gz: 39ee31af6e9e4a2481398e51ee282737dc2cf6cc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5c249c52f18839a3a872d8b0c84939538d3e41d860b81af87c4575e61f9432bce5c7d30e32f281ef9a7b8ae0e4dec6d2bd9c9f182e2118d1279f3028857bc563
|
7
|
+
data.tar.gz: 970af68b279c1ef42a316d32b68aad79a87d9a0f40a1a2d1ece6d7996555c4d6ca522c973f82ff8c420db26242342fff41265ecb5a9e92784f1e463a80007c28
|
@@ -0,0 +1,23 @@
|
|
1
|
+
module ActiveadminAddons
|
2
|
+
module Generators
|
3
|
+
class InstallGenerator < Rails::Generators::Base
|
4
|
+
def add_javascripts
|
5
|
+
file_path = 'app/assets/javascripts/active_admin.js.coffee'
|
6
|
+
line_to_add = "#= require activeadmin_addons/all\n"
|
7
|
+
reference = "#= require active_admin/base\n"
|
8
|
+
inject_into_file(file_path, line_to_add, after: reference)
|
9
|
+
end
|
10
|
+
|
11
|
+
def add_stylesheets
|
12
|
+
file_path = 'app/assets/stylesheets/active_admin'
|
13
|
+
line_to_add = "//= require activeadmin_addons/all\n"
|
14
|
+
|
15
|
+
begin
|
16
|
+
prepend_file("#{file_path}.scss", line_to_add)
|
17
|
+
rescue Errno::ENOENT
|
18
|
+
prepend_file("#{file_path}.css.scss", line_to_add)
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: activeadmin_addons
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Platanus
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-02-
|
11
|
+
date: 2016-02-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: railties
|
@@ -366,6 +366,7 @@ files:
|
|
366
366
|
- lib/activeadmin_addons/support/enumerize_formtastic_support.rb
|
367
367
|
- lib/activeadmin_addons/support/set_datepicker.rb
|
368
368
|
- lib/activeadmin_addons/version.rb
|
369
|
+
- lib/generators/activeadmin_addons/install/install_generator.rb
|
369
370
|
- lib/tasks/activeadmin_addons_tasks.rake
|
370
371
|
homepage: https://github.com/platanus/activeadmin_addons
|
371
372
|
licenses:
|