matchi-fix 1.0.4 → 1.1.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
  SHA256:
3
- metadata.gz: 19a9bc6313ec7651c4bdc897cdd1a71d90e3dc2e5ebfc824c30dd81dcbfb32d7
4
- data.tar.gz: 439219a738caa00b743145280a0cf90b02d19dbac3900d88552d2c0da9fc5bd5
3
+ metadata.gz: 3237654827785d3e875580e063d599bbadb3ac1393bbcb8c7651f18fdd5be90c
4
+ data.tar.gz: 00fccfb2f02b690557bfbab0a118ab8016351433a71ec9b736a6cf5cda265fc3
5
5
  SHA512:
6
- metadata.gz: 14a3fba3b283080254b4c9f76d3de07b49bab62c41ccbbb3aa75067f6536d91715c828fac3456dad8bec6e83bdae1077e4037f873a6716a6aec56b1b1909f8a7
7
- data.tar.gz: 0e006768d567e6475c04ef66a2f2b4f184237f2238e5ba1b8bf5eac5196d16dbf960a6d90316f25471888a0a5b87d27d58f6a44c09406cf9db37f004bfaab3aa
6
+ metadata.gz: edf896389b7104920f99eb5210d548082e50c654d8809a7a2787e5d00b0b69a9be77dcb52e15941049bbeb5bf0a407ec7ba449aab8f94265ec492b237603583b
7
+ data.tar.gz: f0fb10d502c19fe69cb0d73513a8bf11058430b8c90230d89eb82160fd4666247eb562a12a7f6e7cc65f68cca180ca8d2c1b813b69e06383ae09a0ed040e4c43
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,25 +1,13 @@
1
1
  # Matchi::Fix
2
2
 
