atomic_view 0.0.1 → 0.0.2

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: 8dcef405148fcf0ef2b4c47209f41b37fb305892e1f4a4966c9e945d63840c3d
4
- data.tar.gz: e049e89234232ae388cefaacbd165738c6c127ed5856453976b1fdaebdabbb25
3
+ metadata.gz: 2dffba601d7250090a7560d3cd7407c0593a998c38202d61a09e892671c73bcf
4
+ data.tar.gz: 31fa287050869d231c1adc639236f121ddea420aaf5c29c9298ff3e4dc0700f5
5
5
  SHA512:
6
- metadata.gz: bc36fdcbadf439eeeefc3eb148e5ad07a15364cf28be682241051ad773c87489c12078bb0e51dc9b77477bce0555819f0159396148ba28a9e186bbe17ce91ed8
7
- data.tar.gz: f8a93d1fd48feb8fb310d42ba4c19956c18cbc37d47c812b1213502f5d6e092f27fb8b89c679403449a377a7661c290d916e726f97d6afaca2ed97b19e2a015a
6
+ metadata.gz: bdb30f9edcc0441002c26132713ada3637100abe083f78105ab660c99a31eea32c5fccff7507b9e006f4d61fd416d7d5aa4f242b8099a6e623a7c3744c445a73
7
+ data.tar.gz: 17cfe35aad5bad71e75423f83436b32f2a59eeff8fff67044373b72d7a6aec285f1e21e8a1ef001673eaab4375616e0151e9160d5397e13bce8a7619f2609a1e
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ 3.3.0
data/Gemfile CHANGED
@@ -1,9 +1,11 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  source "https://rubygems.org"
4
+ git_source(:github) { |repo| "https://github.com/#{repo}.git" }
4
5
 
5
6
  gemspec
6
7
 
8
+ gem "codelog", github: "codus/codelog", branch: "master"
7
9
  gem "rake", "~> 13.0"
8
10
  gem "rspec", "~> 3.0"
9
- gem "rubocop", "~> 1.21"
11
+ gem "standard", "~> 1.21"
data/Gemfile.lock CHANGED
@@ -1,25 +1,193 @@
1
+ GIT
2
+ remote: https://github.com/codus/codelog.git
3
+ revision: 2194f26f01b07b306d5791bcbebd17b6af2d928a
4
+ branch: master
5
+ specs:
6
+ codelog (0.8.0)
7
+ thor (~> 1.0)
8
+
1
9
  PATH
2
10
  remote: .
3
11
  specs:
4
12
  atomic_view (0.0.1)
13
+ rails (~> 7.2.0)
14
+ tailwind_merge (~> 0.12)
15
+ view_component (~> 3.13)
5
16
 
6
17
  GEM
7
18
  remote: https://rubygems.org/
8
19
  specs:
