nesta 0.17.0 → 0.18.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: 32a4c40ea41ed81170227708f4fa21efd9ecdc78b13aae276a28b71f70edbb8b
4
- data.tar.gz: 7b437529392e034f4f2c9fe7b6df915faae5a284958ebd181aabb71462279106
3
+ metadata.gz: 12864a6defdd473b703fe553e3693bf1f697054ac2765fd7f22464f6525e5867
4
+ data.tar.gz: 1a3bfcb203d9862a10ef9691286187ef2c91f3c880bd56bea99f8f34ab0f83a4
5
5
  SHA512:
6
- metadata.gz: 51d4278434f049e7d2c67107a947960c1407bdf4b1c133da575e5f4a829f7a25d1d0c4ef16dac399ffbc25b1fa708b8f2b7787b7a9a6171f9dd60414522a7c08
7
- data.tar.gz: 791f6ea80a7b87b915548d6ee6688ff3eeb187bce03a77bf7fb6811645712f285880be77c763f1b947efc06f0eb5cdf1ed6b8734b9aa411f0e75a491d0c9ed76
6
+ metadata.gz: ee6c78cb3046d5f93eb2dacb76107e173a51ad18d422e6195691a3fab70eac946704d984b0262febaaa69c688af761805678d67c9eedff60e992f3f56ce9c9c7
7
+ data.tar.gz: c410d3cdb2504abbd3d55b83a2799638a12d7806db20798ef00813d5fe630750f5ea74828d3b457c719fd2db822d284e3270351834a070aaf14400c1db44dfd1
data/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.18.0 (19 November 2024)
4
+
5
+ * Update Sinatra to 4.1, to fix a vulnerability.
6
+
7
+ Note that this is the same security alert that I believed I was fixing when I
8
+ released Nesta 0.17.0. In actual fact, at that point the latest version of
9
+ Sinatra (4.0.0) didn't yet include a fix.
10
+
11
+ (Graham Ashton)
12
+
3
13
  ## 0.17.0 (6 November 2024)
4
14
 
5
15
  * Update Sinatra to verion 4.0, to fix a vulnerability. This has also
data/Gemfile CHANGED
@@ -2,5 +2,3 @@ source 'https://rubygems.org'
2
2
 
3
3
  # Specify your gem's dependencies in nesta.gemspec
4
4
  gemspec
5
-
6
- # gem (RUBY_VERSION =~ /^1/) ? 'debugger' : 'byebug'
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- nesta (0.17.0)
4
+ nesta (0.18.0)
5
5
  RedCloth (~> 4.2)
6
6
  haml (>= 3.1, < 6.0)
7
7
  haml-contrib (>= 1.0)
@@ -44,6 +44,7 @@ GEM
44
44
  rb-fsevent (>= 0.9.3)
45
45
  rb-inotify (>= 0.9)
46
46
  rb-kqueue (>= 0.2)
47
+ logger (1.6.1)
47
48
  mini_mime (1.1.5)
48
49
  mini_portile2 (2.8.7)
49
50
  minitest (5.25.1)
@@ -65,8 +66,9 @@ GEM
65
66
  public_suffix (6.0.1)
66
67
  racc (1.8.1)
67
68
  rack (3.1.8)
68
- rack-protection (4.0.0)
69
+ rack-protection (4.1.0)
69
70
  base64 (>= 0.1.0)
71
+ logger (>= 1.6.0)
70
72
  rack (>= 3.0.0, < 4)
71
73
  rack-session (2.0.0)
72
74
  rack (>= 3.0.0)
@@ -85,10 +87,11 @@ GEM
85
87
  sass-embedded (1.80.6)
86
88
  google-protobuf (~> 4.28)
87
89
  rake (>= 13)
88
- sinatra (4.0.0)
90
+ sinatra (4.1.0)
91
+ logger (>= 1.6.0)
89
92
  mustermann (~> 3.0)
90
93
  rack (>= 3.0.0, < 4)
91
- rack-protection (= 4.0.0)
94
+ rack-protection (= 4.1.0)
92
95
  rack-session (>= 2.0.0, < 3)
93
96
  tilt (~> 2.0)
94
97
  temple (0.10.3)
@@ -61,8 +61,8 @@ module Nesta
61
61
 
62
62
  def set_app_root
63
63
  root = ::File.expand_path('.')
64
- ['Gemfile', ].each do |expected|
65
- if ! File.exist?(File.join(root, 'config', 'config.yml'))
64
+ ['Gemfile', File.join('config', 'config.yml')].each do |expected|
65
+ if ! File.exist?(File.join(root, expected))
66
66
  message = "is this a Nesta site? (expected './#{expected}')"
67
67
  raise RuntimeError, message
68
68
  end
data/lib/nesta/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Nesta
2
- VERSION = '0.17.0'
2
+ VERSION = '0.18.0'
3
3
  end
data/templates/Gemfile CHANGED
@@ -1,4 +1,4 @@
1
- source 'http://rubygems.org'
1
+ source 'https://rubygems.org'
2
2
 
3
3
  gem 'nesta'
4
4
  <% if @options['vlad'] %>gem 'vlad', '2.1.0'
@@ -7,5 +7,3 @@ gem 'vlad-git', '2.2.0'<% end %>
7
7
  group :development do
8
8
  gem 'mr-sparkle'
9
9
  end
10
-
11
- # gem 'debugger'
@@ -1,3 +1,5 @@
1
+ require 'fileutils'
2
+
1
3
  module TemporaryFiles
2
4
  TEMP_DIR = File.expand_path('tmp', File.join(File.dirname(__FILE__), '..'))
3
5
 
@@ -21,7 +23,8 @@ module TemporaryFiles
21
23
 
22
24
  def in_temporary_project(*args, &block)
23
25
  FileUtils.mkdir_p(File.join(project_root, 'config'))
24
- File.open(File.join(project_root, 'config', 'config.yml'), 'w').close
26
+ FileUtils.touch(File.join(project_root, 'Gemfile'))
27
+ FileUtils.touch(File.join(project_root, 'config', 'config.yml'))
25
28
  Dir.chdir(project_root) { yield project_root }
26
29
  ensure
27
30
  remove_temp_directory
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nesta
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.17.0
4
+ version: 0.18.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Graham Ashton
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2024-11-06 00:00:00.000000000 Z
10
+ date: 2024-11-19 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: haml
@@ -354,7 +353,6 @@ files:
354
353
  homepage: https://nestacms.com
355
354
  licenses: []
356
355
  metadata: {}
357
- post_install_message:
358
356
  rdoc_options: []
359
357
  require_paths:
360
358
  - lib
@@ -369,8 +367,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
369
367
  - !ruby/object:Gem::Version
370
368
  version: '0'
371
369
  requirements: []
372
- rubygems_version: 3.5.20
373
- signing_key:
370
+ rubygems_version: 3.6.0.dev
374
371
  specification_version: 4
375
372
  summary: Ruby CMS, written in Sinatra
376
373
  test_files: []