aw 0.1.10 → 0.1.11

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.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE.md +1 -1
  3. data/README.md +21 -40
  4. data/lib/aw/fork.rb +4 -4
  5. metadata +22 -8
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d28a102cc87edf2a8c7e2d754bac243806ff4009835cb307eeefc79a25ef985f
4
- data.tar.gz: af9e83447b82f15fdc02758b5e1456f86849753a22cda32d45ac821c067eb474
3
+ metadata.gz: cef162831a9fd5958fa3123864f9db07d313f4a851b5738ce0f8bf171b12a570
4
+ data.tar.gz: 012f7e21a4a6282d4b998df713916509b7d34e4806d305c8878b1771833fc43f
5
5
  SHA512:
6
- metadata.gz: 371194f281ed1b336ee03a472b83399f05aa72fb4976290dbbb418af2f8c004ad320bacd072f7e063ceb614feda3c274508c6e0e6f85a6dfbd3804a9f52b3164
7
- data.tar.gz: cf14d9ac8548b9bb2844688243a0bc42dfaf98b3cf259bde77aa2f0501d634361194b5aae849a83b2c3832fc0ee7a0c2e270e7d024d8f27237f5e90c895fc327
6
+ metadata.gz: ca3c0e6bb8c8fbf4ca45dc57d966cf4b5ca738f3d17936ceb055719b4e58ede5591c4a7208878ff8f0380dfad9d587f9dfd4ceed0d7135c82a3d1d9f9ff3ab62
7
+ data.tar.gz: 56152493f8c66f8b6316d0e12bafb8aaeda33c589a0fc2723cb2fa2767c705df5c4823436beab82a284a70adee6cdb90f938561ffed9244866705b3d7d014c88
data/LICENSE.md CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2015-2019 Cyril Kato
3
+ Copyright (c) 2015-2020 Cyril Kato
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
data/README.md CHANGED
@@ -1,26 +1,15 @@
1
1
  # Aw
2
2
 
