rake-n-bake 3.1.1 → 3.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.semver +1 -1
- data/NetrwTreeListing 3 b/data/NetrwTreeListing → 3 +0 -0
- data/history.rdoc +2 -0
- data/lib/semver_versioning.rb +1 -1
- data/lib/version.rb +1 -1
- data/tasks/prettier.rake +19 -0
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 94353dc11f1fdf42e1279c593fe587bb12e004c7
|
4
|
+
data.tar.gz: 0e0a50af7a3a93e52edc6c062f5360a9b64e5506
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9a74acdb7b2f2a67fae3f7203241cf4bf662cd89ea2be1824d4599e741354875bd4478211580ed547191588835d3bb1050336da472130f68730fa44161044243
|
7
|
+
data.tar.gz: 1875921b8517d6e503aa93201eefdd0f2ec9c7f83cf2f32c404a25e9d2e5779f486c2afe8e9f1c807c74d1c7cb5e3abed14063b758ccd1675528d3b139c9a04c
|
data/.semver
CHANGED
File without changes
|
data/history.rdoc
CHANGED
data/lib/semver_versioning.rb
CHANGED
@@ -66,7 +66,7 @@ module RakeNBake
|
|
66
66
|
version_file = version_files[0]
|
67
67
|
|
68
68
|
version = current_version.to_s.sub(/^v/, '')
|
69
|
-
version_string = "VERSION = '#{version}'
|
69
|
+
version_string = "VERSION = '#{version}'"
|
70
70
|
version_file_content = File.read(version_file).sub(/VERSION = .*$/, version_string)
|
71
71
|
|
72
72
|
File.write(version_file, version_file_content)
|
data/lib/version.rb
CHANGED
data/tasks/prettier.rake
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
begin
|
4
|
+
namespace :bake do
|
5
|
+
desc 'Format the code'
|
6
|
+
task :prettier do
|
7
|
+
RakeNBake::Baker.log_step 'Running Prettier'
|
8
|
+
format = system('prettier')
|
9
|
+
|
10
|
+
if format
|
11
|
+
RakeNBake::Baker.log_passed 'Formatting complete'
|
12
|
+
else
|
13
|
+
puts
|
14
|
+
RakeNBake::Baker.log_warn 'Please run "yarn install"'
|
15
|
+
raise
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rake-n-bake
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.1.
|
4
|
+
version: 3.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Richard Vickerstaff
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2019-07-10 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|
@@ -58,6 +58,7 @@ files:
|
|
58
58
|
- ".travis.yml"
|
59
59
|
- Gemfile
|
60
60
|
- Guardfile
|
61
|
+
- NetrwTreeListing 3
|
61
62
|
- README.md
|
62
63
|
- Rakefile
|
63
64
|
- bin/bundle-audit
|
@@ -98,6 +99,7 @@ files:
|
|
98
99
|
- tasks/coverage.rake
|
99
100
|
- tasks/fasterer.rake
|
100
101
|
- tasks/ok.rake
|
102
|
+
- tasks/prettier.rake
|
101
103
|
- tasks/rails_best_practices.rake
|
102
104
|
- tasks/rspec.rake
|
103
105
|
- tasks/rubocop.rake
|