grape-starter 1.4.3 → 1.5.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: c752c455094a44db08942b91703d61b2aef293922364a7add73b7b7e071db20a
4
- data.tar.gz: 3a76c3bbebd2b8ae039dbce2c1d05971c718b91daf68962cae9cf2e683b49c1d
3
+ metadata.gz: 65942404f99d8bea76240859799e24a8c45cf6496745f798dc16fead61eed13d
4
+ data.tar.gz: 329605b12e4367a471de428cbaaaff6ad02cb9413c55067e39d9215a35442447
5
5
  SHA512:
6
- metadata.gz: a7ca38fa168f8c58339b7615f9034daf01cff3b339340bb79320789c730fd2b64eda4c692b819df9ae3d30043cb68ab444f6ce9aa0712430fbfc658f712df098
7
- data.tar.gz: 418fd46efe00b934115c8d4ae840f60c2e116cea6c526296fe4bd223f088146eaf94b36146e0fd3cbf65f3b88fd6802f317bbf07779db398dc74f210cc013f6e
6
+ metadata.gz: cf7f58b1429be6f644ba211551d278f1f8359119ea75612cd6961edd374db022697b7fc7335d2d8348681dc483a6e603fb8050154d674303cf89d9e1e5c445d7
7
+ data.tar.gz: 4a0fba7c41ec9c22d043af268aa981d95c2387e976bf16b6b939e641427b1ac358c666422638f4028047d0e6c515aac5475e1d278490ff065561d74fefefc588
@@ -15,7 +15,7 @@ jobs:
15
15
  - uses: actions/checkout@v2
16
16
  - uses: ruby/setup-ruby@v1
17
17
  with:
18
- ruby-version: '3.0'
18
+ ruby-version: '3.1'
19
19
  bundler-cache: true
20
20
  - name: Run rubocop
21
21
  run: bundle exec rubocop --parallel --format progress
@@ -25,7 +25,7 @@ jobs:
25
25
  needs: ['rubocop']
26
26
  strategy:
27
27
  matrix:
28
- ruby-version: ['2.7', '3.0', head]
28
+ ruby-version: ['2.7', '3.0', '3.1', head]
29
29
 
30
30
  steps:
31
31
  - uses: actions/checkout@v2
data/CHANGELOG.md CHANGED
@@ -2,9 +2,15 @@
2
2
 
3
3
  - your contributions
4
4
 