20
+ actioncable (7.2.0)
21
+ actionpack (= 7.2.0)
22
+ activesupport (= 7.2.0)
23
+ nio4r (~> 2.0)
24
+ websocket-driver (>= 0.6.1)
25
+ zeitwerk (~> 2.6)
26
+ actionmailbox (7.2.0)
27
+ actionpack (= 7.2.0)
28
+ activejob (= 7.2.0)
29
+ activerecord (= 7.2.0)
30
+ activestorage (= 7.2.0)
31
+ activesupport (= 7.2.0)
32
+ mail (>= 2.8.0)
33
+ actionmailer (7.2.0)
34
+ actionpack (= 7.2.0)
35
+ actionview (= 7.2.0)
36
+ activejob (= 7.2.0)
37
+ activesupport (= 7.2.0)
38
+ mail (>= 2.8.0)
39
+ rails-dom-testing (~> 2.2)
40
+ actionpack (7.2.0)
41
+ actionview (= 7.2.0)
42
+ activesupport (= 7.2.0)
43
+ nokogiri (>= 1.8.5)
44
+ racc
45
+ rack (>= 2.2.4, < 3.2)
46
+ rack-session (>= 1.0.1)
47
+ rack-test (>= 0.6.3)
48
+ rails-dom-testing (~> 2.2)
49
+ rails-html-sanitizer (~> 1.6)
50
+ useragent (~> 0.16)
51
+ actiontext (7.2.0)
52
+ actionpack (= 7.2.0)
53
+ activerecord (= 7.2.0)
54
+ activestorage (= 7.2.0)
55
+ activesupport (= 7.2.0)
56
+ globalid (>= 0.6.0)
57
+ nokogiri (>= 1.8.5)
58
+ actionview (7.2.0)
59
+ activesupport (= 7.2.0)
60
+ builder (~> 3.1)
61
+ erubi (~> 1.11)
62
+ rails-dom-testing (~> 2.2)
63
+ rails-html-sanitizer (~> 1.6)
64
+ activejob (7.2.0)
65
+ activesupport (= 7.2.0)
66
+ globalid (>= 0.3.6)
67
+ activemodel (7.2.0)
68
+ activesupport (= 7.2.0)
69
+ activerecord (7.2.0)
70
+ activemodel (= 7.2.0)
71
+ activesupport (= 7.2.0)
72
+ timeout (>= 0.4.0)
73
+ activestorage (7.2.0)
74
+ actionpack (= 7.2.0)
75
+ activejob (= 7.2.0)
76
+ activerecord (= 7.2.0)
77
+ activesupport (= 7.2.0)
78
+ marcel (~> 1.0)
79
+ activesupport (7.2.0)
80
+ base64
81
+ bigdecimal
82
+ concurrent-ruby (~> 1.0, >= 1.3.1)
83
+ connection_pool (>= 2.2.5)
84
+ drb
85
+ i18n (>= 1.6, < 2)
86
+ logger (>= 1.4.2)
87
+ minitest (>= 5.1)
88
+ securerandom (>= 0.3)
89
+ tzinfo (~> 2.0, >= 2.0.5)
9
90
  ast (2.4.2)
10
- codelog (0.8.0)
11
- thor (~> 0.19)
91
+ base64 (0.2.0)
92
+ bigdecimal (3.1.8)
93
+ builder (3.3.0)
94
+ concurrent-ruby (1.3.3)
95
+ connection_pool (2.4.1)
96
+ crass (1.0.6)
97
+ date (3.3.4)
12
98
  diff-lcs (1.5.1)
99
+ drb (2.2.1)
100
+ erubi (1.13.0)
101
+ globalid (1.2.1)
102
+ activesupport (>= 6.1)
103
+ i18n (1.14.5)
104
+ concurrent-ruby (~> 1.0)
105
+ io-console (0.7.2)
106
+ irb (1.14.0)
107
+ rdoc (>= 4.0.0)
108
+ reline (>= 0.4.2)
13
109
  json (2.7.2)
14
110
  language_server-protocol (3.17.0.3)
111
+ lint_roller (1.1.0)
112
+ logger (1.6.0)
113
+ loofah (2.22.0)
114
+ crass (~> 1.0.2)
115
+ nokogiri (>= 1.12.0)
116
+ lru_redux (1.1.0)
117
+ mail (2.8.1)
118
+ mini_mime (>= 0.1.1)
119
+ net-imap
120
+ net-pop
121
+ net-smtp
122
+ marcel (1.0.4)
123
+ method_source (1.1.0)
124
+ mini_mime (1.1.5)
125
+ minitest (5.24.1)
126
+ net-imap (0.4.14)
127
+ date
128
+ net-protocol
129
+ net-pop (0.1.2)
130
+ net-protocol
131
+ net-protocol (0.2.2)
132
+ timeout
133
+ net-smtp (0.5.0)
134
+ net-protocol
135
+ nio4r (2.7.3)
136
+ nokogiri (1.16.6-arm64-darwin)
137
+ racc (~> 1.4)
138
+ nokogiri (1.16.6-x86_64-linux)
139
+ racc (~> 1.4)
15
140
  parallel (1.25.1)
16
141
  parser (3.3.3.0)
17
142
  ast (~> 2.4.1)
18
143
  racc
144
+ psych (5.1.2)
145
+ stringio
19
146
  racc (1.8.0)
