my_app_info 0.1.0 → 0.2.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
- SHA1:
3
- metadata.gz: d4f7e52a33ebc769bfdd71a7f1756b897202aca3
4
- data.tar.gz: 6642550ab19872031e97dc98217d9c7937fa417f
2
+ SHA256:
3
+ metadata.gz: 101ee0d271e029d98e74d59ac93719f84d148fa04074db057f4e5dafb16976c9
4
+ data.tar.gz: b648aa2844de953efb83d39386aa0189bb61322b5307b257a185e221927c3358
5
5
  SHA512:
6
- metadata.gz: a9a3c1d029bc445cf45b459113853b28bdb9d3a8ffc47d70f2028ef87422d7c65f62dd548c2a7f47d6b8fdff82450fd2e030269ac9676a7a2c77d41d43e11b51
7
- data.tar.gz: adc6c84decd2f75684fbf161764ba042347072b5292c0ae30a1fbd37f173fb8b40589f8da84ffe1ddad1869a707c76096c78e00501c79fec69380ce4c3938b87
6
+ metadata.gz: 61e510c9b7183b0355766eec705c4274c551fdbc73f616a16a13d04e77eb9ac4bb3fe6c044fea3c78c097a3c56c7ee7bb5451260529d2b3e8140261dc2bcf9c7
7
+ data.tar.gz: f3b1728a06b2f25cb8d5b03fba20305a10aaccb3391c7f5986c19c6a8da917497691d7bb54afa9ff2c68488ee91d0d658861990be552d49f7bb3f1723eac3151
File without changes
@@ -0,0 +1,2 @@
1
+ 0.2.0 - Added privacy policy text and url to gem
2
+ 0.1.0 - Inital release.
@@ -1,16 +1,9 @@
1
- # Contributor Covenant Code of Conduct
1
+ # Contributor Code of Conduct
2
2
 
3
3
  ## Our Pledge
4
-
5
- In the interest of fostering an open and welcoming environment, we as
6
- contributors and maintainers pledge to making participation in our project and
7
- our community a harassment-free experience for everyone, regardless of age, body
8
- size, disability, ethnicity, gender identity and expression, level of experience,
9
- nationality, personal appearance, race, religion, or sexual identity and
10
- orientation.
4
+ In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation.
11
5
 
12
6
  ## Our Standards
13
-
14
7
  Examples of behavior that contributes to creating a positive environment
15
8
  include:
16
9
 
@@ -18,21 +11,17 @@ include:
18
11
  * Being respectful of differing viewpoints and experiences
19
12
  * Gracefully accepting constructive criticism
20
13
  * Focusing on what is best for the community
21
- * Showing empathy towards other community members
14
+ * Good mannors go a long way
22
15
 
23
16
  Examples of unacceptable behavior by participants include:
24
17
 
25
- * The use of sexualized language or imagery and unwelcome sexual attention or
26
- advances
18
+ * The use of sexualized language or imagery and unwelcome sexual attention or advances
27
19
  * Trolling, insulting/derogatory comments, and personal or political attacks
28
20
  * Public or private harassment
29
- * Publishing others' private information, such as a physical or electronic
30
- address, without explicit permission
31
- * Other conduct which could reasonably be considered inappropriate in a
32
- professional setting
21
+ * Publishing others' private information, such as a physical or electronic address, without explicit permission
22
+ * Other conduct which could reasonably be considered inappropriate in a professional setting
33
23
 
34
24
  ## Our Responsibilities
35
-
36
25
  Project maintainers are responsible for clarifying the standards of acceptable
37
26
  behavior and are expected to take appropriate and fair corrective action in
38
27
  response to any instances of unacceptable behavior.
@@ -44,7 +33,6 @@ permanently any contributor for other behaviors that they deem inappropriate,
44
33
  threatening, offensive, or harmful.
45
34
 
46
35
  ## Scope
47
-
48
36
  This Code of Conduct applies both within project spaces and in public spaces
49
37
  when an individual is representing the project or its community. Examples of
50
38
  representing a project or community include using an official project e-mail
@@ -53,7 +41,6 @@ representative at an online or offline event. Representation of a project may be
53
41
  further defined and clarified by project maintainers.
54
42
 
55
43
  ## Enforcement
56
-
57
44
  Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
45
  reported by contacting the project team at emailme@mikechilson.com. All
59
46
  complaints will be reviewed and investigated and will result in a response that
@@ -66,7 +53,6 @@ faith may face temporary or permanent repercussions as determined by other
66
53
  members of the project's leadership.
67
54
 
68
55
  ## Attribution
69
-
70
56
  This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
