jstreams 0.1.0.alpha

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: d8bfa315b4e0f56cd9eba764a8068d2a59288ec4c39d972175a507ce5d3a4f97
4
+ data.tar.gz: d24223d156e00d11dc74b4bc2281951d4d71705ee007bafd58a1a87215a4c98a
5
+ SHA512:
6
+ metadata.gz: 9be76928ab2cd79cc9af39254b442e1b8d2bd601061d241adec2e9ede731e3f6e9468d7385186d70909053cd00e287a88ad5045d10b6ac4b641586daea5609cd
7
+ data.tar.gz: c9f8d1899b678898710acc09baff710d6c074bd1f3b652121a0f6d349fefb5d5f896413e0cc1bf5aec0ece7ee61debece243065a3a2c4e183add1f9adc99410b
@@ -0,0 +1,70 @@
1
+ # Ruby CircleCI 2.0 configuration file
2
+ #
3
+ # Check https://circleci.com/docs/2.0/language-ruby/ for more details
4
+ #
5
+ version: 2
6
+ jobs:
7
+ build:
8
+ environment:
9
+ CC_TEST_REPORTER_ID: 39a8db06d352bcba2317f98a25be94272acd12de35444a8b4cd2de7c1a1fe2ef
10
+ docker:
11
+ - image: circleci/ruby:2.5-node-browsers
12
+ - image: circleci/redis:5
13
+
14
+ working_directory: ~/repo
15
+
16
+ steps:
17
+ - checkout
18
+
19
+ # Download and cache dependencies
20
+ - restore_cache:
21
+ keys:
22
+ - v1-dependencies-{{ checksum "Gemfile.lock" }}
23
+ # fallback to using the latest cache if no exact match is found
24
+ - v1-dependencies-
25
+
26
+ - run:
27
+ name: Upgrade bundler
28
+ command: |
29
+ gem install bundler
30
+
31
+ - run:
32
+ name: Setup Code Climate test-reporter
33
+ command: |
34
+ curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
35
+ chmod +x ./cc-test-reporter
36
+
37
+ - run:
38
+ name: Install dependencies
39
+ command: |
40
+ bundle install --jobs=4 --retry=3 --path vendor/bundle
41
+
42
+ - save_cache:
43
+ paths:
44
+ - ./vendor/bundle
45
+ key: v1-dependencies-{{ checksum "Gemfile.lock" }}
46
+
47
+ # run tests!
48
+ - run:
49
+ name: Run tests
50
+ command: |
51
+ mkdir /tmp/test-results
52
+ TEST_FILES="$(circleci tests glob "spec/**/*_spec.rb" | \
53
+ circleci tests split --split-by=timings)"
54
+
55
+ ./cc-test-reporter before-build
56
+
57
+ COVERAGE=true bundle exec rspec \
58
+ --format progress \
59
+ --format RspecJunitFormatter \
60
+ --out /tmp/test-results/rspec.xml \
61
+ --format progress \
62
+ $TEST_FILES
63
+
64
+ ./cc-test-reporter after-build --coverage-input-type simplecov --exit-code $?
65
+ # collect reports
66
+ - store_test_results:
67
+ path: /tmp/test-results
68
+ - store_artifacts:
69
+ path: /tmp/test-results
70
+ destination: test-results
@@ -0,0 +1,14 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
9
+ /node_modules/
10
+
11
+ # rspec failure tracking
12
+ .rspec_status
13
+
14
+ .byebug_history
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
@@ -0,0 +1,15 @@
1
+ AllCops:
2
+ TargetRubyVersion: "2.3"
3
+ Exclude:
4
+ - "node_modules/**/*"
5
+ - "vendor/**/*"
6
+ - "bin/**/*"
7
+
8
+ Style/IfUnlessModifier:
9
+ Enabled: false
10
+ Style/DocumentationMethod:
11
+ Enabled: true
12
+ Layout:
13
+ Enabled: false
14
+ Metrics:
15
+ Enabled: false
@@ -0,0 +1,7 @@
1
+ ---
2
+ sudo: false
3
+ language: ruby
4
+ cache: bundler
5
+ rvm:
6
+ - 2.3
7
+ before_install: gem install bundler -v 2.0.1
@@ -0,0 +1,5 @@
1
+ # Unreleased
2
+
3
+ # 0.1.0
4
+
5
+ TODO
@@ -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 jason.stotz@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 [http://contributor-covenant.org/version/1/4][version]
72
+
73
+ [homepage]: http://contributor-covenant.org
74
+ [version]: http://contributor-covenant.org/version/1/4/
@@ -0,0 +1,13 @@
1
+ FROM ruby:2.5
2
+
3
+ RUN apt-get update && \
4
+ apt-get install -y git && \
5
+ gem install bundler
6
+
7
+ COPY ./jstreams.gemspec ./Gemfile ./Gemfile.lock /opt/jstreams/
8
+
9
+ WORKDIR /opt/jstreams
10
+
11
+ RUN DOCKER_BUILD=true bundle install
12
+
13
+ COPY . /opt/jstreams
data/Gemfile ADDED
@@ -0,0 +1,26 @@
1
+ # frozen_string_literal: true
2
+
3
+ source 'https://rubygems.org'
4
+
5
+ gemspec
6
+
7
+ group :test do
8
+ gem 'guard'
9
+ gem 'guard-rspec'
10
+ gem 'rspec', '~> 3.0'
11
+ gem 'rspec_junit_formatter'
12
+ gem 'simplecov'
13
+ end
14
+
15
+ group :development do
16
+ gem 'byebug'
17
+ gem 'debase'
18
+ gem 'pry'
19
+ gem 'pry-byebug'
20
+ gem 'pry-rescue'
21
+ gem 'pry-stack_explorer'
22
+ gem 'rubocop'
23
+ gem 'rubocop-performance'
24
+ gem 'ruby-debug-ide'
25
+ gem 'solargraph'
26
+ end
@@ -0,0 +1,160 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ jstreams (0.1.0.alpha)
5
+ concurrent-ruby
6
+ connection_pool
7
+ redis (>= 4.1.0)
8
+
9
+ GEM
10
+ remote: https://rubygems.org/
11
+ specs:
12
+ ast (2.4.0)
13
+ backport (1.0.0)
14
+ binding_of_caller (0.8.0)
15
+ debug_inspector (>= 0.0.1)
16
+ byebug (11.0.1)
17
+ coderay (1.1.2)
18
+ concurrent-ruby (1.1.5)
19
+ connection_pool (2.2.2)
20
+ debase (0.2.2)
21
+ debase-ruby_core_source (>= 0.10.2)
22
+ debase-ruby_core_source (0.10.4)
23
+ debug_inspector (0.0.3)
24
+ diff-lcs (1.3)
25
+ docile (1.3.1)
26
+ ffi (1.10.0)
27
+ formatador (0.2.5)
28
+ guard (2.15.0)
29
+ formatador (>= 0.2.4)
30
+ listen (>= 2.7, < 4.0)
31
+ lumberjack (>= 1.0.12, < 2.0)
32
+ nenv (~> 0.1)
33
+ notiffany (~> 0.0)
34
+ pry (>= 0.9.12)
35
+ shellany (~> 0.0)
36
+ thor (>= 0.18.1)
37
+ guard-compat (1.2.1)
38
+ guard-rspec (4.7.3)
39
+ guard (~> 2.1)
40
+ guard-compat (~> 1.1)
41
+ rspec (>= 2.99.0, < 4.0)
42
+ htmlentities (4.3.4)
43
+ interception (0.5)
44
+ jaro_winkler (1.5.2)
45
+ json (2.2.0)
46
+ kramdown (1.17.0)
47
+ listen (3.1.5)
48
+ rb-fsevent (~> 0.9, >= 0.9.4)
49
+ rb-inotify (~> 0.9, >= 0.9.7)
50
+ ruby_dep (~> 1.2)
51
+ lumberjack (1.0.13)
52
+ method_source (0.9.2)
53
+ mini_portile2 (2.4.0)
54
+ nenv (0.3.0)
55
+ nokogiri (1.10.2)
56
+ mini_portile2 (~> 2.4.0)
57
+ notiffany (0.1.1)
58
+ nenv (~> 0.1)
59
+ shellany (~> 0.0)
60
+ parallel (1.17.0)
61
+ parser (2.6.2.1)
62
+ ast (~> 2.4.0)
63
+ pry (0.12.2)
64
+ coderay (~> 1.1.0)
65
+ method_source (~> 0.9.0)
66
+ pry-byebug (3.7.0)
67
+ byebug (~> 11.0)
68
+ pry (~> 0.10)
69
+ pry-rescue (1.5.0)
70
+ interception (>= 0.5)
71
+ pry (>= 0.12.0)
72
+ pry-stack_explorer (0.4.9.3)
73
+ binding_of_caller (>= 0.7)
74
+ pry (>= 0.9.11)
75
+ psych (3.1.0)
76
+ rainbow (3.0.0)
77
+ rake (10.5.0)
78
+ rb-fsevent (0.10.3)
79
+ rb-inotify (0.10.0)
80
+ ffi (~> 1.0)
81
+ redis (4.1.0)
82
+ reverse_markdown (1.1.0)
83
+ nokogiri
84
+ rspec (3.8.0)
85
+ rspec-core (~> 3.8.0)
86
+ rspec-expectations (~> 3.8.0)
87
+ rspec-mocks (~> 3.8.0)
88
+ rspec-core (3.8.0)
89
+ rspec-support (~> 3.8.0)
90
+ rspec-expectations (3.8.2)
91
+ diff-lcs (>= 1.2.0, < 2.0)
92
+ rspec-support (~> 3.8.0)
93
+ rspec-mocks (3.8.0)
94
+ diff-lcs (>= 1.2.0, < 2.0)
95
+ rspec-support (~> 3.8.0)
96
+ rspec-support (3.8.0)
97
+ rspec_junit_formatter (0.4.1)
98
+ rspec-core (>= 2, < 4, != 2.12.0)
99
+ rubocop (0.67.2)
100
+ jaro_winkler (~> 1.5.1)
101
+ parallel (~> 1.10)
102
+ parser (>= 2.5, != 2.5.1.1)
103
+ psych (>= 3.1.0)
104
+ rainbow (>= 2.2.2, < 4.0)
105
+ ruby-progressbar (~> 1.7)
106
+ unicode-display_width (>= 1.4.0, < 1.6)
107
+ rubocop-performance (1.1.0)
108
+ rubocop (>= 0.67.0)
109
+ ruby-debug-ide (0.6.1)
110
+ rake (>= 0.8.1)
111
+ ruby-progressbar (1.10.0)
112
+ ruby_dep (1.5.0)
113
+ shellany (0.0.1)
114
+ simplecov (0.16.1)
115
+ docile (~> 1.1)
116
+ json (>= 1.8, < 3)
117
+ simplecov-html (~> 0.10.0)
118
+ simplecov-html (0.10.2)
119
+ solargraph (0.32.1)
120
+ backport (~> 1.0)
121
+ bundler (>= 1.17.2)
122
+ htmlentities (~> 4.3, >= 4.3.4)
123
+ jaro_winkler (~> 1.5)
124
+ kramdown (~> 1.16)
125
+ parser (~> 2.3)
126
+ reverse_markdown (~> 1.0, >= 1.0.5)
127
+ rubocop (~> 0.52)
128
+ thor (~> 0.19, >= 0.19.4)
129
+ tilt (~> 2.0)
130
+ yard (~> 0.9)
131
+ thor (0.20.3)
132
+ tilt (2.0.9)
133
+ unicode-display_width (1.5.0)
134
+ yard (0.9.19)
135
+
136
+ PLATFORMS
137
+ ruby
138
+
139
+ DEPENDENCIES
140
+ bundler (~> 2.0)
141
+ byebug
142
+ debase
143
+ guard
144
+ guard-rspec
145
+ jstreams!
146
+ pry
147
+ pry-byebug
148
+ pry-rescue
149
+ pry-stack_explorer
150
+ rake (~> 10.0)
151
+ rspec (~> 3.0)
152
+ rspec_junit_formatter
153
+ rubocop
154
+ rubocop-performance
155
+ ruby-debug-ide
156
+ simplecov
157
+ solargraph
158
+
159
+ BUNDLED WITH
160
+ 2.0.1
@@ -0,0 +1,18 @@
1
+ # frozen_string_literal: true
2
+
3
+ guard :rspec, cmd: 'bundle exec rspec' do
4
+ require 'guard/rspec/dsl'
5
+ dsl = Guard::RSpec::Dsl.new(self)
6
+
7
+ # Feel free to open issues for suggestions and improvements
8
+
9
+ # RSpec files
10
+ rspec = dsl.rspec
11
+ watch(rspec.spec_helper) { rspec.spec_dir }
12
+ watch(rspec.spec_support) { rspec.spec_dir }
13
+ watch(rspec.spec_files)
14
+
15
+ # Ruby files
16
+ ruby = dsl.ruby
17
+ dsl.watch_spec_files_for(ruby.lib_files)
18
+ end
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2019 Jay Stotz
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.