component-framework 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/component/framework.rb +4 -1
- data/lib/component/framework/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a8280c1c50490cce661848221f17155e2f681968
|
4
|
+
data.tar.gz: 945c3f11a3362c8c5db692b52e2fff5b96537706
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cf0d288fbb1a42bdc06ee84173c192638e5f85cef2382f4ee0fc570dd2d3b9d5c2d4ed5d02057e6292371d0bfc631b8b256f80ddb2dc0264de23f638d2ed29a4
|
7
|
+
data.tar.gz: dac7a1cef4c8ddc3b7dbe021224ea17edc719c028f59bd3aa74113cd75175a8cf0bca1316813857b3b8c0f3f1f849e9c9976cae7af7f7b4cfb9dbac452f4dca3
|
data/lib/component/framework.rb
CHANGED
@@ -15,7 +15,8 @@ module Component
|
|
15
15
|
end
|
16
16
|
|
17
17
|
|
18
|
-
def self.initialize(application, assets_pipeline: true)
|
18
|
+
def self.initialize(application, assets_pipeline: true, verbose: false)
|
19
|
+
@verbose = verbose
|
19
20
|
|
20
21
|
# patch Rails
|
21
22
|
require "component/framework/railtie"
|
@@ -163,6 +164,8 @@ module Component
|
|
163
164
|
|
164
165
|
|
165
166
|
def self.log(message)
|
167
|
+
return unless @verbose
|
168
|
+
|
166
169
|
message = "[CF init] " + message
|
167
170
|
if Rails.logger
|
168
171
|
Rails.logger.info(message)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: component-framework
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alexander Yegorov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-02-
|
11
|
+
date: 2018-02-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|