57
  available at [http://contributor-covenant.org/version/1/4][version]
72
58
 
data/README.md CHANGED
@@ -1,4 +1,5 @@
1
1
  # MyAppInfo
2
+ [![Gem Version](https://badge.fury.io/rb/my_app_info.png)](https://badge.fury.io/rb/my_app_info)
2
3
 
3
4
  A small Gem that allows you to generate a copyright notice, application name and version number for your app.
4
5
 
@@ -24,11 +25,11 @@ I like to create two methods that are in the appliation helper file in my rails
24
25
 
25
26
  ```ruby
26
27
  def set_copyright
27
- MyAppInfo::Renderer.app_copyright 'Mike Chilson', 'All rights reserved.'
28
+ MyAppInfo::Renderer.app_copyright 'ACME Widgets', 'All rights reserved.'
28
29
  end
29
30
 
30
31
  def set_version
31
- MyAppInfo::Renderer.app_version "Mike Chilson's Blog", '0.11a'
32
+ MyAppInfo::Renderer.app_version "ACME Widgets Blog", '1.04a'
32
33
  end
33
34
  ```
34
35
  Then call the rendered methods at the bottom of the page in the application HTML template file.
@@ -47,12 +48,10 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
47
48
 
48
49
  ## Contributing
49
50
 
50
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/my_app_info. Contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
51
+ Bug reports and pull requests are welcome on GitLab at https://gitlab.com/mchilson/my_app_info. Contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
51
52
 
52
53
 
53
54
  ## License
54
55
 
55
56
  The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
56
57
 
57
- Thank you,
58
- Mike Chilson
@@ -1,10 +1,13 @@
1
1
  module MyAppInfo
2
2
  class Renderer
3
3
  def self.app_copyright name, msg
4
- "Copyright &copy; #{Time.now.year} | <b>#{name}</b>, #{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
8
8
  end
9
+ def self.app_privacy privacy_text, privacy_url
10
+ "<a href='#{privacy_url}'>#{privacy_text}</a>".html_safe
11
+ end
9
12
  end
10
- end
13
+ end
@@ -1,3 +1,3 @@
1
1
  module MyAppInfo
2
- VERSION = "0.1.0"
2
+ VERSION = "0.2.0"
3
3
  end
@@ -1,4 +1,6 @@
1
1
  # coding: utf-8
2
+ # frozen_string_literal: true
3
+
2
4
  lib = File.expand_path('../lib', __FILE__)
3
5
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
6
  require 'my_app_info/version'
@@ -8,9 +10,9 @@ Gem::Specification.new do |spec|
8
10
  spec.version = MyAppInfo::VERSION
9
11
  spec.authors = ["Mike Chilson"]
10
12
  spec.email = ["emailme@mikechilson.com"]
11
-
12
- spec.summary = %q{A small Ruby Gem that adds copyright and version info to your ruby or rails application.}
13
- spec.description = %q{A small Gem that allows you to generate a copyright notice, application name and version number for your app.}
13
+
14
+ spec.summary = %q{A Rails Gem that adds copyright, a privacy policy link, and version info to your Rails application.}
15
+ spec.description = %q{A small Rails Gem that allows you to generate a copyright notice, a privacy policy link, application name and version number for your Rails application.}
14
16
  spec.homepage = "https://gitlab.com/mchilson/my_app_info"
15
17
  spec.license = "MIT"
16
18
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: my_app_info
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Chilson
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-06-14 00:00:00.000000000 Z
11
+ date: 2020-03-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -38,15 +38,17 @@ dependencies:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: '10.0'
41
- description: A small Gem that allows you to generate a copyright notice, application
42
- name and version number for your app.
41
+ description: A small Rails Gem that allows you to generate a copyright notice, a privacy
42
+ policy link, application name and version number for your Rails application.
43
43
  email:
44
44
  - emailme@mikechilson.com
45
45
  executables: []
46
46
  extensions: []
47
47
  extra_rdoc_files: []
48
48
  files:
49
+ - ".Rhistory"
49
50
  - ".gitignore"
51
+ - CHANGELOG
50
52
  - CODE_OF_CONDUCT.md
51
53
  - Gemfile
52
54
  - LICENSE.txt
@@ -77,10 +79,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
77
79
  - !ruby/object:Gem::Version
78
80
  version: '0'
79
81
  requirements: []
80
- rubyforge_project:
81
- rubygems_version: 2.6.8
82
+ rubygems_version: 3.1.2
82
83
  signing_key:
83
84
  specification_version: 4
84
- summary: A small Ruby Gem that adds copyright and version info to your ruby or rails
85
- application.
85
+ summary: A Rails Gem that adds copyright, a privacy policy link, and version info
86
+ to your Rails application.
86
87
  test_files: []