mshard 0.5.0 → 0.5.1

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: c0543bccd4235f5c7b6ec863ad18758a76e27daf
4
- data.tar.gz: a77c396f8db4ed58e585fba9402b40c0bdd3b523
3
+ metadata.gz: de175ccd52325447343f0fc921f9a179ce00781c
4
+ data.tar.gz: 66842743f204b3dc2b4edfc4eac63f05905e9dd4
5
5
  SHA512:
6
- metadata.gz: 0094523892120b5d4f0bbaaec826fe5a4f26bdf038cca62edd8b81edf755cfd9ddf77aa501a0d3f77ba423ad20921128dc96ade0211d5eecdb7c1455fe68946e
7
- data.tar.gz: b2900b067e1bc52a4cdf563c89403e9ea0a47d93007a3e23a09df6278aa242474d8dd8873da97ba6f4f5d0fc96ed0526e93204ee1ad4f1b5dd2213f9873b4d70
6
+ metadata.gz: d8fa017c7ee81f5453dfa6e0155d489ec2057b4dff4a22154fd261fdefbb7e5c846278731e6222e60e96836334fe8ae2ea72d95bcd3bc0b113d51bb316be7ce7
7
+ data.tar.gz: 84ac787249a1d035c94e397184ebc84d5fbb89c1f1b9dc3ae68b8f925ae90cd9538d185b12666619ce2c715f9d0dee9c1d409c684698687bac4c6fe4e447ede5
data/.rubocop.yml CHANGED
@@ -7,4 +7,9 @@ Style/RegexpLiteral:
7
7
 
8
8
  Metrics/LineLength:
9
9
  Exclude:
10
- - 'spec/spec_helper.rb'
10
+ - 'spec/spec_helper.rb'
11
+
12
+ Metrics/BlockLength:
13
+ Exclude:
14
+ - '*.gemspec'
15
+ - 'spec/**/*'
data/.travis.yml CHANGED
@@ -2,6 +2,9 @@ language: ruby
2
2
  sudo: false
3
3
  rvm:
4
4
  - ruby-head
5
- - 2.2.2
6
- - 2.1.5
7
- - 2.0.0
5
+ - 2.2.5
6
+ - 2.3.1
7
+ - 2.4.0
8
+ before_install:
9
+ - gem update --system
10
+ - gem install bundler
data/Gemfile.lock CHANGED
@@ -1,29 +1,28 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- mshard (0.5.0)
4
+ mshard (0.5.1)
5
5
  haml
6
6
  httparty
7
+ no_proxy_fix
7
8
  thor
8
9
 
9
10
  GEM
10
11
  remote: http://rubygems.org/
11
12
  specs:
12
- ast (2.2.0)
13
- astrolabe (1.3.1)
14
- parser (~> 2.2)
15
- codecov (0.1.2)
13
+ ast (2.3.0)
14
+ codecov (0.1.9)
16
15
  json
17
16
  simplecov
18
17
  url
19
- coderay (1.1.0)
20
- diff-lcs (1.2.5)
18
+ coderay (1.1.1)
19
+ diff-lcs (1.3)
21
20
  docile (1.1.5)
22
- ffi (1.9.10)
21
+ ffi (1.9.17)
23
22
  formatador (0.2.5)
24
- guard (2.13.0)
23
+ guard (2.14.1)
25
24
  formatador (>= 0.2.4)
26
- listen (>= 2.7, <= 4.0)
25
+ listen (>= 2.7, < 4.0)
27
26
  lumberjack (~> 1.0)
28
27
  nenv (~> 0.1)
29
28
  notiffany (~> 0.0)
@@ -31,7 +30,7 @@ GEM
31
30
  shellany (~> 0.0)
32
31
  thor (>= 0.18.1)
33
32
  guard-compat (1.2.1)
34
- guard-rspec (4.6.4)
33
+ guard-rspec (4.7.3)
35
34
  guard (~> 2.1)
