Skip to content

Commit

Permalink
Update and release 1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredcwhite committed Mar 7, 2022
1 parent 339b669 commit 285430b
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 10 deletions.
8 changes: 5 additions & 3 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,21 @@ inherit_gem:
rubocop-bridgetown: .rubocop.yml

AllCops:
TargetRubyVersion: 2.5
Include:
- lib/**/*.rb
TargetRubyVersion: 2.7

Exclude:
- .gitignore
- .rspec
- .rubocop.yml

- "*.gemspec"
- Gemfile.lock
- CHANGELOG.md
- LICENSE.txt
- README.md
- Rakefile

- components/**/*
- script/**/*
- spec/**/*
- vendor/**/*
12 changes: 6 additions & 6 deletions bridgetown-view-component.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@ Gem::Specification.new do |spec|
spec.test_files = spec.files.grep(%r!^spec/!)
spec.require_paths = ["lib"]

spec.required_ruby_version = ">= 2.5.0"
spec.required_ruby_version = ">= 2.7.0"

spec.add_dependency "bridgetown", ">= 0.21.0", "< 2.0"
spec.add_dependency "view_component", ">= 2.32"
spec.add_dependency "actionview", "~> 6.0"
spec.add_dependency "bridgetown", ">= 1.0.0.beta3", "< 2.0"
spec.add_dependency "view_component", ">= 2.49"
spec.add_dependency "actionview", ">= 6.0"

spec.add_development_dependency "bundler"
spec.add_development_dependency "nokogiri", "~> 1.6"
spec.add_development_dependency "rake", "~> 12.0"
spec.add_development_dependency "rake", "~> 13.0"
spec.add_development_dependency "rspec", "~> 3.0"
spec.add_development_dependency "rubocop-bridgetown", "~> 0.2"
spec.add_development_dependency "rubocop-bridgetown", "~> 0.3"
end
5 changes: 5 additions & 0 deletions lib/bridgetown-view-component.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ def self.version
ActionView.version.to_s
end

module VERSION
MAJOR = Rails.version.split(".")[0].to_i
MINOR = Rails.version.split(".")[1].to_i
end

def self.application
@application ||= HashWithDotAccess::Hash.new({
routes: { url_helpers: UrlHelpers },
Expand Down
2 changes: 1 addition & 1 deletion lib/bridgetown-view-component/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

module Bridgetown
module ViewComponent
VERSION = "0.7.0"
VERSION = "1.0.0"
end
end

0 comments on commit 285430b

Please sign in to comment.