my_app_info 0.2.0 → 0.3.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 101ee0d271e029d98e74d59ac93719f84d148fa04074db057f4e5dafb16976c9
4
- data.tar.gz: b648aa2844de953efb83d39386aa0189bb61322b5307b257a185e221927c3358
3
+ metadata.gz: 6cbc55cac83263bb98961aea650595040b84d2d7dbb66fe65c1820b72b97d349
4
+ data.tar.gz: e9daf1b5f2f2912a8116f2e41ac628ec557a1ea54e20a04bee01db3208321858
5
5
  SHA512:
6
- metadata.gz: 61e510c9b7183b0355766eec705c4274c551fdbc73f616a16a13d04e77eb9ac4bb3fe6c044fea3c78c097a3c56c7ee7bb5451260529d2b3e8140261dc2bcf9c7
7
- data.tar.gz: f3b1728a06b2f25cb8d5b03fba20305a10aaccb3391c7f5986c19c6a8da917497691d7bb54afa9ff2c68488ee91d0d658861990be552d49f7bb3f1723eac3151
6
+ metadata.gz: 4e37ab7b90427e2063c95360ffbe80ff3e74ae080d97144376c9ac1d10d2a25849e4f9c456bafb1bca3f893bc9871cb7358bbc190a5d80499cb104cf7c27db7a
7
+ data.tar.gz: 8a6b00e552aee316622dec29dfb64ddbae0c0fd65522b5496cdc5131d58b71e0d6b8ba8894369a08e78599445c40b9dd36f2e2b4d2cdf6344bb06e69b55ad656
data/CHANGELOG CHANGED
@@ -1,2 +1,3 @@
1
+ 0.3.0 - Updated dependencies and added Contact Us link to gem
1
2
  0.2.0 - Added privacy policy text and url to gem
2
- 0.1.0 - Inital release.
3
+ 0.1.0 - Initial release.
data/README.md CHANGED
@@ -13,7 +13,7 @@ gem 'my_app_info'
13
13
 
14
14
  And then execute:
15
15
 
16
- $ bundle
16
+ $ bundle install
17
17
 
18
18
  Or install it yourself as:
19
19
 
@@ -21,22 +21,29 @@ Or install it yourself as:
21
21
 
22
22
  ## Usage
23
23
 
24
- I like to create two methods that are in the appliation helper file in my rails apps.
24
+ I like to create these three methods that are in the application_helper.rb file in my rails apps.
25
25
 
26
26
  ```ruby
27
27
  def set_copyright
28
- MyAppInfo::Renderer.app_copyright 'ACME Widgets', 'All rights reserved.'
28
+ MyAppInfo::Renderer.app_copyright 'ACME Widgets', 'All Rights Reserved'
29
29
  end
30
30
 
31
31
  def set_version
32
- MyAppInfo::Renderer.app_version "ACME Widgets Blog", '1.04a'
32
+ MyAppInfo::Renderer.app_version 'ACME Widgets Blog', '1.5'
33
33
  end
34
- ```
35
- Then call the rendered methods at the bottom of the page in the application HTML template file.
36
34
 
37
- ```ruby
38
- <%= set_version %> <br>
39
- <%= set_copyright %>
35
+ def set_policy
36
+ MyAppInfo::Renderer.app_privacy 'Our Privacy Policy', 'https://www.acme-widgets.com/privacypolicy/'
37
+ end
38
+
39
+ def set_contactus
40
+ MyAppInfo::Renderer.app_contactus 'Contact Us', 'https://www.acme-widgets.com/contactus/'
41
+ end
42
+ ```
43
+ Then call the rendered methods at the bottom of the page in your application HTML template file.
44
+
45
+ ```html
46
+ <%= set_version %> | <%= set_policy %> | <%= set_copyright %> | <%= set_contactus %>
40
47
  ```
41
48
 
42
49
 
