activeadmin_dark_color_scheme 0.1.7 → 0.1.8

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: d260e344c778bd0b92c74ebfdff90a31e2a6bf6104ba24f7782d6f331402d153
4
- data.tar.gz: 56822e3f1a2c37b2036309bdc93e2a21d0e3d9a520c951af7a855a2883f45bb1
3
+ metadata.gz: 5a6653af3558bf5a0cecf1a181e4db95b4ff76f64a5926fca59f4e273640f666
4
+ data.tar.gz: 99be43648ce66383f941bbad9a98aaad7f469ff8377ab5f153c4e02412e10f19
5
5
  SHA512:
6
- metadata.gz: 77d10b8988689cfd928e6bcc0ecbeb041430a34b2d78d4842f0aacc214e06ee719620129fccbd688a44e36f6439478cafad0e376d7a5dcd64d4bfa82ab33f574
7
- data.tar.gz: 1bcf06617a5ce09a0a979f02965950fae12f3ed60d301c7ec5c355998a1dd6c928430fe1cf19769903bebf3526a32b3755a2be04165590d06fff87156bcda30c
6
+ metadata.gz: 43b45e62d73a1d2cc5c88a12d6f27535da20bc0a63155094df7a92aa7d57e6cd3f569a66efbdbc077f6df45f40e22e55d5bec96152eee77698bcd3c07d562297
7
+ data.tar.gz: c03c65e6fa0e3d1511c3237b1487dc1ef355aa1300b30080304ccd1cdf10b7ec9d9345f01ca2911d6cc5d460fe23faaeb370cc7edc6a819e8f14bc49cd0cb98e
data/Gemfile CHANGED
@@ -2,15 +2,4 @@
2
2
 
3
3
  source "https://rubygems.org"
4
4
 
5
- # Specify your gem's dependencies in moscow_metro.gemspec
6
5
  gemspec
7
-
8
- group :test do
9
- gem "pry"
10
- end
11
-
12
- group :test do
13
- # gem "coveralls", require: false
14
- gem "rake"
15
- gem "rspec"
16
- end
data/Gemfile.lock CHANGED
@@ -2,7 +2,7 @@ PATH
2
2
  remote: .
3
3
  specs:
4
4
  activeadmin_dark_color_scheme (0.1.7)
5
- sassc-rails (~> 2, >= 2.0.0)
5
+ railties (>= 4)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
@@ -25,15 +25,11 @@ GEM
25
25
  i18n (>= 1.6, < 2)
26
26
  minitest (>= 5.1)
27
27
  tzinfo (~> 2.0)
28
- autoprefixer-rails (10.4.7.0)
29
- execjs (~> 2)
30
28
  builder (3.2.4)
31
- coderay (1.1.3)
32
29
  concurrent-ruby (1.1.10)
33
30
  crass (1.0.6)
34
31
  diff-lcs (1.5.0)
35
32
  erubi (1.10.0)
36
- execjs (2.8.1)
37
33
  ffi (1.15.5)
38
34
  i18n (1.10.0)
39
35
  concurrent-ruby (~> 1.0)
@@ -44,9 +40,6 @@ GEM
44
40
  minitest (5.15.0)
45
41
  nokogiri (1.13.6-arm64-darwin)
46
42
  racc (~> 1.4)
47
- pry (0.14.1)
48
- coderay (~> 1.1)
49
- method_source (~> 1.0)
50
43
  racc (1.6.0)
51
44
  rack (2.2.3.1)
52
45
  rack-test (1.1.0)
@@ -79,31 +72,14 @@ GEM
79
72
  rspec-support (3.11.0)
80
73
  sassc (2.4.0)
81
74
  ffi (~> 1.9)
