slack_messaging 1.2.0 → 1.2.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ca6013870004fd4decf9af498cf20bc295923da1e8bb8d3889bf99a5cab01238
4
- data.tar.gz: 91ec19a2846a14b64f795869287e7efadb1698b75e1e0106beed8980e5e8ddb6
3
+ metadata.gz: d24e1b597a2106bd3eab6c3ac90a2314be938ee683232682936dcd528dedff7c
4
+ data.tar.gz: 59b8a85874fb5563fe398acb7a99d0c8aa03f5dd61c8a8a0e3d7b03a61ec855a
5
5
  SHA512:
6
- metadata.gz: 1e9629551ca1a2c7217821c65d5959ae309e1600693053880e795d5def9832bcc993a1e9261e2c55c784819983c1d86efd7a00c48e81d8962bb58e1cdcff1d43
7
- data.tar.gz: eb23b41374af3df2f755413b48eb6a6cbf619370503e0a764332d7acf0a3dd3939185eca7acfe53273b970fcb2f54c009317a50e5826cdd4fa2c10eaee71b39e
6
+ metadata.gz: 67dd3d801ae5ec82c437e8107a5c4ea1642af4595f7d7bf4907aa3c69f953c26d9ee2b11664507c0fde7bfe442a242adcfe454f52603d3443e393ff60838bcff
7
+ data.tar.gz: 1f919f3bd505566c9e55264b5e75b656e1c74ad8cb85ddc181fc721dbdabe012bdbb86fe024e2ec63055e8f337771ab1cca3b7f9425a2ee36685fd3015f079c1
@@ -0,0 +1,85 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ### Table of Contents
4
+
5
+ * [Our Pledge](#our-pledge)
6
+ * [Our Standards](#our-standards)
7
+ * [Our Responsibilities](#our-responsibilities)
8
+ * [Scope](#scope)
9
+ * [Enforcement](#enforcement)
10
+ * [Attribution](#attribution)
11
+
12
+ ## Our Pledge
13
+
14
+ In the interest of fostering an open and welcoming environment, we as
15
+ contributors and maintainers pledge to making participation in our project and
16
+ our community a harassment-free experience for everyone, regardless of age, body
17
+ size, disability, ethnicity, sex characteristics, gender identity and expression,
18
+ level of experience, education, socio-economic status, nationality, personal
19
+ appearance, race, religion, or sexual identity and orientation.
20
+
21
+ ## Our Standards
22
+
23
+ Examples of behavior that contributes to creating a positive environment
24
+ include:
25
+
26
+ * Using welcoming and inclusive language
27
+ * Being respectful of differing viewpoints and experiences
28
+ * Gracefully accepting constructive criticism
29
+ * Focusing on what is best for the community
30
+ * Showing empathy towards other community members
31
+
32
+ Examples of unacceptable behavior by participants include:
33
+
34
+ * The use of sexualized language or imagery and unwelcome sexual attention or
35
+ advances
36
+ * Trolling, insulting/derogatory comments, and personal or political attacks
37
+ * Public or private harassment
38
+ * Publishing others' private information, such as a physical or electronic
39
+ address, without explicit permission
40
+ * Other conduct which could reasonably be considered inappropriate in a
41
+ professional setting
42
+
43
+ ## Our Responsibilities
44
+
45
+ Project maintainers are responsible for clarifying the standards of acceptable
46
+ behavior and are expected to take appropriate and fair corrective action in
47
+ response to any instances of unacceptable behavior.
48
+
49
+ Project maintainers have the right and responsibility to remove, edit, or
50
+ reject comments, commits, code, wiki edits, issues, and other contributions
51
+ that are not aligned to this Code of Conduct, or to ban temporarily or
52
+ permanently any contributor for other behaviors that they deem inappropriate,
53
+ threatening, offensive, or harmful.
54
+
55
+ ## Scope
56
+
57
+ This Code of Conduct applies both within project spaces and in public spaces
58
+ when an individual is representing the project or its community. Examples of
59
+ representing a project or community include using an official project e-mail
60
+ address, posting via an official social media account, or acting as an appointed
61
+ representative at an online or offline event. Representation of a project may be
62
+ further defined and clarified by project maintainers.
63
+
64
+ ## Enforcement
65
+
66
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
67
+ reported by contacting the project team at emma.sax4@gmail.com. All
68
+ complaints will be reviewed and investigated and will result in a response that
69
+ is deemed necessary and appropriate to the circumstances. The project team is
70
+ obligated to maintain confidentiality with regard to the reporter of an incident.
71
+ Further details of specific enforcement policies may be posted separately.
72
+
73
+ Project maintainers who do not follow or enforce the Code of Conduct in good
74
+ faith may face temporary or permanent repercussions as determined by other
75
+ members of the project's leadership.
76
+
77
+ ## Attribution
78
+
79
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
80
+ available at [https://www.contributor-covenant.org/version/1/4/code-of-conduct.html](https://www.contributor-covenant.org/version/1/4/code-of-conduct.html).
81
+
82
+ [homepage]: [https://www.contributor-covenant.org](https://www.contributor-covenant.org)
83
+
84
+ For answers to common questions about this code of conduct, see
85
+ [https://www.contributor-covenant.org/faq](https://www.contributor-covenant.org/faq).
@@ -0,0 +1,97 @@
1
+ Please fill in the section that best describes your Issue and delete all other sections.
2
+
3
+ <details><summary>Bug Report</summary>
4
+
5
+ ## Bug Description
6
+
7
+ > A clear and concise description of what the bug is.
8
+
9
+ ## To Reproduce
10
+
11
+ > Steps to reproduce the behavior:
12
+
13
+ 1. Go to "..."
14
+ 2. Click on "..."
15
+ 3. Scroll down to "..."
16
+ 4. See error
17
+
18
+ ## Expected Behavior
19
+
20
+ > A clear and concise description of what you expected to happen.
21
+
22
+ ## Screenshots
23
+
24
+ > If applicable, add screenshots to help explain your problem.
25
+
26
+ ## Desktop
27
+
28
+ > Please complete the following information:
29
+
30
+ - OS: [e.g. iOS]
31
+ - Browser: [e.g. chrome, safari]
32
+ - Version: [e.g. 22]
33
+
34
+ ## Smartphone
35
+
36
+ > Please complete the following information:
37
+
38
+ - Device: [e.g. iPhone6]
39
+ - OS: [e.g. iOS8.1]
40
+ - Browser: [e.g. stock browser, safari]
41
+ - Version: [e.g. 22]
42
+
43
+ ## Additional Context
44
+
45
+ > Add any other context about the problem here.
46
+
47
+ </details>
48
+
49
+ <details><summary>Feature Request</summary>
50
+
51
+ ## Is this feature request related to a problem?
52
+
53
+ > A clear and concise description of what the problem is. Ex: I'm always frustrated when [...]
54
+
55
+ ## The Solution I'd Prefer
56
+
57
+ > A clear and concise description of what you want to happen.
58
+
59
+ ## Alternative Solutions I've Considered
60
+
61
+ > A clear and concise description of any alternative solutions or features you've considered.
62
+
63
+ ## Additional Context
64
+
65
+ > Add any other context or screenshots about the feature request here.
66
+
67
+ </details>
68
+
69
+ <details><summary>Security Report</summary>
70
+
71
+ ## What is the alert or vulnerability?
72
+
73
+ > A clear and concise description of what the vulnerability is. Ex: The Ruby gem [...] has reported vulnerability CVE-[...].
74
+
75
+ ## Where did you find out about this vulnerability?
76
+
77
+ > A clear and concise description of where this vulnerability was first reported or where you heard about it.
78
+
79
+ ## What are the risks of doing nothing?
80
+
81
+ > A clear and concise description of what will happen if we leave the vulnerability as is.
82
+
83
+ ## Suggestions for improvement?
84
+
85
+ > A clear and concise description of what can be done to mitigate this vulnerability.
86
+
87
+ ## Additional Context
88
+
89
+ > Add any other context, URLs, or screenshots about the alert or vulnerability.
90
+
91
+ </details>
92
+
93
+ <details><summary>General Question or Concern</summary>
94
+
95
+ ## What's your question or comment? Please add as much context as possible.
96
+
97
+ </details>
@@ -0,0 +1,19 @@
1
+ ## Changes
2
+
3
+ > A list of the changes that your PR will make:
4
+
5
+ * Adding a page "..."
6
+ * Refactoring "..."
7
+
8
+ ## Related PRs and Issues
9
+
10
+ > If applicable, a list of related PRs and Issues:
11
+
12
+ * Issue #1
13
+ * Issue #2
14
+ * Pull Request #1
15
+ * Pull Request #2
16
+
17
+ ## Additional Context
18
+
19
+ > Add any other context about the problem here.
@@ -0,0 +1,11 @@
1
+ # Security Policy
2
+
3
+ ## Reporting a Vulnerability
4
+
5
+ If you happen to find any security vulnerabilities in this project, please let me know! I've turned on GitHub's security advisory and alert suggestions, but it's always possible that I'll miss something.
6
+
7
+ To let me know there's a security vulnerability, please make a [new GitHub Issue](https://github.com/emmasax4/slack_messaging/issues/new) and fill in the Security Report section to the best of your capabilities.
8
+
9
+ I'll respond on the Issue or take appropriate action as soon as I'm able.
10
+
11
+ Thank you for helping my project to be as secure as possible.
@@ -0,0 +1,30 @@
1
+ name: Develop
2
+ on:
3
+ push:
4
+ branches: [ main ]
5
+ pull_request:
6
+ branches: [ main ]
7
+
8
+ jobs:
9
+ test:
10
+ runs-on: ubuntu-latest
11
+ steps:
12
+ - name: Check Out Code
13
+ uses: actions/checkout@v2
14
+ with:
15
+ fetch-depth: 0
16
+
17
+ - name: Define Run Variables
18
+ run: echo "::set-env name=BRANCH::$(echo ${{ github.head_ref }} | sed -E 's|refs/[a-zA-Z]+/||')"
19
+
20
+ - name: Switch to Current Branch
21
+ run: git checkout ${{ env.BRANCH }}
22
+
23
+ - name: Configure System
24
+ run: sudo gem update --system 3.0.8 && sudo gem install bundler
25
+
26
+ - name: Install Gems
27
+ run: bundle config set path "vendor/bundle" && bundle install
28
+
29
+ - name: Run Rspec Tests
30
+ run: bundle exec rspec
@@ -1,4 +1,4 @@
1
- github_repo: emma-sax4/slack_messaging
1
+ github_repo: emmasax4/slack_messaging
2
2
  semantic_versioning: true
3
3
  branches_to_keep:
4
- - master
4
+ - main
@@ -1 +1 @@
1
- ruby-2.2.5
1
+ ruby-2.7.1
data/.soyuz.yml CHANGED
@@ -1,7 +1,7 @@
1
1
  defaults:
2
2
  deploy_cmd: gem push *.gem
3
3
  before_deploy_cmds:
4
- - sed -i "" -e "s/\".*/\"$(git tag| sed s/v// | sort -n -t. -k1,1 -k2,2 -k3,3 | tail -1)\"/" lib/sport_ngin_aws_auditor/version.rb
4
+ - sed -i "" -e "s/\".*/\"$(git tag| sed s/v// | sort -n -t. -k1,1 -k2,2 -k3,3 | tail -1)\"/" lib/slack_messaging/version.rb
5
5
  - git add lib/slack_messaging/version.rb
6
6
  - git commit -m "Version Bump" && git push
7
7
  - gem build slack_messaging.gemspec
@@ -1,11 +1,11 @@
1
1
  # Contributing
2
2
 
3
- 1. Fork it (https://github.com/emma-sax4/slack_messaging/fork)
3
+ 1. Fork it (https://github.com/emmasax4/slack_messaging/fork)
4
4
  2. Create your feature branch (`git checkout -b my-new-feature`)
5
5
  3. Commit your changes (`git commit -am 'Add some feature'`)
6
6
  4. Push to the branch (`git push origin my-new-feature`)
7
7
  5. Continue making awesome changes!
8
- 6. To see how it works, follow the [Usage section in the README.md](https://github.com/emma-sax4/slack_messaging#usage)
8
+ 6. To see how it works, follow the [Usage section in the README.md](https://github.com/emmasax4/slack_messaging#usage)
9
9
  7. When you're satisfied, make a pull request to this repository
10
10
  8. If I don't comment or start looking at the pull request in a couple of days, feel free to send me [an email](mailto:emma.sax4@gmail.com)
11
11
  9. I approve your pull request and merge!
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Slack Messaging [![Maintainability](https://api.codeclimate.com/v1/badges/3ba7d6cc8633165b845a/maintainability)](https://codeclimate.com/github/emma-sax4/slack_messaging/maintainability) [![Test Coverage](https://api.codeclimate.com/v1/badges/3ba7d6cc8633165b845a/test_coverage)](https://codeclimate.com/github/emma-sax4/slack_messaging/test_coverage) [![Build Status](https://travis-ci.org/emma-sax4/slack_messaging.svg?branch=master)](https://travis-ci.org/emma-sax4/slack_messaging)
1
+ # Slack Messaging [![Maintainability](https://api.codeclimate.com/v1/badges/c74baada70ad96048dc7/maintainability)](https://codeclimate.com/github/emmasax4/slack_messaging/maintainability) ![Develop](https://github.com/emmasax4/slack_messaging/workflows/Develop/badge.svg)
2
2
 
3
3
  This is a simple project designed to post messages to a given Slack channel as a bot.
4
4
 
@@ -44,7 +44,7 @@ To print a friendly message to Slack, run:
44
44
  slack-messaging slack
45
45
  ```
46
46
 
47
- from the main directory. Here, no specific message is being given to print to Slack, so slack_messaging will choose a random quote, which are all defined in [`lib/slack_messaging/random_message.rb`](https://github.com/emma-sax4/slack_messaging/blob/master/lib/slack_messaging/random_message.rb). Feel free to change the messages or add more to cater what you'd like slack_messaging to say.
47
+ from the main directory. Here, no specific message is being given to print to Slack, so slack_messaging will choose a random quote, which are all defined in [`lib/slack_messaging/random_message.rb`](https://github.com/emmasax4/slack_messaging/blob/main/lib/slack_messaging/random_message.rb). Feel free to change the messages or add more to cater what you'd like slack_messaging to say.
48
48
 
49
49
  However, what if you wanted to print something specific? Well, you can! Just run:
50
50
 
@@ -60,7 +60,7 @@ slack-messaging slack "MESSAGE 1" "MESSAGE 2" "MESSAGE 3" ... "MESSAGE N"
60
60
 
61
61
  The output of slack_messaging will look something like this:
62
62
 
63
- <img src="https://github.com/emma-sax4/slack_messaging/blob/master/OutputFile.png" width="1000">
63
+ <img src="https://github.com/emmasax4/slack_messaging/blob/main/OutputFile.png" width="1000">
64
64
 
65
65
  I hope you enjoy printing fun and specialized messages to Slack!
66
66
 
@@ -1,3 +1,3 @@
1
1
  module SlackMessaging
2
- VERSION = "1.2.0"
2
+ VERSION = "1.2.1"
3
3
  end
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
10
10
  spec.email = ["emma.sax4@gmail.com"]
11
11
  spec.summary = %q{Sending Personalized Slack Messages}
12
12
  spec.description = %q{Sending Personalized Slack Messages}
13
- spec.homepage = "https://github.com/emma-sax4/slack_messaging"
13
+ spec.homepage = "https://github.com/emmasax4/slack_messaging"
14
14
  spec.license = "MIT"
15
15
 
16
16
  spec.files = `git ls-files -z`.split("\x0")
@@ -22,10 +22,10 @@ Gem::Specification.new do |spec|
22
22
  spec.add_dependency 'gli', '~> 2.10'
23
23
  spec.add_dependency 'highline', '~> 1.6'
24
24
  spec.add_dependency 'slack-notifier', '~> 1.5.1'
25
- spec.add_dependency 'rack', '~> 1.6.12'
25
+ spec.add_dependency 'rack', '>= 2.1.4'
26
26
  spec.add_dependency 'activesupport', '~> 4.1.11'
27
27
 
28
- spec.add_development_dependency "bundler", "~> 1.7"
28
+ spec.add_development_dependency "bundler", "~> 2.1"
29
29
  spec.add_development_dependency "rake", "~> 12.3.3"
30
30
  spec.add_development_dependency "rspec", "~> 3.4.0"
31
31
  spec.add_development_dependency 'simplecov'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: slack_messaging
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Emma Sax
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-02-29 00:00:00.000000000 Z
11
+ date: 2020-09-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: hashie
@@ -70,16 +70,16 @@ dependencies:
70
70
  name: rack
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - "~>"
73
+ - - ">="
74
74
  - !ruby/object:Gem::Version
75
- version: 1.6.12
75
+ version: 2.1.4
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - "~>"
80
+ - - ">="
81
81
  - !ruby/object:Gem::Version
82
- version: 1.6.12
82
+ version: 2.1.4
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: activesupport
85
85
  requirement: !ruby/object:Gem::Requirement
@@ -100,14 +100,14 @@ dependencies:
100
100
  requirements:
101
101
  - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: '1.7'
103
+ version: '2.1'
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - "~>"
109
109
  - !ruby/object:Gem::Version
110
- version: '1.7'
110
+ version: '2.1'
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: rake
113
113
  requirement: !ruby/object:Gem::Requirement
@@ -159,15 +159,17 @@ extensions: []
159
159
  extra_rdoc_files: []
160
160
  files:
161
161
  - ".codeclimate.yml"
162
- - ".github/ISSUE_TEMPLATE/bug_report.md"
163
- - ".github/ISSUE_TEMPLATE/feature_request.md"
162
+ - ".github/code_of_conduct.md"
163
+ - ".github/issue_template.md"
164
+ - ".github/pull_request_template.md"
165
+ - ".github/security.md"
166
+ - ".github/workflows/develop.yml"
164
167
  - ".gitignore"
165
168
  - ".octopolo.yml"
166
169
  - ".rspec"
167
170
  - ".ruby-gemset"
168
171
  - ".ruby-version"
169
172
  - ".soyuz.yml"
170
- - ".travis.yml"
171
173
  - CHANGELOG.markdown
172
174
  - CODE_OF_CONDUCT.md
173
175
  - CONTRIBUTING.md
@@ -190,11 +192,11 @@ files:
190
192
  - spec/slack_messaging/notify_slack_spec.rb
191
193
  - spec/slack_messaging/random_message_spec.rb
192
194
  - spec/spec_helper.rb
193
- homepage: https://github.com/emma-sax4/slack_messaging
195
+ homepage: https://github.com/emmasax4/slack_messaging
194
196
  licenses:
195
197
  - MIT
196
198
  metadata: {}
197
- post_install_message:
199
+ post_install_message:
198
200
  rdoc_options: []
199
201
  require_paths:
200
202
  - lib
@@ -209,8 +211,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
209
211
  - !ruby/object:Gem::Version
210
212
  version: '0'
211
213
  requirements: []
212
- rubygems_version: 3.0.2
213
- signing_key:
214
+ rubygems_version: 3.1.2
215
+ signing_key:
214
216
  specification_version: 4
215
217
  summary: Sending Personalized Slack Messages
216
218
  test_files:
@@ -1,38 +0,0 @@
1
- ---
2
- name: Bug report
3
- about: Create a report to help us improve
4
- title: ''
5
- labels: ''
6
- assignees: ''
7
-
8
- ---
9
-
10
- **Describe the bug**
11
- A clear and concise description of what the bug is.
12
-
13
- **To Reproduce**
14
- Steps to reproduce the behavior:
15
- 1. Go to '...'
16
- 2. Click on '....'
17
- 3. Scroll down to '....'
18
- 4. See error
19
-
20
- **Expected behavior**
21
- A clear and concise description of what you expected to happen.
22
-
23
- **Screenshots**
24
- If applicable, add screenshots to help explain your problem.
25
-
26
- **Desktop (please complete the following information):**
27
- - OS: [e.g. iOS]
28
- - Browser [e.g. chrome, safari]
29
- - Version [e.g. 22]
30
-
31
- **Smartphone (please complete the following information):**
32
- - Device: [e.g. iPhone6]
33
- - OS: [e.g. iOS8.1]
34
- - Browser [e.g. stock browser, safari]
35
- - Version [e.g. 22]
36
-
37
- **Additional context**
38
- Add any other context about the problem here.
@@ -1,20 +0,0 @@
1
- ---
2
- name: Feature request
3
- about: Suggest an idea for this project
4
- title: ''
5
- labels: ''
6
- assignees: ''
7
-
8
- ---
9
-
10
- **Is your feature request related to a problem? Please describe.**
11
- A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
12
-
13
- **Describe the solution you'd like**
14
- A clear and concise description of what you want to happen.
15
-
16
- **Describe alternatives you've considered**
17
- A clear and concise description of any alternative solutions or features you've considered.
18
-
19
- **Additional context**
20
- Add any other context or screenshots about the feature request here.
@@ -1,23 +0,0 @@
1
- sudo: false
2
- language: ruby
3
- rvm:
4
- - 2.2
5
- cache: bundler
6
-
7
- branches:
8
- only:
9
- - master
10
-
11
- env:
12
- global:
13
- - CC_TEST_REPORTER_ID=9abbba4824d3bcfbdb673e4c3f55dbf671333685a36c0a6e228bc1b0416c961d
14
-
15
- before_script:
16
- - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
17
- - chmod +x ./cc-test-reporter
18
- - ./cc-test-reporter before-build
19
-
20
- script: bundle exec rspec
21
-
22
- after_script:
23
- - ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT