Skip to content

Commit a61cce1

Browse files
committed
WIP on intrroducing Event mixin. Restructure specs to parallel rails app
2 parents c9a8703 + 2f45535 commit a61cce1

40 files changed

+930
-303
lines changed

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,6 @@
99

1010
# rspec failure tracking
1111
.rspec_status
12+
13+
.DS_Store
14+
.vscode/

.travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ language: ruby
44
cache: bundler
55
rvm:
66
- 2.5.1
7-
before_install: gem install bundler -v 2.0.1
7+
before_install: gem install bundler -v 2.2.3

CODE_OF_CONDUCT.md

+74
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
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, gender identity and expression, level of experience,
9+
nationality, personal appearance, race, religion, or sexual identity and
10+
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 [email protected]. 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://contributor-covenant.org/version/1/4][version]
72+
73+
[homepage]: https://contributor-covenant.org
74+
[version]: https://contributor-covenant.org/version/1/4/

Gemfile

+8
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,11 @@ source "https://rubygems.org"
22

33
# Specify your gem's dependencies in event_source.gemspec
44
gemspec
5+
6+
gem "rake", "~> 12.0"
7+
gem "rspec", "~> 3.0"
8+
9+
group :development, :test do
10+
gem "pry", platform: :mri
11+
gem "pry-byebug", platform: :mri
12+
end

Gemfile.lock

+96-93
Original file line numberDiff line numberDiff line change
@@ -1,125 +1,128 @@
11
PATH
22
remote: .
33
specs:
4-
event_source (0.1.0)
5-
activesupport (>= 5.0)
4+
event_source (0.3.0)
5+
activesupport
66
dry-monads (~> 1.2)
7-
globalid (~> 0.4)
8-
mongoid (~> 7.0)
7+
dry-struct (~> 1.0)
8+
dry-types (~> 1.0)
9+
dry-validation (~> 1.2)
910

1011
GEM
1112
remote: https://rubygems.org/
1213
specs:
13-
actionpack (5.2.3)
14-
actionview (= 5.2.3)
15-
activesupport (= 5.2.3)
16-
rack (~> 2.0)
17-
rack-test (>= 0.6.3)
18-
rails-dom-testing (~> 2.0)
19-
rails-html-sanitizer (~> 1.0, >= 1.0.2)
20-
actionview (5.2.3)
21-
activesupport (= 5.2.3)
22-
builder (~> 3.1)
23-
erubi (~> 1.4)
24-
rails-dom-testing (~> 2.0)
25-
rails-html-sanitizer (~> 1.0, >= 1.0.3)
26-
activemodel (5.2.3)
27-
activesupport (= 5.2.3)
28-
activesupport (5.2.3)
14+
activemodel (6.0.3.4)
15+
activesupport (= 6.0.3.4)
16+
activerecord (6.0.3.4)
17+
activemodel (= 6.0.3.4)
18+
activesupport (= 6.0.3.4)
19+
activesupport (6.0.3.4)
2920
concurrent-ruby (~> 1.0, >= 1.0.2)
3021
i18n (>= 0.7, < 2)
3122
minitest (~> 5.1)
3223
tzinfo (~> 1.1)
33-
bson (4.5.0)
34-
builder (3.2.3)
35-
byebug (11.0.1)
36-
coderay (1.1.2)
37-
concurrent-ruby (1.1.5)
38-
crass (1.0.4)
39-
diff-lcs (1.3)
40-
dry-core (0.4.7)
24+
zeitwerk (~> 2.2, >= 2.2.2)
25+
bson (4.11.1)
26+
byebug (11.1.3)
27+
coderay (1.1.3)
28+
concurrent-ruby (1.1.8)
29+
database_cleaner (2.0.1)
30+
database_cleaner-active_record (~> 2.0.0)
31+
database_cleaner-active_record (2.0.0)
32+
activerecord (>= 5.a)
33+
database_cleaner-core (~> 2.0.0)
34+
database_cleaner-core (2.0.1)
35+
diff-lcs (1.4.4)
36+
dry-configurable (0.12.0)
4137
concurrent-ruby (~> 1.0)
42-
dry-equalizer (0.2.2)
43-
dry-monads (1.2.0)
38+
dry-core (~> 0.5, >= 0.5.0)
39+
dry-container (0.7.2)
40+
concurrent-ruby (~> 1.0)
41+
dry-configurable (~> 0.1, >= 0.1.3)
42+
dry-core (0.5.0)
43+
concurrent-ruby (~> 1.0)
44+
dry-equalizer (0.3.0)
45+
dry-inflector (0.2.0)
46+
dry-initializer (3.0.4)
47+
dry-logic (1.1.0)
48+
concurrent-ruby (~> 1.0)
49+
dry-core (~> 0.5, >= 0.5)
50+
dry-monads (1.3.5)
4451
concurrent-ruby (~> 1.0)
4552
dry-core (~> 0.4, >= 0.4.4)
4653
dry-equalizer
47-
erubi (1.8.0)
48-
globalid (0.4.2)
49-
activesupport (>= 4.2.0)
50-
i18n (1.6.0)
54+
dry-schema (1.6.1)
55+
concurrent-ruby (~> 1.0)
56+
dry-configurable (~> 0.8, >= 0.8.3)
57+
dry-core (~> 0.5, >= 0.5)
58+
dry-initializer (~> 3.0)
59+
dry-logic (~> 1.0)
60+
dry-types (~> 1.5)
61+
dry-struct (1.4.0)
62+
dry-core (~> 0.5, >= 0.5)
63+
dry-types (~> 1.5)
64+
ice_nine (~> 0.11)
65+
dry-types (1.5.0)
66+
concurrent-ruby (~> 1.0)
67+
dry-container (~> 0.3)
68+
dry-core (~> 0.5, >= 0.5)
69+
dry-inflector (~> 0.1, >= 0.1.2)
70+
dry-logic (~> 1.0, >= 1.0.2)
71+
dry-validation (1.6.0)
72+
concurrent-ruby (~> 1.0)
73+
dry-container (~> 0.7, >= 0.7.1)
74+
dry-core (~> 0.4)
75+
dry-equalizer (~> 0.2)
76+
dry-initializer (~> 3.0)
77+
dry-schema (~> 1.5, >= 1.5.2)
78+
i18n (1.8.5)
5179
concurrent-ruby (~> 1.0)
52-
loofah (2.2.3)
53-
crass (~> 1.0.2)
54-
nokogiri (>= 1.5.9)
55-
method_source (0.9.2)
56-
mini_portile2 (2.4.0)
57-
minitest (5.11.3)
58-
mongo (2.8.0)
59-
bson (>= 4.4.2, < 5.0.0)
60-
mongoid (7.0.3)
61-
activemodel (>= 5.1, < 6.0.0)
62-
mongo (>= 2.5.1, < 3.0.0)
63-
nokogiri (1.10.3)
64-
mini_portile2 (~> 2.4.0)
65-
pry (0.12.2)
66-
coderay (~> 1.1.0)
67-
method_source (~> 0.9.0)
68-
pry-byebug (3.7.0)
80+
ice_nine (0.11.2)
81+
method_source (1.0.0)
82+
minitest (5.14.2)
83+
mongo (2.13.1)
84+
bson (>= 4.8.2, < 5.0.0)
85+
mongoid (7.1.5)
86+
activemodel (>= 5.1, < 6.1)
87+
mongo (>= 2.7.0, < 3.0.0)
88+
pry (0.13.1)
89+
coderay (~> 1.1)
90+
method_source (~> 1.0)
91+
pry-byebug (3.9.0)
6992
byebug (~> 11.0)
70-
pry (~> 0.10)
71-
rack (2.2.3)
72-
rack-test (1.1.0)
73-
rack (>= 1.0, < 3)
74-
rails-dom-testing (2.0.3)
75-
activesupport (>= 4.2.0)
76-
nokogiri (>= 1.6)
77-
rails-html-sanitizer (1.0.4)
78-
loofah (~> 2.2, >= 2.2.2)
79-
railties (5.2.3)
80-
actionpack (= 5.2.3)
81-
activesupport (= 5.2.3)
82-
method_source
83-
rake (>= 0.8.7)
84-
thor (>= 0.19.0, < 2.0)
85-
rake (12.3.2)
86-
rspec (3.8.0)
87-
rspec-core (~> 3.8.0)
88-
rspec-expectations (~> 3.8.0)
89-
rspec-mocks (~> 3.8.0)
90-
rspec-core (3.8.0)
91-
rspec-support (~> 3.8.0)
92-
rspec-expectations (3.8.4)
93+
pry (~> 0.13.0)
94+
rake (12.3.3)
95+
rspec (3.9.0)
96+
rspec-core (~> 3.9.0)
97+
rspec-expectations (~> 3.9.0)
98+
rspec-mocks (~> 3.9.0)
99+
rspec-core (3.9.2)
100+
rspec-support (~> 3.9.3)
101+
rspec-expectations (3.9.2)
93102
diff-lcs (>= 1.2.0, < 2.0)
94-
rspec-support (~> 3.8.0)
95-
rspec-mocks (3.8.0)
103+
rspec-support (~> 3.9.0)
104+
rspec-mocks (3.9.1)
96105
diff-lcs (>= 1.2.0, < 2.0)
97-
rspec-support (~> 3.8.0)
98-
rspec-rails (3.8.2)
99-
actionpack (>= 3.0)
100-
activesupport (>= 3.0)
101-
railties (>= 3.0)
102-
rspec-core (~> 3.8.0)
103-
rspec-expectations (~> 3.8.0)
104-
rspec-mocks (~> 3.8.0)
105-
rspec-support (~> 3.8.0)
106-
rspec-support (3.8.2)
107-
thor (0.20.3)
106+
rspec-support (~> 3.9.0)
107+
rspec-support (3.9.3)
108108
thread_safe (0.3.6)
109-
tzinfo (1.2.5)
109+
tzinfo (1.2.8)
110110
thread_safe (~> 0.1)
111+
yard (0.9.25)
112+
zeitwerk (2.4.1)
111113

112114
PLATFORMS
113115
ruby
114116

115117
DEPENDENCIES
116-
bundler (~> 2.0)
118+
database_cleaner
117119
event_source!
118-
mongoid (~> 7.0)
119-
pry-byebug (~> 3.0)
120+
mongoid
121+
pry
122+
pry-byebug
120123
rake (~> 12.0)
121124
rspec (~> 3.0)
122-
rspec-rails (~> 3.0)
125+
yard
123126

124127
BUNDLED WITH
125-
2.0.1
128+
2.1.4

LICENSE

-21
This file was deleted.

LICENSE.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2019 Dan Thomas
3+
Copyright (c) 2019-2021 IdeaCrew, Inc
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

0 commit comments

Comments
 (0)