gitlab-experiment 0.2.1 → 0.2.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
  SHA256:
3
- metadata.gz: 8b64d15c51bec74dc0b9be36e3b1541c3509c0f62a2259595c71366ff66f35e3
4
- data.tar.gz: 5c6862e1a9d44335ebe1d6b6e3974da4e0e368297d006eb91398ebf9d3004681
3
+ metadata.gz: '08b63f640a90ed463a4b2bf58c2e0b1ef041bbd8f80c2d43bf88960ba9aac2a9'
4
+ data.tar.gz: 01a8a227c467d097b9dbb9dc9644a1d70012fb3989f2e189e3e63a41e7f39cfd
5
5
  SHA512:
6
- metadata.gz: 0cea1580efdbe7daa88f76fb93de94d4ea04059bbc1bd25a15edf4a501e139ec9102c6abf9c2002e797ecfc9bb6ffc3115dcf4e817b94b5f6499ed09ca14de75
7
- data.tar.gz: 20490eec566060797379ecea83e07fe74a00f2725817bc396b6bea7cfc07947cd120562d433fb33d6db5b4094c58fd50b2ff1cb9455867c6300443fc4c2c6509
6
+ metadata.gz: b161004e60bbbdb724aeb685013ce4b787d0ced9526bdd241e52be327adbc3461ea60eb3a279f25b4f89d46ee37825ae1d571501d0196a8505a9ff4eb8b3d214
7
+ data.tar.gz: 8730e755e09ec85fa88b2721af42ec0919d6534449a91d82bc0d2f6ae0055f70e4ad783d045d20dc09c44496c63465656abfe33d6759e3956a153d793f57a2ab
@@ -3,9 +3,13 @@
3
3
  module Gitlab
4
4
  class Experiment
5
5
  class Engine < ::Rails::Engine
6
+ def self.include_dsl
7
+ ActionController::Base.include(Dsl)
8
+ ActionController::Base.helper_method(:experiment)
9
+ end
10
+
6
11
  config.after_initialize do
7
- # Add out experiment method to the base controller.
8
- ActionController::Base.include(Dsl) if defined?(ActionController)
12
+ include_dsl if defined?(ActionController)
9
13
  end
10
14
  end
11
15
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Gitlab
4
4
  class Experiment
5
- VERSION = '0.2.1'
5
+ VERSION = '0.2.2'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gitlab-experiment
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - GitLab