devcamp_view_tool_k 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: b56a9649c41da49519f9a224f60ce5030e8da9f8dad443b8274aa33a2c96dddb
4
+ data.tar.gz: c4b58893392541d02556a03cf90ff0aef5c4732d609694810af53ea8763d2e69
5
+ SHA512:
6
+ metadata.gz: 59af46b287c01b418bcfc978d53a38a6093945c33d63c7b580735bab5e6df92468634daa68edd7edb3370db42c0b6162de651fcdb5d21b1e0fb356490e2acd5e
7
+ data.tar.gz: '008d907e4a083d147a8d5a9bb52d692769810ed0c6fb0f839e6e6a228bbdadd107655638d2396bb89e4a46945aba4de966905a8725a9eeab924172993a6baa3d'
@@ -0,0 +1,202 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
9
+
10
+ # Created by https://www.toptal.com/developers/gitignore/api/ruby,rubymine,macos
11
+ # Edit at https://www.toptal.com/developers/gitignore?templates=ruby,rubymine,macos
12
+
13
+ ### macOS ###
14
+ # General
15
+ .DS_Store
16
+ .AppleDouble
17
+ .LSOverride
18
+
19
+ # Icon must end with two \r
20
+ Icon
21
+
22
+
23
+ # Thumbnails
24
+ ._*
25
+
26
+ # Files that might appear in the root of a volume
27
+ .DocumentRevisions-V100
28
+ .fseventsd
29
+ .Spotlight-V100
30
+ .TemporaryItems
31
+ .Trashes
32
+ .VolumeIcon.icns
33
+ .com.apple.timemachine.donotpresent
34
+
35
+ # Directories potentially created on remote AFP share
36
+ .AppleDB
37
+ .AppleDesktop
38
+ Network Trash Folder
39
+ Temporary Items
40
+ .apdisk
41
+
42
+ ### Ruby ###
43
+ *.gem
44
+ *.rbc
45
+ /.config
46
+ /coverage/
47
+ /InstalledFiles
48
+ /pkg/
49
+ /spec/reports/
50
+ /spec/examples.txt
51
+ /test/tmp/
52
+ /test/version_tmp/
53
+ /tmp/
54
+
55
+ # Used by dotenv library to load environment variables.
56
+ # .env
57
+
58
+ # Ignore Byebug command history file.
59
+ .byebug_history
60
+
61
+ ## Specific to RubyMotion:
62
+ .dat*
63
+ .repl_history
64
+ build/
65
+ *.bridgesupport
66
+ build-iPhoneOS/
67
+ build-iPhoneSimulator/
68
+
69
+ ## Specific to RubyMotion (use of CocoaPods):
70
+ #
71
+ # We recommend against adding the Pods directory to your .gitignore. However
72
+ # you should judge for yourself, the pros and cons are mentioned at:
73
+ # https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
74
+ # vendor/Pods/
75
+
76
+ ## Documentation cache and generated files:
77
+ /.yardoc/
78
+ /_yardoc/
79
+ /doc/
80
+ /rdoc/
81
+
82
+ ## Environment normalization:
83
+ /.bundle/
84
+ /vendor/bundle
85
+ /lib/bundler/man/
86
+
87
+ # for a library or gem, you might want to ignore these files since the code is
88
+ # intended to run in multiple environments; otherwise, check them in:
89
+ # Gemfile.lock
90
+ # .ruby-version
91
+ # .ruby-gemset
92
+
93
+ # unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
94
+ .rvmrc
95
+
96
+ # Used by RuboCop. Remote config files pulled in from inherit_from directive.
97
+ # .rubocop-https?--*
98
+
99
+ ### RubyMine ###
100
+ # Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider
101
+ # Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
102
+
103
+ # User-specific stuff
104
+ .idea/**/workspace.xml
105
+ .idea/**/tasks.xml
106
+ .idea/**/usage.statistics.xml
107
+ .idea/**/dictionaries
108
+ .idea/**/shelf
109
+
110
+ # Generated files
111
+ .idea/**/contentModel.xml
112
+
113
+ # Sensitive or high-churn files
114
+ .idea/**/dataSources/
115
+ .idea/**/dataSources.ids
116
+ .idea/**/dataSources.local.xml
117
+ .idea/**/sqlDataSources.xml
118
+ .idea/**/dynamic.xml
119
+ .idea/**/uiDesigner.xml
120
+ .idea/**/dbnavigator.xml
121
+
122
+ # Gradle
123
+ .idea/**/gradle.xml
124
+ .idea/**/libraries
125
+
126
+ # Gradle and Maven with auto-import
127
+ # When using Gradle or Maven with auto-import, you should exclude module files,
128
+ # since they will be recreated, and may cause churn. Uncomment if using
129
+ # auto-import.
130
+ # .idea/artifacts
131
+ # .idea/compiler.xml
132
+ # .idea/jarRepositories.xml
133
+ # .idea/modules.xml
134
+ # .idea/*.iml
135
+ # .idea/modules
136
+ # *.iml
137
+ # *.ipr
138
+
139
+ # CMake
140
+ cmake-build-*/
141
+
142
+ # Mongo Explorer plugin
143
+ .idea/**/mongoSettings.xml
144
+
145
+ # File-based project format
146
+ *.iws
147
+
148
+ # IntelliJ
149
+ out/
150
+
151
+ # mpeltonen/sbt-idea plugin
152
+ .idea_modules/
153
+
154
+ # JIRA plugin
155
+ atlassian-ide-plugin.xml
156
+
157
+ # Cursive Clojure plugin
158
+ .idea/replstate.xml
159
+
160
+ # Crashlytics plugin (for Android Studio and IntelliJ)
161
+ com_crashlytics_export_strings.xml
162
+ crashlytics.properties
163
+ crashlytics-build.properties
164
+ fabric.properties
165
+
166
+ # Editor-based Rest Client
167
+ .idea/httpRequests
168
+
169
+ # Android studio 3.1+ serialized cache file
170
+ .idea/caches/build_file_checksums.ser
171
+
172
+ ### RubyMine Patch ###
173
+ # Comment Reason: https://github.com/joeblau/gitignore.io/issues/186#issuecomment-215987721
174
+
175
+ # *.iml
176
+ # modules.xml
177
+ # .idea/misc.xml
178
+ # *.ipr
179
+
180
+ # Sonarlint plugin
181
+ # https://plugins.jetbrains.com/plugin/7973-sonarlint
182
+ .idea/**/sonarlint/
183
+
184
+ # SonarQube Plugin
185
+ # https://plugins.jetbrains.com/plugin/7238-sonarqube-community-plugin
186
+ .idea/**/sonarIssues.xml
187
+
188
+ # Markdown Navigator plugin
189
+ # https://plugins.jetbrains.com/plugin/7896-markdown-navigator-enhanced
190
+ .idea/**/markdown-navigator.xml
191
+ .idea/**/markdown-navigator-enh.xml
192
+ .idea/**/markdown-navigator/
193
+
194
+ # Cache file creation bug
195
+ # See https://youtrack.jetbrains.com/issue/JBR-2257
196
+ .idea/$CACHE_FILE$
197
+
198
+ # CodeStream plugin
199
+ # https://plugins.jetbrains.com/plugin/12206-codestream
200
+ .idea/codestream.xml
201
+
202
+ # End of https://www.toptal.com/developers/gitignore/api/ruby,rubymine,macos
@@ -0,0 +1,8 @@
1
+ # Default ignored files
2
+ /shelf/
3
+ /workspace.xml
4
+ # Datasource local storage ignored files
5
+ /dataSources/
6
+ /dataSources.local.xml
7
+ # Editor-based HTTP Client requests
8
+ /httpRequests/
@@ -0,0 +1,7 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <Settings><!--This file was automatically generated by Ruby plugin.
3
+ You are allowed to:
4
+ 1. Remove rake task
5
+ 2. Add existing rake tasks
6
+ To add existing rake tasks automatically delete this file and reload the project.
7
+ --><RakeGroup description="" fullCmd="" taksId="rake" /></Settings>
@@ -0,0 +1,17 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <module type="RUBY_MODULE" version="4">
3
+ <component name="ModuleRunConfigurationManager">
4
+ <shared />
5
+ </component>
6
+ <component name="NewModuleRootManager">
7
+ <content url="file://$MODULE_DIR$">
8
+ <sourceFolder url="file://$MODULE_DIR$/features" isTestSource="true" />
9
+ <sourceFolder url="file://$MODULE_DIR$/spec" isTestSource="true" />
10
+ <sourceFolder url="file://$MODULE_DIR$/test" isTestSource="true" />
11
+ </content>
12
+ <orderEntry type="inheritedJdk" />
13
+ <orderEntry type="sourceFolder" forTests="false" />
14
+ <orderEntry type="library" scope="PROVIDED" name="bundler (v2.0.2, rbenv: 2.6.6) [gem]" level="application" />
15
+ <orderEntry type="library" scope="PROVIDED" name="rake (v12.3.3, rbenv: 2.6.6) [gem]" level="application" />
16
+ </component>
17
+ </module>
@@ -0,0 +1,4 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ProjectRootManager" version="2" project-jdk-name="rbenv: 2.6.6" project-jdk-type="RUBY_SDK" />
4
+ </project>
@@ -0,0 +1,8 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ProjectModuleManager">
4
+ <modules>
5
+ <module fileurl="file://$PROJECT_DIR$/.idea/devcamp_view_tool_k.iml" filepath="$PROJECT_DIR$/.idea/devcamp_view_tool_k.iml" />
6
+ </modules>
7
+ </component>
8
+ </project>
@@ -0,0 +1,6 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="VcsDirectoryMappings">
4
+ <mapping directory="$PROJECT_DIR$" vcs="Git" />
5
+ </component>
6
+ </project>
data/Gemfile ADDED
@@ -0,0 +1,6 @@
1
+ source "https://rubygems.org"
2
+
3
+ # Specify your gem's dependencies in devcamp_view_tool_k.gemspec
4
+ gemspec
5
+
6
+ gem "rake", "~> 12.0"
@@ -0,0 +1,19 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ devcamp_view_tool_k (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
+ devcamp_view_tool_k!
16
+ rake (~> 12.0)
17
+
18
+ BUNDLED WITH
19
+ 2.0.2
@@ -0,0 +1,36 @@
1
+ # DevcampViewToolK
2
+
3
+ Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/devcamp_view_tool_k`. To experiment with that code, run `bin/console` for an interactive prompt.
4
+
5
+ > Many specific view methods that I use in my apps
6
+
7
+ ## Installation
8
+
9
+ Add this line to your application's Gemfile:
10
+
11
+ ```ruby
12
+ gem 'devcamp_view_tool_k'
13
+ ```
14
+
15
+ And then execute:
16
+
17
+ $ bundle install
18
+
19
+ Or install it yourself as:
20
+
21
+ $ gem install devcamp_view_tool_k
22
+
23
+ ## Usage
24
+
25
+ TODO: Write usage instructions here
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]/devcamp_view_tool_k.
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 "devcamp_view_tool_k"
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/devcamp_view_tool_k/version'
2
+
3
+ Gem::Specification.new do |spec|
4
+ spec.name = "devcamp_view_tool_k"
5
+ spec.version = DevcampViewToolK::VERSION
6
+ spec.authors = ["Karol Gutiérrez"]
7
+ spec.email = ["kjgs.22@gmail.com"]
8
+
9
+ spec.summary = %q{Many specific view methods that I use in my apps}
10
+ spec.description = %q{Provides general support to HTML data in rails apps}
11
+ spec.homepage = "https://github.com/karol22"
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/karol22/devcamp_view_tool_k"
18
+ spec.metadata["changelog_uri"] = "https://github.com/karol22/devcamp_view_tool_k"
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 "devcamp_view_tool_k/version"
2
+ require "devcamp_view_tool_k/renderer"
3
+
4
+ module DevcampViewToolK
5
+ class Error < StandardError; end
6
+ # Your code goes here...
7
+ end
@@ -0,0 +1,10 @@
1
+ # frozen_string_literal: true
2
+
3
+ module DevcampViewToolK
4
+ # Render html components
5
+ class Renderer
6
+ def self.copyright name, msg
7
+ "&copy; #{Time.now.year} | <b>#{name}</b> #{msg}".html_safe
8
+ end
9
+ end
10
+ end
@@ -0,0 +1,3 @@
1
+ module DevcampViewToolK
2
+ VERSION = "0.1.0"
3
+ end
metadata ADDED
@@ -0,0 +1,63 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: devcamp_view_tool_k
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Karol Gutiérrez
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2021-01-30 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: Provides general support to HTML data in rails apps
14
+ email:
15
+ - kjgs.22@gmail.com
16
+ executables: []
17
+ extensions: []
18
+ extra_rdoc_files: []
19
+ files:
20
+ - ".gitignore"
21
+ - ".idea/.gitignore"
22
+ - ".idea/.rakeTasks"
23
+ - ".idea/devcamp_view_tool_k.iml"
24
+ - ".idea/misc.xml"
25
+ - ".idea/modules.xml"
26
+ - ".idea/vcs.xml"
27
+ - Gemfile
28
+ - Gemfile.lock
29
+ - README.md
30
+ - Rakefile
31
+ - bin/console
32
+ - bin/setup
33
+ - devcamp_view_tool_k.gemspec
34
+ - lib/devcamp_view_tool_k.rb
35
+ - lib/devcamp_view_tool_k/renderer.rb
36
+ - lib/devcamp_view_tool_k/version.rb
37
+ homepage: https://github.com/karol22
38
+ licenses: []
39
+ metadata:
40
+ allowed_push_host: https://rubygems.org/
41
+ homepage_uri: https://github.com/karol22
42
+ source_code_uri: https://github.com/karol22/devcamp_view_tool_k
43
+ changelog_uri: https://github.com/karol22/devcamp_view_tool_k
44
+ post_install_message:
45
+ rdoc_options: []
46
+ require_paths:
47
+ - lib
48
+ required_ruby_version: !ruby/object:Gem::Requirement
49
+ requirements:
50
+ - - ">="
51
+ - !ruby/object:Gem::Version
52
+ version: 2.3.0
53
+ required_rubygems_version: !ruby/object:Gem::Requirement
54
+ requirements:
55
+ - - ">="
56
+ - !ruby/object:Gem::Version
57
+ version: '0'
58
+ requirements: []
59
+ rubygems_version: 3.0.3
60
+ signing_key:
61
+ specification_version: 4
62
+ summary: Many specific view methods that I use in my apps
63
+ test_files: []