82
- sassc-rails (2.1.2)
83
- railties (>= 4.0.0)
84
- sassc (>= 2.0)
85
- sprockets (> 3.0)
86
- sprockets-rails
87
- tilt
88
- sprockets (4.0.3)
89
- concurrent-ruby (~> 1.0)
90
- rack (> 1, < 3)
91
- sprockets-rails (3.4.2)
92
- actionpack (>= 5.2)
93
- activesupport (>= 5.2)
94
- sprockets (>= 3.0.0)
95
75
  sync (0.5.0)
96
76
  term-ansicolor (1.7.1)
97
77
  tins (~> 1.0)
98
78
  thor (1.2.1)
99
- tilt (2.0.10)
100
79
  tins (1.31.1)
101
80
  sync
102
81
  tzinfo (2.0.4)
103
82
  concurrent-ruby (~> 1.0)
104
- webrick (1.7.0)
105
- yard (0.9.28)
106
- webrick (~> 1.7.0)
107
83
  zeitwerk (2.5.4)
108
84
 
109
85
  PLATFORMS
@@ -111,12 +87,10 @@ PLATFORMS
111
87
 
112
88
  DEPENDENCIES
113
89
  activeadmin_dark_color_scheme!
114
- autoprefixer-rails (~> 10, >= 10.4.7)
115
- pry
116
- rake
117
- rspec
90
+ rake (~> 13)
91
+ rspec (~> 3)
92
+ sassc (~> 2, >= 2.0.0)
118
93
  term-ansicolor (~> 1)
119
- yard (~> 0, >= 0.9.20)
120
94
 
121
95
  BUNDLED WITH
122
96
  2.3.15
data/Rakefile CHANGED
@@ -13,6 +13,31 @@ load "rails/tasks/statistics.rake"
13
13
 
14
14
  task default: :spec
15
15
 
16
+ desc "Dumps output to a CSS file for testing"
17
+ task :debug do
18
+ require "sassc"
19
+
20
+ path = Activeadmin::DarkColorScheme.stylesheets_path
21
+ entrypoins = %w(_activeadmin-dark-color-scheme)
22
+
23
+ entrypoins.each do |file|
24
+ css = File.read("#{path}/#{file}.sass")
25
+ engine = SassC::Engine.new(css, syntax: :sass, load_paths: [path])
26
+ out = File.join("tmp", "#{file[1..-1]}.css")
27
+ css = engine.render
28
+ File.open(out, "w+") do |f|
29
+ f << css
30
+ end
31
+ $stderr.puts Term::ANSIColor.green "Compiled #{out}"
32
+ $stderr.puts css
33
+ end
34
+ end
35
+
36
+ # desc "Publish"
37
+ # task :publish do
38
+ # puts `gem push pkg/activeadmin_dark_color_scheme-#{Activeadmin::DarkColorScheme::VERSION}.gem`
39
+ # end
40
+
16
41
  # require 'rake/testtask'
17
42
  # Rake::TestTask.new do |t|
18
43
  # t.libs << 'test'
@@ -53,34 +78,6 @@ task default: :spec
53
78
  # end
54
79
  # end
55
80
 
56
- desc "Dumps output to a CSS file for testing"
57
- task :debug do
58
- require "sassc"
59
- require "autoprefixer-rails"
60
-
61
- path = Activeadmin::DarkColorScheme.stylesheets_path
62
- entrypoins = %w(_activeadmin-dark-color-scheme)
63
-
64
- entrypoins.each do |file|
65
- css = File.read("#{path}/#{file}.sass")
66
- engine = SassC::Engine.new(css, syntax: :sass, load_paths: [path])
67
- out = File.join("tmp", "#{file[1..-1]}.css")
68
- css = engine.render
69
- css = AutoprefixerRails.process(css)
70
- # File.write(out, css)
71
- File.open(out, "w+") do |f|
72
- f << css
73
- end
74
- $stderr.puts Term::ANSIColor.green "Compiled #{out}"
75
- end
76
- end
77
-
78
- # desc "Publish"
79
- # task :publish do
80
- # puts `gem push pkg/activeadmin_dark_color_scheme-#{Activeadmin::DarkColorScheme::VERSION}.gem`
81
- # end
82
-
83
-
84
81
  # desc 'Start a dummy Rails app server'
