copyright_tool 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +9 -0
- data/Gemfile +6 -0
- data/Gemfile.lock +127 -0
- data/LICENSE.txt +21 -0
- data/README.md +40 -0
- data/Rakefile +2 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/copyright_tool.gemspec +29 -0
- data/lib/copyright_tool.rb +5 -0
- data/lib/copyright_tool/renderer.rb +7 -0
- data/lib/copyright_tool/version.rb +3 -0
- metadata +98 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 9f329daa25066f29d2ee8ad959649bb680640fa3cf6b77a70072a93970be3c2c
|
4
|
+
data.tar.gz: 1e21e5a9f0e2191526729a2488329dd9c30557336b1ffeaf09db7debf040c0f5
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: ca6ed0691d924e9b230911993eb237bd171d9c108969cabe330c0c911b07e0cd77467287ab922cf5273305c933b5067fbda9abd0256f819953132dce5a8e99c0
|
7
|
+
data.tar.gz: a54d44648f1f7e0f13c6a78b4fb7a074be48afe512ebb3307f1a9b018c0b266a26b15168274032ba57ff2209df8389833591ed861cb1df640d2c14ff4e1bfc48
|
data/.gitignore
ADDED
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
@@ -0,0 +1,127 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
copyright_tool (0.1.0)
|
5
|
+
|
6
|
+
GEM
|
7
|
+
remote: https://rubygems.org/
|
8
|
+
specs:
|
9
|
+
actioncable (5.2.0)
|
10
|
+
actionpack (= 5.2.0)
|
11
|
+
nio4r (~> 2.0)
|
12
|
+
websocket-driver (>= 0.6.1)
|
13
|
+
actionmailer (5.2.0)
|
14
|
+
actionpack (= 5.2.0)
|
15
|
+
actionview (= 5.2.0)
|
16
|
+
activejob (= 5.2.0)
|
17
|
+
mail (~> 2.5, >= 2.5.4)
|
18
|
+
rails-dom-testing (~> 2.0)
|
19
|
+
actionpack (5.2.0)
|
20
|
+
actionview (= 5.2.0)
|
21
|
+
activesupport (= 5.2.0)
|
22
|
+
rack (~> 2.0)
|
23
|
+
rack-test (>= 0.6.3)
|
24
|
+
rails-dom-testing (~> 2.0)
|
25
|
+
rails-html-sanitizer (~> 1.0, >= 1.0.2)
|
26
|
+
actionview (5.2.0)
|
27
|
+
activesupport (= 5.2.0)
|
28
|
+
builder (~> 3.1)
|
29
|
+
erubi (~> 1.4)
|
30
|
+
rails-dom-testing (~> 2.0)
|
31
|
+
rails-html-sanitizer (~> 1.0, >= 1.0.3)
|
32
|
+
activejob (5.2.0)
|
33
|
+
activesupport (= 5.2.0)
|
34
|
+
globalid (>= 0.3.6)
|
35
|
+
activemodel (5.2.0)
|
36
|
+
activesupport (= 5.2.0)
|
37
|
+
activerecord (5.2.0)
|
38
|
+
activemodel (= 5.2.0)
|
39
|
+
activesupport (= 5.2.0)
|
40
|
+
arel (>= 9.0)
|
41
|
+
activestorage (5.2.0)
|
42
|
+
actionpack (= 5.2.0)
|
43
|
+
activerecord (= 5.2.0)
|
44
|
+
marcel (~> 0.3.1)
|
45
|
+
activesupport (5.2.0)
|
46
|
+
concurrent-ruby (~> 1.0, >= 1.0.2)
|
47
|
+
i18n (>= 0.7, < 2)
|
48
|
+
minitest (~> 5.1)
|
49
|
+
tzinfo (~> 1.1)
|
50
|
+
arel (9.0.0)
|
51
|
+
builder (3.2.3)
|
52
|
+
concurrent-ruby (1.0.5)
|
53
|
+
crass (1.0.4)
|
54
|
+
erubi (1.7.1)
|
55
|
+
globalid (0.4.1)
|
56
|
+
activesupport (>= 4.2.0)
|
57
|
+
i18n (1.0.1)
|
58
|
+
concurrent-ruby (~> 1.0)
|
59
|
+
loofah (2.2.2)
|
60
|
+
crass (~> 1.0.2)
|
61
|
+
nokogiri (>= 1.5.9)
|
62
|
+
mail (2.7.0)
|
63
|
+
mini_mime (>= 0.1.1)
|
64
|
+
marcel (0.3.2)
|
65
|
+
mimemagic (~> 0.3.2)
|
66
|
+
method_source (0.9.0)
|
67
|
+
mimemagic (0.3.2)
|
68
|
+
mini_mime (1.0.0)
|
69
|
+
mini_portile2 (2.3.0)
|
70
|
+
minitest (5.11.3)
|
71
|
+
nio4r (2.3.1)
|
72
|
+
nokogiri (1.8.2)
|
73
|
+
mini_portile2 (~> 2.3.0)
|
74
|
+
rack (2.0.5)
|
75
|
+
rack-test (1.0.0)
|
76
|
+
rack (>= 1.0, < 3)
|
77
|
+
rails (5.2.0)
|
78
|
+
actioncable (= 5.2.0)
|
79
|
+
actionmailer (= 5.2.0)
|
80
|
+
actionpack (= 5.2.0)
|
81
|
+
actionview (= 5.2.0)
|
82
|
+
activejob (= 5.2.0)
|
83
|
+
activemodel (= 5.2.0)
|
84
|
+
activerecord (= 5.2.0)
|
85
|
+
activestorage (= 5.2.0)
|
86
|
+
activesupport (= 5.2.0)
|
87
|
+
bundler (>= 1.3.0)
|
88
|
+
railties (= 5.2.0)
|
89
|
+
sprockets-rails (>= 2.0.0)
|
90
|
+
rails-dom-testing (2.0.3)
|
91
|
+
activesupport (>= 4.2.0)
|
92
|
+
nokogiri (>= 1.6)
|
93
|
+
rails-html-sanitizer (1.0.4)
|
94
|
+
loofah (~> 2.2, >= 2.2.2)
|
95
|
+
railties (5.2.0)
|
96
|
+
actionpack (= 5.2.0)
|
97
|
+
activesupport (= 5.2.0)
|
98
|
+
method_source
|
99
|
+
rake (>= 0.8.7)
|
100
|
+
thor (>= 0.18.1, < 2.0)
|
101
|
+
rake (10.4.2)
|
102
|
+
sprockets (3.7.1)
|
103
|
+
concurrent-ruby (~> 1.0)
|
104
|
+
rack (> 1, < 3)
|
105
|
+
sprockets-rails (3.2.1)
|
106
|
+
actionpack (>= 4.0)
|
107
|
+
activesupport (>= 4.0)
|
108
|
+
sprockets (>= 3.0.0)
|
109
|
+
thor (0.20.0)
|
110
|
+
thread_safe (0.3.6)
|
111
|
+
tzinfo (1.2.5)
|
112
|
+
thread_safe (~> 0.1)
|
113
|
+
websocket-driver (0.7.0)
|
114
|
+
websocket-extensions (>= 0.1.0)
|
115
|
+
websocket-extensions (0.1.3)
|
116
|
+
|
117
|
+
PLATFORMS
|
118
|
+
ruby
|
119
|
+
|
120
|
+
DEPENDENCIES
|
121
|
+
bundler (~> 1.16)
|
122
|
+
copyright_tool!
|
123
|
+
rails (~> 5.0)
|
124
|
+
rake (~> 10.0)
|
125
|
+
|
126
|
+
BUNDLED WITH
|
127
|
+
1.16.2
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2018 Jamal Awad
|
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.
|
data/README.md
ADDED
@@ -0,0 +1,40 @@
|
|
1
|
+
# CopyrightTool
|
2
|
+
|
3
|
+
> 1. Various view specific methods for applications I use...
|
4
|
+
> 2. Provides an HTML copyright note for Rails applications.
|
5
|
+
|
6
|
+
## Installation
|
7
|
+
|
8
|
+
Add this line to your application's Gemfile:
|
9
|
+
|
10
|
+
```ruby
|
11
|
+
gem 'copyright_tool'
|
12
|
+
```
|
13
|
+
|
14
|
+
And then execute:
|
15
|
+
|
16
|
+
$ bundle
|
17
|
+
|
18
|
+
Or install it yourself as:
|
19
|
+
|
20
|
+
$ gem install copyright_tool
|
21
|
+
|
22
|
+
## Usage
|
23
|
+
|
24
|
+
```ruby
|
25
|
+
@copyright = CopyrightTool::Renderer.copyright "Jamal Awad", "All rights reserved"
|
26
|
+
```
|
27
|
+
|
28
|
+
## Development
|
29
|
+
|
30
|
+
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.
|
31
|
+
|
32
|
+
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).
|
33
|
+
|
34
|
+
## Contributing
|
35
|
+
|
36
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/jaywad/copyright_tool.
|
37
|
+
|
38
|
+
## License
|
39
|
+
|
40
|
+
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
data/Rakefile
ADDED
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "copyright_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__)
|
data/bin/setup
ADDED
@@ -0,0 +1,29 @@
|
|
1
|
+
|
2
|
+
lib = File.expand_path("../lib", __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require "copyright_tool/version"
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "copyright_tool"
|
8
|
+
spec.version = CopyrightTool::VERSION
|
9
|
+
spec.authors = ["Jamal Awad"]
|
10
|
+
spec.email = ["jamalawad26@gmail.com"]
|
11
|
+
|
12
|
+
spec.summary = %q{Various view specific methods for applications I use.}
|
13
|
+
spec.description = %q{Provides an HTML copyright note for Rails applications.}
|
14
|
+
spec.homepage = "https://github.com/jaywad/copyright_tool"
|
15
|
+
spec.license = "MIT"
|
16
|
+
|
17
|
+
# Specify which files should be added to the gem when it is released.
|
18
|
+
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
19
|
+
spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
|
20
|
+
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
21
|
+
end
|
22
|
+
spec.bindir = "exe"
|
23
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
24
|
+
spec.require_paths = ["lib"]
|
25
|
+
|
26
|
+
spec.add_development_dependency "bundler", "~> 1.16"
|
27
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
28
|
+
spec.add_development_dependency "rails", "~> 5.0"
|
29
|
+
end
|
metadata
ADDED
@@ -0,0 +1,98 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: copyright_tool
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Jamal Awad
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2018-05-30 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.16'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.16'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '10.0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '10.0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rails
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '5.0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '5.0'
|
55
|
+
description: Provides an HTML copyright note for Rails applications.
|
56
|
+
email:
|
57
|
+
- jamalawad26@gmail.com
|
58
|
+
executables: []
|
59
|
+
extensions: []
|
60
|
+
extra_rdoc_files: []
|
61
|
+
files:
|
62
|
+
- ".gitignore"
|
63
|
+
- Gemfile
|
64
|
+
- Gemfile.lock
|
65
|
+
- LICENSE.txt
|
66
|
+
- README.md
|
67
|
+
- Rakefile
|
68
|
+
- bin/console
|
69
|
+
- bin/setup
|
70
|
+
- copyright_tool.gemspec
|
71
|
+
- lib/copyright_tool.rb
|
72
|
+
- lib/copyright_tool/renderer.rb
|
73
|
+
- lib/copyright_tool/version.rb
|
74
|
+
homepage: https://github.com/jaywad/copyright_tool
|
75
|
+
licenses:
|
76
|
+
- MIT
|
77
|
+
metadata: {}
|
78
|
+
post_install_message:
|
79
|
+
rdoc_options: []
|
80
|
+
require_paths:
|
81
|
+
- lib
|
82
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
83
|
+
requirements:
|
84
|
+
- - ">="
|
85
|
+
- !ruby/object:Gem::Version
|
86
|
+
version: '0'
|
87
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
88
|
+
requirements:
|
89
|
+
- - ">="
|
90
|
+
- !ruby/object:Gem::Version
|
91
|
+
version: '0'
|
92
|
+
requirements: []
|
93
|
+
rubyforge_project:
|
94
|
+
rubygems_version: 2.7.7
|
95
|
+
signing_key:
|
96
|
+
specification_version: 4
|
97
|
+
summary: Various view specific methods for applications I use.
|
98
|
+
test_files: []
|