chasqui 0.9.0 → 0.9.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
  SHA1:
3
- metadata.gz: fb1a85b1db2129a864d5c04845365d0d27ee155a
4
- data.tar.gz: 6391c76b1ab99c388d37d7db0292f524baf14f11
3
+ metadata.gz: 9d9b4f6360c0b31a3059f1a681f0834b76b11a11
4
+ data.tar.gz: 2a11afab1c4162b9cace6304e6b6e6d55c18bdef
5
5
  SHA512:
6
- metadata.gz: 843753b80abeea5ec7e101dd74208ff14a159f69ca15d77673bc0354e47f85e31c473278209d9a4535eaf674bc37e3522a2cdb5d786e23eea67188220bd39c7d
7
- data.tar.gz: e4fe21a58162022da38d9a0e897879f2cf6ac73f8eb1fb54a3807952b0fda0b02ce89869d1fd5bc1af446186ec7ed3fa82635c6c6e01c9851bf65b939d446ad1
6
+ metadata.gz: 2a10b7b841c1228b2c9a4bb6fc96ebbc07ad296b1932eb4a067bc1975dc1719e632b520ec35f33308468b13879bfc7693b7caa81910e02504e6e28849c8c9cc2
7
+ data.tar.gz: a534e5fbcbba68c523c1b2d3b227da3978a2f52763719fcd6320e1b1bec61f12249f1f5cb60685b63095d9071dc9fcb44890ad99a22475cbec87888991426e1e
data/README.md CHANGED
@@ -1,6 +1,5 @@
1
1
  [![Build Status](https://travis-ci.org/jbgo/chasqui.svg?branch=master)](https://travis-ci.org/jbgo/chasqui)
2
2
  [![Code Climate](https://codeclimate.com/github/jbgo/chasqui/badges/gpa.svg)](https://codeclimate.com/github/jbgo/chasqui)
3
- [![Test Coverage](https://codeclimate.com/github/jbgo/chasqui/badges/coverage.svg)](https://codeclimate.com/github/jbgo/chasqui/coverage)
4
3
 
5
4
  # Chasqui
6
5
 
@@ -115,11 +114,35 @@ Chasqui.configure do |config|
115
114
  end
116
115
  ```
117
116
 
117
+ ## Running the broker
118
+
119
+ Installing and running Chasqui on Ubuntu using the system ruby.
120
+
121
+ ```sh
122
+ # install required dependencies
123
+ $ sudo apt-get install ruby redis-server
124
+
125
+ # install chasqui
126
+ $ sudo gem install chasqui --no-ri --no-rdoc
127
+
128
+ # run chasqui
129
+ $ chasqui
130
+ I, [2015-09-23T00:58:16.630857 #2420] INFO -- chasqui: broker started with pid 2420
131
+ I, [2015-09-23T00:58:16.631147 #2420] INFO -- chasqui: configured to fetch events from inbox on #<Redis client v3.2.1 for redis://127.0.0.1:6379/0>
132
+ ```
133
+
134
+ There is also a sample Upstart init script in [examples/upstart.conf](examples/upstart.conf).
135
+
136
+ If you prefer a different distro or init system, please consider opening a pull-request. Your efforts will be greatly admired and appreciated!
137
+
118
138
  ## Contributing
119
139
 
120
- 1. Fork it (https://github.com/[my-github-username]/chasqui/fork)
121
- 2. Create your feature branch (`git checkout -b my-new-feature`)
122
- 3. Commit your changes (`git commit -am 'Add some feature'`)
123
- 4. Push to the branch (`git push origin my-new-feature`)
124
- 5. Create a new Pull Request
140
+ * For new functionality, please open an issue for discussion before creating a pull request.
141
+ * For bug fixes, you are welcome to create a pull request without first opening an issue.
142
+ * Except for documentation changes, tests are required with all pull requests.
143
+ * Please be polite and respectful when discussing the project with maintainers and your fellow contributors.
144
+
145
+ ## Code of Conduct
125
146
 
147
+ If you are unsure whether or not your communication may be inappropriate, please consult the [Chasqui Code of Conduct](code-of-conduct.md).
148
+ If you even suspect harassment or abuse, please report it to the email address listed in the Code of Conduct.
data/bin/chasqui CHANGED
@@ -1,6 +1,13 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
3
  require 'rubygems'
4
+
5
+ if ENV['CHASQUI_ENV'] == 'test'
6
+ require "codeclimate-test-reporter"
7
+ CodeClimate::TestReporter.start
8
+ SimpleCov.command_name 'integration'
9
+ end
10
+
4
11
  require 'chasqui/cli'
5
12
 
6
13
  Chasqui::CLI.new(ARGV).run
@@ -0,0 +1,70 @@
1
+ # Code of Conduct
2
+
3
+ This code of conduct outlines our expectations for participants within the Chasqui open source community, as well as steps to reporting unacceptable behavior. We are committed to providing a welcoming and inspiring community for all and expect our code of conduct to be honored. Anyone who violates this code of conduct may be banned from the community.
4
+
5
+ Our open source community strives to:
6
+
7
+ * **Be friendly and patient.**
8
+ * **Be welcoming**: We strive to be a community that welcomes and supports people of all backgrounds and identities. This includes, but is not limited to members of any race, ethnicity, culture, national origin, colour, immigration status, social and economic class, educational level, sex, sexual orientation, gender identity and expression, age, size, family status, political belief, religion, and mental and physical ability.
9
+ * **Be considerate**: Your work will be used by other people, and you in turn will depend on the work of others. Any decision you take will affect users and colleagues, and you should take those consequences into account when making decisions. Remember that we're a world-wide community, so you might not be communicating in someone else's primary language.
10
+ * **Be respectful**: Not all of us will agree all the time, but disagreement is no excuse for poor behavior and poor manners. We might all experience some frustration now and then, but we cannot allow that frustration to turn into a personal attack. It’s important to remember that a community where people feel uncomfortable or threatened is not a productive one.
11
+ * **Be careful in the words that we choose**: we are a community of professionals, and we conduct ourselves professionally. Be kind to others. Do not insult or put down other participants. Harassment and other exclusionary behavior aren't acceptable.
12
+ * **Try to understand why we disagree**: Disagreements, both social and technical, happen all the time. It is important that we resolve disagreements and differing views constructively. Remember that we’re different. The strength of our community comes from its diversity, people from a wide range of backgrounds. Different people have different perspectives on issues. Being unable to understand why someone holds a viewpoint doesn’t mean that they’re wrong. Don’t forget that it is human to err and blaming each other doesn’t get us anywhere. Instead, focus on helping to resolve issues and learning from mistakes.
13
+
14
+ ## Definitions
15
+
16
+ Harassment includes, but is not limited to:
17
+
18
+ - Offensive comments related to gender, gender identity and expression, sexual orientation, disability, mental illness, neuro(a)typicality, physical appearance, body size, race, age, regional discrimination, political or religious affiliation
19
+ - Unwelcome comments regarding a person’s lifestyle choices and practices, including those related to food, health, parenting, drugs, and employment
20
+ - Deliberate misgendering. This includes deadnaming or persistently using a pronoun that does not correctly reflect a person's gender identity. You must address people by the name they give you when not addressing them by their username or handle
21
+ - Physical contact and simulated physical contact (eg, textual descriptions like “*hug*” or “*backrub*”) without consent or after a request to stop
22
+ - Threats of violence, both physical and psychological
23
+ - Incitement of violence towards any individual, including encouraging a person to commit suicide or to engage in self-harm
24
+ - Deliberate intimidation
25
+ - Stalking or following
26
+ - Harassing photography or recording, including logging online activity for harassment purposes
27
+ - Sustained disruption of discussion
28
+ - Unwelcome sexual attention, including gratuitous or off-topic sexual images or behaviour
29
+ - Pattern of inappropriate social contact, such as requesting/assuming inappropriate levels of intimacy with others
30
+ - Continued one-on-one communication after requests to cease
31
+ - Deliberate “outing” of any aspect of a person’s identity without their consent except as necessary to protect others from intentional abuse
32
+ - Publication of non-harassing private communication
33
+
34
+ Our open source community prioritizes marginalized people’s safety over privileged people’s comfort. We will not act on complaints regarding:
35
+
36
+ - ‘Reverse’ -isms, including ‘reverse racism,’ ‘reverse sexism,’ and ‘cisphobia’
37
+ - Reasonable communication of boundaries, such as “leave me alone,” “go away,” or “I’m not discussing this with you”
38
+ - Refusal to explain or debate social justice concepts
39
+ - Communicating in a ‘tone’ you don’t find congenial
40
+ - Criticizing racist, sexist, cissexist, or otherwise oppressive behavior or assumptions
41
+
42
+
43
+ ### Diversity Statement
44
+
45
+ We encourage everyone to participate and are committed to building a community for all. Although we will fail at times, we seek to treat everyone both as fairly and equally as possible. Whenever a participant has made a mistake, we expect them to take responsibility for it. If someone has been harmed or offended, it is our responsibility to listen carefully and respectfully, and do our best to right the wrong.
46
+
47
+ Although this list cannot be exhaustive, we explicitly honor diversity in age, gender, gender identity or expression, culture, ethnicity, language, national origin, political beliefs, profession, race, religion, sexual orientation, socioeconomic status, and technical ability. We will not tolerate discrimination based on any of the protected
48
+ characteristics above, including participants with disabilities.
49
+
50
+ ### Reporting Issues
51
+
52
+ If you experience or witness unacceptable behavior—or have any other concerns—please report it by contacting us via abuse@opensolitude.com. All reports will be handled with discretion. In your report please include:
53
+
54
+ - Your contact information.
55
+ - Names (real, nicknames, or pseudonyms) of any individuals involved. If there are additional witnesses, please
56
+ include them as well. Your account of what occurred, and if you believe the incident is ongoing. If there is a publicly available record (e.g. a mailing list archive or a public IRC logger), please include a link.
57
+ - Any additional information that may be helpful.
58
+
59
+ After filing a report, a representative will contact you personally, review the incident, follow up with any additional questions, and make a decision as to how to respond. If the person who is harassing you is part of the response team, they will recuse themselves from handling your incident. If the complaint originates from a member of the response team, it will be handled by a different member of the response team. We will respect confidentiality requests for the purpose of protecting victims of abuse.
60
+
61
+ ### Attribution & Acknowledgements
62
+
63
+ We all stand on the shoulders of giants across many open source communities. We'd like to thank the communities and projects that established code of conducts and diversity statements as our inspiration:
64
+
65
+ * [Django](https://www.djangoproject.com/conduct/reporting/)
66
+ * [Python](https://www.python.org/community/diversity/)
67
+ * [Ubuntu](http://www.ubuntu.com/about/about-ubuntu/conduct)
68
+ * [Contributor Covenant](http://contributor-covenant.org/)
69
+ * [Geek Feminism](http://geekfeminism.org/about/code-of-conduct/)
70
+ * [Citizen Code of Conduct](http://citizencodeofconduct.org/)
@@ -0,0 +1,8 @@
1
+ description "chasqui broker for lightweight pubsub - https://github.com/jbgo/chasqui"
2
+
3
+ start on filesystem or runlevel [2345]
4
+ stop on runlevel [!2345]
5
+
6
+ exec chasqui -f /var/log/chasqui.log
7
+
8
+ respawn
@@ -68,7 +68,7 @@ class Chasqui::Broker
68
68
  yield
69
69
  end
70
70
  rescue TimeoutError
71
- logger.warn "broker poll interval exceeded for broker, #{self.class.name}"
71
+ logger.debug "broker poll interval timeout reached, class: #{self.class.name}"
72
72
  end
73
73
 
74
74
  end
@@ -1,3 +1,3 @@
1
1
  module Chasqui
2
- VERSION = "0.9.0"
2
+ VERSION = "0.9.1"
3
3
  end
data/spec/spec_helper.rb CHANGED
@@ -1,3 +1,4 @@
1
+ ENV['CHASQUI_ENV'] = 'test'
1
2
  require "codeclimate-test-reporter"
2
3
  CodeClimate::TestReporter.start
3
4
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chasqui
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 0.9.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jordan Bach
@@ -154,7 +154,9 @@ files:
154
154
  - Rakefile
155
155
  - bin/chasqui
156
156
  - chasqui.gemspec
157
+ - code-of-conduct.md
157
158
  - examples/full.rb
159
+ - examples/upstart.conf
158
160
  - lib/chasqui.rb
159
161
  - lib/chasqui/broker.rb
160
162
  - lib/chasqui/cli.rb