doppelserver 0.2.4 → 0.2.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b5e350a2f4307134c440565bc44627f3de9f2c4fc5eabb1b385889ac09e375d3
4
- data.tar.gz: 988f3d3bb44dec1b13505e64ce822968c028b2d11b6e35a6144f16b430c2305b
3
+ metadata.gz: cc41b1eaa2934d3cd69629bd2cfe2f098aad737b553508cd19851424283ea170
4
+ data.tar.gz: 5b0ad46ea8c459be0b7448caad058276f9e0d5600467ed99a42216febbd830fa
5
5
  SHA512:
6
- metadata.gz: b8237b07d1781401a2ad20898a6fae161daeb5fe00f2a1bcb1349c4092526ed8eacd5cf87a3fbc9071a30fa5fdcaffd18dcb848958306cd8287fb9e98bc8b461
7
- data.tar.gz: f4b2d1608b2e72770c6656072e689cc8c546ef45615da9ee94f9c7008ea369d03162eef07e1e9200b8e364a442cbd2453155aec29ece0e18cf304b223c4e1db4
6
+ metadata.gz: 0b6885b29ce3c8a4a6c9393b60aa026eb16d95ba88a6d1a3475687aee75c4844b4cef4880543cb675bad13005ddb52435d065f00142137219a8d589d8bfa5e49
7
+ data.tar.gz: e873aeda9a200df576bddd860344dd9b1dc69ec31560e692b53e65de9defe0bf406193333a2de34cfb96d48eccb841d153932f31dcdc97834e351fb939580645
data/.rubocop.yml CHANGED
@@ -1,14 +1,17 @@
1
+ inherit_from: .rubocop_todo.yml
2
+
3
+ require: rubocop-rspec
4
+ # We have some problems here.
5
+ # 1st, drewcoo-cops isn't called unless it's after rubocop-rspec.
6
+ # 2nd, there is spew aboutu RSpec/FilePath has the wrong namespace.
7
+ # 3rd, there are warnings about RSpec tests in the todo file.
8
+ # That last one's my doing but I only get the spew when my gem is here, too.
9
+ # Searching the web they're all more likely rubocop-rspec's fault than my code.
10
+ # So I'll leave this as is and look into it later. TODO: Look into it.
11
+ require: drewcoo-cops
12
+
1
13
  AllCops:
2
14
  DefaultFormatter: progress
3
15
  DisplayCopNames: true
4
16
  DisplayStyleGuide: true
5
17
  ExtraDetails: true
