slack_messaging 1.1.0 → 1.2.0

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
- SHA1:
3
- metadata.gz: d78f53c59095f17ce3bd0f2a19de2d1cd933cecf
4
- data.tar.gz: f4cb1ea1c452a4a8f39e96fb1ee46bf58cf24f07
2
+ SHA256:
3
+ metadata.gz: ca6013870004fd4decf9af498cf20bc295923da1e8bb8d3889bf99a5cab01238
4
+ data.tar.gz: 91ec19a2846a14b64f795869287e7efadb1698b75e1e0106beed8980e5e8ddb6
5
5
  SHA512:
6
- metadata.gz: 315fe8c28b86d74563ce09ea49662df5e0e2ca050b242398a59c221c964e7c48de2277315f0e12b4fcecd0e984eb2b4cf57c107e51532c14564f1ef8be156bbd
7
- data.tar.gz: dcd20a21275cc88abb808c2581bb08f9f591b5e00f401dc6ddf1fc81f1b11131f8c883cc691494aabeefffaf632e7bc55492cd449ed668caaa2d1733e12c4aef
6
+ metadata.gz: 1e9629551ca1a2c7217821c65d5959ae309e1600693053880e795d5def9832bcc993a1e9261e2c55c784819983c1d86efd7a00c48e81d8962bb58e1cdcff1d43
7
+ data.tar.gz: eb23b41374af3df2f755413b48eb6a6cbf619370503e0a764332d7acf0a3dd3939185eca7acfe53273b970fcb2f54c009317a50e5826cdd4fa2c10eaee71b39e
data/.codeclimate.yml ADDED
@@ -0,0 +1,37 @@
1
+ version: "2"
2
+ checks:
3
+ argument-count:
4
+ config:
5
+ threshold: 4
6
+ complex-logic:
7
+ config:
8
+ threshold: 4
9
+ file-lines:
10
+ config:
11
+ threshold: 250
12
+ method-complexity:
13
+ config:
14
+ threshold: 8
15
+ method-count:
16
+ config:
17
+ threshold: 20
18
+ method-lines:
19
+ config:
20
+ threshold: 25
21
+ nested-control-flow:
22
+ config:
23
+ threshold: 4
24
+ return-statements:
25
+ config:
26
+ threshold: 4
27
+ similar-code:
28
+ config:
29
+ threshold: # language-specific defaults. an override will affect all languages.
30
+ identical-code:
31
+ config:
32
+ threshold: # language-specific defaults. an override will affect all languages.
33
+ exclude_patterns:
34
+ - "**/spec/"
35
+ - "**/test/"
36
+ - "**/vendor/"
37
+ - "**/*.js"
@@ -0,0 +1,38 @@
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.
@@ -0,0 +1,20 @@
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.
data/.octopolo.yml CHANGED
@@ -1,4 +1,4 @@
1
- github_repo: emmasax1/slack_messaging
1
+ github_repo: emma-sax4/slack_messaging
2
2
  semantic_versioning: true
3
3
  branches_to_keep:
4
4
  - master
data/.travis.yml CHANGED
@@ -1,10 +1,23 @@
1
1
  sudo: false
2
- branches:
3
- only:
4
- - master
5
-
6
2
  language: ruby
7
3
  rvm:
8
4
  - 2.2
9
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
+
10
20
  script: bundle exec rspec
21
+
22
+ after_script:
23
+ - ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
data/CHANGELOG.markdown CHANGED
@@ -1,3 +1,6 @@
1
+ #### v1.2.0
2
+ * Update the gemspec to not have security vulnerabilities
3
+
1
4
  #### v1.1.0
2
5
  * Updating config.rb with more up to date information
3
6
 
