my_app_info 0.1.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
- SHA1:
3
- metadata.gz: d4f7e52a33ebc769bfdd71a7f1756b897202aca3
4
- data.tar.gz: 6642550ab19872031e97dc98217d9c7937fa417f
2
+ SHA256:
3
+ metadata.gz: 6cbc55cac83263bb98961aea650595040b84d2d7dbb66fe65c1820b72b97d349
4
+ data.tar.gz: e9daf1b5f2f2912a8116f2e41ac628ec557a1ea54e20a04bee01db3208321858
5
5
  SHA512:
6
- metadata.gz: a9a3c1d029bc445cf45b459113853b28bdb9d3a8ffc47d70f2028ef87422d7c65f62dd548c2a7f47d6b8fdff82450fd2e030269ac9676a7a2c77d41d43e11b51
7
- data.tar.gz: adc6c84decd2f75684fbf161764ba042347072b5292c0ae30a1fbd37f173fb8b40589f8da84ffe1ddad1869a707c76096c78e00501c79fec69380ce4c3938b87
6
+ metadata.gz: 4e37ab7b90427e2063c95360ffbe80ff3e74ae080d97144376c9ac1d10d2a25849e4f9c456bafb1bca3f893bc9871cb7358bbc190a5d80499cb104cf7c27db7a
7
+ data.tar.gz: 8a6b00e552aee316622dec29dfb64ddbae0c0fd65522b5496cdc5131d58b71e0d6b8ba8894369a08e78599445c40b9dd36f2e2b4d2cdf6344bb06e69b55ad656
data/.Rhistory ADDED
File without changes
data/CHANGELOG ADDED
@@ -0,0 +1,3 @@
1
+ 0.3.0 - Updated dependencies and added Contact Us link to gem
2
+ 0.2.0 - Added privacy policy text and url to gem
3
+ 0.1.0 - Initial release.
data/CODE_OF_CONDUCT.md CHANGED
@@ -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
 
@@ -12,7 +13,7 @@ gem 'my_app_info'
12
13
 
13
14
  And then execute:
14
15
 
15
- $ bundle
16
+ $ bundle install
16
17
 
17
18
  Or install it yourself as:
18
19
 
@@ -20,22 +21,29 @@ Or install it yourself as:
20
21
 
21
22
  ## Usage
22
23
 
23
- 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.
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.5'
32
33
  end
33
- ```
34
- Then call the rendered methods at the bottom of the page in the application HTML template file.
35
34
 
36
- ```ruby
37
- <%= set_version %> <br>
38
- <%= 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 %>
39
47
  ```
40
48
 
41
49
 
@@ -47,12 +55,10 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
47
55
 
48
56
  ## Contributing
49
57
 
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.
58
+ 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
59
 
52
60
 
53
61
  ## License
54
62
 
55
- 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!
56
64
 
57
- Thank you,
58
- Mike Chilson
@@ -1,10 +1,16 @@
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
12
+ def self.app_contactus contactus_text, contactus_url
13
+ "<a href='#{contactus_url}'>#{contactus_text}</a>".html_safe
14
+ end
9
15
  end
10
- end
16
+ end
@@ -1,3 +1,3 @@
1
1
  module MyAppInfo
2
- VERSION = "0.1.0"
2
+ VERSION = "0.3.0"
3
3
  end
data/my_app_info.gemspec CHANGED
@@ -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
 
@@ -21,6 +23,6 @@ Gem::Specification.new do |spec|
21
23
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
22
24
  spec.require_paths = ["lib"]
23
25
 
24
- spec.add_development_dependency "bundler", "~> 1.13"
25
- spec.add_development_dependency "rake", "~> 10.0"
26
+ spec.add_development_dependency "bundler", "~> 2.6.9"
27
+ spec.add_development_dependency "rake", "~> 13.3"
26
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.1.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: 2017-06-14 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,37 +15,39 @@ 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'
41
- description: A small Gem that allows you to generate a copyright notice, application
42
- name and version number for your app.
39
+ version: '13.3'
40
+ description: A small Rails Gem that allows you to generate a copyright notice, a privacy
41
+ policy link, application name and version number for your Rails application.
43
42
  email:
44
43
  - emailme@mikechilson.com
45
44
  executables: []
46
45
  extensions: []
47
46
  extra_rdoc_files: []
48
47
  files:
48
+ - ".Rhistory"
49
49
  - ".gitignore"
50
+ - CHANGELOG
50
51
  - CODE_OF_CONDUCT.md
51
52
  - Gemfile
52
53
  - LICENSE.txt
@@ -62,7 +63,6 @@ homepage: https://gitlab.com/mchilson/my_app_info
62
63
  licenses:
63
64
  - MIT
64
65
  metadata: {}
65
- post_install_message:
66
66
  rdoc_options: []
67
67
  require_paths:
68
68
  - lib
@@ -77,10 +77,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
77
77
  - !ruby/object:Gem::Version
78
78
  version: '0'
79
79
  requirements: []
80
- rubyforge_project:
81
- rubygems_version: 2.6.8
82
- signing_key:
80
+ rubygems_version: 3.6.9
83
81
  specification_version: 4
84
- summary: A small Ruby Gem that adds copyright and version info to your ruby or rails
85
- application.
82
+ summary: A Rails Gem that adds copyright, a privacy policy link, and version info
83
+ to your Rails application.
86
84
  test_files: []