eir 0.1.0 → 0.2.0

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: f6bc6edca9fcc731c1855a972cae9fd098a9e0bb
4
- data.tar.gz: dd6a2e65a5d6e3b778803a547eb7edd4d91087c8
3
+ metadata.gz: 146648359cdf6f1dd6226bdc3b3f89c0f43d5b04
4
+ data.tar.gz: 7b1180296eea33fd3aab4fd62892ccd0a0e36bbc
5
5
  SHA512:
6
- metadata.gz: 4deae98b58ddd6fec2a76e6c590a94c827784e0368d1aaf520309f422121a504dbea07dc2e8544cf9c7156f49325b7ef4e270a36ed2ee7ccf5d6207a69369c9e
7
- data.tar.gz: a664d77f3e9c4aed439e8c97bfa14b06574de784c8650ae2c5f74dbdb4f38d73405a92764875382bae15a9b7d6ef67fd4fbb51de38a14c5274427e17ae3fdd1f
6
+ metadata.gz: 1727863985d1ce20db0edca64d34db91614cc0fa84689ec0834d5140bfb76c76c6f40f8cc681e4d9c8b7e5682b9b02890379af7fc13e8d396a72ecab0dc55e5d
7
+ data.tar.gz: 26ebe48d6df4e1eda24897fc1bf7030ed247c5152b77ac3797d81646ed944b512fa03e8ca621a944f562efbfda2b296c5041cf5701078e2333e71684e25d3a24
data/.rubocop.yml ADDED
@@ -0,0 +1,5 @@
1
+ Metrics/LineLength:
2
+ Max: 120
3
+
4
+ Style/Documentation:
5
+ Enabled: false
data/Rakefile CHANGED
@@ -1,6 +1,9 @@
1
1
  require 'bundler/gem_tasks'
2
2
  require 'rspec/core/rake_task'
3
3
  require_relative 'lib/eir'
4
+ require 'rubocop/rake_task'
5
+
6
+ RuboCop::RakeTask.new
4
7
 
5
8
  RSpec::Core::RakeTask.new
6
9
 
data/eir.gemspec CHANGED
@@ -18,15 +18,15 @@ Gem::Specification.new do |spec|
18
18
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
19
  spec.require_paths = %w(lib)
20
20
 
21
- spec.add_dependency 'rest-client', '~> 1.6.7'
22
- spec.add_dependency 'sinatra', '~> 1.4.5'
21
+ spec.add_dependency 'rest-client', '~> 1.6'
22
+ spec.add_dependency 'sinatra', '~> 1.4'
23
23
  spec.add_dependency 'haml', '~> 4'
24
- spec.add_dependency 'puma', '~> 2.8.2'
24
+ spec.add_dependency 'puma', '~> 3'
25
25
  spec.add_dependency 'colorize', '~> 0.7.3'
26
26
 
27
27
  spec.add_development_dependency 'bundler', '~> 1.5'
28
28
  spec.add_development_dependency 'rake', '~> 10'
29
29
  spec.add_development_dependency 'rspec', '~> 2'
30
- spec.add_development_dependency 'rack-test', '~> 0.6.2'
31
- spec.add_development_dependency 'rubocop', '~> 0.26.0'
30
+ spec.add_development_dependency 'rack-test', '~> 0.6'
31
+ spec.add_development_dependency 'rubocop'
32
32
  end
data/lib/eir/app/app.rb CHANGED
@@ -5,7 +5,6 @@ require 'logger'
5
5
  configure { set :server, :puma }
6
6
 
7
7
  class App < Sinatra::Base
8
-
9
8
  configure do
10
9
  set :root, File.dirname(__FILE__)
11
10
  enable :logging
@@ -20,5 +19,4 @@ class App < Sinatra::Base
20
19
  @responses = @eir.go
21
20
  haml :dashboard, layout: (request.xhr? ? false : :layout)
22
21
  end
23
-
24
22
  end
