optipipe 0.4.1 → 0.4.2
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: fb12ce93b8eb79dacbca9af5d17aaf12da3a1819
|
4
|
+
data.tar.gz: ca8d21faac2fa05a11c64ffc3ab1c0f615f9bb3d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ef2240339bc407fe03cc50450fa8856eb1583cdc7e9a1719b9c4247f36c4dde1405ddf6e186a1b3153dd315e5400af2e7c0dcc5bc167cb7748804189342be49b
|
7
|
+
data.tar.gz: f95d8f5eb9d3e0f6340ffb3d3965f7fa3c74fdaa64d3e2e9b3ff056307be452f41c5912f4015181238b5a6b18710e00f40529d83e103730809883600839b73d2
|
@@ -6,6 +6,9 @@ module Optipipe
|
|
6
6
|
desc "Creates a Optipipe initializer to your application."
|
7
7
|
|
8
8
|
def copy_initializer
|
9
|
+
# config file
|
10
|
+
template "optipipe.rb", "config/initializers/optipipe.rb"
|
11
|
+
|
9
12
|
# javascript's templates
|
10
13
|
empty_directory 'app/assets/javascripts/optipipe'
|
11
14
|
empty_directory 'app/assets/javascripts/optipipe/files'
|
@@ -1,4 +1,9 @@
|
|
1
1
|
module Optipipe
|
2
|
+
def self.initial_load!
|
3
|
+
Mapper.class_eval { remove_const(:JAVASCRIPTS_YAML_DATA) } if Mapper.const_defined?(:JAVASCRIPTS_YAML_DATA)
|
4
|
+
Mapper.class_eval { remove_const(:STYLESHEETS_YAML_DATA) } if Mapper.const_defined?(:STYLESHEETS_YAML_DATA)
|
5
|
+
end
|
6
|
+
|
2
7
|
class Mapper
|
3
8
|
class << self
|
4
9
|
def get_javascript_mappers(controller_path)
|
data/lib/optipipe/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: optipipe
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ykogure
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-05
|
11
|
+
date: 2018-06-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -58,6 +58,7 @@ files:
|
|
58
58
|
- lib/generators/templates/files/example_after_onload.js
|
59
59
|
- lib/generators/templates/mappers/example_mapper_for_javascripts.yml
|
60
60
|
- lib/generators/templates/mappers/example_mapper_for_stylesheets.yml
|
61
|
+
- lib/generators/templates/optipipe.rb
|
61
62
|
- lib/generators/templates/precompiles/example_precompile.css
|
62
63
|
- lib/generators/templates/precompiles/example_precompile.js
|
63
64
|
- lib/generators/templates/precompiles/example_precompile_after_onload.js
|