smartfocus4rails 1.0.1 → 1.0.2

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
  SHA1:
3
- metadata.gz: 1bbf5abcc093fcc8d7f00db3943f8d4bab600856
4
- data.tar.gz: 3abff1b4a12525b2a0f3c0e1cac17fea869fb19f
3
+ metadata.gz: 2143bc73bcdeb48732a939440fdd3cb3224dc752
4
+ data.tar.gz: 301c6d1ec23696ac1103dbc0c26285b9f8e95775
5
5
  SHA512:
6
- metadata.gz: aa2d30cf14952d0fb722f8dcdaf2eb78c50be97f5191ccf8af7d1492e2fe50378ec93544fecc37f5bbbb38edd3ff4e5f06881aee2e38b7e3906358e9fbb48c9c
7
- data.tar.gz: 52b2f350cd467b5997ad1ffab3b850dacfa7c2434d51c5e3319b8fd2f13c1a2b096c68fea37696a38f1e03598c98772d07af0f69de3c07e33d1c4a53ec02bb51
6
+ metadata.gz: 0396b73ac0086ecfacd59820af122ad1e8ad58a6cf9bdec6e4471dd41558726cc3eba857a056489b1ec1bd1cb3e98f48264178c5a81e9097aee9780fba0d8796
7
+ data.tar.gz: 82dd888aef4217c844a4010b7b0c66976335d2fc0d3e83600a6d7655a7fc9bcc6ddbcbe2042cdaa56544b36ed4e431b2ebf1a5df8680ec79ce4a96a0323945b1
data/Gemfile CHANGED
@@ -5,7 +5,7 @@ gemspec
5
5
  group :test do
6
6
  gem "capybara", ">= 0.4.0"
7
7
  gem "rake" # Required by Travis
8
- gem "rails", ">= 3.2", "<= 4.0"
8
+ gem "rails", ">= 3.2"
9
9
  end
10
10
 
11
11
  group :development do
data/README.md CHANGED
@@ -4,11 +4,14 @@ Smartfocus ruby on rails library
4
4
  Smartfocus4rails is a library used to manage messages and campaigns or more simply newsletters from your rails application.
5
5
 
6
6
  [![Build Status](https://secure.travis-ci.org/eboutic/smartfocus4rails.png)](http://travis-ci.org/eboutic/smartfocus4rails)
7
+ [![Code Climate](https://codeclimate.com/github/eboutic/smartfocus4rails.png)](https://codeclimate.com/github/eboutic/smartfocus4rails)
8
+ [![Coverage Status](https://coveralls.io/repos/eboutic/smartfocus4rails/badge.png)](https://coveralls.io/r/eboutic/smartfocus4rails)
9
+ [![Dependency Status](https://gemnasium.com/eboutic/smartfocus4rails.png)](https://gemnasium.com/eboutic/smartfocus4rails)
7
10
 
8
11
  IMPORTANT
9
12
  ---------
10
13
 
11
- This is the official forked gem from https://github.com/basgys/emailvision4rails
14
+ This is forked gem from https://github.com/basgys/emailvision4rails
12
15
  Bastien Gysler is the creator of this gem.
13
16
  The gem was rename to reflect the rename from emvailvision to smartfocus
14
17
 
@@ -92,15 +92,19 @@ class Smartfocus4rails::Message < Smartfocus4rails::Base
92
92
  api.get.url.create_and_add_mirror_url(uri: [id, 'mirror_url']).call
93
93
  end
94
94
 
95
- # Replaces the first occurrence of &&& with
96
- # [EMV LINK]ORDER[EMV /LINK] (where ORDER is the action link order number).
97
- # Parameters :
98
- # - name : The name of the URL
99
- # - action : The action to perform
100
- def create_and_add_action_url(name, action)
101
- api.get.url.create_and_add_action_url(uri: [id, name, action, 'a', 1, 'b', 2]).call # Last 4 params hardcoded because of an API bug
102
- end
103
-
95
+ # Replaces the first occurrence of &&& with
96
+ # [EMV LINK]ORDER[EMV /LINK] (where ORDER is the action link order number).
97
+ # Parameters :
98
+ # - name : The name of the URL
99
+ # - action : The action to perform
100
+ # - page_ok : The URL to call if the action was successful
101
+ # - message_ok : The message to display if the action was successful
102
+ # - page_error : The URL to call if the action was unsuccessful
103
+ # - message_error : The message to display if the action was unsuccessful
104
+ # Last 4 params is not require, but due to an API bug it must be present and must be an existing bounceback message id (eg: message with syntaxic error)
105
+ def create_and_add_action_url(name, action, page_ok, message_ok, page_error, message_error)
106
+ api.get.url.create_and_add_action_url(uri: [id, name, action, page_ok, message_ok, page_error, message_error]).call
107
+ end
104
108
 
105
109
  # Replaces the first occurrence of &&& with [EMV SHARE lang=xx]
106
110
  # Parameters :
@@ -1,3 +1,3 @@
1
1
  module Smartfocus4rails
2
- Version = VERSION = '1.0.1'
2
+ Version = VERSION = '1.0.2'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: smartfocus4rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bastien Gysler
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-11-14 00:00:00.000000000 Z
12
+ date: 2013-11-15 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: smartfocus