mbj-assets 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/assets.gemspec +1 -1
- data/config/flay.yml +1 -1
- data/config/reek.yml +4 -1
- data/lib/assets/rule/compile/javascript/coffescript.rb +1 -1
- data/lib/assets/rule.rb +12 -0
- data/spec/assets/application.coffee +1 -0
- data/spec/integration/assets/spike_spec.rb +2 -0
- 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: 554c3d288ae97464363efe96b589accaf9f8ad5c
|
4
|
+
data.tar.gz: dd28a39ddc92b708cdddb26df749891adf3d3bbb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d677bf86629f8a0793adf5caaad4584468b1fc875b500f42d7381f405f71678aac250e31afc14eb828cf3239eb120d1586cf3e8e4cfd2d0036ccb0fb4d2a5ad7
|
7
|
+
data.tar.gz: 297f9dd34fc8cad8dc141e56e3a4b143782a329e9652cd9086eb69c45c9800564d844aad7812fc39dffa5e891649c31d587f935651326bc99d2ca2b00373ad39
|
data/assets.gemspec
CHANGED
data/config/flay.yml
CHANGED
data/config/reek.yml
CHANGED
@@ -14,6 +14,7 @@ TooManyMethods:
|
|
14
14
|
max_instance_variables: 3
|
15
15
|
UncommunicativeMethodName:
|
16
16
|
accept:
|
17
|
+
- utf8
|
17
18
|
- sha1
|
18
19
|
exclude: []
|
19
20
|
enabled: true
|
@@ -29,7 +30,8 @@ LongParameterList:
|
|
29
30
|
FeatureEnvy:
|
30
31
|
exclude:
|
31
32
|
- Assets::Environment::Cache#miss # False positive
|
32
|
-
- Assets::Rule#binary #
|
33
|
+
- Assets::Rule#binary # Helper method
|
34
|
+
- Assets::Rule#utf8 # Helper method
|
33
35
|
enabled: true
|
34
36
|
ClassVariable:
|
35
37
|
exclude: []
|
@@ -65,6 +67,7 @@ UtilityFunction:
|
|
65
67
|
max_helper_calls: 0
|
66
68
|
exclude:
|
67
69
|
- Assets::Rule#binary # Okay
|
70
|
+
- Assets::Rule#utf8 # Okay
|
68
71
|
enabled: true
|
69
72
|
Attribute:
|
70
73
|
exclude: []
|
data/lib/assets/rule.rb
CHANGED
@@ -67,6 +67,18 @@ module Assets
|
|
67
67
|
|
68
68
|
private
|
69
69
|
|
70
|
+
# Helper method to tag strings as utf-8
|
71
|
+
#
|
72
|
+
# @param [String]
|
73
|
+
#
|
74
|
+
# @return [String]
|
75
|
+
#
|
76
|
+
# @api private
|
77
|
+
#
|
78
|
+
def utf8(string)
|
79
|
+
string.force_encoding(Encoding::UTF_8)
|
80
|
+
end
|
81
|
+
|
70
82
|
# Helper method to tag strings as binary
|
71
83
|
#
|
72
84
|
# @param [String]
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mbj-assets
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Markus Schirp
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-08-
|
11
|
+
date: 2013-08-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: adamantium
|