5
- ### v1.4.2 / 2021-12-20
5
+ ### v1.5.0 / 2021-12-28
6
+
7
+ - Sets minimum ruby version to 2.7 [LeFnord](https://github.com/LeFnord)
8
+ - Fixes: uninitialized constant ActiveSupport::XmlMini::IsolatedExecutionState. [LeFnord](https://github.com/LeFnord)
9
+ - Sets path via config in Dockerfile. [LeFnord](https://github.com/LeFnord)
10
+
11
+ ### v1.4.3 / 2021-12-20
6
12
 
7
- - Fixes shared mexamples for delete.
13
+ - Fixes shared mexamples for delete. [LeFnord](https://github.com/LeFnord)
8
14
 
9
15
  ### v1.4.2 / 2021-12-20
10
16
 
@@ -22,10 +22,10 @@ Gem::Specification.new do |spec|
22
22
  spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
23
23
  spec.require_paths = ['lib']
24
24
 
25
- spec.required_ruby_version = '>= 2.6'
25
+ spec.required_ruby_version = '>= 2.7'
26
26
 
27
- spec.add_dependency 'gli', '~> 2.19'
28
- spec.add_dependency 'activesupport', '>= 6', '< 7'
29
- spec.add_dependency 'rubocop', '~> 1.12'
30
- spec.add_dependency 'awesome_print', '~> 1.8'
27
+ spec.add_dependency 'gli', '~> 2.20'
28
+ spec.add_dependency 'activesupport', '>= 6', '< 8'
29
+ spec.add_dependency 'rubocop', '~> 1.24'
30
+ spec.add_dependency 'awesome_print', '~> 1.9'
31
31
  end
@@ -19,7 +19,7 @@ module Starter
19
19
 
20
20
  # … write
21
21
  def write_file(file, content)
22
- File.open(file, 'w') { |f| f.write(content) }
22
+ File.write(file, content)
23
23
  end
24
24
  end
25
25
  end
@@ -1,7 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'active_support/core_ext/string'
4
-
5
3
  module Starter
6
4
  module Templates
7
5
  module Files
@@ -1,7 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'active_support/core_ext/string'
4
-
5
3
  module Starter
6
4
  require 'starter/builder/orms'
7
5
  require 'starter/builder/names'
@@ -18,7 +18,7 @@ module Starter
18
18
 
19
19
  existent = File.exist?(config_file) ? YAML.load_file(config_file) : {}
20
20
  content = existent.merge(content)
21
- File.open(config_file, 'w') { |f| f.write(YAML.dump(content)) }
21
+ File.write(config_file, YAML.dump(content))
22
22
  end
23
23
 
24
24
  def config_file
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Starter
4
- VERSION = '1.4.3'
4
+ VERSION = '1.5.0'
5
5
  end
data/lib/starter.rb CHANGED
@@ -2,6 +2,9 @@
2
2
 
3
3
  require 'awesome_print'
4
4
 
5
+ require 'active_support'
6
+ require 'active_support/core_ext/string'
7
+
5
8
  require 'starter/version'
6
9
  require 'starter/builder'
7
10
  require 'starter/config'
data/template/Dockerfile CHANGED
@@ -8,7 +8,8 @@ ADD . /dummy
8
8
  WORKDIR /dummy
9
9
 
10
10
  COPY Gemfile Gemfile.lock ./
11
- RUN bundle install --path vendor/bundle
11
+ RUN bundle config set --local path 'vendor/bundle'
12
+ RUN bundle install
12
13
 
13
14
  COPY . .
14
15
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: grape-starter
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.3
4
+ version: 1.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - LeFnord
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-12-20 00:00:00.000000000 Z
11
+ date: 2021-12-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gli
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '2.19'
19
+ version: '2.20'
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: '2.19'
26
+ version: '2.20'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: activesupport
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -33,7 +33,7 @@ dependencies:
33
33
  version: '6'
34
34
  - - "<"
35
35
  - !ruby/object:Gem::Version
36
- version: '7'
36
+ version: '8'
37
37
  type: :runtime
38
38
  prerelease: false
39
39
  version_requirements: !ruby/object:Gem::Requirement
@@ -43,35 +43,35 @@ dependencies:
43
43
  version: '6'
44
44
  - - "<"
45
45
  - !ruby/object:Gem::Version
46
- version: '7'
46
+ version: '8'
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: rubocop
49
49
  requirement: !ruby/object:Gem::Requirement
50
50
  requirements:
51
51
  - - "~>"
52
52
  - !ruby/object:Gem::Version
53
- version: '1.12'
53
+ version: '1.24'
54
54
  type: :runtime
55
55
  prerelease: false
56
56
  version_requirements: !ruby/object:Gem::Requirement
57
57
  requirements:
58
58
  - - "~>"
59
59
  - !ruby/object:Gem::Version
60
- version: '1.12'
60
+ version: '1.24'
61
61
  - !ruby/object:Gem::Dependency
62
62
  name: awesome_print
63
63
  requirement: !ruby/object:Gem::Requirement
64
64
  requirements:
65
65
  - - "~>"
66
66
  - !ruby/object:Gem::Version
67
- version: '1.8'
67
+ version: '1.9'
68
68
  type: :runtime
69
69
  prerelease: false
70
70
  version_requirements: !ruby/object:Gem::Requirement
71
71
  requirements:
72
72
  - - "~>"
73
73
  - !ruby/object:Gem::Version
74
- version: '1.8'
74
+ version: '1.9'
75
75
  description: CLI to create a API skeleton based on Grape and Rack
76
76
  email:
77
77
  - pscholz.le@gmail.com
@@ -151,7 +151,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
151
151
  requirements:
152
152
  - - ">="
153
153
  - !ruby/object:Gem::Version
154
- version: '2.6'
154
+ version: '2.7'
155
155
  required_rubygems_version: !ruby/object:Gem::Requirement
156
156
  requirements:
157
157
  - - ">="