active_frontend 14.0.92 → 14.0.93

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: '003981713fd71575c87f0b708af83aa74981b6b8'
4
- data.tar.gz: 7de091e049054da0565ad24110782438aaa151f2
3
+ metadata.gz: af843a72305e6ee29a39a7fc9ab681fbbea72292
4
+ data.tar.gz: 5cd49422bba1f8e1db8b09fa60e5ee61514d8bf9
5
5
  SHA512:
6
- metadata.gz: 2db435fdbd849fb8851f94fc47da39e346db93bda2fdb894a66647e66ddcd90a80c901bc5b848eac50793c64baf5e1b45dcad8358aa411e2c652a6583f0d94f1
7
- data.tar.gz: 54e36bceb2c56909a053c89de8fb721e7be3f535a44b0888e353da7dffacea07aad580e9c7ceb89b088fa41913aefb0ac8367e3ee01b039486af56d762a18f2a
6
+ metadata.gz: 1a208cad10e2136faf1c0a608b4d165858a66f1bfd1ae926c7617cd03b388080efdcaa35efda9eb41689eda3526fe1aa0fc6763714ed21030853486db603dcbd
7
+ data.tar.gz: bd2286d86bd4178cd2c3add1ef2c4bc59d9eded79ec808f705a96489478d43de85bca42c5297fad61e8c190a5ed8a1799e4c46449153d1396a3389d1bdcca5fc
data/.rubocop.yml CHANGED
@@ -1,11 +1,25 @@
1
1
  AllCops:
2
2
  DisplayCopNames: true
3
3
  DisplayStyleGuide: true
4
- TargetRubyVersion: 2.3
4
+ TargetRubyVersion: 2.4
5
5
  Exclude:
6
6
  - 'spec/**/**/*'
7
+ Layout/ClosingParenthesisIndentation:
8
+ Enabled: false
9
+ Layout/EmptyLinesAroundBlockBody:
10
+ Enabled: false
11
+ Layout/EmptyLinesAroundClassBody:
12
+ Enabled: false
13
+ Layout/EmptyLinesAroundModuleBody:
14
+ Enabled: false
15
+ Layout/FirstParameterIndentation:
16
+ Enabled: false
17
+ Layout/MultilineMethodCallIndentation:
18
+ EnforcedStyle: aligned
7
19
  LineLength:
8
20
  Max: 100
21
+ Lint/ScriptPermission:
22
+ Enabled: false
9
23
  Metrics/ClassLength:
10
24
  Enabled: false
11
25
  Metrics/ModuleLength:
@@ -14,24 +28,12 @@ Style/Alias:
14
28
  EnforcedStyle: prefer_alias_method
15
29
  Style/BracesAroundHashParameters:
16
30
  Enabled: false
17
- Style/ClosingParenthesisIndentation:
18
- Enabled: false
19
31
  Style/Documentation:
20
32
  Enabled: false
21
- Style/EmptyLinesAroundBlockBody:
22
- Enabled: false
23
- Style/EmptyLinesAroundClassBody:
24
- Enabled: false
25
- Style/EmptyLinesAroundModuleBody:
26
- Enabled: false
27
33
  Style/HashSyntax:
28
34
  Enabled: false
29
- Style/FirstParameterIndentation:
30
- Enabled: false
31
35
  Style/FrozenStringLiteralComment:
32
36
  Enabled: false
33
- Style/MultilineMethodCallIndentation:
34
- EnforcedStyle: aligned
35
37
  Style/NumericLiterals:
36
38
  Enabled: false
37
39
  Style/RescueModifier:
@@ -1,4 +1,5 @@
1
1
  # coding: utf-8
2
+
2
3
  lib = File.expand_path('../lib', __FILE__)
3
4
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
5
  require 'active_frontend/version'
@@ -9,7 +10,9 @@ Gem::Specification.new do |spec|
9
10
  spec.authors = ['Juan Gomez']
10
11
  spec.email = ['j.gomez@drexed.com']
11
12
 
13
+ # rubocop:disable Metrics/LineLength
12
14
  spec.description = 'ActiveFrontend is a refreshingly modern responsive web framework for beautiful and faster project development.'
15
+ # rubocop:enable Metrics/LineLength
13
16
  spec.summary = 'ActiveFrontend Responsive Web Framework'
14
17
  spec.homepage = 'https://github.com/drexed/active_frontend'
15
18
  spec.license = 'MIT'
@@ -17,7 +20,7 @@ Gem::Specification.new do |spec|
17
20
  spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
