custom_email_tracker 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 951499be77f0ab505e047cf8e284807d92424a4e521f8f17a2ebe6e71f542f63
4
- data.tar.gz: 8d948b9c8bf7fe0c86f491929c738d33c3a415e25dd1d7efe5ec71b7fbeb196b
3
+ metadata.gz: 71a1ea15eaf00786a0432160dcc4165f46228bdc21272c68d0a64afffc9aded8
4
+ data.tar.gz: 7e481111f6feb30aa0c8606d5a66daa08007ec27b2c9159504638663c2908494
5
5
  SHA512:
6
- metadata.gz: a2c42e4ef51245c4d8e52bd9856a5aa49ada0fe6339a16c0099cc9af5fd3863fd4927cdb68c5c987376fad98014b96fc59cce5fdb899b52ec4cdd87f3c9dc80e
7
- data.tar.gz: 1012a7702b8f57ee6a83a25ea3825a255349457360cb620c8e388e5bd7f9ebd4d54b8dc7f2410a5a4ffad9798abadca17b76d6516592aa7d1287d262d2f1c058
6
+ metadata.gz: 0fb561ff0a8fbe22fab7e4d2b86ee1bba905da82391f69e1e0db67c091db480250bd61e40fb2345616d81a39230219bda80b15e12cb823c33c1d9255999132e4
7
+ data.tar.gz: 42b125aeff1281b368c298cfd09c23828f9a7614699900c5313e390384ed66dc7c4fec36513006542f48d9601e6a2b6941873434551ea5a07ffb84d6fb917595
data/README.md CHANGED
@@ -1,8 +1,8 @@
1
- # EmailTracker
1
+ # CustomEmailTracker
2
2
 
3
3
  TODO: Delete this and the text below, and describe your gem
4
4
 
5
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/email_tracker`. To experiment with that code, run `bin/console` for an interactive prompt.
5
+ Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/custom_email_tracker`. To experiment with that code, run `bin/console` for an interactive prompt.
6
6
 
7
7
  ## Installation
8
8
 
@@ -28,7 +28,7 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
28
28
 
29
29
  ## Contributing
30
30
 
31
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/email_tracker. 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]/email_tracker/blob/master/CODE_OF_CONDUCT.md).
31
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/custom_email_tracker. 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]/custom_email_tracker/blob/master/CODE_OF_CONDUCT.md).
32
32
 
33
33
  ## License
34
34
 
@@ -36,4 +36,4 @@ The gem is available as open source under the terms of the [MIT License](https:/
36
36
 
37
37
  ## Code of Conduct
38
38
 
39
- Everyone interacting in the EmailTracker project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/email_tracker/blob/master/CODE_OF_CONDUCT.md).
39
+ Everyone interacting in the CustomEmailTracker project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/custom_email_tracker/blob/master/CODE_OF_CONDUCT.md).
@@ -1,4 +1,4 @@
1
- module EmailTracker
1
+ module CustomEmailTracker
2
2
  class EmailOpensController < ActionController::Base
3
3
  def track_open
4
4
  token = params[:token]
data/config/routes.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  Rails.application.routes.draw do
2
- get '/email_open_tracker/:token', to: 'email_tracker/email_opens#track_open', as: :email_open_tracker
2
+ get '/email_open_tracker/:token', to: 'custom_email_tracker/email_opens#track_open', as: :email_open_tracker
3
3
  end
@@ -1,10 +1,10 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require_relative "lib/email_tracker/version"
3
+ require_relative "lib/custom_email_tracker/version"
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = "custom_email_tracker"
7
- spec.version = EmailTracker::VERSION
7
+ spec.version = CustomEmailTracker::VERSION
8
8
  spec.authors = ["Bharat Bhushan"]
9
9
  spec.email = ["mechathrust@gmail.com"] # Replace with your email
10
10
 
@@ -33,6 +33,6 @@ Gem::Specification.new do |spec|
33
33
  spec.require_paths = ["lib"]
34
34
 
35
35
  # Add dependencies for the gem
36
- spec.add_dependency "rails", ">= 5.0"
36
+ spec.add_dependency 'rails', '~> 5.0'
37
37
  spec.add_dependency "nokogiri", ">= 1.11" # For parsing and modifying email HTML content
38
38
  end
