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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 82e137d94d4fff6d601f398159318349219b097f72999434ecd4193d95afd6ab
4
- data.tar.gz: 91e4ec7914e0c35f46f77033b5466070dfc5a4da6a980223bc4bb9baed1d77eb
3
+ metadata.gz: b2ab5ab298ea1e3b2df38d7e1e0570ad816ecb195ebde1b0da6c3917abfb747f
4
+ data.tar.gz: 6b618f6bce418d1e455433bdfb9c56c1c659d6d70474cd40800ac02db0c815f2
5
5
  SHA512:
6
- metadata.gz: 50bb79b16e3f3cefe71e63b2572555bb63c51ea6549d7266158bf18727ccbff0ba6bbd7765a9d6a1fca6e28c1f7c63caf91ea924369b1d27f1275521386e3873
7
- data.tar.gz: 339fde24a53631269935b20e2424cce0c9f3802aa40d49de67fe84b0916a601df8e15474e656dd779898bc65fabe4e7821481e60e702a62126d076782440bf26
6
+ metadata.gz: 2f7cb98db927d82fcc63f8d6af5dc8d94af8c96620317e257e92a054028b362fa016bcbde1ca33096f083a86ebfcd056c3eff4b369edbc657a7c3bff29b87297
7
+ data.tar.gz: '09215e54e761abd7f93073ca958b79011ec3afe28db348e03478b2eb829066aed691c38cc8ec94da9c70d99aeca12fa3b296719d37dd25afbcaac1ece2ebb3d0'
@@ -0,0 +1,20 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ coprght (0.1.1)
5
+
6
+ GEM
7
+ remote: https://rubygems.org/
8
+ specs:
9
+ rake (10.5.0)
10
+
11
+ PLATFORMS
12
+ ruby
13
+
14
+ DEPENDENCIES
15
+ bundler (~> 2.0)
16
+ coprght!
17
+ rake (~> 10.0)
18
+
19
+ BUNDLED WITH
20
+ 2.0.2
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
- Coprght::Renderer.copyright 'Harun Gunes', 'All rights reserved'
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.
@@ -1,6 +1,6 @@
1
1
  module Coprght
2
2
  class Renderer
3
- def self.copyright name, msg
3
+ def self.copyright name, msg
4
4
  "&copy; #{Time.now.year} | <b>#{name}</b> #{msg}".html_safe
5
5
  end
6
6
  end
@@ -1,3 +1,3 @@
1
1
  module Coprght
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
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.0
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