]> git.ipfire.org Git - thirdparty/foundation/foundation-emails.git/commitdiff
introduce gem scaffolding
authorZoran <zoran@zurb.com>
Wed, 18 May 2016 20:57:54 +0000 (13:57 -0700)
committerZoran <zoran@zurb.com>
Wed, 18 May 2016 20:57:54 +0000 (13:57 -0700)
15 files changed:
README.md
gem/.gitignore [new file with mode: 0644]
gem/.rspec [new file with mode: 0644]
gem/.travis.yml [new file with mode: 0644]
gem/Gemfile [new file with mode: 0644]
gem/LICENSE.md [new file with mode: 0644]
gem/README.md [new file with mode: 0644]
gem/Rakefile [new file with mode: 0644]
gem/bin/console [new file with mode: 0755]
gem/bin/setup [new file with mode: 0755]
gem/foundation-emails.gemspec [new file with mode: 0644]
gem/lib/foundation/emails.rb [new file with mode: 0644]
gem/lib/foundation/emails/version.rb [new file with mode: 0644]
gem/spec/foundation/emails_spec.rb [new file with mode: 0644]
gem/spec/spec_helper.rb [new file with mode: 0644]

index 81bb7a72946cebbf37cd62cb38902423ea7077fd..65fdbcabe6a045440815ad272c9ca2e9a811e0ac 100644 (file)
--- a/README.md
+++ b/README.md
@@ -6,7 +6,7 @@
 
 
 
-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. And with the [Inky](https://github.com/zurb/inky) templating language, writing HTML emails is now even easier.
+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. And with the [Inky](https://github.com/zurb/inky) templating language, writing HTML emails is now even easier.
 
 ## Getting Started
 
diff --git a/gem/.gitignore b/gem/.gitignore
new file mode 100644 (file)
index 0000000..0cb6eeb
--- /dev/null
@@ -0,0 +1,9 @@
+/.bundle/
+/.yardoc
+/Gemfile.lock
+/_yardoc/
+/coverage/
+/doc/
+/pkg/
+/spec/reports/
+/tmp/
diff --git a/gem/.rspec b/gem/.rspec
new file mode 100644 (file)
index 0000000..8c18f1a
--- /dev/null
@@ -0,0 +1,2 @@
+--format documentation
+--color
diff --git a/gem/.travis.yml b/gem/.travis.yml
new file mode 100644 (file)
index 0000000..e9373c5
--- /dev/null
@@ -0,0 +1,5 @@
+sudo: false
+language: ruby
+rvm:
+  - 2.3.0
+before_install: gem install bundler -v 1.12.4
diff --git a/gem/Gemfile b/gem/Gemfile
new file mode 100644 (file)
index 0000000..968ae6a
--- /dev/null
@@ -0,0 +1,4 @@
+source 'https://rubygems.org'
+
+# Specify dependencies in foundation-emails.gemspec
+gemspec
diff --git a/gem/LICENSE.md b/gem/LICENSE.md
new file mode 100644 (file)
index 0000000..22b0403
--- /dev/null
@@ -0,0 +1,9 @@
+Copyright (c) 2016 ZURB, inc.
+
+The MIT License
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/gem/README.md b/gem/README.md
new file mode 100644 (file)
index 0000000..7f8cfe5
--- /dev/null
@@ -0,0 +1,27 @@
+# Foundation::Emails
+
+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.
+
+## Installation
+
+Add this line to your application's Gemfile:
+
+```ruby
+gem 'foundation-emails'
+```
+
+Or install it yourself as:
+
+    $ gem install foundation-emails
+
+## Usage
+
+To include in your assets, place the following in your desired stylesheets manifest:
+
+```scss
+    @import "foundation-emails";
+```
+
+## License
+
+The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
diff --git a/gem/Rakefile b/gem/Rakefile
new file mode 100644 (file)
index 0000000..b7e9ed5
--- /dev/null
@@ -0,0 +1,6 @@
+require "bundler/gem_tasks"
+require "rspec/core/rake_task"
+
+RSpec::Core::RakeTask.new(:spec)
+
+task :default => :spec
diff --git a/gem/bin/console b/gem/bin/console
new file mode 100755 (executable)
index 0000000..3ea580e
--- /dev/null
@@ -0,0 +1,7 @@
+#!/usr/bin/env ruby
+
+require "bundler/setup"
+require "foundation/emails"
+
+require "irb"
+IRB.start
diff --git a/gem/bin/setup b/gem/bin/setup
new file mode 100755 (executable)
index 0000000..cf4ad25
--- /dev/null
@@ -0,0 +1,6 @@
+#!/usr/bin/env bash
+set -euo pipefail
+IFS=$'\n\t'
+set -vx
+
+bundle install
diff --git a/gem/foundation-emails.gemspec b/gem/foundation-emails.gemspec
new file mode 100644 (file)
index 0000000..5f9a880
--- /dev/null
@@ -0,0 +1,25 @@
+# coding: utf-8
+lib = File.expand_path("../lib", __FILE__)
+$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
+require "foundation/emails/version"
+
+Gem::Specification.new do |spec|
+  spec.name          = "foundation-emails"
+  spec.version       = Foundation::Emails::VERSION
+  spec.authors       = ["ZURB"]
+  spec.email         = ["foundation@zurb.com"]
+
+  spec.summary       = %q{A framework for responsive emails made by ZURB.}
+  spec.description   = %q{Foundation for Emails (previously known as Ink) is a framework for creating responsive HTML emails that work in any email client.}
+  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)/}) }
+  spec.bindir        = "exe"
+  spec.executables   = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
+  spec.require_paths = ["lib"]
+
+  spec.add_development_dependency "bundler", "~> 1.12"
+  spec.add_development_dependency "rake", "~> 10.0"
+  spec.add_development_dependency "rspec", "~> 3.0"
+end
diff --git a/gem/lib/foundation/emails.rb b/gem/lib/foundation/emails.rb
new file mode 100644 (file)
index 0000000..5bd5f44
--- /dev/null
@@ -0,0 +1,7 @@
+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
new file mode 100644 (file)
index 0000000..d112ce1
--- /dev/null
@@ -0,0 +1,5 @@
+module Foundation
+  module Emails
+    VERSION = "0.1.0"
+  end
+end
diff --git a/gem/spec/foundation/emails_spec.rb b/gem/spec/foundation/emails_spec.rb
new file mode 100644 (file)
index 0000000..727feea
--- /dev/null
@@ -0,0 +1,7 @@
+require "spec_helper"
+
+describe Foundation::Emails do
+  it "has a version number" do
+    expect(Foundation::Emails::VERSION).not_to be nil
+  end
+end
diff --git a/gem/spec/spec_helper.rb b/gem/spec/spec_helper.rb
new file mode 100644 (file)
index 0000000..631ded5
--- /dev/null
@@ -0,0 +1,2 @@
+$LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)
+require 'foundation/emails'