@@ -0,0 +1,4 @@
1
+ # lib/custom_email_tracker/engine.rb
2
+ module CustomEmailTracker
3
+ class Engine < Rails::Engine; end
4
+ end
@@ -0,0 +1,15 @@
1
+ module CustomEmailTracker
2
+ class Railtie < Rails::Railtie
3
+ initializer "custom_email_tracker.action_controller" do
4
+ ActiveSupport.on_load(:action_controller) do
5
+ include CustomEmailTracker::Tracker
6
+ end
7
+ end
8
+
9
+ initializer "custom_email_tracker.routes" do
10
+ Rails.application.routes.append do
11
+ get 'email_open_tracker/:token', to: 'custom_email_tracker/email_opens#track_open', as: :email_open_tracker
12
+ end
13
+ end
14
+ end
15
+ end
@@ -1,4 +1,4 @@
1
- module EmailTracker
1
+ module CustomEmailTracker
2
2
  module Tracker
3
3
 
4
4
  end
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module CustomEmailTracker
4
+ VERSION = "0.1.1"
5
+ end
@@ -1,8 +1,8 @@
1
- require "email_tracker/version"
2
- require "email_tracker/tracker"
3
- require 'email_tracker/engine'
1
+ require "custom_email_tracker/version"
2
+ require "custom_email_tracker/tracker"
3
+ require 'custom_email_tracker/engine'
4
4
 
5
- module EmailTracker
5
+ module CustomEmailTracker
6
6
 
7
7
  class MigrationCreator
8
8
  def self.create_migration_file
@@ -1,4 +1,4 @@
1
- module EmailTracker
1
+ module CustomEmailTracker
2
2
  VERSION: String
3
3
  # See the writing guide of rbs: https://github.com/ruby/rbs#guides
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: custom_email_tracker
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bharat Bhushan
@@ -14,14 +14,14 @@ dependencies:
14
14
  name: rails
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
19
  version: '5.0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ">="
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '5.0'
27
27
  - !ruby/object:Gem::Dependency
@@ -52,20 +52,19 @@ files:
52
52
  - LICENSE.txt
53
53
  - README.md
54
54
  - Rakefile
55
- - app/controllers/email_tracker/email_opens_controller.rb
56
- - app/controllers/email_tracker/pixel.png
55
+ - app/controllers/custom_email_tracker/email_opens_controller.rb
56
+ - app/controllers/custom_email_tracker/pixel.png
57
57
  - app/controllers/readme
58
58
  - app/models/tracked_email.rb
59
59
  - app/readme
60
60
  - config/routes.rb
61
- - email_tracker.gem
62
- - email_tracker.gemspec
63
- - lib/email_tracker.rb
64
- - lib/email_tracker/engine.rb
65
- - lib/email_tracker/railtie.rb
66
- - lib/email_tracker/tracker.rb
67
- - lib/email_tracker/version.rb
68
- - sig/email_tracker.rbs
61
+ - custom_email_tracker.gemspec
62
+ - lib/custom_email_tracker.rb
63
+ - lib/custom_email_tracker/engine.rb
64
+ - lib/custom_email_tracker/railtie.rb
65
+ - lib/custom_email_tracker/tracker.rb
66
+ - lib/custom_email_tracker/version.rb
67
+ - sig/custom_email_tracker.rbs
69
68
  homepage: https://github.com/believebhushan/email_tracker
70
69
  licenses:
71
70
  - MIT
data/email_tracker.gem DELETED
Binary file
@@ -1,4 +0,0 @@
1
- # lib/email_tracker/engine.rb
2
- module EmailTracker
3
- class Engine < Rails::Engine; end
4
- end
@@ -1,15 +0,0 @@
1
- module EmailTracker
2
- class Railtie < Rails::Railtie
3
- initializer "email_tracker.action_controller" do
4
- ActiveSupport.on_load(:action_controller) do
5
- include EmailTracker::Tracker
6
- end
7
- end
8
-
9
- initializer "email_tracker.routes" do
10
- Rails.application.routes.append do
11
- get 'email_open_tracker/:token', to: 'email_tracker/email_opens#track_open', as: :email_open_tracker
12
- end
13
- end
14
- end
15
- end
@@ -1,5 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module EmailTracker
4
- VERSION = "0.1.0"
5
- end