ants 0.3.12 → 0.3.13

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: 3d119d13250cea27ca134c0226d59094f0b31e2d
4
- data.tar.gz: e6b90d59da7837f1607228133898fedf5e33668f
3
+ metadata.gz: 5bc6e13134ae70b83ffe97500e4834ae295e6ec4
4
+ data.tar.gz: 6dcd6d45f2b89459b29c54338c9a346db846c3d6
5
5
  SHA512:
6
- metadata.gz: b094b378ababb1012422babaa12155459466cb189f3c417bcd6c817e9fc15f1df24b350013e6d936372ac3d1e26f81c9b92e542b20efd17dbd72f26670dfa831
7
- data.tar.gz: df7d45acb4d7bfbe2beaf599193f0bb809c5c1b39396c73e01871cc2022a293d3630dbf74facf4d78d49ecdd2c0105ac28f0aab7884a8f87a61e801a6422e0bc
6
+ metadata.gz: a9ad7f759f67df328ea658156b835bc42c1839e379ce321af5a9e56a2f80113503a2cd433fe13bdd782a2c21d05b775ab51e5f254decdc1a89fddf2b05ff1aa9
7
+ data.tar.gz: 8a0b1e82889d73b2d7b4800e7c2b0c728fc2f3afc10438253f8ba18755ea321cac0d50f8415ab4a2ce0e2e114a99a655b3870a21b4ca220990dea51eb5f8c5e4
@@ -0,0 +1,98 @@
1
+ {
2
+ "arrow_spacing": {
3
+ "level": "error"
4
+ },
5
+ "camel_case_classes": {
6
+ "level": "error"
7
+ },
8
+ "coffeescript_error": {
9
+ "level": "error"
10
+ },
11
+ "colon_assignment_spacing": {
12
+ "level": "error",
13
+ "spacing": {
14
+ "left": 0,
15
+ "right": 1
16
+ }
17
+ },
18
+ "cyclomatic_complexity": {
19
+ "level": "ignore",
20
+ "value": 10
21
+ },
22
+ "duplicate_key": {
23
+ "level": "error"
24
+ },
25
+ "empty_constructor_needs_parens": {
26
+ "level": "ignore"
27
+ },
28
+ "indentation": {
29
+ "level": "error",
30
+ "value": 2
31
+ },
32
+ "line_endings": {
33
+ "level": "ignore",
34
+ "value": "unix"
35
+ },
36
+ "max_line_length": {
37
+ "level": "error",
38
+ "value": 80
39
+ },
40
+ "missing_fat_arrows": {
41
+ "level": "ignore"
42
+ },
43
+ "newlines_after_classes": {
44
+ "level": "error",
45
+ "value": 1
46
+ },
47
+ "no_backticks": {
48
+ "level": "ignore"
49
+ },
50
+ "no_debugger": {
51
+ "level": "error"
52
+ },
53
+ "no_empty_functions": {
54
+ "level": "error"
55
+ },
56
+ "no_empty_param_list": {
57
+ "level": "error"
58
+ },
59
+ "no_implicit_braces": {
60
+ "level": "ignore"
61
+ },
62
+ "no_implicit_parens": {
63
+ "level": "ignore"
64
+ },
65
+ "no_interpolation_in_single_quotes": {
66
+ "level": "error"
67
+ },
68
+ "no_plusplus": {
69
+ "level": "ignore"
70
+ },
71
+ "no_stand_alone_at": {
72
+ "level": "error"
73
+ },
74
+ "no_tabs": {
75
+ "level": "error"
76
+ },
77
+ "no_throwing_strings": {
78
+ "level": "error"
79
+ },
80
+ "no_trailing_semicolons": {
81
+ "level": "error"
82
+ },
83
+ "no_trailing_whitespace": {
84
+ "level": "error"
85
+ },
86
+ "no_unnecessary_double_quotes": {
87
+ "level": "ignore"
88
+ },
89
+ "no_unnecessary_fat_arrows": {
90
+ "level": "error"
91
+ },
92
+ "non_empty_constructor_needs_parens": {
93
+ "level": "ignore"
94
+ },
95
+ "space_operators": {
96
+ "level": "ignore"
97
+ }
98
+ }
@@ -0,0 +1,14 @@
1
+ scss:
2
+ config_file: .scss-style.yml
3
+
4
+ ruby:
5
+ config_file: .ruby-style.yml
6
+
7
+ javascript:
8
+ enabled: false
9
+ #ignore_file: .javascript_ignore
10
+
11
+ coffeescript:
12
+ config_file: .coffeescript-style.json
13
+
14
+ fail_on_violations: true
@@ -0,0 +1,239 @@
1
+ AllCops:
2
+ Exclude:
3
+ - "vendor/**/*"
4
+ - "db/schema.rb"
5
+ UseCache: false
6
+ Style/CollectionMethods:
7
+ Description: Preferred collection methods.
8
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#map-find-select-reduce-size
9
+ Enabled: true
10
+ PreferredMethods:
11
+ collect: map
12
+ collect!: map!
13
+ find: detect
14
+ find_all: select
15
+ reduce: inject
16
+ Style/DotPosition:
17
+ Description: Checks the position of the dot in multi-line method calls.
18
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#consistent-multi-line-chains
19
+ Enabled: true
20
+ EnforcedStyle: trailing
21
+ SupportedStyles:
22
+ - leading
23
+ - trailing
24
+ Style/FileName:
25
+ Description: Use snake_case for source file names.
26
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#snake-case-files
27
+ Enabled: false
28
+ Exclude: []
29
+ Style/GuardClause:
30
+ Description: Check for conditionals that can be replaced with guard clauses
31
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-nested-conditionals
32
+ Enabled: false
33
+ MinBodyLength: 1
34
+ Style/IfUnlessModifier:
35
+ Description: Favor modifier if/unless usage when you have a single-line body.
36
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#if-as-a-modifier
37
+ Enabled: false
38
+ MaxLineLength: 80
39
+ Style/OptionHash:
40
+ Description: Don't use option hashes when you can use keyword arguments.
41
+ Enabled: false
42
+ Style/PercentLiteralDelimiters:
43
+ Description: Use `%`-literal delimiters consistently
44
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#percent-literal-braces
45
+ Enabled: false
46
+ PreferredDelimiters:
47
+ "%": "()"
48
+ "%i": "()"
49
+ "%q": "()"
50
+ "%Q": "()"
51
+ "%r": "{}"
52
+ "%s": "()"
53
+ "%w": "()"
54
+ "%W": "()"
55
+ "%x": "()"
56
+ Style/PredicateName:
57
+ Description: Check the names of predicate methods.
58
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#bool-methods-qmark
59
+ Enabled: true
60
+ NamePrefix:
61
+ - is_
62
+ - has_
63
+ - have_
64
+ NamePrefixBlacklist:
65
+ - is_
66
+ Exclude:
67
+ - spec/**/*
68
+ Style/RaiseArgs:
69
+ Description: Checks the arguments passed to raise/fail.
70
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#exception-class-messages
71
+ Enabled: false
72
+ EnforcedStyle: exploded
73
+ SupportedStyles:
74
+ - compact
75
+ - exploded
76
+ Style/SignalException:
77
+ Description: Checks for proper usage of fail and raise.
78
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#fail-method
79
+ Enabled: false
80
+ EnforcedStyle: semantic
81
+ SupportedStyles:
82
+ - only_raise
83
+ - only_fail
84
+ - semantic
85
+ Style/SingleLineBlockParams:
86
+ Description: Enforces the names of some block params.
87
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#reduce-blocks
88
+ Enabled: false
89
+ Methods:
90
+ - reduce:
91
+ - a
92
+ - e
93
+ - inject:
94
+ - a
95
+ - e
96
+ Style/SingleLineMethods:
97
+ Description: Avoid single-line methods.
98
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-single-line-methods
99
+ Enabled: false
100
+ AllowIfMethodIsEmpty: true
101
+ Style/StringLiterals:
102
+ Description: Checks if uses of quotes match the configured preference.
103
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#consistent-string-literals
104
+ Enabled: true
105
+ EnforcedStyle: double_quotes
106
+ SupportedStyles:
107
+ - single_quotes
108
+ - double_quotes
109
+ Style/StringLiteralsInInterpolation:
110
+ Description: Checks if uses of quotes inside expressions in interpolated strings
111
+ match the configured preference.
112
+ Enabled: true
113
+ EnforcedStyle: single_quotes
114
+ SupportedStyles:
115
+ - single_quotes
116
+ - double_quotes
117
+ Style/TrailingComma:
118
+ Description: Checks for trailing comma in parameter lists and literals.
119
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-trailing-array-commas
120
+ Enabled: false
121
+ EnforcedStyleForMultiline: no_comma
122
+ SupportedStyles:
123
+ - comma
124
+ - no_comma
125
+ Metrics/AbcSize:
126
+ Description: A calculated magnitude based on number of assignments, branches, and
127
+ conditions.
128
+ Enabled: false
129
+ Max: 15
130
+ Metrics/ClassLength:
131
+ Description: Avoid classes longer than 100 lines of code.
132
+ Enabled: false
133
+ CountComments: false
134
+ Max: 100
135
+ Metrics/ModuleLength:
136
+ CountComments: false
137
+ Max: 100
138
+ Description: Avoid modules longer than 100 lines of code.
139
+ Enabled: false
140
+ Metrics/CyclomaticComplexity:
141
+ Description: A complexity metric that is strongly correlated to the number of test
142
+ cases needed to validate a method.
143
+ Enabled: false
144
+ Max: 6
145
+ Metrics/MethodLength:
146
+ Description: Avoid methods longer than 10 lines of code.
147
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#short-methods
148
+ Enabled: false
149
+ CountComments: false
150
+ Max: 10
151
+ Metrics/ParameterLists:
152
+ Description: Avoid parameter lists longer than three or four parameters.
153
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#too-many-params
154
+ Enabled: false
155
+ Max: 5
156
+ CountKeywordArgs: true
157
+ Metrics/PerceivedComplexity:
158
+ Description: A complexity metric geared towards measuring complexity for a human
159
+ reader.
160
+ Enabled: false
161
+ Max: 7
162
+ Lint/AssignmentInCondition:
163
+ Description: Don't use assignment in conditions.
164
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#safe-assignment-in-condition
165
+ Enabled: false
166
+ AllowSafeAssignment: true
167
+ Style/InlineComment:
168
+ Description: Avoid inline comments.
169
+ Enabled: false
170
+ Style/AccessorMethodName:
171
+ Description: Check the naming of accessor methods for get_/set_.
172
+ Enabled: false
173
+ Style/Alias:
174
+ Description: Use alias_method instead of alias.
175
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#alias-method
176
+ Enabled: false
177
+ Style/Documentation:
178
+ Description: Document classes and non-namespace modules.
179
+ Enabled: false
180
+ Style/DoubleNegation:
181
+ Description: Checks for uses of double negation (!!).
182
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-bang-bang
183
+ Enabled: false
184
+ Style/EachWithObject:
185
+ Description: Prefer `each_with_object` over `inject` or `reduce`.
186
+ Enabled: false
187
+ Style/EmptyLiteral:
188
+ Description: Prefer literals to Array.new/Hash.new/String.new.
189
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#literal-array-hash
190
+ Enabled: false
191
+ Style/ModuleFunction:
192
+ Description: Checks for usage of `extend self` in modules.
193
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#module-function
194
+ Enabled: false
195
+ Style/OneLineConditional:
196
+ Description: Favor the ternary operator(?:) over if/then/else/end constructs.
197
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#ternary-operator
198
+ Enabled: false
199
+ Style/PerlBackrefs:
200
+ Description: Avoid Perl-style regex back references.
201
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-perl-regexp-last-matchers
202
+ Enabled: false
203
+ Style/Send:
204
+ Description: Prefer `Object#__send__` or `Object#public_send` to `send`, as `send`
205
+ may overlap with existing methods.
206
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#prefer-public-send
207
+ Enabled: false
208
+ Style/SpecialGlobalVars:
209
+ Description: Avoid Perl-style global variables.
210
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-cryptic-perlisms
211
+ Enabled: false
212
+ Style/VariableInterpolation:
213
+ Description: Don't interpolate global, instance and class variables directly in
214
+ strings.
215
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#curlies-interpolate
216
+ Enabled: false
217
+ Style/WhenThen:
218
+ Description: Use when x then ... for one-line cases.
219
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#one-line-cases
220
+ Enabled: false
221
+ Lint/EachWithObjectArgument:
222
+ Description: Check for immutable argument given to each_with_object.
223
+ Enabled: true
224
+ Lint/HandleExceptions:
225
+ Description: Don't suppress exception.
226
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#dont-hide-exceptions
227
+ Enabled: false
228
+ Lint/LiteralInCondition:
229
+ Description: Checks of literals used in conditions.
230
+ Enabled: false
231
+ Lint/LiteralInInterpolation:
232
+ Description: Checks for literals used in interpolation.
233
+ Enabled: false
234
+ Rails/FindBy:
235
+ Description: 'Prefer find_by over where.first.'
236
+ Enabled: false
237
+ Rails/DefaultScope:
238
+ Description: 'Checks if the argument passed to default_scope is a block.'
239
+ Enabled: false
@@ -0,0 +1,145 @@
1
+ scss_files: "**/*.scss"
2
+ linters:
3
+ BangFormat:
4
+ enabled: true
5
+ space_before_bang: true
6
+ space_after_bang: false
7
+ BorderZero:
8
+ enabled: false
9
+ convention: zero
10
+ ColorKeyword:
11
+ enabled: true
12
+ severity: warning
13
+ ColorVariable:
14
+ enabled: true
15
+ Comment:
16
+ enabled: true
17
+ DebugStatement:
18
+ enabled: true
19
+ DeclarationOrder:
20
+ enabled: true
21
+ DuplicateProperty:
22
+ enabled: true
23
+ ElsePlacement:
24
+ enabled: true
25
+ style: same_line
26
+ EmptyLineBetweenBlocks:
27
+ enabled: true
28
+ ignore_single_line_blocks: true
29
+ EmptyRule:
30
+ enabled: true
31
+ FinalNewline:
32
+ enabled: true
33
+ present: true
34
+ HexLength:
35
+ enabled: false
36
+ style: short
37
+ HexNotation:
38
+ enabled: true
39
+ style: lowercase
40
+ HexValidation:
41
+ enabled: true
42
+ IdSelector:
43
+ enabled: true
44
+ ImportantRule:
45
+ enabled: true
46
+ ImportPath:
47
+ enabled: true
48
+ leading_underscore: false
49
+ filename_extension: false
50
+ Indentation:
51
+ enabled: true
52
+ allow_non_nested_indentation: false
53
+ character: space
54
+ width: 2
55
+ LeadingZero:
56
+ enabled: true
57
+ style: include_zero
58
+ MergeableSelector:
59
+ enabled: true
60
+ force_nesting: true
61
+ NameFormat:
62
+ enabled: true
63
+ allow_leading_underscore: true
64
+ convention: hyphenated_lowercase
65
+ NestingDepth:
66
+ enabled: true
67
+ max_depth: 4
68
+ severity: warning
69
+ PlaceholderInExtend:
70
+ enabled: false
71
+ PropertyCount:
72
+ enabled: true
73
+ include_nested: false
74
+ max_properties: 10
75
+ PropertySortOrder:
76
+ enabled: true
77
+ ignore_unspecified: false
78
+ severity: warning
79
+ separate_groups: false
80
+ PropertySpelling:
81
+ enabled: true
82
+ extra_properties: []
83
+ QualifyingElement:
84
+ enabled: true
85
+ allow_element_with_attribute: false
86
+ allow_element_with_class: false
87
+ allow_element_with_id: false
88
+ severity: warning
89
+ SelectorDepth:
90
+ enabled: true
91
+ max_depth: 2
92
+ severity: warning
93
+ SelectorFormat:
94
+ enabled: false
95
+ #convention: hyphenated_lowercase
96
+ Shorthand:
97
+ enabled: true
98
+ severity: warning
99
+ SingleLinePerProperty:
100
+ enabled: true
101
+ allow_single_line_rule_sets: true
102
+ SingleLinePerSelector:
103
+ enabled: true
104
+ SpaceAfterComma:
105
+ enabled: true
106
+ SpaceAfterPropertyColon:
107
+ enabled: true
108
+ style: one_space
109
+ SpaceAfterPropertyName:
110
+ enabled: true
111
+ SpaceBeforeBrace:
112
+ enabled: true
113
+ style: space
114
+ allow_single_line_padding: false
115
+ SpaceBetweenParens:
116
+ enabled: true
117
+ spaces: 0
118
+ StringQuotes:
119
+ enabled: true
120
+ style: double_quotes
121
+ TrailingSemicolon:
122
+ enabled: true
123
+ TrailingZero:
124
+ enabled: false
125
+ UnnecessaryMantissa:
126
+ enabled: true
127
+ UnnecessaryParentReference:
128
+ enabled: true
129
+ UrlFormat:
130
+ enabled: true
131
+ UrlQuotes:
132
+ enabled: true
133
+ VariableForProperty:
134
+ enabled: false
135
+ properties: []
136
+ VendorPrefixes:
137
+ enabled: true
138
+ identifier_list: bourbon
139
+ include: []
140
+ exclude: []
141
+ ZeroUnit:
142
+ enabled: true
143
+ severity: warning
144
+ Compass::PropertyWithMixin:
145
+ enabled: false
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ants (0.3.12)
4
+ ants (0.3.13)
5
5
  devise
