Skip to content

Commit ea3e6e7

Browse files
committed
Added gemspec created with Jeweler. Added Bundler
1 parent 69d151d commit ea3e6e7

File tree

9 files changed

+257
-2
lines changed

9 files changed

+257
-2
lines changed

.gitignore

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# rcov generated
2+
coverage
3+
coverage.data
4+
5+
# rdoc generated
6+
rdoc
7+
8+
# yard generated
9+
doc
10+
.yardoc
11+
12+
# bundler
13+
.bundle
14+
15+
# jeweler generated
16+
pkg
17+
18+
# Have editor/IDE/OS specific files you need to ignore? Consider using a global gitignore:
19+
#
20+
# * Create a file at ~/.gitignore
21+
# * Include files you want ignored
22+
# * Run: git config --global core.excludesfile ~/.gitignore
23+
#
24+
# After doing this, these files will be ignored in all your git projects,
25+
# saving you from having to 'pollute' every project you touch with them
26+
#
27+
# Not sure what to needs to be ignored for particular editors/OSes? Here's some ideas to get you started. (Remember, remove the leading # of the line)
28+
#
29+
# For MacOS:
30+
#
31+
#.DS_Store
32+
33+
# For TextMate
34+
#*.tmproj
35+
#tmtags
36+
37+
# For emacs:
38+
#*~
39+
#\#*
40+
#.\#*
41+
42+
# For vim:
43+
#*.swp
44+
45+
# For redcar:
46+
#.redcar
47+
48+
# For rubinius:
49+
#*.rbc

Gemfile

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# frozen_string_literal: true
2+
source "https://rubygems.org"
3+
4+
# gem "rails"
5+
6+
group :development do
7+
gem "shoulda", ">= 0"
8+
gem "rdoc", "~> 3.12"
9+
gem "bundler", "~> 1.0"
10+
gem "jeweler", "~> 2.3.0"
11+
gem "simplecov", ">= 0"
12+
end

Gemfile.lock

Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
GEM
2+
remote: https://rubygems.org/
3+
specs:
4+
activesupport (5.1.1)
5+
concurrent-ruby (~> 1.0, >= 1.0.2)
6+
i18n (~> 0.7)
7+
minitest (~> 5.1)
8+
tzinfo (~> 1.1)
9+
addressable (2.4.0)
10+
builder (3.2.3)
11+
concurrent-ruby (1.0.5)
12+
descendants_tracker (0.0.4)
13+
thread_safe (~> 0.3, >= 0.3.1)
14+
docile (1.1.5)
15+
faraday (0.9.2)
16+
multipart-post (>= 1.2, < 3)
17+
git (1.3.0)
18+
github_api (0.16.0)
19+
addressable (~> 2.4.0)
20+
descendants_tracker (~> 0.0.4)
21+
faraday (~> 0.8, < 0.10)
22+
hashie (>= 3.4)
23+
mime-types (>= 1.16, < 3.0)
24+
oauth2 (~> 1.0)
25+
hashie (3.5.5)
26+
highline (1.7.8)
27+
i18n (0.8.4)
28+
jeweler (2.3.6)
29+
builder
30+
bundler (>= 1)
31+
git (>= 1.2.5)
32+
github_api (~> 0.16.0)
33+
highline (>= 1.6.15)
34+
nokogiri (>= 1.5.10)
35+
psych (~> 2.2)
36+
rake
37+
rdoc
38+
semver2
39+
json (1.8.6)
40+
jwt (1.5.6)
41+
mime-types (2.99.3)
42+
mini_portile2 (2.2.0)
43+
minitest (5.10.2)
44+
multi_json (1.12.1)
45+
multi_xml (0.6.0)
46+
multipart-post (2.0.0)
47+
nokogiri (1.8.0)
48+
mini_portile2 (~> 2.2.0)
49+
oauth2 (1.3.1)
50+
faraday (>= 0.8, < 0.12)
51+
jwt (~> 1.0)
52+
multi_json (~> 1.3)
53+
multi_xml (~> 0.5)
54+
rack (>= 1.2, < 3)
55+
psych (2.2.4)
56+
rack (2.0.3)
57+
rake (12.0.0)
58+
rdoc (3.12.2)
59+
json (~> 1.4)
60+
semver2 (3.4.2)
61+
shoulda (3.5.0)
62+
shoulda-context (~> 1.0, >= 1.0.1)
63+
shoulda-matchers (>= 1.4.1, < 3.0)
64+
shoulda-context (1.2.2)
65+
shoulda-matchers (2.8.0)
66+
activesupport (>= 3.0.0)
67+
simplecov (0.14.1)
68+
docile (~> 1.1.0)
69+
json (>= 1.8, < 3)
70+
simplecov-html (~> 0.10.0)
71+
simplecov-html (0.10.1)
72+
thread_safe (0.3.6)
73+
tzinfo (1.2.3)
74+
thread_safe (~> 0.1)
75+
76+
PLATFORMS
77+
ruby
78+
79+
DEPENDENCIES
80+
bundler (~> 1.0)
81+
jeweler (~> 2.3.0)
82+
rdoc (~> 3.12)
83+
shoulda
84+
simplecov
85+
86+
BUNDLED WITH
87+
1.15.1