3
- [![Build Status](https://travis-ci.org/fixrb/aw.svg?branch=master)][travis]
3
+ [![Build Status](https://api.travis-ci.org/fixrb/aw.svg?branch=master)][travis]
4
4
  [![Code Climate](https://codeclimate.com/github/fixrb/aw/badges/gpa.svg)][codeclimate]
5
5
  [![Gem Version](https://badge.fury.io/rb/aw.svg)][gem]
6
- [![Inline docs](http://inch-ci.org/github/fixrb/aw.svg?branch=master)][inchpages]
7
- [![Documentation](http://img.shields.io/:yard-docs-38c800.svg)][rubydoc]
6
+ [![Inline docs](https://inch-ci.org/github/fixrb/aw.svg?branch=master)][inchpages]
7
+ [![Documentation](https://img.shields.io/:yard-docs-38c800.svg)][rubydoc]
8
8
 
9
- > Aw, fork!
9
+ > Aw, fork! 😬
10
10
 
11
11
  Creates a subprocess to execute a block inside.
12
12
 
13
- ## Contact
14
-
15
- * Home page: https://github.com/fixrb/aw
16
- * Bugs/issues: https://github.com/fixrb/aw/issues
17
- * Support: https://stackoverflow.com/questions/tagged/fixrb
18
-
19
- ## Rubies
20
-
21
- * [MRI](https://www.ruby-lang.org/)
22
- * [Rubinius](https://rubinius.com/)
23
-
24
13
  ## Installation
25
14
 
26
15
  Add this line to your application's Gemfile:
@@ -61,43 +50,35 @@ Exceptions raised within the block are propagated:
61
50
  Aw.fork! { nil + 1 } # => NoMethodError (undefined method `+' for nil:NilClass)
62
51
  ```
63
52
 
64
- ## Security
53
+ ## Contact
65
54
 
66
- As a basic form of security __Aw__ provides a set of SHA512 checksums for
67
- every Gem release. These checksums can be found in the `checksum/` directory.
68
- Although these checksums do not prevent malicious users from tampering with a
69
- built Gem they can be used for basic integrity verification purposes.
55
+ * Home page: https://github.com/fixrb/aw
56
+ * Bugs/issues: https://github.com/fixrb/aw/issues
70
57
 
71
- The checksum of a file can be checked using the `sha512sum` command. For
72
- example:
58
+ ## Rubies
73
59
 
74
- $ sha512sum pkg/aw-0.1.0.gem
75
- 548d9f669ded4e622182791a5390aaceae0bf2e557b0864f05a842b0be2c65e10e1fb8499f49a3b9efd0e8eaeb691351b1c670d6316ce49965a99683b1071389 pkg/aw-0.1.0.gem
60
+ * [MRI](https://www.ruby-lang.org/)
61
+ * [Rubinius](https://rubinius.com/)
76
62
 
77
63
  ## Versioning
78
64
 
79
65
  __Aw__ follows [Semantic Versioning 2.0](https://semver.org/).
80
66
 
81
- ## Contributing
67
+ ## License
82
68
 
83
- 1. [Fork it](https://github.com/fixrb/aw/fork)
84
- 2. Create your feature branch (`git checkout -b my-new-feature`)
85
- 3. Commit your changes (`git commit -am 'Add some feature'`)
86
- 4. Push to the branch (`git push origin my-new-feature`)
87
- 5. Create a new Pull Request
69
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
88
70
 
89
- ## License
71
+ ***
90
72
 
91
- See `LICENSE.md` file.
73
+ <p>
74
+ This project is sponsored by:<br />
75
+ <a href="https://sashite.com/"><img
76
+ src="https://github.com/fixrb/aw/raw/master/img/sashite.png"
77
+ alt="Sashite" /></a>
78
+ </p>
92
79
 
93
80
  [gem]: https://rubygems.org/gems/aw
94
81
  [travis]: https://travis-ci.org/fixrb/aw
95
82
  [codeclimate]: https://codeclimate.com/github/fixrb/aw
96
- [inchpages]: http://inch-ci.org/github/fixrb/aw
97
- [rubydoc]: http://rubydoc.info/gems/aw/frames
98
-
99
- ***
100
-
101
- This project is sponsored by:
102
-
103
- [![Sashite](https://pbs.twimg.com/profile_images/618485028322975744/PZ9qPuI__400x400.png)](https://sashite.com/)
83
+ [inchpages]: https://inch-ci.org/github/fixrb/aw
84
+ [rubydoc]: https://rubydoc.info/gems/aw
@@ -11,7 +11,7 @@ module Aw
11
11
  # @param write [IO] The write endpoint.
12
12
  def initialize(read, write)
13
13
  # Currently, not available on all platforms.
14
- raise NotImplementedError, 'fork()' unless ::Process.respond_to?(:fork)
14
+ raise ::NotImplementedError, 'fork()' unless ::Process.respond_to?(:fork)
15
15
 
16
16
  @read = read
17
17
  @write = write
@@ -36,11 +36,11 @@ module Aw
36
36
  result = read.read
37
37
  ::Process.wait(pid)
38
38
 
39
- # rubocop:disable MarshalLoad
39
+ # rubocop:disable Security/MarshalLoad
40
40
  ::Marshal.load(result).tap do |r|
41
41
  raise r if r.is_a?(::Exception)
42
42
  end
43
- # rubocop:enable MarshalLoad
43
+ # rubocop:enable Security/MarshalLoad
44
44
  end
45
45
 
46
46
  private
@@ -58,7 +58,7 @@ module Aw
58
58
  # rubocop:enable Lint/RescueException
59
59
 
60
60
  ::Marshal.dump(result, write)
61
- exit!(0)
61
+ exit!(true)
62
62
  end
63
63
  end
64
64
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aw
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.10
4
+ version: 0.1.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cyril Kato
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-11-30 00:00:00.000000000 Z
11
+ date: 2020-01-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '2.0'
19
+ version: '2.1'
20
20
  type: :development
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: '2.0'
26
+ version: '2.1'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -44,14 +44,28 @@ dependencies:
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '0.76'
47
+ version: '0.79'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '0.76'
54
+ version: '0.79'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rubocop-performance
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
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: simplecov
57
71
  requirement: !ruby/object:Gem::Requirement
@@ -109,8 +123,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
109
123
  - !ruby/object:Gem::Version
110
124
  version: '0'
111
125
  requirements: []
112
- rubygems_version: 3.0.6
126
+ rubygems_version: 3.1.2
113
127
  signing_key:
114
128
  specification_version: 4
115
- summary: Aw, fork!
129
+ summary: "Aw, fork! \U0001F62C"
116
130
  test_files: []