]> git.ipfire.org Git - thirdparty/foundation/foundation-emails.git/commitdiff
rework gem namespacing - Foundation::Emails is now FoundationEmails; improve gemspec...
authorZoran <zoran@zurb.com>
Thu, 19 May 2016 05:18:07 +0000 (22:18 -0700)
committerZoran <zoran@zurb.com>
Thu, 19 May 2016 05:18:07 +0000 (22:18 -0700)
gem/README.md
gem/foundation-emails.gemspec
gem/lib/foundation/emails.rb [deleted file]
gem/lib/foundation/emails/version.rb [deleted file]
gem/lib/foundation_emails.rb [new file with mode: 0644]
gem/lib/foundation_emails/engine.rb [new file with mode: 0644]
gem/lib/foundation_emails/version.rb [new file with mode: 0644]
gem/vendor/assets/stylesheets/_foundation-emails.scss [new file with mode: 0644]

index 7f8cfe56511430ced5a804c0e3f886f3b45be1b7..50205f77dd60c6ba615fffd9e8af7c3cc6561b27 100644 (file)
@@ -1,4 +1,4 @@
-# Foundation::Emails
+# Foundation for Emails Gem
 
 Foundation for Emails (previously known as Ink) is a framework for creating responsive HTML emails that work in any email client &mdash; even Outlook. Our HTML/CSS components have been tested across every major email client to ensure consistency.
 
@@ -7,7 +7,7 @@ Foundation for Emails (previously known as Ink) is a framework for creating resp
 Add this line to your application's Gemfile:
 
 ```ruby
-gem 'foundation-emails'
+gem 'foundation_emails'
 ```
 
 Or install it yourself as:
index a5e5ba2f2c41ee74284667e2e70edb72558cc0d7..cfbaef8048388e00c609c4ba2f430a3b3a073b22 100644 (file)
@@ -1,11 +1,11 @@
 # coding: utf-8
 lib = File.expand_path("../lib", __FILE__)
 $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
-require "foundation/emails/version"
+require "foundation_emails/version"
 
 Gem::Specification.new do |spec|
-  spec.name          = "foundation-emails"
-  spec.version       = Foundation::Emails::VERSION
+  spec.name          = "foundation_emails"
+  spec.version       = FoundationEmails::VERSION
   spec.authors       = ["ZURB"]
   spec.email         = ["foundation@zurb.com"]
 
@@ -14,8 +14,8 @@ Gem::Specification.new do |spec|
   spec.homepage      = "http://foundation.zurb.com/emails"
   spec.license       = "MIT"
 
-  spec.files         = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features|vendor)/}) }
-  # Include symlinked files separately via Dir.glob
+  spec.files         = Dir[ File.join("**", "*") ].reject { |p| File.directory?(p) || p.match(%{^(test|spec|features)/}) }
+  # Include symlinked files separately
   spec.files         += Dir.glob("vendor/assets/stylesheets/foundation-emails/**/*.*")
   spec.bindir        = "exe"
   spec.executables   = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
diff --git a/gem/lib/foundation/emails.rb b/gem/lib/foundation/emails.rb
deleted file mode 100644 (file)
index 5bd5f44..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-require "foundation/emails/version"
-
-module Foundation
-  module Emails
-    # Your code goes here...
-  end
-end
diff --git a/gem/lib/foundation/emails/version.rb b/gem/lib/foundation/emails/version.rb
deleted file mode 100644 (file)
index d112ce1..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-module Foundation
-  module Emails
-    VERSION = "0.1.0"
-  end
-end
diff --git a/gem/lib/foundation_emails.rb b/gem/lib/foundation_emails.rb
new file mode 100644 (file)
index 0000000..7dae774
--- /dev/null
@@ -0,0 +1,5 @@
+require "foundation_emails/engine"
+
+module FoundationEmails
+
+end
diff --git a/gem/lib/foundation_emails/engine.rb b/gem/lib/foundation_emails/engine.rb
new file mode 100644 (file)
index 0000000..f762576
--- /dev/null
@@ -0,0 +1,6 @@
+require "rails"
+
+module FoundationEmails
+  class Engine < ::Rails::Engine
+  end
+end
diff --git a/gem/lib/foundation_emails/version.rb b/gem/lib/foundation_emails/version.rb
new file mode 100644 (file)
index 0000000..0697743
--- /dev/null
@@ -0,0 +1,3 @@
+module FoundationEmails
+  VERSION = "0.1.0"
+end
diff --git a/gem/vendor/assets/stylesheets/_foundation-emails.scss b/gem/vendor/assets/stylesheets/_foundation-emails.scss
new file mode 100644 (file)
index 0000000..d53c47a
--- /dev/null
@@ -0,0 +1 @@
+@import "foundation-emails/foundation-emails";