85
82
  # task :rails_server do
86
83
  # require 'rack'
@@ -16,12 +16,12 @@ Gem::Specification.new do |spec|
16
16
  You can override that on the browser level if you wish.
17
17
  HEREDOC
18
18
 
19
- spec.homepage = "https://github.com/sergeypedan/activeadmin-dark-color-scheme"
19
+ spec.homepage = "https://github.com/sergeypedan/#{spec.name.gsub('_', '-')}"
20
20
  spec.extra_rdoc_files = ["README.md", "CHANGELOG.md"]
21
21
  spec.rdoc_options = ["--charset=UTF-8"]
22
22
  spec.metadata = { "changelog_uri" => "#{spec.homepage}/blob/master/CHANGELOG.md",
23
23
  "documentation_uri" => "https://www.rubydoc.info/gems/#{spec.name}",
24
- "homepage_uri" => spec.homepage,
24
+ "homepage_uri" => "https://sergeypedan.ru/open_source_projects/#{spec.name.gsub('_', '-')}",
25
25
  "source_code_uri" => spec.homepage }
26
26
 
27
27
  spec.require_paths = ["app", "lib"]
@@ -34,13 +34,10 @@ Gem::Specification.new do |spec|
34
34
  .reject { |f| f.start_with? "." }
35
35
  end
36
36
 
37
- spec.required_ruby_version = Gem::Requirement.new(">= 2.3.3")
38
- # SassC requires Ruby 2.3.3+
37
+ spec.add_runtime_dependency "railties", ">= 4"
39
38
 
40
- spec.add_runtime_dependency "sassc-rails", "~> 2", ">= 2.0.0"
41
-
42
- spec.add_development_dependency "autoprefixer-rails", "~> 10", ">= 10.4.7"
43
- spec.add_development_dependency "rspec", "~> 3"
44
- spec.add_development_dependency "term-ansicolor", "~> 1"
45
- spec.add_development_dependency "yard", "~> 0", ">= 0.9.20"
39
+ spec.add_development_dependency "rake", "~> 13"
40
+ spec.add_development_dependency "rspec", "~> 3"
41
+ spec.add_development_dependency "sassc", "~> 2", ">= 2.0.0"
42
+ spec.add_development_dependency "term-ansicolor", "~> 1"
46
43
  end
@@ -1,13 +1,12 @@
1
1
  // Variables
2
- @import "./activeadmin-dark-color-scheme/variables/base"
3
2
  @import "./activeadmin-dark-color-scheme/variables/alerts"
3
+ @import "./activeadmin-dark-color-scheme/variables/base"
4
4
  @import "./activeadmin-dark-color-scheme/variables/buttons"
5
5
  @import "./activeadmin-dark-color-scheme/variables/inputs"
6
6
  @import "./activeadmin-dark-color-scheme/variables/labels"
7
7
  @import "./activeadmin-dark-color-scheme/variables/panels"
8
8
  @import "./activeadmin-dark-color-scheme/variables/select2"
9
9
  @import "./activeadmin-dark-color-scheme/variables/tables"
10
- @import "./activeadmin-dark-color-scheme/variables/toggle-bool"
11
10
 
12
11
  // Mixins
13
12
  @import "./activeadmin-dark-color-scheme/mixins/button-light"
@@ -31,5 +30,12 @@
31
30
  @import "./activeadmin-dark-color-scheme/modules/table-index"
32
31
  @import "./activeadmin-dark-color-scheme/modules/tabs"
33
32
  @import "./activeadmin-dark-color-scheme/modules/title-bar"
34
- @import "./activeadmin-dark-color-scheme/modules/toggle-bool-switch"
35
33
  @import "./activeadmin-dark-color-scheme/modules/top-level"
