coprght 0.1.0 → 0.1.1
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.
- checksums.yaml +4 -4
- data/Gemfile.lock +20 -0
- data/README.md +12 -1
- data/lib/coprght/renderer.rb +1 -1
- data/lib/coprght/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b2ab5ab298ea1e3b2df38d7e1e0570ad816ecb195ebde1b0da6c3917abfb747f
|
|
4
|
+
data.tar.gz: 6b618f6bce418d1e455433bdfb9c56c1c659d6d70474cd40800ac02db0c815f2
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2f7cb98db927d82fcc63f8d6af5dc8d94af8c96620317e257e92a054028b362fa016bcbde1ca33096f083a86ebfcd056c3eff4b369edbc657a7c3bff29b87297
|
|
7
|
+
data.tar.gz: '09215e54e761abd7f93073ca958b79011ec3afe28db348e03478b2eb829066aed691c38cc8ec94da9c70d99aeca12fa3b296719d37dd25afbcaac1ece2ebb3d0'
|
data/Gemfile.lock
ADDED
data/README.md
CHANGED
|
@@ -19,10 +19,21 @@ Or install it yourself as:
|
|
|
19
19
|
$ gem install coprght
|
|
20
20
|
|
|
21
21
|
## Usage
|
|
22
|
+
|
|
23
|
+
In your `app/helpers/application_helper.rb` file create a method:
|
|
24
|
+
|
|
22
25
|
```ruby
|
|
23
|
-
|
|
26
|
+
def copyright_generator
|
|
27
|
+
Coprght::Renderer.copyright '[YOUR NAME]', '[YOUR MESSAGE for example: All rights reserved]'
|
|
28
|
+
end
|
|
24
29
|
```
|
|
25
30
|
|
|
31
|
+
And then at the bottom of your `app/views/layouts/application.html.erb` file include:
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
`<p><%= copyright_generator %></p>`
|
|
35
|
+
|
|
36
|
+
|
|
26
37
|
## Development
|
|
27
38
|
|
|
28
39
|
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.
|
data/lib/coprght/renderer.rb
CHANGED
data/lib/coprght/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: coprght
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Harun Gunes
|
|
@@ -48,6 +48,7 @@ files:
|
|
|
48
48
|
- ".gitignore"
|
|
49
49
|
- CODE_OF_CONDUCT.md
|
|
50
50
|
- Gemfile
|
|
51
|
+
- Gemfile.lock
|
|
51
52
|
- LICENSE.txt
|
|
52
53
|
- README.md
|
|
53
54
|
- Rakefile
|