aks_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: e83eb4a65f8773427d322406899658a87f80a4c7585db830465f6e88b27de2bc
4
+ data.tar.gz: d95bcce8e36f8a607bfdb16e008e44405fd05c4c6c2d69e3273105341fd9aee9
5
+ SHA512:
6
+ metadata.gz: 250204581880e46ef9837adb28ef31fddc16274217832502f64144f9b340b514f8d82286c9f7339387fb4fead1dccc20e202fd23272f3d39de35b610cc30fed1
7
+ data.tar.gz: 149b52e2fd6d30725f096f38427007e132207624d0b8238a2058e1ad5b45198a0f676aea2fc653f8e029755bf0103d430aaddd7b0a258774c0c1fd15683b0ee8
@@ -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 aks_view_tool.gemspec
4
+ gemspec
5
+
6
+ gem "rake", "~> 12.0"
@@ -0,0 +1,35 @@
1
+ # AksViewTool
2
+
3
+ > Various view specific methods for application I use.
4
+
5
+ ## Installation
6
+
7
+ Add this line to your application's Gemfile:
8
+
9
+ ```ruby
10
+ gem 'aks_view_tool'
11
+ ```
12
+
13
+ And then execute:
14
+
15
+ $ bundle install
16
+
17
+ Or install it yourself as:
18
+
19
+ $ gem install aks_view_tool
20
+
21
+ ## Usage
22
+ ```ruby
23
+ AksViewTool::Renderer.copyright 'Abdul Kadir Sharaf', 'All rights reserved'
24
+ ```
25
+
26
+ ## Development
27
+
28
+ 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.
29
+
30
+ 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).
31
+
32
+ ## Contributing
33
+
34
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/aks_view_tool.
35
+
@@ -0,0 +1,2 @@
1
+ require "bundler/gem_tasks"
2
+ task :default => :spec
@@ -0,0 +1,23 @@
1
+ require_relative 'lib/aks_view_tool/version'
2
+
3
+ Gem::Specification.new do |spec|
4
+ spec.name = "aks_view_tool"
5
+ spec.version = AksViewTool::VERSION
6
+ spec.authors = ["Abdulkadir Sharaf"]
7
+ spec.email = ["abdulkadirsharaf@gmail.com"]
8
+
9
+ spec.summary = %q{Various view specific methods for application I use}
10
+ spec.description = %q{Provides generated HTML data for Rails applications.}
11
+ spec.homepage = "https://github.com/Sharaf-Abdul-Kadir/aks_view_tool"
12
+ spec.license = "MIT"
13
+ spec.required_ruby_version = Gem::Requirement.new(">= 2.3.0")
14
+
15
+ # Specify which files should be added to the gem when it is released.
16
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
17
+ spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
18
+ `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
19
+ end
20
+ spec.bindir = "exe"
21
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
22
+ spec.require_paths = ["lib"]
23
+ end
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "aks_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,7 @@
1
+ require "aks_view_tool/version"
2
+ require "aks_view_tool/renderer"
3
+
4
+ module AksViewTool
5
+ class Error < StandardError; end
6
+ # Your code goes here...
7
+ end
@@ -0,0 +1,8 @@
1
+
2
+ module AksViewTool
3
+ class Renderer
4
+ def self.copyright name, msg
5
+ "&copy; #{Time.now.year} | <b>#{name}<b> <i>#{msg}<i>".html_safe
6
+ end
7
+ end
8
+ end
@@ -0,0 +1,3 @@
1
+ module AksViewTool
2
+ VERSION = "0.1.0"
3
+ end
metadata ADDED
@@ -0,0 +1,53 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: aks_view_tool
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Abdulkadir Sharaf
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2020-12-02 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: Provides generated HTML data for Rails applications.
14
+ email:
15
+ - abdulkadirsharaf@gmail.com
16
+ executables: []
17
+ extensions: []
18
+ extra_rdoc_files: []
19
+ files:
20
+ - ".gitignore"
21
+ - Gemfile
22
+ - README.md
23
+ - Rakefile
24
+ - aks_view_tool.gemspec
25
+ - bin/console
26
+ - bin/setup
27
+ - lib/aks_view_tool.rb
28
+ - lib/aks_view_tool/renderer.rb
29
+ - lib/aks_view_tool/version.rb
30
+ homepage: https://github.com/Sharaf-Abdul-Kadir/aks_view_tool
31
+ licenses:
32
+ - MIT
33
+ metadata: {}
34
+ post_install_message:
35
+ rdoc_options: []
36
+ require_paths:
37
+ - lib
38
+ required_ruby_version: !ruby/object:Gem::Requirement
39
+ requirements:
40
+ - - ">="
41
+ - !ruby/object:Gem::Version
42
+ version: 2.3.0
43
+ required_rubygems_version: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ requirements: []
49
+ rubygems_version: 3.1.4
50
+ signing_key:
51
+ specification_version: 4
52
+ summary: Various view specific methods for application I use
53
+ test_files: []