18
21
  spec.bindir = 'exe'
19
22
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
20
- spec.require_paths = ['lib']
23
+ spec.require_paths = %w[lib]
21
24
 
22
25
  spec.add_runtime_dependency 'rails'
23
26
 
@@ -1,18 +1,8 @@
1
1
  module ActiveFrontendHelper
2
2
 
3
- def colors(opacity = 1)
3
+ # rubocop:disable Metrics/MethodLength
4
+ def colors_brand(opacity = 1)
4
5
  {
5
- transparent: { rgba: "rgba(0,0,0,0)", hex: '#FFFFFF' },
6
- dark_black: { rgba: "rgba(37,49,62,#{opacity})", hex: '#25313E' },
7
- black: { rgba: "rgba(44,58,73,#{opacity})", hex: '#2C3A49' },
8
- light_black: { rgba: "rgba(51,67,83,#{opacity})", hex: '#334353' },
9
- dark_gray: { rgba: "rgba(110,128,150,#{opacity})", hex: '#6E8096' },
10
- gray: { rgba: "rgba(130,146,164,#{opacity})", hex: '#8292A4' },
11
- light_gray: { rgba: "rgba(153,166,183,#{opacity})", hex: '#99A6B7' },
12
- dark_haze: { rgba: "rgba(229,232,241,#{opacity})", hex: '#E5E8F1' },
13
- haze: { rgba: "rgba(238,240,246,#{opacity})", hex: '#EEF0F6' },
14
- light_haze: { rgba: "rgba(249,250,252,#{opacity})", hex: '#F9FAFC' },
15
- white: { rgba: "rgba(255,255,255,#{opacity})", hex: '#FFFFFF' },
16
6
  lime: { rgba: "rgba(161,215,77,#{opacity})", hex: '#A1D74D' },
17
7
  green: { rgba: "rgba(27,185,51,#{opacity})", hex: '#1BB933' },
18
8
  teal: { rgba: "rgba(46,207,221,#{opacity})", hex: '#2ECFDD' },
@@ -28,4 +18,38 @@ module ActiveFrontendHelper
28
18
  }
29
19
  end
30
20
 
21
+ def colors_grayscale(opacity = 1)
22
+ {
23
+ transparent: { rgba: 'rgba(0,0,0,0)', hex: '#FFFFFF' },
24
+ dark_black: { rgba: "rgba(37,49,62,#{opacity})", hex: '#25313E' },
25
+ black: { rgba: "rgba(44,58,73,#{opacity})", hex: '#2C3A49' },
26
+ light_black: { rgba: "rgba(51,67,83,#{opacity})", hex: '#334353' },
27
+ dark_gray: { rgba: "rgba(110,128,150,#{opacity})", hex: '#6E8096' },
28
+ gray: { rgba: "rgba(130,146,164,#{opacity})", hex: '#8292A4' },
29
+ light_gray: { rgba: "rgba(153,166,183,#{opacity})", hex: '#99A6B7' },
30
+ dark_haze: { rgba: "rgba(229,232,241,#{opacity})", hex: '#E5E8F1' },
31
+ haze: { rgba: "rgba(238,240,246,#{opacity})", hex: '#EEF0F6' },
32
+ light_haze: { rgba: "rgba(249,250,252,#{opacity})", hex: '#F9FAFC' },
33
+ white: { rgba: "rgba(255,255,255,#{opacity})", hex: '#FFFFFF' }
34
+ }
35
+ end
36
+ # rubocop:enable Metrics/MethodLength
37
+
38
+ def colors_global(opacity = 1)
39
+ available_colors = brand_colors(opacity)
40
+
41
+ {
42
+ primary: available_colors[:blue],
43
+ secondary: available_colors[:green],
44
+ tertiary: available_colors[:red],
45
+ quaditiary: available_colors[:yellow]
46
+ }
47
+ end
48
+
49
+ def colors(opacity = 1)
50
+ colors_global(opacity)
51
+ .merge(colors_brand(opacity))
52
+ .merge(colors_grayscale(opacity))
53
+ end
54
+
31
55
  end
@@ -1,3 +1,3 @@
1
1
  module ActiveFrontend
2
- VERSION = '14.0.92'.freeze
2
+ VERSION = '14.0.93'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_frontend
3
3
  version: !ruby/object:Gem::Version
4
- version: 14.0.92
4
+ version: 14.0.93
5
5
  platform: ruby
6
6
  authors:
7
7
  - Juan Gomez
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-05-12 00:00:00.000000000 Z
11
+ date: 2017-05-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails