Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rails 5.2 - rails 7.1 #66

Open
wants to merge 20 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
81 changes: 81 additions & 0 deletions .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
name: Test
on: [push, pull_request]
jobs:
test:
strategy:
fail-fast: false
matrix:
gemfile:
- Gemfile
- gemfiles/Gemfile-rails-7-0
- gemfiles/Gemfile-rails-6-1
- gemfiles/Gemfile-rails-6-0
- gemfiles/Gemfile-rails-5-2
- gemfiles/Gemfile-rails-5-1
- gemfiles/Gemfile-rails-5-0
ruby:
- '3.3'
- '3.2'
- '3.1'
- '3.0'
- '2.7'
- '2.6'
- '2.5'
exclude:
- gemfile: Gemfile
ruby: '2.6'
- gemfile: Gemfile
ruby: '2.5'
- gemfile: gemfiles/Gemfile-rails-7-0
ruby: '2.6'
- gemfile: gemfiles/Gemfile-rails-7-0
ruby: '2.5'
- gemfile: gemfiles/Gemfile-rails-6-0
ruby: '3.3'
- gemfile: gemfiles/Gemfile-rails-6-0
ruby: '3.2'
- gemfile: gemfiles/Gemfile-rails-6-0
ruby: '3.1'
- gemfile: gemfiles/Gemfile-rails-5-2
ruby: '3.3'
- gemfile: gemfiles/Gemfile-rails-5-2
ruby: '3.2'
- gemfile: gemfiles/Gemfile-rails-5-2
ruby: '3.1'
- gemfile: gemfiles/Gemfile-rails-5-2
ruby: '3.0'
- gemfile: gemfiles/Gemfile-rails-5-2
ruby: '2.7'
- gemfile: gemfiles/Gemfile-rails-5-1
ruby: '3.3'
- gemfile: gemfiles/Gemfile-rails-5-1
ruby: '3.2'
- gemfile: gemfiles/Gemfile-rails-5-1
ruby: '3.1'
- gemfile: gemfiles/Gemfile-rails-5-1
ruby: '3.0'
- gemfile: gemfiles/Gemfile-rails-5-1
ruby: '2.7'
- gemfile: gemfiles/Gemfile-rails-5-0
ruby: '3.3'
- gemfile: gemfiles/Gemfile-rails-5-0
ruby: '3.2'
- gemfile: gemfiles/Gemfile-rails-5-0
ruby: '3.1'
- gemfile: gemfiles/Gemfile-rails-5-0
ruby: '3.0'
- gemfile: gemfiles/Gemfile-rails-5-0
ruby: '2.7'
runs-on: ubuntu-latest
env: # $BUNDLE_GEMFILE must be set at the job level, so it is set for all steps
BUNDLE_GEMFILE: ${{ matrix.gemfile }}
steps:
- uses: actions/checkout@v3
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true # runs bundle install and caches installed gems automatically
- name: Install
run: gem install bundler -v 2.3.26
- name: Run tests
run: bundle exec rake
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
.bundle/
.idea/
log/*.log
pkg/
Gemfile.lock
Expand Down
28 changes: 16 additions & 12 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@
language: ruby
rvm:
- 1.9.2
- 1.9.3
- 2.0.0
env:
- "RAILS_VERSION=3.1.0"
- "RAILS_VERSION=3.2.0"
- "RAILS_VERSION=4.0.0"
- 2.3.8
- 2.4.9
- 2.5
- 2.6
gemfile:
- gemfiles/rails_4.1.gemfile
- gemfiles/rails_4.2.gemfile
- gemfiles/rails_5.0.gemfile
- gemfiles/rails_5.1.gemfile
- gemfiles/rails_5.2.gemfile
- gemfiles/rails_6.0.gemfile
matrix:
exclude:
- rvm: 1.9.2
env: "RAILS_VERSION=4.0.0"
branches:
only:
- master
- rvm: 2.3.8
gemfile: gemfiles/rails_6.0.gemfile
- rvm: 2.4.9
gemfile: gemfiles/rails_6.0.gemfile
7 changes: 0 additions & 7 deletions Appraisals

This file was deleted.

8 changes: 5 additions & 3 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
source "http://rubygems.org"
source 'https://rubygems.org'

gemspec

gem 'appraisal', "1.0.0.beta3"
gem "debugger"
gem 'pry'
gem 'rails', '~> 7.1.0'
gem 'sprockets', '~> 4.0'
gem 'test-unit', '~> 3.0'
8 changes: 2 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,12 @@
# NOT ACTIVELY MAINTAINED

I haven't time in over a year to properly support this project.

# carmen-rails

carmen-rails is a Rails 3 plugin that supplies two new form helper methods:
carmen-rails is a Rails 5-7 plugin that supplies two new form helper methods:
`country_select` and `subregion_select`. It uses
[carmen](http://github.com/jim/carmen) as its source of geographic data.

## Requirements

carmen-rails requires Ruby 1.9.2 or greater.
carmen-rails requires Ruby 2.7 or greater (although might work with older versions)

## Installation

Expand Down
4 changes: 2 additions & 2 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require "rubygems"
require 'rubygems'
require 'bundler/setup'

require 'rake'
Expand All @@ -15,4 +15,4 @@ Rake::TestTask.new(:test) do |t|
end

desc 'Default: run unit tests.'
task :default => :test
task default: :test
27 changes: 14 additions & 13 deletions carmen-rails.gemspec
Original file line number Diff line number Diff line change
@@ -1,21 +1,22 @@
$:.push File.expand_path("../lib", __FILE__)
$:.push File.expand_path('../lib', __FILE__)

require "carmen/rails/version"
require 'carmen/rails/region_select_tag'
require 'carmen/rails/version'

Gem::Specification.new do |s|
s.name = "carmen-rails"
s.name = 'carmen-rails'
s.version = Carmen::Rails::VERSION
s.authors = ["Jim Benton"]
s.email = ["jim@autonomousmachine.com"]
s.homepage = "http://github.com/jim/carmen-rails"
s.summary = "Rails adapter for Carmen"
s.description = "Provides country_select and subregion_select form helpers."
s.authors = ['Jim Benton']
s.email = ['jim@autonomousmachine.com']
s.homepage = 'http://github.com/jim/carmen-rails'
s.summary = 'Rails adapter for Carmen'
s.description = 'Provides country_select and subregion_select form helpers.'

s.files = Dir["{lib}/**/*"] + ["MIT-LICENSE", "Rakefile", "README.md"]
s.test_files = Dir["spec/**/*"]
s.files = Dir['{lib}/**/*'] + ['MIT-LICENSE', 'Rakefile', 'README.md']
s.test_files = Dir['spec/**/*']