36
35
  guard-compat (~> 1.1)
37
36
  rspec (>= 2.99.0, < 4.0)
@@ -40,63 +39,64 @@ GEM
40
39
  rubocop (~> 0.20)
41
40
  haml (4.0.7)
42
41
  tilt
43
- httparty (0.13.7)
44
- json (~> 1.8)
42
+ httparty (0.14.0)
45
43
  multi_xml (>= 0.5.2)
46
- json (1.8.3)
47
- listen (3.0.5)
48
- rb-fsevent (>= 0.9.3)
49
- rb-inotify (>= 0.9)
50
- lumberjack (1.0.10)
44
+ json (2.0.3)
45
+ listen (3.1.5)
46
+ rb-fsevent (~> 0.9, >= 0.9.4)
47
+ rb-inotify (~> 0.9, >= 0.9.7)
48
+ ruby_dep (~> 1.2)
49
+ lumberjack (1.0.11)
51
50
  method_source (0.8.2)
52
- multi_xml (0.5.5)
53
- nenv (0.2.0)
54
- notiffany (0.0.8)
51
+ multi_xml (0.6.0)
52
+ nenv (0.3.0)
53
+ no_proxy_fix (0.1.0)
54
+ notiffany (0.1.1)
55
55
  nenv (~> 0.1)
56
56
  shellany (~> 0.0)
57
- parser (2.2.3.0)
58
- ast (>= 1.1, < 3.0)
57
+ parser (2.3.3.1)
58
+ ast (~> 2.2)
59
59
  powerpack (0.1.1)
60
- pry (0.10.3)
60
+ pry (0.10.4)
61
61
  coderay (~> 1.1.0)
62
62
  method_source (~> 0.8.1)
63
63
  slop (~> 3.4)
64
- rainbow (2.0.0)
65
- rake (10.4.2)
66
- rb-fsevent (0.9.7)
67
- rb-inotify (0.9.5)
64
+ rainbow (2.2.1)
65
+ rake (10.5.0)
66
+ rb-fsevent (0.9.8)
67
+ rb-inotify (0.9.8)
68
68
  ffi (>= 0.5.0)
69
- rspec (3.4.0)
70
- rspec-core (~> 3.4.0)
71
- rspec-expectations (~> 3.4.0)
72
- rspec-mocks (~> 3.4.0)
73
- rspec-core (3.4.1)
74
- rspec-support (~> 3.4.0)
75
- rspec-expectations (3.4.0)
69
+ rspec (3.5.0)
70
+ rspec-core (~> 3.5.0)
71
+ rspec-expectations (~> 3.5.0)
72
+ rspec-mocks (~> 3.5.0)
73
+ rspec-core (3.5.4)
74
+ rspec-support (~> 3.5.0)
75
+ rspec-expectations (3.5.0)
76
76
  diff-lcs (>= 1.2.0, < 2.0)
77
- rspec-support (~> 3.4.0)
78
- rspec-mocks (3.4.0)
77
+ rspec-support (~> 3.5.0)
78
+ rspec-mocks (3.5.0)
79
79
  diff-lcs (>= 1.2.0, < 2.0)
80
- rspec-support (~> 3.4.0)
81
- rspec-support (3.4.1)
82
- rubocop (0.35.1)
83
- astrolabe (~> 1.3)
84
- parser (>= 2.2.3.0, < 3.0)
80
+ rspec-support (~> 3.5.0)
81
+ rspec-support (3.5.0)
82
+ rubocop (0.47.1)
83
+ parser (>= 2.3.3.1, < 3.0)
85
84
  powerpack (~> 0.1)
86
85
  rainbow (>= 1.99.1, < 3.0)
87
86
  ruby-progressbar (~> 1.7)
88
- tins (<= 1.6.0)
89
- ruby-progressbar (1.7.5)
87
+ unicode-display_width (~> 1.0, >= 1.0.1)
88
+ ruby-progressbar (1.8.1)
89
+ ruby_dep (1.5.0)
90
90
  shellany (0.0.1)
