Skip to content

Commit

Permalink
Merge pull request #6 from NgariNdungu/fix-naming
Browse files Browse the repository at this point in the history
rename project
  • Loading branch information
NgariNdungu authored Nov 2, 2020
2 parents 4bc89e6 + 2796ca1 commit 1e5a53c
Show file tree
Hide file tree
Showing 12 changed files with 33 additions and 29 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

source 'https://rubygems.org'

# Specify your gem's dependencies in active_interaction_rails.gemspec
# Specify your gem's dependencies in active_interaction-rails.gemspec
gemspec

gem 'rake', '~> 12.0'
Expand Down
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:
active_interaction_rails (0.1.0)
active_interaction-rails (0.1.0)

GEM
remote: https://rubygems.org/
Expand Down Expand Up @@ -69,7 +69,7 @@ PLATFORMS
ruby

DEPENDENCIES
active_interaction_rails!
active_interaction-rails!
guard-minitest
guard-rubocop
minitest (~> 5.0)
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ This gem adds a rails generator for `active_interaction`.
Add this line to your application's Gemfile:

```ruby
gem 'active_interaction_rails'
gem 'active_interaction-rails'
```

And then execute:
Expand All @@ -18,7 +18,7 @@ And then execute:

Or install it yourself as:

$ gem install active_interaction_rails
$ gem install active_interaction-rails

## Usage

Expand All @@ -45,5 +45,5 @@ docker-compose run air bash

## Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/NgariNdungu/active_interaction_rails.
Bug reports and pull requests are welcome on GitHub at https://github.com/NgariNdungu/active_interaction-rails.

Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
# frozen_string_literal: true

require_relative 'lib/active_interaction_rails/version'
require_relative 'lib/active_interaction/rails/version'

Gem::Specification.new do |spec|
spec.name = 'active_interaction_rails'
spec.version = ActiveInteractionRails::VERSION
spec.name = 'active_interaction-rails'
spec.version = ActiveInteraction::Rails::VERSION
spec.authors = ["Ngari Ndung'u", 'Tom Nyongesa']
spec.email = ['ngari.ndungu@gmail.com', 'tomnyngesa5@gmail.com']

spec.summary = 'Adds a rails generator for active_interaction.'
spec.homepage = 'https://github.com/NgariNdungu/active_interaction_rails'
spec.homepage = 'https://github.com/NgariNdungu/active_interaction-rails'
spec.required_ruby_version = '>= 2.4'

spec.metadata['homepage_uri'] = spec.homepage
Expand Down
2 changes: 1 addition & 1 deletion bin/console
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# frozen_string_literal: true

require 'bundler/setup'
require 'active_interaction_rails'
require 'active_interaction/rails'

# You can add fixtures and/or initialization code here to make experimenting
# with your gem easier. You can also use a different console, if you like.
Expand Down
4 changes: 2 additions & 2 deletions dev/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ services:
image: ngarindungu/rails-dev
entrypoint: ["/bin/bash", "dev/entrypoint.sh"]
command: "bundle exec rake"
working_dir: /home/dev/active_interaction_rails
working_dir: /home/dev/active_interaction-rails
volumes:
- ../:/home/dev/active_interaction_rails
- ../:/home/dev/active_interaction-rails
- bundle:/usr/local/bundle

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

require 'active_interaction/rails/version'

module ActiveInteraction
module Rails
class Error < StandardError; end
# Your code goes here...
end
end
7 changes: 7 additions & 0 deletions lib/active_interaction/rails/version.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# frozen_string_literal: true

module ActiveInteraction
module Rails
VERSION = '0.1.0'
end
end
8 changes: 0 additions & 8 deletions lib/active_interaction_rails.rb

This file was deleted.

5 changes: 0 additions & 5 deletions lib/active_interaction_rails/version.rb

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

require 'test_helper'

class ActiveInteractionRailsTest < Minitest::Test
class ActiveInteraction::RailsTest < Minitest::Test # rubocop:disable Style/ClassAndModuleChildren
def test_that_it_has_a_version_number
refute_nil ::ActiveInteractionRails::VERSION
refute_nil ::ActiveInteraction::Rails::VERSION
end

def test_it_does_something_useful
Expand Down
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 'active_interaction_rails'
require 'active_interaction/rails'

require 'minitest/autorun'

0 comments on commit 1e5a53c

Please sign in to comment.