34
+
35
+ @import "./activeadmin-dark-color-scheme/variables/date-time-picker"
36
+ @import "./activeadmin-dark-color-scheme/variables/status-tag"
37
+ @import "./activeadmin-dark-color-scheme/variables/toggle-bool"
38
+
39
+ @import "./activeadmin-dark-color-scheme/addons/toggle-bool-switch"
40
+ @import "./activeadmin-dark-color-scheme/addons/status-tag"
41
+ @import "./activeadmin-dark-color-scheme/addons/date-time-picker"
@@ -0,0 +1,38 @@
1
+ @media (prefers-color-scheme: dark)
2
+ .xdsoft_datetimepicker
3
+ background-color: $dt-picker-bg
4
+ border-color: $dt-picker-border-color
5
+ color: white
6
+
7
+ .xdsoft_label
8
+ background-color: $dt-picker-bg
9
+
10
+ .xdsoft_calendar
11
+ th
12
+ background-color: $dt-picker-bg
13
+ border-color: $dt-picker-border-color
14
+ color: white
15
+
16
+ td
17
+ background-color: $dt-picker-bg
18
+ border-color: $dt-picker-border-color
19
+ color: white
20
+
21
+ &.xdsoft_default,
22
+ &.xdsoft_current
23
+ background-color: $dt-picker-cell-active-bg
24
+ box-shadow: $dt-picker-cell-active-box-shadow
25
+
26
+ .xdsoft_timepicker
27
+ .xdsoft_time_box
28
+ border-color: $dt-picker-border-color
29
+
30
+ > div
31
+ > div
32
+ background-color: $dt-picker-bg
33
+ border-color: $dt-picker-border-color
34
+ color: white
35
+
36
+ &.xdsoft_current
37
+ background-color: $dt-picker-cell-active-bg
38
+ box-shadow: $dt-picker-cell-active-box-shadow
@@ -0,0 +1,3 @@
1
+ @media (prefers-color-scheme: dark)
2
+ .status_tag
3
+ background-color: $status-tag-bg
@@ -0,0 +1,4 @@
1
+ $dt-picker-bg: rgb(46, 50, 52)
2
+ $dt-picker-border-color: $dt-picker-bg
3
+ $dt-picker-cell-active-bg: hsl(205, 100%, 35%)
4
+ $dt-picker-cell-active-box-shadow: 0 1px 3px 0 darken($dt-picker-cell-active-bg, 15%) inset
@@ -0,0 +1 @@
1
+ $status-tag-bg: #3f4245 !default
@@ -1,16 +1,14 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require "sassc-rails"
3
+ # This is standard Rails way to autoload gem’s contents dynamically as an “engine”
4
+ # @see https://guides.rubyonrails.org/engines.html Rails guide on engines
5
+ #
6
+ require "rails"
4
7
 
5
- module FormtasticTristateRadio
6
-
7
- # This is standard Rails way to autoload gem’s contents dynamically as an “engine”
8
- # @see https://guides.rubyonrails.org/engines.html Rails guide on engines
9
- #
8
+ module Activeadmin
10
9
  class Engine < ::Rails::Engine
11
10
  initializer "activeadmin_dark_color_scheme.assets" do |app|
12
11
  app.config.assets.paths << root.join("assets", "stylesheets").to_s
13
12
  end
14
13
  end
15
-
16
14
  end
@@ -1,5 +1,7 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Activeadmin
2
4
  module DarkColorScheme
3
- VERSION = "0.1.7"
5
+ VERSION = "0.1.8"
4
6
  end
5
7
  end
@@ -12,11 +12,11 @@ module Activeadmin
12
12
  end
13
13
 
14
14
  def assets_path
15
- @assets_path ||= File.join gem_path, 'assets'
15
+ @assets_path ||= File.join gem_path, "assets"
16
16
  end
