Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into bf/update-changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
beanieboi committed Oct 9, 2023
2 parents ee4cc2d + 1a38e56 commit e629b76
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
strategy:
matrix:
ruby-version: ['3.0', '3.1', '3.2']
activesupport-version: ['5', '6']
activesupport-version: ['6', '7']
sinatra-version: ['2', '3']
env:
ACTIVESUPPORT_MAJOR: ${{ matrix.activesupport-version }}
Expand Down
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
source "https://rubygems.org"

gemspec
gem "activesupport", "~> #{ENV["ACTIVESUPPORT_MAJOR"] || 6}.x"
gem "activesupport", "~> #{ENV["ACTIVESUPPORT_MAJOR"] || 7}.x"
gem "sinatra", "~> #{ENV["SINATRA_MAJOR"] || 2}.x"
2 changes: 1 addition & 1 deletion lib/pliny/commands/creator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def parse_erb_files
Dir.glob("#{app_dir}/{*,.*}.erb").each do |file|
static_file = file.gsub(/\.erb$/, '')

template = ERB.new(File.read(file), 0)
template = ERB.new(File.read(file))
context = OpenStruct.new(app_name: name)
content = template.result(context.instance_eval { binding })

Expand Down
2 changes: 1 addition & 1 deletion lib/pliny/commands/generator/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def display(msg)

def render_template(template_file, vars = {})
template_path = File.dirname(__FILE__) + "/../../templates/#{template_file}"
template = ERB.new(File.read(template_path), 0, '>')
template = ERB.new(File.read(template_path), trim_mode: '>')
context = OpenStruct.new(vars)
template.result(context.instance_eval { binding })
end
Expand Down
12 changes: 6 additions & 6 deletions lib/template/Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,22 @@ gem "oj"
gem "pg"
gem "pliny", "~> 0.32"
gem "pry"
gem "puma", "~> 3"
gem "puma", "~> 6"
gem "rack-ssl"
gem "rack-timeout", "~> 0.4"
gem "rack-timeout", "~> 0.6"
gem "rake"
gem "rollbar"
gem "sequel", "~> 4.34"
gem "sequel", "~> 5.73"
gem "sequel-paranoid"
gem "sequel_pg", "~> 1.6", require: "sequel"
gem "sinatra", [">= 1.4", "< 3.0"], require: "sinatra/base"
gem "sequel_pg", "~> 1.17", require: "sequel"
gem "sinatra", [">= 2.0", "< 3.0"], require: "sinatra/base"
gem "sinatra-contrib", require: ["sinatra/namespace", "sinatra/reloader"]
gem "sinatra-router"
gem "sucker_punch"

group :development, :test do
gem "pry-byebug"
gem "rubocop", "~> 0.52.1", require: false
gem "rubocop", "~> 1.56", require: false
gem "rubocop-rspec", require: false
end

Expand Down
2 changes: 1 addition & 1 deletion pliny.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Gem::Specification.new do |gem|
gem.executables = %x{ git ls-files }.split("\n").select { |d| d =~ /^bin\// }.map { |d| d.gsub(/^bin\//, "") }
gem.files = %x{ git ls-files }.split("\n").select { |d| d =~ %r{^(License|README|bin/|data/|ext/|lib/|spec/|test/)} }

gem.add_dependency "activesupport", ">= 5.0.1", "< 7.0"
gem.add_dependency "activesupport", ">= 6.0", "< 8.0"
gem.add_dependency "multi_json", "~> 1.9", ">= 1.9.3"
gem.add_dependency "prmd", "~> 0.11", ">= 0.11.4"

Expand Down
1 change: 0 additions & 1 deletion spec/helpers/zulu_time_spec.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
require "spec_helper"
require "active_support/core_ext/numeric/time"

describe Pliny::Helpers::ZuluTime do
context "zulu_time" do
Expand Down
1 change: 0 additions & 1 deletion spec/integration_spec.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
require "spec_helper"
require "open3"
require 'active_support/core_ext/object/blank'

describe "Pliny integration test" do
describe "bin/setup" do
Expand Down
1 change: 1 addition & 0 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
require "bundler"
Bundler.require

require "active_support/all"
require "fileutils"
require "rack/test"
require "sequel"
Expand Down

0 comments on commit e629b76

Please sign in to comment.