6
-
7
- Metrics/BlockLength:
8
- Enabled: false
9
-
10
- Metrics/MethodLength:
11
- Enabled: false
12
-
13
- Style/BracesAroundHashParameters:
14
- Enabled: false
data/.rubocop_todo.yml ADDED
@@ -0,0 +1,77 @@
1
+ # This configuration was generated by
2
+ # `rubocop --auto-gen-config`
3
+ # on 2018-05-26 12:47:01 -0700 using RuboCop version 0.56.0.
4
+ # The point is for the user to remove these configuration records
5
+ # one by one as the offenses are removed from the code base.
6
+ # Note that changes in the inspected code, or installation of new
7
+ # versions of RuboCop, may require this file to be generated again.
8
+
9
+ # Offense count: 5
10
+ # Configuration parameters: CountComments, ExcludedMethods.
11
+ Metrics/BlockLength:
12
+ Max: 116
13
+
14
+ # Offense count: 2
15
+ # Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
16
+ # URISchemes: http, https
17
+ Metrics/LineLength:
18
+ Max: 82
19
+
20
+ # Offense count: 1
21
+ Style/ClassVars:
22
+ Exclude:
23
+ - 'lib/doppelserver/base_server.rb'
24
+
25
+ # Offense count: 2
26
+ Style/Documentation:
27
+ Exclude:
28
+ - 'spec/**/*'
29
+ - 'test/**/*'
30
+ - 'lib/doppelserver/base_server.rb'
31
+ - 'lib/doppelserver/data.rb'
32
+
33
+ # Offense count: 3
34
+ # Cop supports --auto-correct.
35
+ Style/ParallelAssignment:
36
+ Exclude:
37
+ - 'lib/doppelserver/base_server.rb'
38
+
39
+ # Offense count: 2
40
+ # Cop supports --auto-correct.
41
+ # Configuration parameters: EnforcedStyle.
42
+ # SupportedStyles: implicit, explicit
43
+ Style/RescueStandardError:
44
+ Exclude:
45
+ - 'lib/doppelserver/base_server.rb'
46
+
47
+ # Offense count: 1
48
+ # Cop supports --auto-correct.
49
+ # Configuration parameters: AllowIfMethodIsEmpty.
50
+ Style/SingleLineMethods:
51
+ Exclude:
52
+ - 'spec/base_server_spec.rb'
53
+
54
+ # Offense count: 1
55
+ RSpec/FilePath:
56
+ Exclude:
57
+ - 'spec/base_server_spec.rb'
58
+
59
+ # Offense count: 5
60
+ RSpec/ExampleLength:
61
+ Exclude:
62
+ - 'spec/base_server_spec.rb'
63
+
64
+ # Offense count: 5
65
+ RSpec/ExpectInHook:
66
+ Exclude:
67
+ - 'spec/base_server_spec.rb'
68
+
69
+ # Offense count: 7
70
+ RSpec/MultipleExpectations:
71
+ Exclude:
72
+ - 'spec/base_server_spec.rb'
73
+
74
+ # Offense countL 1
75
+ RSpec/NestedGroups:
76
+ Exclude:
77
+ - 'spec/base_server_spec.rb'
data/README.md CHANGED
@@ -3,6 +3,7 @@
3
3
  [![TravisCI](https://api.travis-ci.org/drewcoo/doppelserver.svg)](https://travis-ci.org/drewcoo/doppelserver)
4
4
  [![CircleCI](https://circleci.com/gh/drewcoo/doppelserver.svg?style=shield)](https://circleci.com/gh/drewcoo/doppelserver)
5
5
  [![Coverage Status](https://coveralls.io/repos/github/drewcoo/doppelserver/badge.svg?branch=master)](https://coveralls.io/github/drewcoo/doppelserver?branch=master)
6
+ [![Gem Version](https://badge.fury.io/rb/doppelserver.svg)](https://badge.fury.io/rb/doppelserver)
6
7
 
7
8
  Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/doppelserver`. To experiment with that code, run `bin/console` for an interactive prompt.
8
9
 
data/doppelserver.gemspec CHANGED
@@ -39,8 +39,9 @@ Gem::Specification.new do |spec|
39
39
  spec.require_paths = ['lib']
40
40
 
41
41
  spec.add_development_dependency 'activesupport', '~> 5.0.0.1'
42
- spec.add_development_dependency 'coveralls'
43
42
  spec.add_development_dependency 'bundler', '~> 1.13'
43
+ spec.add_development_dependency 'coveralls'
44
+ spec.add_development_dependency 'drewcoo-cops'
44
45
  spec.add_development_dependency 'faraday', '~> 0.10.0' # TODO: development only?
45
46
  spec.add_development_dependency 'gem-release'
46
47
  # spec.add_development_dependency 'rack-test', '~> 0.6.3'
@@ -48,6 +49,7 @@ Gem::Specification.new do |spec|
48
49
  spec.add_development_dependency 'rspec', '~> 3.0'
49
50
  spec.add_development_dependency 'rspec_junit_formatter', '~> 0.3'
50
51
  spec.add_development_dependency 'rubocop', '~> 0.55'
52
+ spec.add_development_dependency 'rubocop-rspec'
51
53
  spec.add_development_dependency 'simplecov', '~> 0.12.0'
52
54
  spec.add_development_dependency 'sinatra', '~> 1.4.7'
53
55
  spec.add_development_dependency 'sinatra-contrib', '~> 1.4.7'
@@ -26,7 +26,7 @@ module Doppelserver
26
26
  end
27
27
 
28
28
  get '/' do
29
- body = 'here i am' # TODO: Change this.
29
+ 'here i am' # TODO: Change this.
30
30
  end
31
31
 
32
32
  get '/:endpoint/:id' do
@@ -56,7 +56,7 @@ module Doppelserver
56
56
  rescue
57
57
  halt 403, "BAD DATA:\n#{raw_data}"
58
58
  end
59
- body = json(id: @@data.add(collection, data))
59
+ json(id: @@data.add(collection, data))
60
60
  end
61
61
 
62
62
  post '/:endpoint/:id' do
@@ -1,3 +1,3 @@
1
1
  module Doppelserver
2
- VERSION = '0.2.4'.freeze
2
+ VERSION = '0.2.5'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: doppelserver
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Drew Cooper
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-05-23 00:00:00.000000000 Z
11
+ date: 2018-05-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -24,6 +24,20 @@ dependencies:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: 5.0.0.1
27
+ - !ruby/object:Gem::Dependency
28
+ name: bundler
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '1.13'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '1.13'
27
41
  - !ruby/object:Gem::Dependency
28
42
  name: coveralls
29
43
  requirement: !ruby/object:Gem::Requirement
@@ -39,19 +53,19 @@ dependencies:
39
53
  - !ruby/object:Gem::Version
40
54
  version: '0'
41
55
  - !ruby/object:Gem::Dependency
42
- name: bundler
56
+ name: drewcoo-cops
43
57
  requirement: !ruby/object:Gem::Requirement
44
58
  requirements:
45
- - - "~>"
59
+ - - ">="
46
60
  - !ruby/object:Gem::Version
47
- version: '1.13'
61
+ version: '0'
48
62
  type: :development
49
63
  prerelease: false
50
64
  version_requirements: !ruby/object:Gem::Requirement
51
65
  requirements:
52
- - - "~>"
66
+ - - ">="
53
67
  - !ruby/object:Gem::Version
54
- version: '1.13'
68
+ version: '0'
55
69
  - !ruby/object:Gem::Dependency
56
70
  name: faraday
57
71
  requirement: !ruby/object:Gem::Requirement
@@ -136,6 +150,20 @@ dependencies:
136
150
  - - "~>"
137
151
  - !ruby/object:Gem::Version
138
152
  version: '0.55'
153
+ - !ruby/object:Gem::Dependency
154
+ name: rubocop-rspec
155
+ requirement: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - ">="
158
+ - !ruby/object:Gem::Version
159
+ version: '0'
160
+ type: :development
161
+ prerelease: false
162
+ version_requirements: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - ">="
165
+ - !ruby/object:Gem::Version
166
+ version: '0'
139
167
  - !ruby/object:Gem::Dependency
140
168
  name: simplecov
141
169
  requirement: !ruby/object:Gem::Requirement
@@ -193,6 +221,7 @@ files:
193
221
  - ".gitignore"
194
222
  - ".rspec"
195
223
  - ".rubocop.yml"
224
+ - ".rubocop_todo.yml"
196
225
  - ".travis.yml"
197
226
  - Gemfile
198
227
  - LICENSE.txt