17
17
 
18
18
  def stylesheets_path
19
- File.join assets_path, 'stylesheets'
19
+ File.join assets_path, "stylesheets"
20
20
  end
21
21
 
22
22
  end
metadata CHANGED
@@ -1,55 +1,43 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activeadmin_dark_color_scheme
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sergey Pedan
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-06-11 00:00:00.000000000 Z
11
+ date: 2022-07-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: sassc-rails
14
+ name: railties
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
18
- - !ruby/object:Gem::Version
19
- version: '2'
20
17
  - - ">="
21
18
  - !ruby/object:Gem::Version
22
- version: 2.0.0
19
+ version: '4'
23
20
  type: :runtime
24
21
  prerelease: false
25
22
  version_requirements: !ruby/object:Gem::Requirement
26
23
  requirements:
27
- - - "~>"
28
- - !ruby/object:Gem::Version
29
- version: '2'
30
24
  - - ">="
31
25
  - !ruby/object:Gem::Version
32
- version: 2.0.0
26
+ version: '4'
33
27
  - !ruby/object:Gem::Dependency
34
- name: autoprefixer-rails
28
+ name: rake
35
29
  requirement: !ruby/object:Gem::Requirement
36
30
  requirements:
37
31
  - - "~>"
38
32
  - !ruby/object:Gem::Version
39
- version: '10'
40
- - - ">="
41
- - !ruby/object:Gem::Version
42
- version: 10.4.7
33
+ version: '13'
43
34
  type: :development
44
35
  prerelease: false
45
36
  version_requirements: !ruby/object:Gem::Requirement
46
37
  requirements:
47
38
  - - "~>"
48
39
  - !ruby/object:Gem::Version
49
- version: '10'
50
- - - ">="
51
- - !ruby/object:Gem::Version
52
- version: 10.4.7
40
+ version: '13'
53
41
  - !ruby/object:Gem::Dependency
54
42
  name: rspec
55
43
  requirement: !ruby/object:Gem::Requirement
@@ -65,39 +53,39 @@ dependencies:
65
53
  - !ruby/object:Gem::Version
66
54
  version: '3'
67
55
  - !ruby/object:Gem::Dependency
68
- name: term-ansicolor
56
+ name: sassc
69
57
  requirement: !ruby/object:Gem::Requirement
70
58
  requirements:
71
59
  - - "~>"
72
60
  - !ruby/object:Gem::Version
73
- version: '1'
61
+ version: '2'
62
+ - - ">="
63
+ - !ruby/object:Gem::Version
64
+ version: 2.0.0
74
65
  type: :development
75
66
  prerelease: false
76
67
  version_requirements: !ruby/object:Gem::Requirement
77
68
  requirements:
78
69
  - - "~>"
79
70
  - !ruby/object:Gem::Version
80
- version: '1'
71
+ version: '2'
72
+ - - ">="
73
+ - !ruby/object:Gem::Version
74
+ version: 2.0.0
81
75
  - !ruby/object:Gem::Dependency
82
- name: yard
76
+ name: term-ansicolor
83
77
  requirement: !ruby/object:Gem::Requirement
84
78
  requirements:
85
79
  - - "~>"
86
80
  - !ruby/object:Gem::Version
87
- version: '0'
88
- - - ">="
89
- - !ruby/object:Gem::Version
90
- version: 0.9.20
81
+ version: '1'
91
82
  type: :development
92
83
  prerelease: false
93
84
  version_requirements: !ruby/object:Gem::Requirement
94
85
  requirements:
95
86
  - - "~>"
96
87
  - !ruby/object:Gem::Version
97
- version: '0'
98
- - - ">="
99
- - !ruby/object:Gem::Version
100
- version: 0.9.20
88
+ version: '1'
101
89
  description: |
102
90
  A dark color scheme for ActiveAdmin Ruby CMS. This gem provides Sass files that you can include via Sprockets.
