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
@@ -1,6 +1,6 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
- # Specify your gem's dependencies in emailopened.gemspec
3
+ # Specify your gem's dependencies in email-opened.gemspec
4
4
  gemspec
5
5
 
6
6
  gem 'rest-client'
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Emailopened
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 'emailopened'
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 emailopened
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 'emailopened/version'
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@emailopened.com"]
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,3 +1,3 @@
1
1
  module EmailOpened
2
- VERSION = "0.0.14"
2
+ VERSION = "0.0.15"
3
3
  end
@@ -1,4 +1,4 @@
1
- require "emailopened/version"
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.emailopened.v#{@eo_version}"
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.emailopened.com/api/"
42
+ "http://edge.email-opened.com/api/"
43
43
  elsif @eo_sandbox == "staging"
44
- "http://staging.emailopened.com/api/"
44
+ "http://staging.email-opened.com/api/"
45
45
  else
46
- "https://app.emailopened.com/api/"
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.14
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@emailopened.com
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
- - emailopened.gemspec
59
- - lib/emailopened.rb
60
- - lib/emailopened/version.rb
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