slack_messaging 1.2.1 → 2.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,97 +0,0 @@
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>
@@ -1,19 +0,0 @@
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.
@@ -1,11 +0,0 @@
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.
@@ -1,30 +0,0 @@
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
data/.gitignore DELETED
@@ -1,18 +0,0 @@
1
- /.bundle/
2
- /.yardoc
3
- /Gemfile.lock
4
- /_yardoc/
5
- /coverage/
6
- /doc/
7
- /pkg/
8
- /spec/reports/
9
- /tmp/
10
- *.bundle
11
- *.so
12
- *.o
13
- *.a
14
- mkmf.log
15
-
16
- .DS_Store
17
- *.gem
18
- .idea
@@ -1,4 +0,0 @@
1
- github_repo: emmasax4/slack_messaging
2
- semantic_versioning: true
3
- branches_to_keep:
4
- - main
data/.rspec DELETED
@@ -1,2 +0,0 @@
1
- --color
2
- --require spec_helper
@@ -1 +0,0 @@
1
- slack_messaging
@@ -1 +0,0 @@
1
- ruby-2.7.1
data/.soyuz.yml DELETED
@@ -1,12 +0,0 @@
1
- defaults:
2
- deploy_cmd: gem push *.gem
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/slack_messaging/version.rb
5
- - git add lib/slack_messaging/version.rb
6
- - git commit -m "Version Bump" && git push
7
- - gem build slack_messaging.gemspec
8
- after_deploy_cmds:
9
- - rm *.gem
10
- environments:
11
- -
12
- rubygems: {}
@@ -1,11 +0,0 @@
1
- #### v1.2.0
2
- * Update the gemspec to not have security vulnerabilities
3
-
4
- #### v1.1.0
5
- * Updating config.rb with more up to date information
6
-
7
- #### v1.0.1
8
- * Adding back in Changelog
9
-
10
- #### v1.0.0
11
- * Initial release
@@ -1,76 +0,0 @@
1
- # Contributor Covenant Code of Conduct
2
-
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, sex characteristics, gender identity and expression,
9
- level of experience, education, socio-economic status, nationality, personal
10
- appearance, race, religion, or sexual identity and orientation.
11
-
12
- ## Our Standards
13
-
14
- Examples of behavior that contributes to creating a positive environment
15
- include:
16
-
17
- * Using welcoming and inclusive language
18
- * Being respectful of differing viewpoints and experiences
19
- * Gracefully accepting constructive criticism
20
- * Focusing on what is best for the community
21
- * Showing empathy towards other community members
22
-
23
- Examples of unacceptable behavior by participants include:
24
-
25
- * The use of sexualized language or imagery and unwelcome sexual attention or
26
- advances
27
- * Trolling, insulting/derogatory comments, and personal or political attacks
28
- * 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
33
-
34
- ## Our Responsibilities
35
-
36
- Project maintainers are responsible for clarifying the standards of acceptable
37
- behavior and are expected to take appropriate and fair corrective action in
38
- response to any instances of unacceptable behavior.
39
-
40
- Project maintainers have the right and responsibility to remove, edit, or
41
- reject comments, commits, code, wiki edits, issues, and other contributions
42
- that are not aligned to this Code of Conduct, or to ban temporarily or
43
- permanently any contributor for other behaviors that they deem inappropriate,
44
- threatening, offensive, or harmful.
45
-
46
- ## Scope
47
-
48
- This Code of Conduct applies both within project spaces and in public spaces
49
- when an individual is representing the project or its community. Examples of
50
- representing a project or community include using an official project e-mail
51
- address, posting via an official social media account, or acting as an appointed
52
- representative at an online or offline event. Representation of a project may be
53
- further defined and clarified by project maintainers.
54
-
55
- ## Enforcement
56
-
57
- Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
- reported by contacting the project team at emma.sax4@gmail.com. All
59
- complaints will be reviewed and investigated and will result in a response that
60
- is deemed necessary and appropriate to the circumstances. The project team is
61
- obligated to maintain confidentiality with regard to the reporter of an incident.
62
- Further details of specific enforcement policies may be posted separately.
63
-
64
- Project maintainers who do not follow or enforce the Code of Conduct in good
65
- faith may face temporary or permanent repercussions as determined by other
66
- members of the project's leadership.
67
-
68
- ## Attribution
69
-
70
- This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
- available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
72
-
73
- [homepage]: https://www.contributor-covenant.org
74
-
75
- For answers to common questions about this code of conduct, see
76
- https://www.contributor-covenant.org/faq
@@ -1,11 +0,0 @@
1
- # Contributing
2
-
3
- 1. Fork it (https://github.com/emmasax4/slack_messaging/fork)
4
- 2. Create your feature branch (`git checkout -b my-new-feature`)
5
- 3. Commit your changes (`git commit -am 'Add some feature'`)
6
- 4. Push to the branch (`git push origin my-new-feature`)
7
- 5. Continue making awesome changes!
8
- 6. To see how it works, follow the [Usage section in the README.md](https://github.com/emmasax4/slack_messaging#usage)
9
- 7. When you're satisfied, make a pull request to this repository
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
- 9. I approve your pull request and merge!
Binary file
@@ -1,7 +0,0 @@
1
- desc 'Prints a variety of messages to Slack'
2
- command 'slack' do |c|
3
- c.action do |global_options, options, args|
4
- require_relative '../scripts/slack'
5
- SlackMessaging::Scripts::Slack.execute(args, options) # args are optional string to print
6
- end
7
- end
@@ -1,13 +0,0 @@
1
- require 'highline'
2
-
3
- module SlackMessaging
4
- module Output
5
- def self.terminal
6
- @terminal ||= HighLine.new
7
- end
8
-
9
- def self.ask(*args, &block)
10
- terminal.ask(*args, &block)
11
- end
12
- end
13
- end
@@ -1,29 +0,0 @@
1
- require 'highline/import'
2
- require_relative "../notify_slack"
3
- require_relative "../random_message"
4
-
5
- module SlackMessaging
6
- module Scripts
7
- class Slack
8
- class << self
9
- attr_accessor :options
10
- end
11
-
12
- def self.execute(args, options=nil)
13
- if args.empty?
14
- message = RandomMessage.new # generate a new random message
15
- print_message(message.get_text)
16
- else
17
- args.each do |message|
18
- print_message(message)
19
- end
20
- end
21
- end
22
-
23
- def self.print_message(message)
24
- slack_job = NotifySlack.new(message)
25
- slack_job.perform
26
- end
27
- end
28
- end
29
- end
@@ -1,32 +0,0 @@
1
- # coding: utf-8
2
- lib = File.expand_path('../lib', __FILE__)
3
- $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
- require 'slack_messaging/version'
5
-
6
- Gem::Specification.new do |spec|
7
- spec.name = "slack_messaging"
8
- spec.version = SlackMessaging::VERSION
9
- spec.authors = ["Emma Sax"]
10
- spec.email = ["emma.sax4@gmail.com"]
11
- spec.summary = %q{Sending Personalized Slack Messages}
12
- spec.description = %q{Sending Personalized Slack Messages}
13
- spec.homepage = "https://github.com/emmasax4/slack_messaging"
14
- spec.license = "MIT"
15
-
16
- spec.files = `git ls-files -z`.split("\x0")
17
- spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
18
- spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
- spec.require_paths = ["lib"]
20
-
21
- spec.add_dependency 'hashie', '~> 3.3'
22
- spec.add_dependency 'gli', '~> 2.10'
23
- spec.add_dependency 'highline', '~> 1.6'
24
- spec.add_dependency 'slack-notifier', '~> 1.5.1'
25
- spec.add_dependency 'rack', '>= 2.1.4'
26
- spec.add_dependency 'activesupport', '~> 4.1.11'
27
-
28
- spec.add_development_dependency "bundler", "~> 2.1"
29
- spec.add_development_dependency "rake", "~> 12.3.3"
30
- spec.add_development_dependency "rspec", "~> 3.4.0"
31
- spec.add_development_dependency 'simplecov'
32
- end