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: ee49c3430395ba01e41e7ae659d5c6f0751288b6
4
- data.tar.gz: 0e9d8b86848478d8293b608e416d989c7ce2f9b4
3
+ metadata.gz: fb12ce93b8eb79dacbca9af5d17aaf12da3a1819
4
+ data.tar.gz: ca8d21faac2fa05a11c64ffc3ab1c0f615f9bb3d
5
5
  SHA512:
6
- metadata.gz: 3566d85e227cddfabb05a49132805b109c47e1f1c33959fe32c0d4e29d0dac2147dd2743b764c464323eb8c4cf5b055e8cc00a27a4befb2a5ec80958e02de57e
7
- data.tar.gz: 026474edf7a76374a16b2720e92505db71f794fbc462bb07c750150687951b09deb15f5a2bb33aad7aa8765432b3c15ecd50945222ee92f27a264c6025c671e4
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'
@@ -0,0 +1,2 @@
1
+ # Initialize Optipipe and initialize class constant values so on.
2
+ Optipipe.initial_load!
@@ -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)
@@ -1,3 +1,3 @@
1
1
  module Optipipe
2
- VERSION = '0.4.1'
2
+ VERSION = '0.4.2'
3
3
  end
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.1
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-29 00:00:00.000000000 Z
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