Skip to content
This repository has been archived by the owner on Oct 23, 2019. It is now read-only.

Commit

Permalink
Rename to solidus_trackers
Browse files Browse the repository at this point in the history
  • Loading branch information
swively committed Sep 19, 2016
1 parent dcfa714 commit 06281d0
Show file tree
Hide file tree
Showing 15 changed files with 21 additions and 21 deletions.
12 changes: 6 additions & 6 deletions README.md
@@ -1,22 +1,22 @@
SolidusTracker
SolidusTrackers
==============

Introduction goes here.

Installation
------------

Add solidus_tracker to your Gemfile:
Add solidus_trackers to your Gemfile:

```ruby
gem 'solidus_tracker'
gem 'solidus_trackers'
```

Bundle your dependencies and run the installation generator:

```shell
bundle
bundle exec rails g solidus_tracker:install
bundle exec rails g solidus_trackers:install
```

Testing
Expand All @@ -33,8 +33,8 @@ When testing your applications integration with this extension you may use it's
Simply add this require statement to your spec_helper:

```ruby
require 'solidus_tracker/factories'
require 'solidus_trackers/factories'
```

Copyright (c) 2016 [name of extension creator], released under the New BSD License
# solidus_tracker
# solidus_trackers
2 changes: 1 addition & 1 deletion Rakefile
Expand Up @@ -25,6 +25,6 @@ end

desc 'Generates a dummy app for testing'
task :test_app do
ENV['LIB_NAME'] = 'solidus_tracker'
ENV['LIB_NAME'] = 'solidus_trackers'
Rake::Task['extension:test_app'].invoke
end
2 changes: 1 addition & 1 deletion bin/rails
@@ -1,7 +1,7 @@
# This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.

ENGINE_ROOT = File.expand_path('../..', __FILE__)
ENGINE_PATH = File.expand_path('../../lib/solidus_tracker/engine', __FILE__)
ENGINE_PATH = File.expand_path('../../lib/solidus_trackers/engine', __FILE__)

require 'rails/all'
require 'rails/engine/commands'
@@ -1,20 +1,20 @@
module SolidusTracker
module SolidusTrackers
module Generators
class InstallGenerator < Rails::Generators::Base
class_option :auto_run_migrations, type: :boolean, default: false

def add_javascripts
append_file 'vendor/assets/javascripts/spree/frontend/all.js', "//= require spree/frontend/solidus_tracker\n"
append_file 'vendor/assets/javascripts/spree/backend/all.js', "//= require spree/backend/solidus_tracker\n"
append_file 'vendor/assets/javascripts/spree/frontend/all.js', "//= require spree/frontend/solidus_trackers\n"
append_file 'vendor/assets/javascripts/spree/backend/all.js', "//= require spree/backend/solidus_trackers\n"
end

def add_stylesheets
inject_into_file 'vendor/assets/stylesheets/spree/frontend/all.css', " *= require spree/frontend/solidus_tracker\n", before: /\*\//, verbose: true
inject_into_file 'vendor/assets/stylesheets/spree/backend/all.css', " *= require spree/backend/solidus_tracker\n", before: /\*\//, verbose: true
inject_into_file 'vendor/assets/stylesheets/spree/frontend/all.css', " *= require spree/frontend/solidus_trackers\n", before: /\*\//, verbose: true
inject_into_file 'vendor/assets/stylesheets/spree/backend/all.css', " *= require spree/backend/solidus_trackers\n", before: /\*\//, verbose: true
end

def add_migrations
run 'bundle exec rake railties:install:migrations FROM=solidus_tracker'
run 'bundle exec rake railties:install:migrations FROM=solidus_trackers'
end

def run_migrations
Expand Down
2 changes: 0 additions & 2 deletions lib/solidus_tracker.rb

This file was deleted.

2 changes: 2 additions & 0 deletions lib/solidus_trackers.rb
@@ -0,0 +1,2 @@
require 'solidus_core'
require 'solidus_trackers/engine'
Expand Up @@ -2,7 +2,7 @@ module SolidusTracker
class Engine < Rails::Engine
require 'spree/core'
isolate_namespace Spree
engine_name 'solidus_tracker'
engine_name 'solidus_trackers'

# use rspec for tests
config.generators do |g|
Expand Down
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions solidus_tracker.gemspec → solidus_trackers.gemspec
@@ -1,9 +1,9 @@
# encoding: UTF-8
$:.push File.expand_path('../lib', __FILE__)
require 'solidus_tracker/version'
require 'solidus_trackers/version'

Gem::Specification.new do |s|
s.name = 'solidus_tracker'
s.name = 'solidus_trackers'
s.version = SolidusTracker::VERSION
s.summary = 'Provides analytic trackers for solidus'
s.description = 'Breaking out trackers from solidus core'
Expand Down
4 changes: 2 additions & 2 deletions spec/spec_helper.rb
Expand Up @@ -32,8 +32,8 @@

require 'cancan/matchers'

# Requires factories defined in lib/solidus_tracker/factories.rb
require 'solidus_tracker/factories'
# Requires factories defined in lib/solidus_trackers/factories.rb
require 'solidus_trackers/factories'

RSpec.configure do |config|
config.include FactoryGirl::Syntax::Methods
Expand Down

0 comments on commit 06281d0

Please sign in to comment.