@@ -0,0 +1,76 @@
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
data/CONTRIBUTING.md ADDED
@@ -0,0 +1,11 @@
1
+ # Contributing
2
+
3
+ 1. Fork it (https://github.com/emma-sax4/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/emma-sax4/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!
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Slack Messaging [![Build Status](https://travis-ci.org/emmasax1/slack_messaging.svg?branch=master)](https://travis-ci.org/emmasax1/slack_messaging) [![Code Climate](https://codeclimate.com/github/emmasax1/slack_messaging/badges/gpa.svg)](https://codeclimate.com/github/emmasax1/slack_messaging)
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)
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/emmasax1/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/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.
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/emmasax1/slack_messaging/blob/master/OutputFile.png" width="1000">
63
+ <img src="https://github.com/emma-sax4/slack_messaging/blob/master/OutputFile.png" width="1000">
64
64
 
65
65
  I hope you enjoy printing fun and specialized messages to Slack!
66
66
 
@@ -68,14 +68,6 @@ I hope you enjoy printing fun and specialized messages to Slack!
68
68
 
69
69
  To run the tests, run `rspec` from the command line. Travis CI will also run the tests upon every commit to make sure they're up to date and that everything is working correctly. There are currently only tests for the `notify_slack` and `random_message` classes. Feel free to help us add more!
70
70
 
71
- To contribute:
72
-
73
- 1. Fork it (https://github.com/emmasax1/slack_messaging/fork)
74
- 2. Create your feature branch (`git checkout -b my-new-feature`)
75
- 3. Commit your changes (`git commit -am 'Add some feature'`)
76
- 4. Push to the branch (`git push origin my-new-feature`)
77
- 5. Create a new Pull Request
78
-
79
71
  ### RubyGems
80
72
  To make a new version and push to RubyGems:
81
73
 
@@ -1,3 +1,3 @@
1
1
  module SlackMessaging
2
- VERSION = "1.1.0"
2
+ VERSION = "1.2.0"
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/emmasax1/slack_messaging"
13
+ spec.homepage = "https://github.com/emma-sax4/slack_messaging"
14
14
  spec.license = "MIT"
15
15
 
16
16
  spec.files = `git ls-files -z`.split("\x0")
@@ -22,10 +22,11 @@ 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.3.0'
26
- spec.add_dependency 'activesupport', '~> 3.2'
25
+ spec.add_dependency 'rack', '~> 1.6.12'
26
+ spec.add_dependency 'activesupport', '~> 4.1.11'
27
27
 
28
28
  spec.add_development_dependency "bundler", "~> 1.7"
29
- spec.add_development_dependency "rake", "~> 10.0"
29
+ spec.add_development_dependency "rake", "~> 12.3.3"
30
30
  spec.add_development_dependency "rspec", "~> 3.4.0"
31
+ spec.add_development_dependency 'simplecov'
31
32
  end
data/spec/spec_helper.rb CHANGED
@@ -1,3 +1,9 @@
1
+ require 'simplecov'
2
+
3
+ SimpleCov.start do
4
+ add_filter '/spec/'
5
+ end
6
+
1
7
  # This file was generated by the `rspec --init` command. Conventionally, all
2
8
  # specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
3
9
  # The generated `.rspec` file contains `--require spec_helper` which will cause
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.1.0
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Emma Sax
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-07-08 00:00:00.000000000 Z
11
+ date: 2020-02-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: hashie
@@ -72,28 +72,28 @@ dependencies:
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: 1.3.0
75
+ version: 1.6.12
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.3.0
82
+ version: 1.6.12
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: activesupport
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: '3.2'
89
+ version: 4.1.11
90
90
  type: :runtime
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: '3.2'
96
+ version: 4.1.11
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: bundler
99
99
  requirement: !ruby/object:Gem::Requirement
@@ -114,14 +114,14 @@ dependencies:
114
114
  requirements:
115
115
  - - "~>"
116
116
  - !ruby/object:Gem::Version
117
- version: '10.0'
117
+ version: 12.3.3
118
118
  type: :development
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
122
  - - "~>"
123
123
  - !ruby/object:Gem::Version
124
- version: '10.0'
124
+ version: 12.3.3
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: rspec
127
127
  requirement: !ruby/object:Gem::Requirement
@@ -136,6 +136,20 @@ dependencies:
136
136
  - - "~>"
137
137
  - !ruby/object:Gem::Version
138
138
  version: 3.4.0
139
+ - !ruby/object:Gem::Dependency
140
+ name: simplecov
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - ">="
144
+ - !ruby/object:Gem::Version
145
+ version: '0'
146
+ type: :development
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - ">="
151
+ - !ruby/object:Gem::Version
152
+ version: '0'
139
153
  description: Sending Personalized Slack Messages
140
154
  email:
141
155
  - emma.sax4@gmail.com
@@ -144,6 +158,9 @@ executables:
144
158
  extensions: []
145
159
  extra_rdoc_files: []
146
160
  files:
161
+ - ".codeclimate.yml"
162
+ - ".github/ISSUE_TEMPLATE/bug_report.md"
163
+ - ".github/ISSUE_TEMPLATE/feature_request.md"
147
164
  - ".gitignore"
148
165
  - ".octopolo.yml"
149
166
  - ".rspec"
@@ -152,6 +169,8 @@ files:
152
169
  - ".soyuz.yml"
153
170
  - ".travis.yml"
154
171
  - CHANGELOG.markdown
172
+ - CODE_OF_CONDUCT.md
173
+ - CONTRIBUTING.md
155
174
  - Gemfile
156
175
  - LICENSE.txt
157
176
  - OutputFile.png
@@ -171,7 +190,7 @@ files:
171
190
  - spec/slack_messaging/notify_slack_spec.rb
172
191
  - spec/slack_messaging/random_message_spec.rb
173
192
  - spec/spec_helper.rb
174
- homepage: https://github.com/emmasax1/slack_messaging
193
+ homepage: https://github.com/emma-sax4/slack_messaging
175
194
  licenses:
176
195
  - MIT
177
196
  metadata: {}
@@ -190,8 +209,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
190
209
  - !ruby/object:Gem::Version
191
210
  version: '0'
192
211
  requirements: []
193
- rubyforge_project:
194
- rubygems_version: 2.4.8
212
+ rubygems_version: 3.0.2
195
213
  signing_key:
196
214
  specification_version: 4
197
215
  summary: Sending Personalized Slack Messages