actionview-svelte-handler 0.5.0 → 0.5.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/generators/svelte/install_generator.rb +14 -12
- data/lib/svelte/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 97206777a02770810bd34a7ae25fc086fd957a70b5e16c9daa3ec7ce4db66fd1
|
4
|
+
data.tar.gz: 9c30b773a3d63d31adecb966b32b411849000e11aed787212263c08893364de9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c40dc6a7d81e65235970b8a63c53b72cf56df6a56e3cc4fbde48d29f11cd8eb8eb29118a94252518f6ecc2440cb1497c5caba80417ab1d0c81e0a0aaa77f8385
|
7
|
+
data.tar.gz: '08ca1b675e5357ca1ce8b12331933b70147588995a712e0edd977b3e65abe1ecb96a5cb7653adb2fa97ff01b3801383d20d5c8b346265efbaf95af8fdc0f0f3e'
|
data/Gemfile.lock
CHANGED
@@ -1,13 +1,15 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
1
|
+
module Svelte
|
2
|
+
class InstallGenerator < Rails::Generators::Base
|
3
|
+
desc "This generator installs actionview-svelte-handler"
|
4
|
+
|
5
|
+
source_root File.expand_path("templates/install", __dir__)
|
6
|
+
|
7
|
+
def install
|
8
|
+
copy_file "initializer.rb", "config/initializers/svelte.rb"
|
9
|
+
insert_into_file "app/views/layouts/application.html.erb",
|
10
|
+
"\n <%= svelte_tags %>",
|
11
|
+
after: "<head>"
|
12
|
+
`npm install #{Gem::Specification.find_by_name("actionview-svelte-handler").gem_dir} --install-links --save=false`
|
13
|
+
end
|
12
14
|
end
|
13
|
-
end
|
15
|
+
end
|
data/lib/svelte/version.rb
CHANGED