147
+ rack (3.1.6)
148
+ rack-session (2.0.0)
149
+ rack (>= 3.0.0)
150
+ rack-test (2.1.0)
151
+ rack (>= 1.3)
152
+ rackup (2.1.0)
153
+ rack (>= 3)
154
+ webrick (~> 1.8)
155
+ rails (7.2.0)
156
+ actioncable (= 7.2.0)
157
+ actionmailbox (= 7.2.0)
158
+ actionmailer (= 7.2.0)
159
+ actionpack (= 7.2.0)
160
+ actiontext (= 7.2.0)
161
+ actionview (= 7.2.0)
162
+ activejob (= 7.2.0)
163
+ activemodel (= 7.2.0)
164
+ activerecord (= 7.2.0)
165
+ activestorage (= 7.2.0)
166
+ activesupport (= 7.2.0)
167
+ bundler (>= 1.15.0)
168
+ railties (= 7.2.0)
169
+ rails-dom-testing (2.2.0)
170
+ activesupport (>= 5.0.0)
171
+ minitest
172
+ nokogiri (>= 1.6)
173
+ rails-html-sanitizer (1.6.0)
174
+ loofah (~> 2.21)
175
+ nokogiri (~> 1.14)
176
+ railties (7.2.0)
177
+ actionpack (= 7.2.0)
178
+ activesupport (= 7.2.0)
179
+ irb (~> 1.13)
180
+ rackup (>= 1.0.0)
181
+ rake (>= 12.2)
182
+ thor (~> 1.0, >= 1.2.2)
183
+ zeitwerk (~> 2.6)
20
184
  rainbow (3.1.1)
21
185
  rake (13.2.1)
186
+ rdoc (6.7.0)
187
+ psych (>= 4.0.0)
22
188
  regexp_parser (2.9.2)
189
+ reline (0.5.9)
190
+ io-console (~> 0.5)
23
191
  rexml (3.3.1)
24
192
  strscan
25
193
  rspec (3.13.0)
@@ -48,20 +216,54 @@ GEM
48
216
  unicode-display_width (>= 2.4.0, < 3.0)
49
217
  rubocop-ast (1.31.3)
50
218
  parser (>= 3.3.1.0)
219
+ rubocop-performance (1.21.1)
220
+ rubocop (>= 1.48.1, < 2.0)
221
+ rubocop-ast (>= 1.31.1, < 2.0)
51
222
  ruby-progressbar (1.13.0)
223
+ securerandom (0.3.1)
224
+ standard (1.39.1)
225
+ language_server-protocol (~> 3.17.0.2)
226
+ lint_roller (~> 1.0)
227
+ rubocop (~> 1.64.0)
228
+ standard-custom (~> 1.0.0)
229
+ standard-performance (~> 1.4)
230
+ standard-custom (1.0.2)
231
+ lint_roller (~> 1.0)
232
+ rubocop (~> 1.50)
233
+ standard-performance (1.4.0)
234
+ lint_roller (~> 1.1)
235
+ rubocop-performance (~> 1.21.0)
236
+ stringio (3.1.1)
52
237
  strscan (3.1.0)
53
- thor (0.20.3)
238
+ tailwind_merge (0.12.0)
239
+ lru_redux (~> 1.1)
240
+ thor (1.3.1)
241
+ timeout (0.4.1)
242
+ tzinfo (2.0.6)
243
+ concurrent-ruby (~> 1.0)
54
244
  unicode-display_width (2.5.0)
245
+ useragent (0.16.10)
246
+ view_component (3.13.0)
247
+ activesupport (>= 5.2.0, < 8.0)
248
+ concurrent-ruby (~> 1.0)
249
+ method_source (~> 1.0)
250
+ webrick (1.8.1)
251
+ websocket-driver (0.7.6)
252
+ websocket-extensions (>= 0.1.0)
253
+ websocket-extensions (0.1.5)
254
+ zeitwerk (2.6.16)
55
255
 
56
256
  PLATFORMS
57
257
  arm64-darwin-21
258
+ arm64-darwin-23
259
+ x86_64-linux
58
260
 
59
261
  DEPENDENCIES
60
262
  atomic_view!
61
- codelog
263
+ codelog!
62
264
  rake (~> 13.0)
63
265
  rspec (~> 3.0)
64
- rubocop (~> 1.21)
266
+ standard (~> 1.21)
65
267
 
66
268
  BUNDLED WITH
67
269
  2.4.12