6
6
  meta-tags
7
7
  mongoid (>= 4.0)
@@ -2,4 +2,5 @@
2
2
  @import "ants/profile";
3
3
  @import "ants/settings";
4
4
  @import "ants/content";
5
- @import "ants/menu";
5
+ @import "ants/menu";
6
+ @import "ants/slug";
@@ -49,23 +49,6 @@
49
49
  .input-_slug {
50
50
  padding-top: 0;
51
51
  opacity: 0.5;
52
-
53
- .label {
54
- display: inline-block;
55
- font-size: .8em;
56
- cursor: pointer;
57
- }
58
-
59
- .error-message {
60
- display: none;
61
- }
62
-
63
- input {
64
- display: inline-block;
65
- width: 18em;
66
- font-size: .8em;
67
- padding: 0;
68
- }
69
52
  }
70
53
 
71
54
  .publish { display: none; }
@@ -0,0 +1,20 @@
1
+ .input-_slug {
2
+ font-size: 0.8em;
3
+ padding-left: 1.25em;
4
+ padding-right: 1.25em;
5
+
6
+ .label {
7
+ cursor: pointer;
8
+ display: inline-block;
9
+ }
10
+
11
+ .error-message {
12
+ display: none;
13
+ }
14
+
15
+ input {
16
+ display: inline-block;
17
+ padding: 0;
18
+ width: 18em;
19
+ }
20
+ }
@@ -1,3 +1,3 @@
1
1
  module Ants
2
- VERSION = "0.3.12"
2
+ VERSION = "0.3.13"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ants
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.12
4
+ version: 0.3.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Kravets
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-12-21 00:00:00.000000000 Z
11
+ date: 2015-12-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mongoid
@@ -156,9 +156,13 @@ executables: []
156
156
  extensions: []
157
157
  extra_rdoc_files: []
158
158
  files:
159
+ - ".coffeescript-style.yml"
159
160
  - ".coveralls.yml"
160
161
  - ".gitignore"
162
+ - ".hound.yml"
161
163
  - ".rspec"
164
+ - ".ruby-style.yml"
165
+ - ".scss-style.yml"
162
166
  - ".travis.yml"
163
167
  - Gemfile
164
168
  - Gemfile.lock
@@ -181,6 +185,7 @@ files:
181
185
  - app/assets/stylesheets/ants/menu.scss
182
186
  - app/assets/stylesheets/ants/profile.scss
183
187
  - app/assets/stylesheets/ants/settings.scss
188
+ - app/assets/stylesheets/ants/slug.scss
184
189
  - app/controllers/admin/admin_users_controller.rb
185
190
  - app/controllers/admin/menus_controller.rb
186
191
  - app/controllers/admin/redirects_controller.rb