mailing_client 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -3,7 +3,7 @@ module Mailing
3
3
  class ScheduledMail < LogicalModel
4
4
  include MailingClient::ServiceConfiguration
5
5
 
6
- set_resource_path '/scheduled_mails'
6
+ set_resource_path '/api/v0/scheduled_mails'
7
7
 
8
8
  attribute :recipient_email # The person who is receiving the email
9
9
  attribute :send_at # When the email has been sent or will be sent
@@ -11,6 +11,10 @@ module Mailing
11
11
  attribute :contact_id # The padma-contact id
12
12
  attribute :username # The username who sends the mail
13
13
  attribute :template_name # The template name
14
+
15
+ self.use_api_key = true
16
+ self.api_key_name = "app_key"
17
+ self.api_key = Mailing::API_KEY
14
18
 
15
19
  end
16
20
  end
@@ -3,9 +3,9 @@ Mailing::HOST = case Rails.env
3
3
  when "production"
4
4
  "padma-mailing.herokuapp.com"
5
5
  when "development"
6
- "localhost:3004"
6
+ "localhost:3020"
7
7
  when "staging"
8
8
  "padma-mailing-staging.herokuapp.com"
9
9
  when "test"
10
- "localhost:3004"
10
+ "localhost:3020"
11
11
  end
@@ -2,9 +2,9 @@ module MailingClient
2
2
  module ServiceConfiguration
3
3
  def self.included(base)
4
4
  base.send('use_hydra', Mailing::HYDRA)
5
- base.send('force_ssl')
5
+ #base.send('force_ssl')
6
6
  base.send('set_resource_host', Mailing::HOST)
7
- base.send('configure_index_response', {collection: 'data', total: 'total'})
7
+ base.send('configure_index_response', {collection: 'collection', total: 'total'})
8
8
  end
9
9
  end
10
10
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mailing_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-06-24 00:00:00.000000000 Z
12
+ date: 2013-07-07 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: railties