Skip to content

Commit 6f160ce

Browse files
committed
Lib Structure setup done
1 parent 7fca687 commit 6f160ce

16 files changed

Lines changed: 278 additions & 1 deletion

.gitignore

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
contentstack-*
2+
build_doc.sh
3+
test
4+
doc
5+
spec-integration
6+
coverage
7+
\.yardoc
8+
.DS_Store
9+
.bundle/
10+
*/rspec_results.html

.ruby-version

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

.yardopts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
README.md
2+
lib/contentstack_utils/*
3+
lib/contentstack_utils.rb

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Changelog
2+
All notable changes to this project will be documented in this file.
3+
4+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
5+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6+

Gemfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Gemfile
2+
source "https://rubygems.org"
3+
4+
gemspec

Gemfile.lock

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
PATH
2+
remote: .
3+
specs:
4+
contentstack_utils (1.0.0)
5+
activesupport
6+
nokogiri
7+
8+
GEM
9+
remote: https://rubygems.org/
10+
specs:
11+
activesupport (6.1.0)
12+
concurrent-ruby (~> 1.0, >= 1.0.2)
13+
i18n (>= 1.6, < 2)
14+
minitest (>= 5.1)
15+
tzinfo (~> 2.0)
16+
zeitwerk (~> 2.3)
17+
addressable (2.7.0)
18+
public_suffix (>= 2.0.2, < 5.0)
19+
concurrent-ruby (1.1.7)
20+
crack (0.4.4)
21+
diff-lcs (1.4.4)
22+
docile (1.3.2)
23+
hashdiff (1.0.1)
24+
i18n (1.8.5)
25+
concurrent-ruby (~> 1.0)
26+
mini_portile2 (2.4.0)
27+
minitest (5.14.2)
28+
nokogiri (1.10.10)
29+
mini_portile2 (~> 2.4.0)
30+
public_suffix (4.0.6)
31+
rake (13.0.1)
32+
rspec (3.10.0)
33+
rspec-core (~> 3.10.0)
34+
rspec-expectations (~> 3.10.0)
35+
rspec-mocks (~> 3.10.0)
36+
rspec-core (3.10.0)
37+
rspec-support (~> 3.10.0)
38+
rspec-expectations (3.10.0)
39+
diff-lcs (>= 1.2.0, < 2.0)
40+
rspec-support (~> 3.10.0)
41+
rspec-mocks (3.10.0)
42+
diff-lcs (>= 1.2.0, < 2.0)
43+
rspec-support (~> 3.10.0)
44+
rspec-support (3.10.0)
45+
simplecov (0.20.0)
46+
docile (~> 1.1)
47+
simplecov-html (~> 0.11)
48+
simplecov_json_formatter (~> 0.1)
49+
simplecov-html (0.12.3)
50+
simplecov_json_formatter (0.1.2)
51+
tzinfo (2.0.4)
52+
concurrent-ruby (~> 1.0)
53+
webmock (3.10.0)
54+
addressable (>= 2.3.6)
55+
crack (>= 0.3.2)
56+
hashdiff (>= 0.4.0, < 2.0.0)
57+
yard (0.9.25)
58+
zeitwerk (2.4.2)
59+
60+
PLATFORMS
61+
ruby
62+
63+
DEPENDENCIES
64+
contentstack_utils!
65+
rake
66+
rspec
67+
simplecov
68+
webmock
69+
yard
70+
71+
BUNDLED WITH
72+
2.1.4

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2012-2021 Contentstack. All Rights Reserved
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in
13+
all copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21+
THE SOFTWARE.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
# contentstack-utils-ruby
1+
# contentstack Utils Ruby

Rakefile

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
2+
lib = File.expand_path("../lib", __FILE__)
3+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4+
5+
require 'yard'
6+
YARD::Rake::YardocTask.new do |t|
7+
t.files = ['lib/contentstack_utils/*.rb', 'lib/contentstack_utils.rb'] # optional
8+
end
9+
10+
require 'rspec/core/rake_task'
11+
RSpec::Core::RakeTask.new(:spec) do |t|
12+
t.pattern = Dir.glob('spec/**/*_spec.rb')
13+
t.rspec_opts = '--format documentation'
14+
end
15+
16+
require "rdoc/task"
17+
task ghpages: :rdoc do
18+
%x[git checkout gh-pages]
19+
require "fileutils"
20+
FileUtils.rm_rf "/tmp/html"
21+
FileUtils.mv "html", "/tmp"
22+
FileUtils.rm_rf "*"
23+
FileUtils.cp_r Dir.glob("/tmp/html/*"), "."
24+
end
25+
26+
RDoc::Task.new do |doc|
27+
doc.main = "README.rdoc"
28+
doc.title = "Rake -- Ruby Make"
29+
doc.rdoc_files = FileList.new %w[lib LICENSE doc/**/*.rdoc *.rdoc]
30+
doc.rdoc_dir = "html"
31+
end
32+
33+
task default: :spec

contentstack_utils.gemspec

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
lib = File.expand_path('../lib', __FILE__)
2+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3+
4+
require 'contentstack_utils/version'
5+
Gem::Specification.new do |s|
6+
s.name = %q{contentstack_utils}
7+
s.version = ContentstackUtils::VERSION.dup
8+
s.date = Time.now
9+
s.authors = [%q{Contentstack}]
10+
s.email = ["support@contentstack.com"]
11+
12+
s.required_ruby_version = '>= 2.0'
13+
14+
s.license = "MIT"
15+
s.homepage = "https://github.com/contentstack/contentstack-utils-ruby"
16+
17+
s.summary = %q{Contentstack Ruby Utils for }
18+
s.description = %q{Contentstack Ruby client for the Content Delivery API}
19+
20+
s.files = `git ls-files`.split("\n")
21+
s.test_files = s.files.grep(%r{^spec/})
22+
s.require_paths = ["lib"]
23+
24+
s.add_dependency 'activesupport'
25+
s.add_dependency 'nokogiri'
26+
27+
s.add_development_dependency 'rake'
28+
s.add_development_dependency 'rspec'
29+
s.add_development_dependency 'webmock'
30+
s.add_development_dependency 'simplecov'
31+
s.add_development_dependency 'yard'
32+
end

0 commit comments

Comments
 (0)