custom_email_tracker 0.1.0 → 0.1.2

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: f916ccc3e3827bbcb2584eeaed7e128fd7233de5ef57109276f0b2374cfa5d34
4
+ data.tar.gz: b797b6bf5d54075e84afb800986528d9d7d83059ff56e246c48493d6a05a1705
5
5
  SHA512:
6
- metadata.gz: a2c42e4ef51245c4d8e52bd9856a5aa49ada0fe6339a16c0099cc9af5fd3863fd4927cdb68c5c987376fad98014b96fc59cce5fdb899b52ec4cdd87f3c9dc80e
7
- data.tar.gz: 1012a7702b8f57ee6a83a25ea3825a255349457360cb620c8e388e5bd7f9ebd4d54b8dc7f2410a5a4ffad9798abadca17b76d6516592aa7d1287d262d2f1c058
6
+ metadata.gz: fc2429ca31d9d45d24d96c7caa33fcf3861df194b011c7058299b18ec33a7e1f0053d6eefbb1471102e5e97875988bb9be774762233aa372474a67d0df672546
7
+ data.tar.gz: 3682bf04ea97d33b554c7be5a4115314edc8d5165092c1964763f6e739a02d06b23f26875747ed15d6bb90439d999d049079b346239a5b928ea23c61f8a08387
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', '< 8.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.2"
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.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bharat Bhushan
@@ -17,6 +17,9 @@ dependencies:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '5.0'
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: '8.0'
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -24,6 +27,9 @@ dependencies:
24
27
  - - ">="
25
28
  - !ruby/object:Gem::Version
26
29
  version: '5.0'
30
+ - - "<"
31
+ - !ruby/object:Gem::Version
32
+ version: '8.0'
27
33
  - !ruby/object:Gem::Dependency
28
34
  name: nokogiri
29
35
  requirement: !ruby/object:Gem::Requirement
@@ -52,20 +58,19 @@ files:
52
58
  - LICENSE.txt
53
59
  - README.md
54
60
  - Rakefile
55
- - app/controllers/email_tracker/email_opens_controller.rb
56
- - app/controllers/email_tracker/pixel.png
61
+ - app/controllers/custom_email_tracker/email_opens_controller.rb
62
+ - app/controllers/custom_email_tracker/pixel.png
57
63
  - app/controllers/readme
58
64
  - app/models/tracked_email.rb
59
65
  - app/readme
60
66
  - 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
67
+ - custom_email_tracker.gemspec
68
+ - lib/custom_email_tracker.rb
69
+ - lib/custom_email_tracker/engine.rb
70
+ - lib/custom_email_tracker/railtie.rb
71
+ - lib/custom_email_tracker/tracker.rb
72
+ - lib/custom_email_tracker/version.rb
73
+ - sig/custom_email_tracker.rbs
69
74
  homepage: https://github.com/believebhushan/email_tracker
70
75
  licenses:
71
76
  - 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