Rakefile

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# encoding: utf-8
2+
3+
require 'rubygems'
4+
require 'bundler'
5+
begin
6+
Bundler.setup(:default, :development)
7+
rescue Bundler::BundlerError => e
8+
$stderr.puts e.message
9+
$stderr.puts "Run `bundle install` to install missing gems"
10+
exit e.status_code
11+
end
12+
require 'rake'
13+
14+
require 'jeweler'
15+
Jeweler::Tasks.new do |gem|
16+
# gem is a Gem::Specification... see http://guides.rubygems.org/specification-reference/ for more options
17+
gem.name = "sendpulse-rest-api-ruby"
18+
gem.homepage = "http://github.com/sendpulse/sendpulse-rest-api-ruby"
19+
gem.license = "MIT"
20+
gem.summary = %Q{A simple SendPulse REST client library and example for Ruby.}
21+
gem.description = %Q{A simple SendPulse REST client library and example for Ruby.}
22+
gem.email = "[email protected]"
23+
gem.authors = ["SendPulse Tech Team"]
24+
# dependencies defined in Gemfile
25+
end
26+
Jeweler::RubygemsDotOrgTasks.new
27+
28+
desc "Code coverage detail"
29+
task :simplecov do
30+
ENV['COVERAGE'] = "true"
31+
Rake::Task['test'].execute
32+
end
33+
34+
task :default => :version #TODO change to test/rspec once added
35+
36+
require 'rdoc/task'
37+
Rake::RDocTask.new do |rdoc|
38+
version = File.exist?('VERSION') ? File.read('VERSION') : ""
39+
40+
rdoc.rdoc_dir = 'rdoc'
41+
rdoc.title = "sendpulse-rest-api-ruby #{version}"
42+
rdoc.rdoc_files.include('README*')
43+
rdoc.rdoc_files.include('lib/**/*.rb')
44+
end

VERSION

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
1.0.0

example.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
require './api/sendpulse_api'
1+
require_relative 'lib/sendpulse-rest-api-ruby'
22
require 'yaml'
33

44
API_CLIENT_ID = ''
@@ -33,4 +33,4 @@
3333
}
3434

3535
result = sendpulse_api.smtp_send_mail(email)
36-
YAML::dump(result)
36+
YAML::dump(result)
File renamed without changes.

lib/sendpulse-rest-api-ruby.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
require_relative 'api/sendpulse_api.rb'

sendpulse-rest-api-ruby.gemspec

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
# Generated by jeweler
2+
# DO NOT EDIT THIS FILE DIRECTLY
3+
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4+
# -*- encoding: utf-8 -*-
5+
# stub: sendpulse-rest-api-ruby 1.0.0 ruby lib
6+
7+
Gem::Specification.new do |s|
8+
s.name = "sendpulse-rest-api-ruby".freeze
9+
s.version = "1.0.0"
10+
11+
s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
12+
s.require_paths = ["lib".freeze]
13+
s.authors = ["SendPulse Tech Team".freeze]
14+
s.date = "2017-06-09"
15+
s.description = "A simple SendPulse REST client library and example for Ruby.".freeze
16+
s.email = "[email protected]".freeze
17+
s.extra_rdoc_files = [
18+
"LICENSE",
19+
"README.md"
20+
]
21+
s.files = [
22+
"Gemfile",
23+
"Gemfile.lock",
24+
"LICENSE",
25+
"README.md",
26+
"Rakefile",
27+
"VERSION",
28+
"example.rb",
29+
"lib/api/sendpulse_api.rb",
30+
"lib/sendpulse-rest-api-ruby.rb"
31+
]
32+
s.homepage = "http://github.com/sendpulse/sendpulse-rest-api-ruby".freeze
33+
s.licenses = ["MIT".freeze]
34+
s.rubygems_version = "2.6.12".freeze
35+
s.summary = "A simple SendPulse REST client library and example for Ruby.".freeze
36+
37+
if s.respond_to? :specification_version then
38+
s.specification_version = 4
39+
40+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
41+
s.add_development_dependency(%q<shoulda>.freeze, [">= 0"])
42+
s.add_development_dependency(%q<rdoc>.freeze, ["~> 3.12"])
43+
s.add_development_dependency(%q<bundler>.freeze, ["~> 1.0"])
44+
s.add_development_dependency(%q<jeweler>.freeze, ["~> 2.3.0"])
45+
s.add_development_dependency(%q<simplecov>.freeze, [">= 0"])
46+
else
47+
s.add_dependency(%q<shoulda>.freeze, [">= 0"])
48+
s.add_dependency(%q<rdoc>.freeze, ["~> 3.12"])
49+
s.add_dependency(%q<bundler>.freeze, ["~> 1.0"])
50+
s.add_dependency(%q<jeweler>.freeze, ["~> 2.3.0"])
51+
s.add_dependency(%q<simplecov>.freeze, [">= 0"])
52+
end
53+
else
54+
s.add_dependency(%q<shoulda>.freeze, [">= 0"])
55+
s.add_dependency(%q<rdoc>.freeze, ["~> 3.12"])
56+
s.add_dependency(%q<bundler>.freeze, ["~> 1.0"])
57+
s.add_dependency(%q<jeweler>.freeze, ["~> 2.3.0"])
58+
s.add_dependency(%q<simplecov>.freeze, [">= 0"])
59+
end
60+
end
61+

0 commit comments

Comments
 (0)