s.add_dependency "rails"
s.add_dependency "carmen", "~> 1.0.0"
s.add_dependency 'rails'
s.add_dependency 'carmen', '~> 1.0'

s.add_development_dependency "minitest"
s.add_development_dependency 'minitest'
end
7 changes: 7 additions & 0 deletions gemfiles/Gemfile-rails-5-0
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
source 'https://rubygems.org'

gemspec path: '..'

gem 'rails', '~> 5.0.0'
gem 'sprockets', '~> 3.7'
gem 'test-unit', '~> 3.0'
7 changes: 7 additions & 0 deletions gemfiles/Gemfile-rails-5-1
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
source 'https://rubygems.org'

gemspec path: '..'

gem 'rails', '~> 5.1.0'
gem 'sprockets', '~> 3.7'
gem 'test-unit', '~> 3.0'
7 changes: 7 additions & 0 deletions gemfiles/Gemfile-rails-5-2
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
source 'https://rubygems.org'

gemspec path: '..'

gem 'rails', '~> 5.2.0'
gem 'sprockets', '~> 3.7'
gem 'test-unit', '~> 3.0'
7 changes: 7 additions & 0 deletions gemfiles/Gemfile-rails-6-0
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
source 'https://rubygems.org'

gemspec path: '..'

gem 'rails', '~> 6.0.0'
gem 'sprockets', '~> 4.0'
gem 'test-unit', '~> 3.0'
7 changes: 7 additions & 0 deletions gemfiles/Gemfile-rails-6-1
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
source 'https://rubygems.org'

gemspec path: '..'

gem 'rails', '~> 6.1.0'
gem 'sprockets', '~> 4.0'
gem 'test-unit', '~> 3.0'
7 changes: 7 additions & 0 deletions gemfiles/Gemfile-rails-7-0
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
source 'https://rubygems.org'

gemspec path: '..'

gem 'rails', '~> 7.0.0'
gem 'sprockets', '~> 4.0'
gem 'test-unit', '~> 3.0'
9 changes: 0 additions & 9 deletions gemfiles/rails_3.gemfile

This file was deleted.

111 changes: 0 additions & 111 deletions gemfiles/rails_3.gemfile.lock

This file was deleted.

9 changes: 0 additions & 9 deletions gemfiles/rails_4.gemfile

This file was deleted.

Loading