@@ -53,5 +60,5 @@ Bug reports and pull requests are welcome on GitLab at https://gitlab.com/mchils
53
60
 
54
61
  ## License
55
62
 
56
- The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
63
+ The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT). Enjoy!
57
64
 
@@ -1,7 +1,7 @@
1
1
  module MyAppInfo
2
2
  class Renderer
3
3
  def self.app_copyright name, msg
4
- "Copyright &copy; #{Time.now.year}, #{name}, #{msg}".html_safe
4
+ "Copyright &copy; #{Time.now.year} #{name}, #{msg}".html_safe
5
5
  end
6
6
  def self.app_version app_name, ver
7
7
  "#{app_name}, Version #{ver}".html_safe
@@ -9,5 +9,8 @@ module MyAppInfo
9
9
  def self.app_privacy privacy_text, privacy_url
10
10
  "<a href='#{privacy_url}'>#{privacy_text}</a>".html_safe
11
11
  end
12
+ def self.app_contactus contactus_text, contactus_url
13
+ "<a href='#{contactus_url}'>#{contactus_text}</a>".html_safe
14
+ end
12
15
  end
13
16
  end
@@ -1,3 +1,3 @@
1
1
  module MyAppInfo
2
- VERSION = "0.2.0"
2
+ VERSION = "0.3.0"
3
3
  end
data/my_app_info.gemspec CHANGED
@@ -23,6 +23,6 @@ Gem::Specification.new do |spec|
23
23
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
24
24
  spec.require_paths = ["lib"]
25
25
 
26
- spec.add_development_dependency "bundler", "~> 1.13"
27
- spec.add_development_dependency "rake", "~> 10.0"
26
+ spec.add_development_dependency "bundler", "~> 2.6.9"
27
+ spec.add_development_dependency "rake", "~> 13.3"
28
28
  end
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: my_app_info
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Chilson
8
- autorequire:
9
8
  bindir: exe
10
9
  cert_chain: []
11
- date: 2020-03-06 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: bundler
@@ -16,28 +15,28 @@ dependencies:
16
15
  requirements:
17
16
  - - "~>"
18
17
  - !ruby/object:Gem::Version
19
- version: '1.13'
18
+ version: 2.6.9
20
19
  type: :development
21
20
  prerelease: false
22
21
  version_requirements: !ruby/object:Gem::Requirement
23
22
  requirements:
24
23
  - - "~>"
25
24
  - !ruby/object:Gem::Version
26
- version: '1.13'
25
+ version: 2.6.9
27
26
  - !ruby/object:Gem::Dependency
28
27
  name: rake
29
28
  requirement: !ruby/object:Gem::Requirement
30
29
  requirements:
31
30
  - - "~>"
32
31
  - !ruby/object:Gem::Version
33
- version: '10.0'
32
+ version: '13.3'
34
33
  type: :development
35
34
  prerelease: false
36
35
  version_requirements: !ruby/object:Gem::Requirement
37
36
  requirements:
38
37
  - - "~>"
39
38
  - !ruby/object:Gem::Version
40
- version: '10.0'
39
+ version: '13.3'
41
40
  description: A small Rails Gem that allows you to generate a copyright notice, a privacy
42
41
  policy link, application name and version number for your Rails application.
43
42
  email:
@@ -64,7 +63,6 @@ homepage: https://gitlab.com/mchilson/my_app_info
64
63
  licenses:
65
64
  - MIT
66
65
  metadata: {}
67
- post_install_message:
68
66
  rdoc_options: []
69
67
  require_paths:
70
68
  - lib
@@ -79,8 +77,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
79
77
  - !ruby/object:Gem::Version
80
78
  version: '0'
81
79
  requirements: []
82
- rubygems_version: 3.1.2
83
- signing_key:
80
+ rubygems_version: 3.6.9
84
81
  specification_version: 4
85
82
  summary: A Rails Gem that adds copyright, a privacy policy link, and version info
86
83
  to your Rails application.