example_file 0.3.1 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +12 -1
- data/README.md +3 -3
- data/lib/example_file/version.rb +1 -1
- data/lib/example_file.rb +9 -1
- metadata +31 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dd44dec5c2bf7075656ebdd405b0960221dcba6dad77e376e23015bdabebd3b8
|
4
|
+
data.tar.gz: 1c1e5659cea072d168309c0b0e30feaca6ada071f7e9517342a23851346f5ae7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2ad40a576dd715a6b4e30c239bc1ccde7872b0cbdd7deec4fe308073711188640af0d3fbab410db104e0fea2c97f5613208980ac3f2c92d309c41733e66196bb
|
7
|
+
data.tar.gz: 376ff78bf8f127348e0dc68f22c83f5031cbec931b525d1ee8df2379303170241b1ec0c67ffff9d4ee216cd601f98d3bd971a57a60c5a928015adcf82614a839
|
data/CHANGELOG.md
CHANGED
@@ -1,9 +1,20 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
-
##
|
3
|
+
## Unreleased
|
4
|
+
|
5
|
+
## 0.4.0 (2022-09-29)
|
6
|
+
|
7
|
+
* Drop Ruby 2.5 support.
|
8
|
+
* Add Ruby 3.1 support.
|
9
|
+
* Add `#initialize_regular_file` method.
|
10
|
+
* Update development dependencies.
|
11
|
+
* Resolve new RuboCop offenses.
|
12
|
+
* Add `bundle-audit` CI task.
|
4
13
|
|
5
14
|
## 0.3.1 (2021-04-16)
|
6
15
|
|
16
|
+
* Fix Ruby warnings (and specs fails).
|
17
|
+
|
7
18
|
## 0.3.0 (2021-04-16)
|
8
19
|
|
9
20
|
* Remake the question from "Do you want to edit?" to "What to do?".
|
data/README.md
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
# Example File
|
2
2
|
|
3
3
|
![Cirrus CI - Base Branch Build Status](https://img.shields.io/cirrus/github/AlexWayfer/example_file?style=flat-square)
|
4
|
-
[![Codecov branch](https://img.shields.io/codecov/c/github/AlexWayfer/example_file/
|
4
|
+
[![Codecov branch](https://img.shields.io/codecov/c/github/AlexWayfer/example_file/main.svg?style=flat-square)](https://codecov.io/gh/AlexWayfer/example_file)
|
5
5
|
[![Code Climate](https://img.shields.io/codeclimate/maintainability/AlexWayfer/example_file.svg?style=flat-square)](https://codeclimate.com/github/AlexWayfer/example_file)
|
6
6
|
![Depfu](https://img.shields.io/depfu/AlexWayfer/example_file?style=flat-square)
|
7
|
-
[![Inline docs](https://inch-ci.org/github/AlexWayfer/example_file.svg?branch=
|
8
|
-
[![license](https://img.shields.io/github/license/AlexWayfer/example_file.svg?style=flat-square)](https://github.com/AlexWayfer/example_file/blob/
|
7
|
+
[![Inline docs](https://inch-ci.org/github/AlexWayfer/example_file.svg?branch=main)](https://inch-ci.org/github/AlexWayfer/example_file)
|
8
|
+
[![license](https://img.shields.io/github/license/AlexWayfer/example_file.svg?style=flat-square)](https://github.com/AlexWayfer/example_file/blob/main/LICENSE.txt)
|
9
9
|
[![Gem](https://img.shields.io/gem/v/example_file.svg?style=flat-square)](https://rubygems.org/gems/example_file)
|
10
10
|
|
11
11
|
Class helper for example files. Usually it's the alternative
|
data/lib/example_file/version.rb
CHANGED
data/lib/example_file.rb
CHANGED
@@ -42,6 +42,14 @@ class ExampleFile
|
|
42
42
|
ask_question_and_make_actions
|
43
43
|
end
|
44
44
|
|
45
|
+
def initialize_regular_file
|
46
|
+
if File.exist? @regular_file_name
|
47
|
+
raise "File `#{File.basename(@regular_file_name)}` already exists"
|
48
|
+
end
|
49
|
+
|
50
|
+
FileUtils.cp @file_name, @regular_file_name
|
51
|
+
end
|
52
|
+
|
45
53
|
private
|
46
54
|
|
47
55
|
def updated?
|
@@ -53,7 +61,7 @@ class ExampleFile
|
|
53
61
|
end
|
54
62
|
|
55
63
|
def create_regular_file
|
56
|
-
|
64
|
+
initialize_regular_file
|
57
65
|
edit_file @regular_file_name
|
58
66
|
end
|
59
67
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: example_file
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alexander Popov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-09-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: diffy
|
@@ -81,47 +81,47 @@ dependencies:
|
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '2.0'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
|
-
name:
|
84
|
+
name: bundler-audit
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
87
|
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: 0.
|
89
|
+
version: 0.9.0
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
94
|
- - "~>"
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version: 0.
|
96
|
+
version: 0.9.0
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
|
-
name:
|
98
|
+
name: gem_toys
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
101
|
- - "~>"
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version: 0.
|
103
|
+
version: 0.12.1
|
104
104
|
type: :development
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
108
|
- - "~>"
|
109
109
|
- !ruby/object:Gem::Version
|
110
|
-
version: 0.
|
110
|
+
version: 0.12.1
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
|
-
name:
|
112
|
+
name: toys
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
114
114
|
requirements:
|
115
115
|
- - "~>"
|
116
116
|
- !ruby/object:Gem::Version
|
117
|
-
version: 0.
|
117
|
+
version: 0.13.0
|
118
118
|
type: :development
|
119
119
|
prerelease: false
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
121
121
|
requirements:
|
122
122
|
- - "~>"
|
123
123
|
- !ruby/object:Gem::Version
|
124
|
-
version: 0.
|
124
|
+
version: 0.13.0
|
125
125
|
- !ruby/object:Gem::Dependency
|
126
126
|
name: rspec
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|
@@ -150,20 +150,34 @@ dependencies:
|
|
150
150
|
- - "~>"
|
151
151
|
- !ruby/object:Gem::Version
|
152
152
|
version: 0.21.2
|
153
|
+
- !ruby/object:Gem::Dependency
|
154
|
+
name: simplecov-cobertura
|
155
|
+
requirement: !ruby/object:Gem::Requirement
|
156
|
+
requirements:
|
157
|
+
- - "~>"
|
158
|
+
- !ruby/object:Gem::Version
|
159
|
+
version: '2.1'
|
160
|
+
type: :development
|
161
|
+
prerelease: false
|
162
|
+
version_requirements: !ruby/object:Gem::Requirement
|
163
|
+
requirements:
|
164
|
+
- - "~>"
|
165
|
+
- !ruby/object:Gem::Version
|
166
|
+
version: '2.1'
|
153
167
|
- !ruby/object:Gem::Dependency
|
154
168
|
name: rubocop
|
155
169
|
requirement: !ruby/object:Gem::Requirement
|
156
170
|
requirements:
|
157
171
|
- - "~>"
|
158
172
|
- !ruby/object:Gem::Version
|
159
|
-
version:
|
173
|
+
version: 1.36.0
|
160
174
|
type: :development
|
161
175
|
prerelease: false
|
162
176
|
version_requirements: !ruby/object:Gem::Requirement
|
163
177
|
requirements:
|
164
178
|
- - "~>"
|
165
179
|
- !ruby/object:Gem::Version
|
166
|
-
version:
|
180
|
+
version: 1.36.0
|
167
181
|
- !ruby/object:Gem::Dependency
|
168
182
|
name: rubocop-performance
|
169
183
|
requirement: !ruby/object:Gem::Requirement
|
@@ -214,7 +228,8 @@ licenses:
|
|
214
228
|
metadata:
|
215
229
|
source_code_uri: https://github.com/AlexWayfer/example_file
|
216
230
|
homepage_uri: https://github.com/AlexWayfer/example_file
|
217
|
-
changelog_uri: https://github.com/AlexWayfer/example_file/blob/
|
231
|
+
changelog_uri: https://github.com/AlexWayfer/example_file/blob/main/CHANGELOG.md
|
232
|
+
rubygems_mfa_required: 'true'
|
218
233
|
post_install_message:
|
219
234
|
rdoc_options: []
|
220
235
|
require_paths:
|
@@ -223,7 +238,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
223
238
|
requirements:
|
224
239
|
- - ">="
|
225
240
|
- !ruby/object:Gem::Version
|
226
|
-
version: '2.
|
241
|
+
version: '2.6'
|
227
242
|
- - "<"
|
228
243
|
- !ruby/object:Gem::Version
|
229
244
|
version: '4'
|
@@ -233,7 +248,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
233
248
|
- !ruby/object:Gem::Version
|
234
249
|
version: '0'
|
235
250
|
requirements: []
|
236
|
-
rubygems_version: 3.
|
251
|
+
rubygems_version: 3.3.7
|
237
252
|
signing_key:
|
238
253
|
specification_version: 4
|
239
254
|
summary: Class helper for example files
|