email-opened 0.0.14 → 0.0.15
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.
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
#
|
1
|
+
# EmailOpened
|
2
2
|
|
3
3
|
TODO: Write a gem description
|
4
4
|
|
@@ -6,7 +6,7 @@ TODO: Write a gem description
|
|
6
6
|
|
7
7
|
Add this line to your application's Gemfile:
|
8
8
|
|
9
|
-
gem '
|
9
|
+
gem 'email-opened'
|
10
10
|
|
11
11
|
And then execute:
|
12
12
|
|
@@ -14,7 +14,7 @@ And then execute:
|
|
14
14
|
|
15
15
|
Or install it yourself as:
|
16
16
|
|
17
|
-
$ gem install
|
17
|
+
$ gem install email-opened
|
18
18
|
|
19
19
|
## Usage
|
20
20
|
|
Binary file
|
@@ -1,19 +1,19 @@
|
|
1
1
|
# coding: utf-8
|
2
2
|
lib = File.expand_path('../lib', __FILE__)
|
3
3
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
-
require '
|
4
|
+
require 'email-opened/version'
|
5
5
|
|
6
6
|
Gem::Specification.new do |spec|
|
7
7
|
spec.name = "email-opened"
|
8
8
|
spec.version = EmailOpened::VERSION
|
9
9
|
spec.authors = ["Dallas Read"]
|
10
|
-
spec.email = ["dallas@
|
10
|
+
spec.email = ["dallas@email-opened.com"]
|
11
11
|
spec.description = "Interact with EmailOpened.com"
|
12
12
|
spec.summary = "Interact with EmailOpened.com"
|
13
13
|
spec.homepage = ""
|
14
14
|
spec.license = "MIT"
|
15
15
|
|
16
|
-
spec.files = `git ls-files`.split(
|
16
|
+
spec.files = `git ls-files`.split("\n")
|
17
17
|
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
18
18
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
19
|
spec.require_paths = ["lib"]
|
@@ -1,4 +1,4 @@
|
|
1
|
-
require "
|
1
|
+
require "email-opened/version"
|
2
2
|
|
3
3
|
class EmailOpened
|
4
4
|
def initialize(api_key, version = 1, sandbox = false)
|
@@ -11,7 +11,7 @@ class EmailOpened
|
|
11
11
|
{
|
12
12
|
"Authorization" => "Token token=\"#{@eo_api_key}\"",
|
13
13
|
"Content-Type" => "application/json",
|
14
|
-
"Accept" => "application/vnd.
|
14
|
+
"Accept" => "application/vnd.email-opened.v#{@eo_version}"
|
15
15
|
}
|
16
16
|
end
|
17
17
|
|
@@ -39,11 +39,11 @@ class EmailOpened
|
|
39
39
|
if @eo_sandbox == "development"
|
40
40
|
"http://localhost:3000/api/"
|
41
41
|
elsif @eo_sandbox == "edge"
|
42
|
-
"http://edge.
|
42
|
+
"http://edge.email-opened.com/api/"
|
43
43
|
elsif @eo_sandbox == "staging"
|
44
|
-
"http://staging.
|
44
|
+
"http://staging.email-opened.com/api/"
|
45
45
|
else
|
46
|
-
"https://app.
|
46
|
+
"https://app.email-opened.com/api/"
|
47
47
|
end
|
48
48
|
end
|
49
49
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: email-opened
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.15
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -45,7 +45,7 @@ dependencies:
|
|
45
45
|
version: '0'
|
46
46
|
description: Interact with EmailOpened.com
|
47
47
|
email:
|
48
|
-
- dallas@
|
48
|
+
- dallas@email-opened.com
|
49
49
|
executables: []
|
50
50
|
extensions: []
|
51
51
|
extra_rdoc_files: []
|
@@ -55,9 +55,10 @@ files:
|
|
55
55
|
- LICENSE.txt
|
56
56
|
- README.md
|
57
57
|
- Rakefile
|
58
|
-
-
|
59
|
-
-
|
60
|
-
- lib/
|
58
|
+
- email-opened-0.0.14.gem
|
59
|
+
- email-opened.gemspec
|
60
|
+
- lib/email-opened.rb
|
61
|
+
- lib/email-opened/version.rb
|
61
62
|
homepage: ''
|
62
63
|
licenses:
|
63
64
|
- MIT
|