fury_dumper 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: a331466628ecc3d3abffb2fac84cb06d15adec2a02dd9eacc33c12895c907e4b
4
+ data.tar.gz: 4425a6e126041c2d1eabd1830bb908e8f2ae6ec195ecf68e00a47ae200ec0417
5
+ SHA512:
6
+ metadata.gz: 07ee061c495807dfbe9ef7c13a0234fde29f23318fa061d23137c603933f166486426e43ae5175dc606c8f434e1d72858b76280e7c62db4b2889d13dcb43821c
7
+ data.tar.gz: eb8d00a06d409aeb00609f89a4347fb4f05d5e22350f42df5376ecac933c4f4674bd27c4cc9bb423f557f83b6867879b92bcbbbde2e33cd8de50299f203a41d4
@@ -0,0 +1,43 @@
1
+ name: "Tests"
2
+
3
+ on: [push]
4
+
5
+ jobs:
6
+ tests:
7
+ runs-on: ubuntu-latest
8
+ services:
9
+ postgres:
10
+ image: postgres:12.1-alpine
11
+ env:
12
+ POSTGRES_USER: postgres
13
+ POSTGRES_PASSWORD: postgres
14
+ POSTGRES_DB: fury_dumper_test
15
+ ports:
16
+ - 5432:5432
17
+ # needed because the postgres container does not provide a healthcheck
18
+ options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
19
+
20
+ env:
21
+ RAILS_ENV: test
22
+ steps:
23
+ - name: Checkout repository
24
+ uses: actions/checkout@v2
25
+ - name: Setup Ruby
26
+ uses: ruby/setup-ruby@v1
27
+ with:
28
+ ruby-version: 2.7.1
29
+ - name: Install dependencies
30
+ run: bundle install
31
+ - name: Test with RSpec
32
+ env:
33
+ RAILS_ENV: "test"
34
+ POSTGRES_USER: postgres
35
+ POSTGRES_PASSWORD: postgres
36
+ POSTGRES_DB: fury_dumper_test
37
+ POSTGRES_HOST: localhost
38
+ POSTGRES_PORT: 5432
39
+ RUBYOPT: "-W:no-deprecated -W:no-experimental"
40
+ run: |
41
+ bundle exec rake
42
+ - name: Run rubocop
43
+ run: bundle exec rubocop --display-cop-names
data/.gitignore ADDED
@@ -0,0 +1,16 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
9
+
10
+ # rspec failure tracking
11
+ .rspec_status
12
+ /fury_dumper-0.1.0.gem
13
+
14
+ .idea/
15
+
16
+ bin/
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
data/.rubocop.yml ADDED
@@ -0,0 +1,67 @@
1
+ AllCops:
2
+ NewCops: enable
3
+ Exclude:
4
+ - 'rails_generators/fury_dumper_config/templates/*'
5
+
6
+ require:
7
+ - rubocop-rspec
8
+ - rubocop-rails
9
+
10
+ Metrics/MethodLength:
11
+ Description: "Avoid methods longer than 50 lines of code."
12
+ Enabled: true
13
+ Max: 50
14
+
15
+ Metrics/ParameterLists:
16
+ Description: "Avoid parameter lists longer than three or four parameters."
17
+ Enabled: false
18
+
19
+ Style/Documentation:
20
+ Description: "Document classes and non-namespace modules."
21
+ Enabled: false
22
+
23
+ Metrics/AbcSize:
24
+ Description: >-
25
+ A calculated magnitude based on number of assignments,
26
+ branches, and conditions.
27
+ Enabled: false
28
+
29
+ Rails/Output:
30
+ Description: "Checks for calls to puts, print, etc."
31
+ Enabled: false
32
+
33
+ Metrics/ClassLength:
34
+ Description: "Avoid classes longer than 100 lines of code."
35
+ Enabled: false
36
+
37
+ Metrics/CyclomaticComplexity:
38
+ Description: >-
39
+ A complexity metric that is strongly correlated to the number
40
+ of test cases needed to validate a method.
41
+ Max: 20
42
+ Enabled: true
43
+
44
+ Metrics/PerceivedComplexity:
45
+ Description: A complexity metric geared towards measuring complexity for a human reader.
46
+ Enabled: true
47
+ Max: 20
48
+
49
+ Layout/LineLength:
50
+ Description: "Limit lines to 120 characters."
51
+ Max: 120
52
+ Exclude:
53
+ - 'spec/**/*'
54
+
55
+ RSpec/AnyInstance:
56
+ Enabled: false
57
+
58
+ RSpec/StubbedMock:
59
+ Enabled: false
60
+
61
+ RSpec/MultipleExpectations:
62
+ Description: Checks if examples contain too many `expect` calls.
63
+ Enabled: false
64
+
65
+ RSpec/ExampleLength:
66
+ Description: Checks for long examples.
67
+ Enabled: false
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ 2.7.1
data/.travis.yml ADDED
@@ -0,0 +1,6 @@
1
+ ---
2
+ language: ruby
3
+ cache: bundler
4
+ rvm:
5
+ - 2.6.5
6
+ before_install: gem install bundler -v 2.1.0.pre.3
data/Breadth-first.png ADDED
Binary file
@@ -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 a.patutina@furyguys.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://contributor-covenant.org/version/1/4][version]
72
+
73
+ [homepage]: https://contributor-covenant.org
74
+ [version]: https://contributor-covenant.org/version/1/4/
data/Depth-first.png ADDED
Binary file
data/Gemfile ADDED
@@ -0,0 +1,10 @@
1
+ # frozen_string_literal: true
2
+
3
+ source 'https://rubygems.org'
4
+
5
+ # Specify your gem's dependencies in fury_dumper.gemspec
6
+ gemspec
7
+
8
+ gem 'database_cleaner'
9
+ gem 'rubocop-rails', require: false
10
+ gem 'rubocop-rspec', require: false
data/Gemfile.lock ADDED
@@ -0,0 +1,202 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ fury_dumper (0.1.0)
5
+ highline (~> 1.6)
6
+ httpclient (~> 2.8)
7
+ pg (~> 1.4)
8
+ rails (~> 5.0, >= 4.0.13)
9
+
10
+ GEM
11
+ remote: https://rubygems.org/
12
+ specs:
13
+ actioncable (5.2.8.1)
14
+ actionpack (= 5.2.8.1)
15
+ nio4r (~> 2.0)
16
+ websocket-driver (>= 0.6.1)
17
+ actionmailer (5.2.8.1)
18
+ actionpack (= 5.2.8.1)
19
+ actionview (= 5.2.8.1)
20
+ activejob (= 5.2.8.1)
21
+ mail (~> 2.5, >= 2.5.4)
22
+ rails-dom-testing (~> 2.0)
23
+ actionpack (5.2.8.1)
24
+ actionview (= 5.2.8.1)
25
+ activesupport (= 5.2.8.1)
26
+ rack (~> 2.0, >= 2.0.8)
27
+ rack-test (>= 0.6.3)
28
+ rails-dom-testing (~> 2.0)
29
+ rails-html-sanitizer (~> 1.0, >= 1.0.2)
30
+ actionview (5.2.8.1)
31
+ activesupport (= 5.2.8.1)
32
+ builder (~> 3.1)
33
+ erubi (~> 1.4)
34
+ rails-dom-testing (~> 2.0)
35
+ rails-html-sanitizer (~> 1.0, >= 1.0.3)
36
+ activejob (5.2.8.1)
37
+ activesupport (= 5.2.8.1)
38
+ globalid (>= 0.3.6)
39
+ activemodel (5.2.8.1)
40
+ activesupport (= 5.2.8.1)
41
+ activerecord (5.2.8.1)
42
+ activemodel (= 5.2.8.1)
43
+ activesupport (= 5.2.8.1)
44
+ arel (>= 9.0)
45
+ activestorage (5.2.8.1)
46
+ actionpack (= 5.2.8.1)
47
+ activerecord (= 5.2.8.1)
48
+ marcel (~> 1.0.0)
49
+ activesupport (5.2.8.1)
50
+ concurrent-ruby (~> 1.0, >= 1.0.2)
51
+ i18n (>= 0.7, < 2)
52
+ minitest (~> 5.1)
53
+ tzinfo (~> 1.1)
54
+ arel (9.0.0)
55
+ ast (2.4.2)
56
+ builder (3.2.4)
57
+ concurrent-ruby (1.2.2)
58
+ crass (1.0.6)
59
+ database_cleaner (2.0.2)
60
+ database_cleaner-active_record (>= 2, < 3)
61
+ database_cleaner-active_record (2.1.0)
62
+ activerecord (>= 5.a)
63
+ database_cleaner-core (~> 2.0.0)
64
+ database_cleaner-core (2.0.1)
65
+ date (3.3.3)
66
+ diff-lcs (1.5.0)
67
+ erubi (1.12.0)
68
+ globalid (1.1.0)
69
+ activesupport (>= 5.0)
70
+ highline (1.7.10)
71
+ httpclient (2.8.3)
72
+ i18n (1.12.0)
73
+ concurrent-ruby (~> 1.0)
74
+ json (2.6.3)
75
+ loofah (2.19.1)
76
+ crass (~> 1.0.2)
77
+ nokogiri (>= 1.5.9)
78
+ mail (2.8.1)
79
+ mini_mime (>= 0.1.1)
80
+ net-imap
81
+ net-pop
82
+ net-smtp
83
+ marcel (1.0.2)
84
+ method_source (1.0.0)
85
+ mini_mime (1.1.2)
86
+ mini_portile2 (2.8.1)
87
+ minitest (5.18.0)
88
+ net-imap (0.3.4)
89
+ date
90
+ net-protocol
91
+ net-pop (0.1.2)
92
+ net-protocol
93
+ net-protocol (0.2.1)
94
+ timeout
95
+ net-smtp (0.3.3)
96
+ net-protocol
97
+ nio4r (2.5.8)
98
+ nokogiri (1.14.2)
99
+ mini_portile2 (~> 2.8.0)
100
+ racc (~> 1.4)
101
+ parallel (1.22.1)
102
+ parser (3.2.1.1)
103
+ ast (~> 2.4.1)
104
+ pg (1.4.6)
105
+ racc (1.6.2)
106
+ rack (2.2.6.4)
107
+ rack-test (2.1.0)
108
+ rack (>= 1.3)
109
+ rails (5.2.8.1)
110
+ actioncable (= 5.2.8.1)
111
+ actionmailer (= 5.2.8.1)
112
+ actionpack (= 5.2.8.1)
113
+ actionview (= 5.2.8.1)
114
+ activejob (= 5.2.8.1)
115
+ activemodel (= 5.2.8.1)
116
+ activerecord (= 5.2.8.1)
117
+ activestorage (= 5.2.8.1)
118
+ activesupport (= 5.2.8.1)
119
+ bundler (>= 1.3.0)
120
+ railties (= 5.2.8.1)
121
+ sprockets-rails (>= 2.0.0)
122
+ rails-dom-testing (2.0.3)
123
+ activesupport (>= 4.2.0)
124
+ nokogiri (>= 1.6)
125
+ rails-html-sanitizer (1.5.0)
126
+ loofah (~> 2.19, >= 2.19.1)
127
+ railties (5.2.8.1)
128
+ actionpack (= 5.2.8.1)
129
+ activesupport (= 5.2.8.1)
130
+ method_source
131
+ rake (>= 0.8.7)
132
+ thor (>= 0.19.0, < 2.0)
133
+ rainbow (3.1.1)
134
+ rake (10.5.0)
135
+ regexp_parser (2.7.0)
136
+ rexml (3.2.5)
137
+ rspec (3.12.0)
138
+ rspec-core (~> 3.12.0)
139
+ rspec-expectations (~> 3.12.0)
140
+ rspec-mocks (~> 3.12.0)
141
+ rspec-core (3.12.1)
142
+ rspec-support (~> 3.12.0)
143
+ rspec-expectations (3.12.2)
144
+ diff-lcs (>= 1.2.0, < 2.0)
145
+ rspec-support (~> 3.12.0)
146
+ rspec-mocks (3.12.4)
147
+ diff-lcs (>= 1.2.0, < 2.0)
148
+ rspec-support (~> 3.12.0)
149
+ rspec-support (3.12.0)
150
+ rubocop (1.48.1)
151
+ json (~> 2.3)
152
+ parallel (~> 1.10)
153
+ parser (>= 3.2.0.0)
154
+ rainbow (>= 2.2.2, < 4.0)
155
+ regexp_parser (>= 1.8, < 3.0)
156
+ rexml (>= 3.2.5, < 4.0)
157
+ rubocop-ast (>= 1.26.0, < 2.0)
158
+ ruby-progressbar (~> 1.7)
159
+ unicode-display_width (>= 2.4.0, < 3.0)
160
+ rubocop-ast (1.27.0)
161
+ parser (>= 3.2.1.0)
162
+ rubocop-capybara (2.17.1)
163
+ rubocop (~> 1.41)
164
+ rubocop-rails (2.18.0)
165
+ activesupport (>= 4.2.0)
166
+ rack (>= 1.1)
167
+ rubocop (>= 1.33.0, < 2.0)
168
+ rubocop-rspec (2.19.0)
169
+ rubocop (~> 1.33)
170
+ rubocop-capybara (~> 2.17)
171
+ ruby-progressbar (1.13.0)
172
+ sprockets (4.2.0)
173
+ concurrent-ruby (~> 1.0)
174
+ rack (>= 2.2.4, < 4)
175
+ sprockets-rails (3.4.2)
176
+ actionpack (>= 5.2)
177
+ activesupport (>= 5.2)
178
+ sprockets (>= 3.0.0)
179
+ thor (1.2.1)
180
+ thread_safe (0.3.6)
181
+ timeout (0.3.2)
182
+ tzinfo (1.2.11)
183
+ thread_safe (~> 0.1)
184
+ unicode-display_width (2.4.2)
185
+ websocket-driver (0.7.5)
186
+ websocket-extensions (>= 0.1.0)
187
+ websocket-extensions (0.1.5)
188
+
189
+ PLATFORMS
190
+ ruby
191
+
192
+ DEPENDENCIES
193
+ bundler (~> 2.0)
194
+ database_cleaner
195
+ fury_dumper!
196
+ rake (~> 10.0)
197
+ rspec (~> 3.0)
198
+ rubocop-rails
199
+ rubocop-rspec
200
+
201
+ BUNDLED WITH
202
+ 2.4.5