91
- simplecov (0.11.1)
91
+ simplecov (0.13.0)
92
92
  docile (~> 1.1.0)
93
- json (~> 1.8)
93
+ json (>= 1.8, < 3)
94
94
  simplecov-html (~> 0.10.0)
95
95
  simplecov-html (0.10.0)
96
96
  slop (3.6.0)
97
- thor (0.19.1)
98
- tilt (2.0.5)
99
- tins (1.6.0)
97
+ thor (0.19.4)
98
+ tilt (2.0.6)
99
+ unicode-display_width (1.1.3)
100
100
  url (0.3.2)
101
101
 
102
102
  PLATFORMS
@@ -116,4 +116,4 @@ DEPENDENCIES
116
116
  simplecov
117
117
 
118
118
  BUNDLED WITH
119
- 1.12.5
119
+ 1.14.3
data/lib/mshard/mshard.rb CHANGED
@@ -1,4 +1,5 @@
1
1
  require 'httparty'
2
+ require 'no_proxy_fix'
2
3
  require 'haml'
3
4
 
4
5
  module MShard
@@ -33,7 +34,7 @@ module MShard
33
34
  try { set(*args) }
34
35
  end
35
36
 
36
- ERROR_TEMPLATE = <<-HAML
37
+ ERROR_TEMPLATE = <<-HAML.freeze
37
38
  !!! 5
38
39
  %html
39
40
  %head
@@ -1,3 +1,3 @@
1
1
  module MShard
2
- VERSION = '0.5.0'
2
+ VERSION = '0.5.1'.freeze
3
3
  end
data/mshard.gemspec CHANGED
@@ -22,6 +22,7 @@ Gem::Specification.new do |spec|
22
22
  spec.add_dependency 'httparty'
23
23
  spec.add_dependency 'haml'
24
24
  spec.add_dependency 'thor'
25
+ spec.add_dependency 'no_proxy_fix'
25
26
  spec.add_development_dependency 'bundler', '~> 1.7'
26
27
  spec.add_development_dependency 'rake', '~> 10.0'
27
28
  spec.add_development_dependency 'rspec'
@@ -3,7 +3,7 @@ require 'mshard'
3
3
  describe MShard::MShard do
4
4
  it '#try works' do
5
5
  expect(subject.try { :result }).to be(:result)
6
- expect(subject.try(delay: 0.01) { fail }).to be(nil)
6
+ expect(subject.try(delay: 0.01) { raise }).to be(nil)
7
7
  end
8
8
 
9
9
  describe '#get' do
@@ -44,11 +44,11 @@ describe MShard::MShard do
44
44
 
45
45
  it '#error_to_html works' do
46
46
  e = begin
47
- fail
47
+ raise
48
48
  rescue => e
49
49
  e
50
50
  end
51
- html = (subject.error_to_html(e))
51
+ html = subject.error_to_html(e)
52
52
  expect(html).to include('<title>Error</title>')
53
53
  expect(html).to include('<pre>RuntimeError</pre>')
54
54
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mshard
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Minwoo Lee
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-07-14 00:00:00.000000000 Z
11
+ date: 2017-02-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty
@@ -52,6 +52,20 @@ dependencies:
52
52
  - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: no_proxy_fix
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
55
69
  - !ruby/object:Gem::Dependency
56
70
  name: bundler
57
71
  requirement: !ruby/object:Gem::Requirement
@@ -230,11 +244,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
230
244
  version: '0'
231
245
  requirements: []
232
246
  rubyforge_project:
233
- rubygems_version: 2.5.1
247
+ rubygems_version: 2.6.8
234
248
  signing_key:
235
249
  specification_version: 4
236
250
  summary: MShard
237
251
  test_files:
238
252
  - spec/lib/mshard/mshard_spec.rb
239
253
  - spec/spec_helper.rb
240
- has_rdoc: