kcs_view_tool 0.1.0

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.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 906e0ce90a4863168fda33e101cb7bf8b80c04e39d6719601c37e3f52f125fc8
4
+ data.tar.gz: ce5d1b02f15eaf7d615b45cb7e7de2c520098a625c121b700f96bc21615b951e
5
+ SHA512:
6
+ metadata.gz: 3e6f4ddb0dad3ef80f6e6b98a17954fb3a13bca60acb1188bcf536f4f1ab7754ea1341fb3145642a949523e3194a2c90854ec0d77cc5c774b5dbc7fe052c08fe
7
+ data.tar.gz: 956ffd4ebe674455f7c6deea50997c481da0bb56266038a175b585171d81af2c63a38d8b70c46ab376cd8c0c396197cfd26226b5224d9e73284facef952dceea
@@ -0,0 +1,9 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
9
+ *.gem
data/Gemfile ADDED
@@ -0,0 +1,6 @@
1
+ source "https://rubygems.org"
2
+
3
+ # Specify your gem's dependencies in kcs_view_tool.gemspec
4
+ gemspec
5
+
6
+ gem "rake", "~> 12.0"
@@ -0,0 +1,19 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ kcs_view_tool (0.1.0)
5
+
6
+ GEM
7
+ remote: https://rubygems.org/
8
+ specs:
9
+ rake (12.3.3)
10
+
11
+ PLATFORMS
12
+ ruby
13
+
14
+ DEPENDENCIES
15
+ kcs_view_tool!
16
+ rake (~> 12.0)
17
+
18
+ BUNDLED WITH
19
+ 2.1.4
@@ -0,0 +1,36 @@
1
+ # KcsViewTool
2
+
3
+ View specific methods for my applications
4
+
5
+ ## Installation
6
+
7
+ Add this line to your application's Gemfile:
8
+
9
+ ```ruby
10
+ gem 'kcs_view_tool'
11
+ ```
12
+
13
+ And then execute:
14
+
15
+ $ bundle install
16
+
17
+ Or install it yourself as:
18
+
19
+ $ gem install kcs_view_tool
20
+
21
+ ## Usage
22
+
23
+ ```ruby
24
+ KcsViewTool::Renderer.copyright("KC Sheng", "All rights reserved")
25
+ ```
26
+
27
+ ## Development
28
+
29
+ After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
30
+
31
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
32
+
33
+ ## Contributing
34
+
35
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/kcs_view_tool.
36
+
@@ -0,0 +1,2 @@
1
+ require "bundler/gem_tasks"
2
+ task :default => :spec
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "kcs_view_tool"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require "irb"
14
+ IRB.start(__FILE__)
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,28 @@
1
+ require_relative 'lib/kcs_view_tool/version'
2
+
3
+ Gem::Specification.new do |spec|
4
+ spec.name = "kcs_view_tool"
5
+ spec.version = KcsViewTool::VERSION
6
+ spec.authors = ["kcsheng"]
7
+ spec.email = ["kacysheng@mail.edu.au"]
8
+
9
+ spec.summary = %q{View specific methods for my applications}
10
+ spec.description = %q{Provides generated html data for Rails applications}
11
+ spec.homepage = "https://kcsheng.unknown"
12
+ spec.required_ruby_version = Gem::Requirement.new(">= 2.3.0")
13
+
14
+ spec.metadata["allowed_push_host"] = "https://rubygems.org"
15
+
16
+ spec.metadata["homepage_uri"] = spec.homepage
17
+ spec.metadata["source_code_uri"] = "https://github.com/kcsheng/kcs_view_tool"
18
+ spec.metadata["changelog_uri"] = "https://github.com/kcsheng/kcs_view_tool"
19
+
20
+ # Specify which files should be added to the gem when it is released.
21
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
22
+ spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
23
+ `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
24
+ end
25
+ spec.bindir = "exe"
26
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
27
+ spec.require_paths = ["lib"]
28
+ end
@@ -0,0 +1,7 @@
1
+ require "kcs_view_tool/version"
2
+ require "kcs_view_tool/renderer"
3
+
4
+ module KcsViewTool
5
+ class Error < StandardError; end
6
+ # Your code goes here...
7
+ end
@@ -0,0 +1,8 @@
1
+ module KcsViewTool
2
+ class Error < StandardError; end
3
+ class Renderer
4
+ def self.copyright(name, message)
5
+ "&copy; #{Time.now.year} | <b>#{name}</b> #{message}".html_safe
6
+ end
7
+ end
8
+ end
@@ -0,0 +1,3 @@
1
+ module KcsViewTool
2
+ VERSION = "0.1.0"
3
+ end
metadata ADDED
@@ -0,0 +1,57 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: kcs_view_tool
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - kcsheng
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2020-07-28 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: Provides generated html data for Rails applications
14
+ email:
15
+ - kacysheng@mail.edu.au
16
+ executables: []
17
+ extensions: []
18
+ extra_rdoc_files: []
19
+ files:
20
+ - ".gitignore"
21
+ - Gemfile
22
+ - Gemfile.lock
23
+ - README.md
24
+ - Rakefile
25
+ - bin/console
26
+ - bin/setup
27
+ - kcs_view_tool.gemspec
28
+ - lib/kcs_view_tool.rb
29
+ - lib/kcs_view_tool/renderer.rb
30
+ - lib/kcs_view_tool/version.rb
31
+ homepage: https://kcsheng.unknown
32
+ licenses: []
33
+ metadata:
34
+ allowed_push_host: https://rubygems.org
35
+ homepage_uri: https://kcsheng.unknown
36
+ source_code_uri: https://github.com/kcsheng/kcs_view_tool
37
+ changelog_uri: https://github.com/kcsheng/kcs_view_tool
38
+ post_install_message:
39
+ rdoc_options: []
40
+ require_paths:
41
+ - lib
42
+ required_ruby_version: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - ">="
45
+ - !ruby/object:Gem::Version
46
+ version: 2.3.0
47
+ required_rubygems_version: !ruby/object:Gem::Requirement
48
+ requirements:
49
+ - - ">="
50
+ - !ruby/object:Gem::Version
51
+ version: '0'
52
+ requirements: []
53
+ rubygems_version: 3.1.4
54
+ signing_key:
55
+ specification_version: 4
56
+ summary: View specific methods for my applications
57
+ test_files: []