ernie_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: eb9dd6d31dbddbdfba4abeea27ebebcb8a9ae5948f97e4c382d17eebebe9a461
4
+ data.tar.gz: 06eee6c7705feb940c097a17701f1234db3b53c8203552edf191668db90e1733
5
+ SHA512:
6
+ metadata.gz: 0aef6e8751bfc7736d9898258bed05f648825a7319d60cf604cd317769e226c0b5ec4c6561278f0b1b51fb40d8dc8345f83704900d615b6ca726158942baa5a7
7
+ data.tar.gz: 1818c39e60a36dafd2ff0aa8ca756242eca338f704d8d490b9402e889e280591e9e09778f6c06fe0d6e63ec4bdd371ea77617745a8cf97683e84192b58e099f0
@@ -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 ernie_view_tool.gemspec
4
+ gemspec
5
+
6
+ gem "rake", "~> 12.0"
@@ -0,0 +1,35 @@
1
+ # ErnieViewTool
2
+
3
+ > View methods for Rails, Prepares html code snippets to add to Rails applications
4
+
5
+ ## Installation
6
+
7
+ Add this line to your application's Gemfile:
8
+
9
+ ```ruby
10
+ gem 'ernie_view_tool'
11
+ ```
12
+
13
+ And then execute:
14
+
15
+ $ bundle install
16
+
17
+ Or install it yourself as:
18
+
19
+ $ gem install ernie_view_tool
20
+
21
+ ## Usage
22
+
23
+ ```ruby
24
+ EsqgViewTool::Renderer.copyright 'Name', '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]/ernie_view_tool.
@@ -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 "ernie_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,22 @@
1
+ require_relative 'lib/ernie_view_tool/version'
2
+
3
+ Gem::Specification.new do |spec|
4
+ spec.name = "ernie_view_tool"
5
+ spec.version = ErnieViewTool::VERSION
6
+ spec.authors = ["Ernie Gibbs"]
7
+ spec.email = ["egibbs@bigpond.com"]
8
+
9
+ spec.summary = %q{View methods for Rails}
10
+ spec.description = %q{Prepare html code to add to Rails applications}
11
+ spec.homepage = "https://bialgi.com"
12
+ spec.required_ruby_version = Gem::Requirement.new(">= 2.3.0")
13
+
14
+ # Specify which files should be added to the gem when it is released.
15
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
16
+ spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
17
+ `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
18
+ end
19
+ spec.bindir = "exe"
20
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
21
+ spec.require_paths = ["lib"]
22
+ end
@@ -0,0 +1,2 @@
1
+ require "ernie_view_tool/version"
2
+ require "ernie_view_tool/renderer"
@@ -0,0 +1,8 @@
1
+ module ErnieViewTool
2
+ class Error < StandardError; end
3
+ class Renderer
4
+ def self.copyright name, msg
5
+ "&copy; #{Time.now.year} | <b>#{name}</b> #{msg}".html_safe
6
+ end
7
+ end
8
+ end
@@ -0,0 +1,3 @@
1
+ module ErnieViewTool
2
+ VERSION = "0.1.0"
3
+ end
metadata ADDED
@@ -0,0 +1,52 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: ernie_view_tool
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Ernie Gibbs
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2020-06-06 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: Prepare html code to add to Rails applications
14
+ email:
15
+ - egibbs@bigpond.com
16
+ executables: []
17
+ extensions: []
18
+ extra_rdoc_files: []
19
+ files:
20
+ - ".gitignore"
21
+ - Gemfile
22
+ - README.md
23
+ - Rakefile
24
+ - bin/console
25
+ - bin/setup
26
+ - ernie_view_tool.gemspec
27
+ - lib/ernie_view_tool.rb
28
+ - lib/ernie_view_tool/renderer.rb
29
+ - lib/ernie_view_tool/version.rb
30
+ homepage: https://bialgi.com
31
+ licenses: []
32
+ metadata: {}
33
+ post_install_message:
34
+ rdoc_options: []
35
+ require_paths:
36
+ - lib
37
+ required_ruby_version: !ruby/object:Gem::Requirement
38
+ requirements:
39
+ - - ">="
40
+ - !ruby/object:Gem::Version
41
+ version: 2.3.0
42
+ required_rubygems_version: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - ">="
45
+ - !ruby/object:Gem::Version
46
+ version: '0'
47
+ requirements: []
48
+ rubygems_version: 3.1.2
49
+ signing_key:
50
+ specification_version: 4
51
+ summary: View methods for Rails
52
+ test_files: []