data/README.md CHANGED
@@ -4,15 +4,42 @@ Component library built for [Ruby on Rails](https://rubyonrails.org/) with first
4
4
 
5
5
  ## Installation
6
6
 
7
- TODO: Replace `UPDATE_WITH_YOUR_GEM_NAME_PRIOR_TO_RELEASE_TO_RUBYGEMS_ORG` with your gem name right after releasing it to RubyGems.org. Please do not do it earlier due to security reasons. Alternatively, replace this section with instructions to install your gem from git if you don't plan to release to RubyGems.org.
7
+ Install AtomicView from [RubyGems](https://rubygems.org/) by adding it to your `Gemfile`, and then bundling.
8
8
 
9
- Install the gem and add to the application's Gemfile by executing:
9
+ ```ruby
10
+ # Gemfile
11
+ gem "atomic_view"
12
+ ```
10
13
 
11
- $ bundle add UPDATE_WITH_YOUR_GEM_NAME_PRIOR_TO_RELEASE_TO_RUBYGEMS_ORG
14
+ ```shell
15
+ bundle install
16
+ ```
12
17
 
13
- If bundler is not being used to manage dependencies, install the gem by executing:
18
+ In your `tailwind.config.js`, add:
14
19
 
15
- $ gem install UPDATE_WITH_YOUR_GEM_NAME_PRIOR_TO_RELEASE_TO_RUBYGEMS_ORG
20
+ ```js
21
+ const execSync = require("child_process").execSync;
22
+ const atomicViewPath =
23
+ execSync("bundle show atomic_view", { encoding: "utf-8" }).trim() +
24
+ "/lib/atomic_view/components/**/*.{erb,rb}";
25
+
26
+ module.exports = {
27
+ content: [
28
+ // other paths...
29
+ atomicViewPath,
30
+ ],
31
+ };
32
+ ```
33
+
34
+ ## Getting Started
35
+
36
+ There isn't anything to get started on yet!
37
+
38
+ ## Leading principles
39
+
40
+ 1. Work with Ruby on Rails out of the box by supporting ActionView and it's helpers
41
+ 2. Build with accessibility and responsiveness at the forefront
42
+ 3. Provide really good defaults, but allow flexibility with theming and styling
16
43
 
17
44
  ## License
18
45
 
data/Rakefile CHANGED
@@ -5,8 +5,6 @@ require "rspec/core/rake_task"
5
5
 
6
6
  RSpec::Core::RakeTask.new(:spec)
7
7
 
8
- require "rubocop/rake_task"
8
+ require "standard/rake"
9
9
 
10
- RuboCop::RakeTask.new
11
-
12
- task default: %i[spec rubocop]
10
+ task default: %i[spec standard]
data/atomic_view.gemspec CHANGED
@@ -18,12 +18,12 @@ Gem::Specification.new do |spec|
18
18
  "changelog_uri" => "https://github.com/joelzwarrington/atomic_view/blob/master/CHANGELOG.md",
19
19
  "source_code_uri" => "https://github.com/joelzwarrington/atomic_view",
20
20
  "bug_tracker_uri" => "https://github.com/joelzwarrington/atomic_view/issues",
21
- "rubygems_mfa_required" => "true",
21
+ "rubygems_mfa_required" => "true"
22
22
  }
23
23
 
24
24
  spec.files = Dir.chdir(__dir__) do
25
25
  `git ls-files -z`.split("\x0").reject do |f|
26
- (File.expand_path(f) == __FILE__) || f.start_with?(*%w[bin/ test/ spec/ features/ .git .circleci appveyor])
26
+ (File.expand_path(f) == __FILE__) || f.start_with?(*%w[bin/ test/ spec/ lookbook/ .git .circleci appveyor Procfile.dev])
27
27
  end
28
28
  end
29
29
 
@@ -31,5 +31,7 @@ Gem::Specification.new do |spec|
31
31
  spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
32
32
  spec.require_paths = ["lib"]
33
33
 
34
- spec.add_development_dependency "codelog"
34
+ spec.add_dependency "rails", "~> 7.2.0"
35
+ spec.add_dependency "view_component", "~> 3.13"
36
+ spec.add_dependency "tailwind_merge", "~> 0.12"
35
37
  end
@@ -0,0 +1,2 @@
1
+ "Added":
2
+ - Runtime dependencies for ActionView and ViewComponent
@@ -0,0 +1,2 @@
1
+ "Added":
2
+ - Add method to get preview folder path for Lookbook configuration (`AtomicView.preview_folder_path`)
@@ -0,0 +1,3 @@
1
+ "Added":
2
+ - Basic `ButtonComponent` with options `size` and `variant`
3
+ - Railtie to load custom ActionView helpers
@@ -0,0 +1,5 @@
1
+ "Added":
2
+ - Added `tailwind_merge` utility gem
3
+
4
+ "Changed":
5
+ - Updated Ruby version to 3.3.0 from 3.0.3
@@ -0,0 +1,10 @@
1
+ # frozen_string_literal: true
2
+
3
+ module AtomicView
4
+ class Component < ViewComponent::Base
5
+ def class_names(...)
6
+ classes = super
7
+ TailwindMerge::Merger.new.merge(classes)
8
+ end
9
+ end
10
+ end
@@ -0,0 +1,55 @@
1
+ # frozen_string_literal: true
2
+
3
+ module AtomicView
4
+ module Components
5
+ # Button
6
+ class ButtonComponent < Component
7
+ attr_reader :label, :size, :variant
8
+
9
+ def initialize(label_or_options = nil, options = nil)
10
+ super
11
+
12
+ if label_or_options.is_a?(Hash)
13
+ options = label_or_options
14
+ else
15
+ @label = label_or_options
16
+ options ||= {}
17
+ end
18
+
19
+ @variant = options.delete(:variant)
20
+ @size = options.delete(:size) || :md
21
+
22
+ options[:class] = opts_to_class
23
+ @options = options
24
+ end
25
+
26
+ def call
27
+ if content?
28
+ content_tag(:button, @options) { content }
29
+ else
30
+ content_tag(:button, label, @options)
31
+ end
32
+ end
33
+
34
+ private
35
+
36
+ def opts_to_class
37
+ class_names(
38
+ # size
39
+ {
40
+ "rounded px-2.5 py-1.5 text-xs": size == :xs,
41
+ "rounded px-2.5 py-1.5 text-sm": size == :sm,
42
+ "rounded-md px-3 py-2 text-sm": size == :md,
43
+ "rounded-md px-3.5 py-2.5 text-md": size == :lg
44
+ },
45
+ # variant
46
+ {
47
+ "text-white bg-primary shadow-sm ring-1 ring-inset ring-primary-800 hover:bg-primary-800": variant == :primary,
48
+ "text-zinc-900 bg-secondary-50 shadow-sm ring-1 ring-inset ring-secondary-200 hover:bg-secondary-100": variant == :secondary,
49
+ "text-zinc-900 hover:bg-secondary-100": variant == :tertiary
50
+ }
51
+ )
52
+ end
53
+ end
54
+ end
55
+ end
File without changes
@@ -0,0 +1,44 @@
1
+ # frozen_string_literal: true
2
+
3
+ # ButtonComponent
4
+ class ButtonComponentPreview < ViewComponent::Preview
5
+ def default
6
+ render AtomicView::Components::ButtonComponent.new("Click Me")
7
+ end
8
+
9
+ # @!group Sizes
10
+
11
+ def xs
12
+ render AtomicView::Components::ButtonComponent.new("Click Me", size: :xs)
13
+ end
14
+
15
+ def sm
16
+ render AtomicView::Components::ButtonComponent.new("Click Me", size: :sm)
17
+ end
18
+
19
+ def md
20
+ render AtomicView::Components::ButtonComponent.new("Click Me", size: :md)
21
+ end
22
+
23
+ def lg
24
+ render AtomicView::Components::ButtonComponent.new("Click Me", size: :lg)
25
+ end
26
+
27
+ # @!endgroup
28
+
29
+ # @!group Variants
30
+
31
+ def primary
32
+ render AtomicView::Components::ButtonComponent.new("Click Me", variant: :primary)
33
+ end
34
+
35
+ def secondary
36
+ render AtomicView::Components::ButtonComponent.new("Click Me", variant: :secondary)
37
+ end
38
+
39
+ def tertiary
40
+ render AtomicView::Components::ButtonComponent.new("Click Me", variant: :tertiary)
41
+ end
42
+
43
+ # @!endgroup
44
+ end
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ module AtomicView
4
+ module Helpers
5
+ module FormTagHelper
6
+ def button_tag(...)
7
+ render Components::ButtonComponent.new(...)
8
+ end
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,6 @@
1
+ # frozen_string_literal: true
2
+
3
+ module AtomicView
4
+ class Preview < ViewComponent::Preview
5
+ end
6
+ end
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "atomic_view/helpers/form_tag_helper"
4
+
5
+ module AtomicView
6
+ class Railtie < Rails::Railtie
7
+ initializer "atomic_view.helpers" do
8
+ ActiveSupport.on_load(:action_view) { include Helpers::FormTagHelper }
9
+ end
10
+ end
11
+ end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module AtomicView
4
- VERSION = "0.0.1"
4
+ VERSION = "0.0.2"
5
5
  end
data/lib/atomic_view.rb CHANGED
@@ -1,5 +1,20 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require "rails"
4
+ require "view_component"
5
+ require "tailwind_merge"
3
6
  require_relative "atomic_view/version"
7
+ require_relative "atomic_view/component"
8
+ require_relative "atomic_view/components/button_component"
4
9
 
5
- module AtomicView; end
10
+ require_relative "atomic_view/railtie"
11
+
12
+ # Component library built for Ruby on Rails with first-class support for ActionView using ViewComponent.
13
+ module AtomicView
14
+ class << self
15
+ def preview_folder_path
16
+ root_directory = File.dirname(__dir__)
17
+ File.join(root_directory, "lib", "atomic_view", "components", "previews")
18
+ end
19
+ end
20
+ end
metadata CHANGED
@@ -1,29 +1,57 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: atomic_view
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joel Warrington
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-07-08 00:00:00.000000000 Z
11
+ date: 2024-08-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: codelog
14
+ name: rails
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '0'
20
- type: :development
19
+ version: 7.2.0
20
+ type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ">="
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '0'
26
+ version: 7.2.0
27
+ - !ruby/object:Gem::Dependency
28
+ name: view_component
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '3.13'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '3.13'
41
+ - !ruby/object:Gem::Dependency
42
+ name: tailwind_merge
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '0.12'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '0.12'
27
55
  description:
28
56
  email:
29
57
  - joelw@hey.com
@@ -32,7 +60,7 @@ extensions: []
32
60
  extra_rdoc_files: []
33
61
  files:
34
62
  - ".rspec"
35
- - ".rubocop.yml"
63
+ - ".ruby-version"
36
64
  - CHANGELOG.md
37
65
  - Gemfile
38
66
  - Gemfile.lock
@@ -46,9 +74,19 @@ files:
46
74
  - changelogs/releases/0.0.1.md
47
75
  - changelogs/template.yml
48
76
  - changelogs/unreleased/.gitkeep
77
+ - changelogs/unreleased/20240708222803491_deps.yml
78
+ - changelogs/unreleased/20240708223052056_preview.yml
79
+ - changelogs/unreleased/20240709002202127_basic-button.yml
80
+ - changelogs/unreleased/20240709005746060_ruby.yml
49
81
  - lib/atomic_view.rb
82
+ - lib/atomic_view/component.rb
83
+ - lib/atomic_view/components/button_component.rb
84
+ - lib/atomic_view/components/previews/.gitkeep
85
+ - lib/atomic_view/components/previews/button_component_preview.rb
86
+ - lib/atomic_view/helpers/form_tag_helper.rb
87
+ - lib/atomic_view/preview.rb
88
+ - lib/atomic_view/railtie.rb
50
89
  - lib/atomic_view/version.rb
51
- - sig/atomic_view.rbs
52
90
  homepage: https://github.com/joelzwarrington/atomic_view
53
91
  licenses:
54
92
  - MIT
@@ -73,7 +111,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
73
111
  - !ruby/object:Gem::Version
74
112
  version: '0'
75
113
  requirements: []
76
- rubygems_version: 3.2.32
114
+ rubygems_version: 3.5.17
77
115
  signing_key:
78
116
  specification_version: 4
79
117
  summary: Component library built for Ruby on Rails with first-class support for ActionView
data/.rubocop.yml DELETED
@@ -1,13 +0,0 @@
1
- AllCops:
2
- TargetRubyVersion: 2.6
3
-
4
- Style/StringLiterals:
5
- Enabled: true
6
- EnforcedStyle: double_quotes
7
-
8
- Style/StringLiteralsInInterpolation:
9
- Enabled: true
10
- EnforcedStyle: double_quotes
11
-
12
- Layout/LineLength:
13
- Max: 120
data/sig/atomic_view.rbs DELETED
@@ -1,4 +0,0 @@
1
- module AtomicView
2
- VERSION: String
3
- # See the writing guide of rbs: https://github.com/ruby/rbs#guides
4
- end