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 project structure: rename namespaces and adjust file paths for consistency. #2

Merged
merged 1 commit into from
Nov 4, 2024
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
7 changes: 7 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,10 @@ Style/StringLiterals:

Style/StringLiteralsInInterpolation:
EnforcedStyle: double_quotes

Style/Documentation:
Enabled: false

Naming/FileName:
Exclude:
- 'lib/electionbuddy-ruby.rb'
4 changes: 2 additions & 2 deletions electionbuddy-ruby.gemspec
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# frozen_string_literal: true

require_relative "lib/electionbuddy/ruby/version"
require_relative "lib/election_buddy/version"

Gem::Specification.new do |spec|
spec.name = "electionbuddy-ruby"
spec.version = Electionbuddy::Ruby::VERSION
spec.version = ElectionBuddy::VERSION
spec.authors = ["Alberto Rocha", "Henrique Lavezzo"]
spec.email = ["[email protected]"]

Expand Down
5 changes: 5 additions & 0 deletions lib/election_buddy.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# frozen_string_literal: true

module ElectionBuddy
require "election_buddy/version"
end
5 changes: 5 additions & 0 deletions lib/election_buddy/version.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# frozen_string_literal: true

module ElectionBuddy
VERSION = "0.1.0"
end
3 changes: 3 additions & 0 deletions lib/electionbuddy-ruby.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# frozen_string_literal: true

require "election_buddy"
10 changes: 0 additions & 10 deletions lib/electionbuddy/ruby.rb

This file was deleted.

7 changes: 0 additions & 7 deletions lib/electionbuddy/ruby/version.rb

This file was deleted.

11 changes: 11 additions & 0 deletions test/election_buddy/version_test.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# frozen_string_literal: true

require "test_helper"

module ElectionBuddy
class VersionTest < Minitest::Test
def test_that_it_has_a_version_number
refute_nil ::ElectionBuddy::VERSION
end
end
end
13 changes: 0 additions & 13 deletions test/electionbuddy/test_ruby.rb

This file was deleted.

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

$LOAD_PATH.unshift File.expand_path("../lib", __dir__)
require "electionbuddy/ruby"
require "election_buddy"

require "minitest/autorun"