103
91
  The dark theme automatically switches on / off with your system’s dark / light mode.
@@ -118,6 +106,9 @@ files:
118
106
  - Rakefile
119
107
  - activeadmin_dark_color_scheme.gemspec
120
108
  - app/assets/stylesheets/_activeadmin-dark-color-scheme.sass
109
+ - app/assets/stylesheets/activeadmin-dark-color-scheme/addons/_date-time-picker.sass
110
+ - app/assets/stylesheets/activeadmin-dark-color-scheme/addons/_status-tag.sass
111
+ - app/assets/stylesheets/activeadmin-dark-color-scheme/addons/_toggle-bool-switch.sass
121
112
  - app/assets/stylesheets/activeadmin-dark-color-scheme/mixins/_button-dark.sass
122
113
  - app/assets/stylesheets/activeadmin-dark-color-scheme/mixins/_button-light.sass
123
114
  - app/assets/stylesheets/activeadmin-dark-color-scheme/mixins/_panel-heads.sass
@@ -137,15 +128,16 @@ files:
137
128
  - app/assets/stylesheets/activeadmin-dark-color-scheme/modules/_table-index.sass
138
129
  - app/assets/stylesheets/activeadmin-dark-color-scheme/modules/_tabs.sass
139
130
  - app/assets/stylesheets/activeadmin-dark-color-scheme/modules/_title-bar.sass
140
- - app/assets/stylesheets/activeadmin-dark-color-scheme/modules/_toggle-bool-switch.sass
141
131
  - app/assets/stylesheets/activeadmin-dark-color-scheme/modules/_top-level.sass
142
132
  - app/assets/stylesheets/activeadmin-dark-color-scheme/variables/_alerts.sass
143
133
  - app/assets/stylesheets/activeadmin-dark-color-scheme/variables/_base.sass
144
134
  - app/assets/stylesheets/activeadmin-dark-color-scheme/variables/_buttons.sass
135
+ - app/assets/stylesheets/activeadmin-dark-color-scheme/variables/_date-time-picker.sass
145
136
  - app/assets/stylesheets/activeadmin-dark-color-scheme/variables/_inputs.sass
146
137
  - app/assets/stylesheets/activeadmin-dark-color-scheme/variables/_labels.sass
147
138
  - app/assets/stylesheets/activeadmin-dark-color-scheme/variables/_panels.sass
148
139
  - app/assets/stylesheets/activeadmin-dark-color-scheme/variables/_select2.sass
140
+ - app/assets/stylesheets/activeadmin-dark-color-scheme/variables/_status-tag.sass
149
141
  - app/assets/stylesheets/activeadmin-dark-color-scheme/variables/_tables.sass
150
142
  - app/assets/stylesheets/activeadmin-dark-color-scheme/variables/_toggle-bool.sass
151
143
  - lib/activeadmin/dark_color_scheme.rb
@@ -158,7 +150,7 @@ licenses:
158
150
  metadata:
159
151
  changelog_uri: https://github.com/sergeypedan/activeadmin-dark-color-scheme/blob/master/CHANGELOG.md
160
152
  documentation_uri: https://www.rubydoc.info/gems/activeadmin_dark_color_scheme
161
- homepage_uri: https://github.com/sergeypedan/activeadmin-dark-color-scheme
153
+ homepage_uri: https://sergeypedan.ru/open_source_projects/activeadmin-dark-color-scheme
162
154
  source_code_uri: https://github.com/sergeypedan/activeadmin-dark-color-scheme
163
155
  post_install_message:
164
156
  rdoc_options:
@@ -170,7 +162,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
170
162
  requirements:
171
163
  - - ">="
172
164
  - !ruby/object:Gem::Version
173
- version: 2.3.3
165
+ version: '0'
174
166
  required_rubygems_version: !ruby/object:Gem::Requirement
175
167
  requirements:
176
168
  - - ">="