Skip to content

Commit

Permalink
Refactor project structure: rename namespaces and adjust file paths f…
Browse files Browse the repository at this point in the history
…or consistency.
  • Loading branch information
betogrun committed Nov 1, 2024
1 parent ba666d2 commit 8960f63
Show file tree
Hide file tree
Showing 10 changed files with 34 additions and 33 deletions.
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"

0 comments on commit 8960f63

Please sign in to comment.