Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor our namespace being used #4

Merged
merged 1 commit into from
Jul 31, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@

source "https://rubygems.org"

# Specify your gem's dependencies in govuk-forms-markdown-renderer.gemspec
# Specify your gem's dependencies in govuk-forms-markdown.gemspec
gemspec
4 changes: 2 additions & 2 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
govuk-forms-markdown-renderer (0.1.0)
govuk-forms-markdown (0.1.0)
redcarpet (~> 3.6)

GEM
Expand Down Expand Up @@ -87,7 +87,7 @@ PLATFORMS
x86_64-linux

DEPENDENCIES
govuk-forms-markdown-renderer!
govuk-forms-markdown!
rake (~> 13.0)
rspec (~> 3.0)
rubocop-govuk
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@ To install this gem onto your local machine, run `bundle exec rake install`. To

## Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/govuk-forms-markdown-renderer. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/[USERNAME]/govuk-forms-markdown-renderer/blob/main/CODE_OF_CONDUCT.md).
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/govuk-forms-markdown. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/[USERNAME]/govuk-forms-markdown/blob/main/CODE_OF_CONDUCT.md).

## License

The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).

## Code of Conduct

Everyone interacting in the Govuk::Forms::Markdown::Renderer project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/govuk-forms-markdown-renderer/blob/main/CODE_OF_CONDUCT.md).
Everyone interacting in the Govuk::Forms::Markdown::Renderer project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/govuk-forms-markdown/blob/main/CODE_OF_CONDUCT.md).
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
# frozen_string_literal: true

require_relative "lib/govuk/forms/markdown/renderer/version"
require_relative "lib/govuk-forms-markdown/version"

Gem::Specification.new do |spec|
spec.name = "govuk-forms-markdown-renderer"
spec.version = Govuk::Forms::Markdown::Renderer::VERSION
spec.name = "govuk-forms-markdown"
spec.version = GovukFormsMarkdown::VERSION
spec.authors = ["Alistair Laing"]
spec.email = ["aliuk2012@users.noreply.github.com "]

spec.summary = "Custom Markdown renderer for the GOV.UK Forms apps"
spec.description = "This gem renders the limited subset of Markdown syntax supported by GOV.UK Forms."
spec.homepage = "https://github.com/alphagov/govuk-forms-markdown-renderer"
spec.homepage = "https://github.com/alphagov/govuk-forms-markdown"
spec.license = "MIT"
spec.required_ruby_version = ">= 3.0.0"

spec.metadata["allowed_push_host"] = "TODO: Set to your gem server 'https://example.com'"

spec.metadata["homepage_uri"] = spec.homepage
spec.metadata["source_code_uri"] = "https://github.com/alphagov/govuk-forms-markdown-renderer"
spec.metadata["changelog_uri"] = "https://github.com/alphagov/govuk-forms-markdown-renderer/blob/main/CHANGELOG.md"
spec.metadata["source_code_uri"] = "https://github.com/alphagov/govuk-forms-markdown"
spec.metadata["changelog_uri"] = "https://github.com/alphagov/govuk-forms-markdown/blob/main/CHANGELOG.md"

# Specify which files should be added to the gem when it is released.
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
Expand Down
8 changes: 8 additions & 0 deletions lib/govuk-forms-markdown/renderer.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# frozen_string_literal: true

module GovukFormsMarkdown
module Renderer
class Error < StandardError; end
# Your code goes here...
end
end
5 changes: 5 additions & 0 deletions lib/govuk-forms-markdown/version.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# frozen_string_literal: true

module GovukFormsMarkdown
VERSION = "0.1.0"
end
14 changes: 0 additions & 14 deletions lib/govuk/forms/markdown/renderer.rb

This file was deleted.

11 changes: 0 additions & 11 deletions lib/govuk/forms/markdown/renderer/version.rb

This file was deleted.

5 changes: 5 additions & 0 deletions lib/govuk_forms_markdown.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
require_relative "./govuk-forms-markdown/version"
require_relative "./govuk-forms-markdown/renderer"

module GovukFormMarkdown
end
7 changes: 7 additions & 0 deletions spec/govuk-forms-markdown/govuk_forms_markdown_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# frozen_string_literal: true

RSpec.describe GovukFormsMarkdown do
it "has a version number" do
expect(GovukFormsMarkdown::VERSION).not_to be nil
end
end
7 changes: 0 additions & 7 deletions spec/govuk/forms/markdown/renderer_spec.rb

This file was deleted.

2 changes: 1 addition & 1 deletion spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# frozen_string_literal: true

require "govuk/forms/markdown/renderer"
require_relative "./../lib/govuk_forms_markdown"

RSpec.configure do |config|
# Enable flags like --only-failures and --next-failure
Expand Down