po_box 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4a96717f6fc9f8aee68cbf574b60c2da573d7693a1173279a84b16e1a1666d38
4
- data.tar.gz: b5b7dcb9dcea500041f806517edc8ece9cdc18af18241900ce28adc43dd525de
3
+ metadata.gz: 0b10bd76b362d28e5cc7d9c09eda401a900209a05637ba7ff6155228c08e18b9
4
+ data.tar.gz: 5bbe38a406dfd5635b322ca98838e2f58cfe7e556f0dd19629daa5021c541086
5
5
  SHA512:
6
- metadata.gz: 5522631b60e572e57049274c7c730d257c44eb94d0ef900b528c628329dfd0ac68e0ea166be00c8773ae3c9d3c46693c6336971881205553228760259a637b9e
7
- data.tar.gz: d6209dc03e50daa7ff937fee1ae5b39075a4a54b7215a7e80ec9290b9502864f5e1fc341e0a3585eacdfa7d9baa7de34ee8c644032a4627c337ff649ed96fede
6
+ metadata.gz: d59fc6330e0dab345da2e9c7281036138965239a8d1a8a560f274caeaba48da76031c182068dfe888541f6eefee2954142a00144c686406383d3eaaf2be4f9f8
7
+ data.tar.gz: d3512b157ab338591529e9de8a4036df12fa58db8697206b6d94ec5795364caeca313469e81d2441ea77c222b648d859fb2594b1ccee938c023608d675cb8d98
data/README.md CHANGED
@@ -4,8 +4,8 @@ PoBox is a Ruby on Rails engine that provides inboxes and email addresses for yo
4
4
 
5
5
  ## Requirements
6
6
 
7
- 1. [ActiveStorage](https://edgeguides.rubyonrails.org/active_storage_overview.html) needs to be installed and configured.
8
- 2. [ActionMailbox](https://edgeguides.rubyonrails.org/action_mailbox_basics.html) needs to be installed and configured.
7
+ 1. [ActiveStorage](https://edgeguides.rubyonrails.org/active_storage_overview.html) needs to be configured.
8
+ 2. [ActionMailbox](https://edgeguides.rubyonrails.org/action_mailbox_basics.html) needs to be configured.
9
9
  3. A model that the inbox and emails will be associated with needs to exist in the host application. e.g. `User` or `Account`.
10
10
 
11
11
  ## Installation
@@ -33,7 +33,7 @@ $ gem install po_box
33
33
  **IMPORTANT:** Make sure you have ActiveStorage and ActionMailbox installed and configured.
34
34
 
35
35
  1. `bin/rails po_box:install:migrations`
36
- 2. `bin/rails g po_box emailable_model` (where `emailable_model` is the name of the model you want to make emailable, e.g. `user`)
36
+ 2. `bin/rails g po_box emailable_model` (where `emailable_model` is the name of the model in your application you want to associate inboxes and email addresses to, e.g. `user`)
37
37
  3. `bin/rails db:migrate`
38
38
  4. `bin/rails po_box:backfill_emailables`
39
39
 
@@ -50,7 +50,7 @@ Send the email to the address that is associated with the emailable model. e.g.
50
50
  ```ruby
51
51
  User.inboxes.first.address
52
52
 
53
- # => "some#64b0@yourapp"
53
+ # => "some#64b0@yourapp.com"
54
54
  ```
55
55
 
56
56
  <!-- If your emailable_class is a User -->
@@ -52,7 +52,7 @@ module PoBox
52
52
  def set_inbox
53
53
  @inbox = Inbox.find(params[:inbox_id])
54
54
  rescue ActiveRecord::RecordNotFound
55
- redirect_to po_box_inboxes_path, notice: "Inbox not found"
55
+ redirect_to inboxes_path, notice: "Inbox not found"
56
56
  end
57
57
 
58
58
  # Use callbacks to share common setup or constraints between actions.
@@ -48,7 +48,7 @@ module PoBox
48
48
  def set_inbox
49
49
  @inbox = Inbox.find(params[:id])
50
50
  rescue ActiveRecord::RecordNotFound
51
- redirect_to po_box_inboxes_path, notice: "Inbox not found"
51
+ redirect_to inboxes_path, notice: "Inbox not found"
52
52
  end
53
53
  end
54
54
  end
@@ -1,3 +1,3 @@
1
1
  module PoBox
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: po_box
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
  - Leo Policastro