3
- [![Build Status](https://travis-ci.org/fixrb/matchi-fix.svg?branch=master)][travis]
3
+ [![Build Status](https://api.travis-ci.org/fixrb/matchi-fix.svg?branch=master)][travis]
4
4
  [![Code Climate](https://codeclimate.com/github/fixrb/matchi-fix/badges/gpa.svg)][codeclimate]
5
5
  [![Gem Version](https://badge.fury.io/rb/matchi-fix.svg)][gem]
6
- [![Inline docs](http://inch-ci.org/github/fixrb/matchi-fix.svg?branch=master)][inchpages]
7
- [![Documentation](http://img.shields.io/:yard-docs-38c800.svg)][rubydoc]
6
+ [![Inline docs](https://inch-ci.org/github/fixrb/matchi-fix.svg?branch=master)][inchpages]
7
+ [![Documentation](https://img.shields.io/:yard-docs-38c800.svg)][rubydoc]
8
8
 
9
9
  > A [Fix](https://github.com/fixrb/fix) expectation matcher for [Matchi](https://github.com/fixrb/matchi).
10
10
 
11
- ## Contact
12
-
13
- * Home page: https://github.com/fixrb/matchi-fix
14
- * Bugs/issues: https://github.com/fixrb/matchi-fix/issues
15
- * Support: https://stackoverflow.com/questions/tagged/fixrb
16
-
17
- ## Rubies
18
-
19
- * [MRI](https://www.ruby-lang.org/)
20
- * [Rubinius](http://rubini.us/)
21
- * [JRuby](http://jruby.org/)
22
-
23
11
  ## Installation
24
12
 
25
13
  Add this line to your application's Gemfile:
@@ -41,48 +29,40 @@ Or install it yourself as:
41
29
  ```ruby
42
30
  require 'matchi/fix'
43
31
 
44
- fix = Matchi::Matchers::Fix::Matcher.new(proc { it { MUST equal 42 } }) #<Matchi::Matchers::Fix::Matcher:0x007fd4022dd6c8 @expected=#<Proc:0x007fd4022dd6f0@(irb):1>>
32
+ fix = Matchi::Matcher::Fix.new(proc { it { MUST equal 42 } })
45
33
  fix.matches? { 6 * 7 } # => true
46
34
  ```
47
35
 
48
- ## Security
36
+ ## Contact
49
37
 
50
- As a basic form of security __Matchi::Fix__ provides a set of SHA512 checksums for
51
- every Gem release. These checksums can be found in the `checksum/` directory.
52
- Although these checksums do not prevent malicious users from tampering with a
53
- built Gem they can be used for basic integrity verification purposes.
38
+ * Home page: https://github.com/fixrb/matchi-fix
39
+ * Bugs/issues: https://github.com/fixrb/matchi-fix/issues
54
40
 
55
- The checksum of a file can be checked using the `sha512sum` command. For
56
- example:
41
+ ## Rubies
57
42
 
58
- $ sha512sum pkg/matchi-fix-0.1.0.gem
59
- 0decb77665ae868584aedab6ef126c7ce4efa69bf1fab75215ee9686b16525f8d7a45e03dc3145cb320371d8ddf2ffff90de34f5778fe55b11ce4cb4996a7f5a pkg/matchi-fix-0.1.0.gem
43
+ * [MRI](https://www.ruby-lang.org/)
44
+ * [Rubinius](https://rubinius.com/)
45
+ * [JRuby](https://www.jruby.org/)
60
46
 
61
47
  ## Versioning
62
48
 
63
49
  __Matchi::Fix__ follows [Semantic Versioning 2.0](http://semver.org/).
64
50
 
65
- ## Contributing
51
+ ## License
66
52
 
67
- 1. [Fork it](https://github.com/fixrb/matchi-fix/fork)
68
- 2. Create your feature branch (`git checkout -b my-new-feature`)
69
- 3. Commit your changes (`git commit -am 'Add some feature'`)
70
- 4. Push to the branch (`git push origin my-new-feature`)
71
- 5. Create a new Pull Request
53
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
72
54
 
73
- ## License
55
+ ***
74
56
 
75
- See `LICENSE.md` file.
57
+ <p>
58
+ This project is sponsored by:<br />
59
+ <a href="https://sashite.com/"><img
60
+ src="https://github.com/fixrb/matchi-fix/raw/master/img/sashite.png"
61
+ alt="Sashite" /></a>
62
+ </p>
76
63
 
77
64
  [gem]: https://rubygems.org/gems/matchi-fix
78
65
  [travis]: https://travis-ci.org/fixrb/matchi-fix
79
66
  [codeclimate]: https://codeclimate.com/github/fixrb/matchi-fix
80
- [gemnasium]: https://gemnasium.com/fixrb/matchi-fix
81
- [inchpages]: http://inch-ci.org/github/fixrb/matchi-fix
82
- [rubydoc]: http://rubydoc.info/gems/matchi-fix/frames
83
-
84
- ***
85
-
86
- This project is sponsored by:
87
-
88
- [![Sashite](https://sashite.com/img/sashite.png)](https://sashite.com/)
67
+ [inchpages]: https://inch-ci.org/github/fixrb/matchi-fix
68
+ [rubydoc]: https://rubydoc.info/gems/matchi-fix/frames
data/lib/matchi/fix.rb CHANGED
@@ -1,41 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'matchi/matchers_base'
4
- require 'fix'
5
-
6
- # Namespace for the Matchi library.
7
- module Matchi
8
- # Collection of matchers.
9
- module Matchers
10
- # **Fix** matcher.
11
- module Fix
12
- # The matcher.
13
- class Matcher
14
- include MatchersBase
15
-
16
- # Initialize the matcher with a spec.
17
- #
18
- # @example It MUST be equal to 42 matcher.
19
- # new(proc { it { MUST equal 42 } })
20
- #
21
- # @param expected [Proc] A spec.
22
- def initialize(expected)
23
- @expected = expected
24
- end
25
-
26
- # @example Is 42 matching 6 * 7?
27
- # fix = new(proc { it { MUST equal 42 } })
28
- # fix.matches? { 6 * 7 } # => true
29
- #
30
- # @yieldreturn [#object_id] A front object to compare against the spec.
31
- #
32
- # @return [Boolean] The result of the test: _pass_ or _fail_.
33
- def matches?
34
- ::Fix.describe(yield, verbose: false, &@expected)
35
- rescue SystemExit => e
36
- e.success?
37
- end
38
- end
39
- end
40
- end
3
+ Dir[File.join File.dirname(__FILE__), 'matcher', '*.rb'].each do |fname|
4
+ require_relative fname
41
5
  end
6
+
7
+ require 'matchi/helper'
@@ -0,0 +1,38 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'matchi/matcher/base'
4
+
5
+ # Namespace for the Matchi library.
6
+ module Matchi
7
+ # Collection of matcher classes.
8
+ module Matcher
9
+ # **Fix** matcher.
10
+ class Fix < ::Matchi::Matcher::Base
11
+ # Initialize the matcher with a spec.
12
+ #
13
+ # @example It MUST be equal to 42 matcher.
14
+ # new(proc { it { MUST equal 42 } })
15
+ #
16
+ # @param expected [Proc] A spec.
17
+ def initialize(expected)
18
+ @expected = expected
19
+ end
20
+
21
+ # @example Is 42 matching 6 * 7?
22
+ # fix = new(proc { it { MUST equal 42 } })
23
+ # fix.matches? { 6 * 7 } # => true
24
+ #
25
+ # @yieldreturn [#object_id] A front object to compare against the spec.
26
+ #
27
+ # @return [Boolean] The result of the test: _pass_ or _fail_.
28
+ def matches?
29
+ ::Fix.describe(yield, &expected)
30
+ true
31
+ rescue ::SystemExit => e
32
+ e.success?
33
+ end
34
+ end
35
+ end
36
+ end
37
+
38
+ require 'fix'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: matchi-fix
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.4
4
+ version: 1.1.0
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-04-12 00:00:00.000000000 Z
11
+ date: 2020-01-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fix
@@ -16,84 +16,98 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 0.18.0
19
+ version: 1.0.0.beta1
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: 0.18.0
26
+ version: 1.0.0.beta1
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: matchi
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 1.0.4
33
+ version: 2.0.0
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.0.4
40
+ version: 2.0.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: bundler
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '2.0'
47
+ version: '2.1'
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: '2.0'
54
+ version: '2.1'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rake
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '12.3'
61
+ version: '13.0'
62
62
  type: :development
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: '12.3'
68
+ version: '13.0'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rubocop
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: '0.67'
75
+ version: '0.79'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: '0.67'
82
+ version: '0.79'
83
+ - !ruby/object:Gem::Dependency
84
+ name: rubocop-performance
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
83
97
  - !ruby/object:Gem::Dependency
84
98
  name: simplecov
85
99
  requirement: !ruby/object:Gem::Requirement
86
100
  requirements:
87
101
  - - "~>"
88
102
  - !ruby/object:Gem::Version
89
- version: '0.16'
103
+ version: '0.17'
90
104
  type: :development
91
105
  prerelease: false
92
106
  version_requirements: !ruby/object:Gem::Requirement
93
107
  requirements:
94
108
  - - "~>"
95
109
  - !ruby/object:Gem::Version
96
- version: '0.16'
110
+ version: '0.17'
97
111
  - !ruby/object:Gem::Dependency
98
112
  name: yard
99
113
  requirement: !ruby/object:Gem::Requirement
@@ -115,29 +129,10 @@ executables: []
115
129
  extensions: []
116
130
  extra_rdoc_files: []
117
131
  files:
118
- - ".gitignore"
119
- - ".travis.yml"
120
- - ".yardopts"
121
- - CODE_OF_CONDUCT.md
122
- - Gemfile
123
132
  - LICENSE.md
124
133
  - README.md
125
- - Rakefile
126
- - VERSION.semver
127
- - bin/console
128
- - bin/setup
129
- - checksum/matchi-fix-0.1.0.gem.sha512
130
- - checksum/matchi-fix-0.1.1.gem.sha512
131
- - checksum/matchi-fix-0.1.2.gem.sha512
132
- - checksum/matchi-fix-0.1.3.gem.sha512
133
- - checksum/matchi-fix-0.1.4.gem.sha512
134
- - checksum/matchi-fix-0.2.0.gem.sha512
135
- - checksum/matchi-fix-1.0.1.gem.sha512
136
- - checksum/matchi-fix-1.0.2.gem.sha512
137
- - checksum/matchi-fix-1.0.3.gem.sha512
138
134
  - lib/matchi/fix.rb
139
- - matchi-fix.gemspec
140
- - pkg_checksum
135
+ - lib/matchi/matcher/fix.rb
141
136
  homepage: https://github.com/fixrb/matchi-fix
142
137
  licenses:
143
138
  - MIT
@@ -157,7 +152,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
157
152
  - !ruby/object:Gem::Version
158
153
  version: '0'
159
154
  requirements: []
160
- rubygems_version: 3.0.3
155
+ rubygems_version: 3.1.2
161
156
  signing_key:
162
157
  specification_version: 4
163
158
  summary: Fix expectation matcher.
data/.gitignore DELETED
@@ -1,11 +0,0 @@
1
- /.bundle/
2
- /.ruby-version
3
- /.yardoc
4
- /Gemfile.lock
5
- /_yardoc/
6
- /coverage/
7
- /doc/
8
- /pkg/
9
- /spec/reports/
10
- /tmp/
11
- *.gem
data/.travis.yml DELETED
@@ -1,28 +0,0 @@
1
- language: ruby
2
- sudo: false
3
- cache: bundler
4
- before_install:
5
- - gem install bundler
6
- script:
7
- - bundle exec rubocop
8
- - bundle exec rake test
9
- rvm:
10
- - 2.3.3
11
- - 2.4.0
12
- - 2.5.0
13
- - 2.6.2
14
- - ruby-head
15
- - jruby-head
16
- - rbx-3
17
- matrix:
18
- allow_failures:
19
- - rvm: ruby-head
20
- - rvm: jruby-head
21
- - rvm: rbx-3
22
- notifications:
23
- webhooks:
24
- urls:
25
- - https://webhooks.gitter.im/e/a44b19cc5cf6db25fa87
26
- on_success: change
27
- on_failure: always
28
- on_start: never
data/.yardopts DELETED
@@ -1 +0,0 @@
1
- - README.md
data/CODE_OF_CONDUCT.md DELETED
@@ -1,13 +0,0 @@
1
- # Contributor Code of Conduct
2
-
3
- As contributors and maintainers of this project, we pledge to respect all people who contribute through reporting issues, posting feature requests, updating documentation, submitting pull requests or patches, and other activities.
4
-
5
- We are committed to making participation in this project a harassment-free experience for everyone, regardless of level of experience, gender, gender identity and expression, sexual orientation, disability, personal appearance, body size, race, age, or religion.
6
-
7
- Examples of unacceptable behavior by participants include the use of sexual language or imagery, derogatory comments or personal attacks, trolling, public or private harassment, insults, or other unprofessional conduct.
8
-
9
- Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct. Project maintainers who do not follow the Code of Conduct may be removed from the project team.
10
-
11
- Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by opening an issue or contacting one or more of the project maintainers.
12
-
13
- This Code of Conduct is adapted from the [Contributor Covenant](http:contributor-covenant.org), version 1.0.0, available at [http://contributor-covenant.org/version/1/0/0/](http://contributor-covenant.org/version/1/0/0/)
data/Gemfile DELETED
@@ -1,5 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- source 'https://rubygems.org'
4
-
5
- gemspec
data/Rakefile DELETED
@@ -1,22 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'bundler/gem_tasks'
4
- require 'rake/testtask'
5
- require 'rubocop/rake_task'
6
-
7
- RuboCop::RakeTask.new
8
-
9
- Rake::TestTask.new do |t|
10
- t.verbose = true
11
- t.warning = true
12
- end
13
-
14
- namespace :test do
15
- task :coverage do
16
- ENV['COVERAGE'] = 'true'
17
- Rake::Task['test'].invoke
18
- end
19
- end
20
-
21
- task(:doc_stats) { ruby '-S yard stats' }
22
- task default: %i[test doc_stats rubocop]
data/VERSION.semver DELETED
@@ -1 +0,0 @@
1
- 1.0.4
data/bin/console DELETED
@@ -1,8 +0,0 @@
1
- #!/usr/bin/env ruby
2
- # frozen_string_literal: true
3
-
4
- require 'bundler/setup'
5
- require 'matchi/fix'
6
-
7
- require 'irb'
8
- IRB.start
data/bin/setup DELETED
@@ -1,6 +0,0 @@
1
- #!/bin/bash
2
-
3
- set -euo pipefail
4
- IFS=$'\n\t'
5
-
6
- bundle install
@@ -1 +0,0 @@
1
- 0decb77665ae868584aedab6ef126c7ce4efa69bf1fab75215ee9686b16525f8d7a45e03dc3145cb320371d8ddf2ffff90de34f5778fe55b11ce4cb4996a7f5a
@@ -1 +0,0 @@
1
- 2a66b5dda194af828096e9b86e2adf2b52cea4113720a0050c867aa37f32200be7ce8ca83c8fbfc9d39a7d6e2a2622f8873bbaafd7529bbc03015bb3e5b05421
@@ -1 +0,0 @@
1
- 5827ead29509f74ce55d8746b2e40155976c4594dc1260ec3497f1770c07e671a1ebaf6c20e4cfba3249b5cddf982c48b2ce10eb16fe10dd35afd39d1acfc576
@@ -1 +0,0 @@
1
- 8299f2b2322094fec83069d3206bd2b7e73c8fac4657d5eee7a1112dc7c4cefb7404ec1a75a2d8faf66d04e5ecc7b4d3da011a9c4ed7426bec4e62826c60d924
@@ -1 +0,0 @@
1
- bfb467db5d2e47fd7af3969e12e9662632463e68051fd7ba9af0b4c407ffb9e4e206fbc31d9509d2ab35488592c1dc691e36e4ed32db3e262ff6c7d2cd066ed0
@@ -1 +0,0 @@
1
- f2e4576acc8456a4b6f253bb70a1328498f04661b8656f17fe98a5209e9bac4bc5b21adac1ed87f0fd549cbf06e33485d9da9397a4fee222234f431ac8cd593a
@@ -1 +0,0 @@
1
- b52f5ea16dd8250f9c0e371bcc0cdae0407142702112ce474d60d52d5b7b122c3468be5a785addea2890fab8c8ad0d2f47278326af5ad44e4e183f71603bc9b0
@@ -1 +0,0 @@
1
- 5333d3f758b5d31dbe0f3f30c8e027dbd2edb263e097d2ac7f20e852ee00c9bcb260db4cf19c5756527e9b725eabfadbad6da93bbe5a4ca4ad43013198a6fe7d
@@ -1 +0,0 @@
1
- 9e4743791e85a64775e4f9766fb1f31a007cb28150c188e8dbda2953888ce7c6a049c4fad13734cc90394d979d5257f39c94f607aa8a22731f346ea5a430fef0
data/matchi-fix.gemspec DELETED
@@ -1,27 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- Gem::Specification.new do |spec|
4
- spec.name = 'matchi-fix'
5
- spec.version = File.read('VERSION.semver').chomp
6
- spec.authors = ['Cyril Kato']
7
- spec.email = ['contact@cyril.email']
8
-
9
- spec.summary = 'Fix expectation matcher.'
10
- spec.description = 'A Fix expectation matcher for Matchi.'
11
- spec.homepage = 'https://github.com/fixrb/matchi-fix'
12
- spec.license = 'MIT'
13
-
14
- spec.files =
15
- `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^test/}) }
16
- spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
17
- spec.require_paths = ['lib']
18
-
19
- spec.add_dependency 'fix', '~> 0.18.0'
20
- spec.add_dependency 'matchi', '~> 1.0.4'
21
-
22
- spec.add_development_dependency 'bundler', '~> 2.0'
23
- spec.add_development_dependency 'rake', '~> 12.3'
24
- spec.add_development_dependency 'rubocop', '~> 0.67'
25
- spec.add_development_dependency 'simplecov', '~> 0.16'
26
- spec.add_development_dependency 'yard', '~> 0.9'
27
- end
data/pkg_checksum DELETED
@@ -1,12 +0,0 @@
1
- #!/usr/bin/env ruby
2
- # frozen_string_literal: true
3
-
4
- require 'digest/sha2'
5
-
6
- gemname = 'matchi-fix'.to_sym
7
- ARGV[0] = File.read('VERSION.semver').chomp if ARGV[0].nil?
8
- built_gem_path = "pkg/#{gemname}-#{ARGV[0]}.gem"
9
- checksum = Digest::SHA512.new.hexdigest(File.read(built_gem_path))
10
- checksum_path = "checksum/#{gemname}-#{ARGV[0]}.gem.sha512"
11
-
12
- File.open(checksum_path, 'w') { |f| f.write("#{checksum}\n") }