data/lib/eir/request.rb CHANGED
@@ -1,6 +1,5 @@
1
1
  module Eir
2
2
  class Request
3
-
4
3
  attr_reader :server_url
5
4
  attr_accessor :uris
6
5
 
@@ -53,6 +52,5 @@ module Eir
53
52
  def request(uri)
54
53
  RestClient.get uri
55
54
  end
56
-
57
55
  end
58
56
  end
data/lib/eir/server.rb CHANGED
@@ -1,6 +1,5 @@
1
1
  module Eir
2
2
  class Server
3
-
4
3
  def initialize
5
4
  @server_url = 'http://localhost:8700'
6
5
  end
@@ -36,6 +35,5 @@ module Eir
36
35
  `kill -9 #{pid}`
37
36
  Timeout.timeout(10, FailedToStopSinatraError) { sleep 1 until status == false }
38
37
  end
39
-
40
38
  end
41
39
  end
data/lib/eir/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Eir
2
- VERSION = '0.1.0'
2
+ VERSION = '0.2.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: eir
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Snape
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-10-06 00:00:00.000000000 Z
11
+ date: 2016-08-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client
@@ -16,28 +16,28 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 1.6.7
19
+ version: '1.6'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 1.6.7
26
+ version: '1.6'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: sinatra
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 1.4.5
33
+ version: '1.4'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 1.4.5
40
+ version: '1.4'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: haml
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -58,14 +58,14 @@ dependencies:
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: 2.8.2
61
+ version: '3'
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: 2.8.2
68
+ version: '3'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: colorize
71
71
  requirement: !ruby/object:Gem::Requirement
@@ -128,30 +128,30 @@ dependencies:
128
128
  requirements:
129
129
  - - "~>"
130
130
  - !ruby/object:Gem::Version
131
- version: 0.6.2
131
+ version: '0.6'
132
132
  type: :development
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
136
  - - "~>"
137
137
  - !ruby/object:Gem::Version
138
- version: 0.6.2
138
+ version: '0.6'
139
139
  - !ruby/object:Gem::Dependency
140
140
  name: rubocop
141
141
  requirement: !ruby/object:Gem::Requirement
142
142
  requirements:
143
- - - "~>"
143
+ - - ">="
144
144
  - !ruby/object:Gem::Version
145
- version: 0.26.0
145
+ version: '0'
146
146
  type: :development
147
147
  prerelease: false
148
148
  version_requirements: !ruby/object:Gem::Requirement
149
149
  requirements:
150
- - - "~>"
150
+ - - ">="
151
151
  - !ruby/object:Gem::Version
152
- version: 0.26.0
153
- description: "[\"Easily\", \"monitor\", \"the\", \"health\", \"of\", \"arbitrary\",
154
- \"URI's\", \"defined\", \"in\", \"YAML\", \"config\"]"
152
+ version: '0'
153
+ description: '["Easily", "monitor", "the", "health", "of", "arbitrary", "URI''s",
154
+ "defined", "in", "YAML", "config"]'
155
155
  email:
156
156
  - bsnape@gmail.com
157
157
  executables:
@@ -160,6 +160,7 @@ extensions: []
160
160
  extra_rdoc_files: []
161
161
  files:
162
162
  - ".gitignore"
163
+ - ".rubocop.yml"
163
164
  - Gemfile
164
165
  - LICENSE.txt
165
166
  - README.md
@@ -201,10 +202,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
201
202
  version: '0'
202
203
  requirements: []
203
204
  rubyforge_project:
204
- rubygems_version: 2.2.0
205
+ rubygems_version: 2.2.5
205
206
  signing_key:
206
207
  specification_version: 4
207
- summary: "[\"Monitor\", \"the\", \"health\", \"of\", \"URI's\"]"
208
+ summary: '["Monitor", "the", "health", "of", "URI''s"]'
208
209
  test_files:
209
210
  - spec/eir_spec.rb
210
211
  - spec/sinatra_dashboard_spec.rb