pco-url 2.1.0 → 2.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.circleci/config.yml +31 -56
- data/.github/pull_request_template.md +15 -0
- data/.gitignore +1 -0
- data/.rubocop.yml +1 -1
- data/.ruby-version +1 -1
- data/Appraisals +19 -0
- data/CHANGELOG.md +5 -0
- data/Guardfile +16 -0
- data/README.md +2 -0
- data/Rakefile +8 -1
- data/gemfiles/rails_5.0.gemfile +8 -0
- data/gemfiles/rails_5.1.gemfile +8 -0
- data/gemfiles/rails_5.2.gemfile +7 -0
- data/gemfiles/rails_6.0.gemfile +7 -0
- data/lib/pco/url/engine/domain_middleware.rb +4 -0
- data/lib/pco/url/version.rb +1 -1
- data/pco-url.gemspec +12 -10
- data/spec/dummy/config/application.rb +5 -1
- metadata +46 -31
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3e4d2b6ccf53cc4ea13cee9a5aa2e4841b2b03a4616b666b33ee4849be22af07
|
4
|
+
data.tar.gz: 6f364718d66b34a75a260111e49ac2a2f69a36f715df6778f167c2f2787215c1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3c92f04b27e2244a8baeca932f1ec7bcb4d76ff1c13fe041fb7317fcba07d4b1df17f5e99da95d521f7df1275ad75df0aa73e854e915f95dc8427aef76e3c70a
|
7
|
+
data.tar.gz: dccee0de36fe8d61d63dcab7393e57b77eacc39af63445741119197896509d4d16aff33eb8029efd80dd88a303f8c1882d7f37f7063e0eaf1a7eb81f4e4557c7
|
data/.circleci/config.yml
CHANGED
@@ -1,70 +1,45 @@
|
|
1
|
-
version: 2
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
1
|
+
version: 2
|
2
|
+
workflows:
|
3
|
+
version: 2
|
4
|
+
commit:
|
5
|
+
jobs:
|
6
|
+
- build
|
7
|
+
nightly:
|
8
|
+
triggers:
|
9
|
+
- schedule:
|
10
|
+
cron: "0 0 * * *"
|
11
|
+
filters:
|
12
|
+
branches:
|
13
|
+
only:
|
14
|
+
- master
|
15
|
+
jobs:
|
16
|
+
- build
|
17
|
+
jobs:
|
18
|
+
build:
|
19
|
+
docker:
|
20
|
+
- image: circleci/ruby:2.5
|
21
|
+
environment:
|
7
22
|
BUNDLE_JOBS: 3
|
8
23
|
BUNDLE_RETRY: 3
|
9
24
|
BUNDLE_PATH: vendor/bundle
|
10
|
-
steps:
|
11
|
-
- checkout
|
12
|
-
|
13
|
-
# Restore bundle cache
|
25
|
+
steps:
|
26
|
+
- checkout
|
14
27
|
- restore_cache:
|
15
28
|
keys:
|
16
|
-
- pco-url-bundle-v2-
|
17
|
-
- pco-url-bundle-v2-
|
18
|
-
|
29
|
+
- pco-url-bundle-v2-{{ checksum ".ruby-version" }}-{{ checksum "pco-url.gemspec" }}-{{ checksum "Appraisals" }}
|
30
|
+
- pco-url-bundle-v2-{{ checksum ".ruby-version" }}-{{ checksum "pco-url.gemspec" }}
|
31
|
+
- pco-url-bundle-v2-{{ checksum ".ruby-version" }}-
|
32
|
+
- pco-url-bundle-v2-
|
19
33
|
- run:
|
20
34
|
name: Bundle Install
|
21
35
|
command: bundle check || bundle install
|
22
|
-
|
23
|
-
# Store bundle cache
|
24
|
-
- save_cache:
|
25
|
-
key: pco-url-bundle-v2-ruby23-{{ checksum "pco-url.gemspec" }}
|
26
|
-
paths:
|
27
|
-
- vendor/bundle
|
28
|
-
|
29
36
|
- run:
|
30
|
-
name:
|
31
|
-
command:
|
32
|
-
bundle exec rspec --format progress
|
33
|
-
|
34
|
-
"ruby-2.4": # runs not using Workflows must have a `build` job as entry point
|
35
|
-
docker: # run the steps with Docker
|
36
|
-
- image: circleci/ruby:2.4
|
37
|
-
environment: # environment variables for primary container
|
38
|
-
BUNDLE_JOBS: 3
|
39
|
-
BUNDLE_RETRY: 3
|
40
|
-
BUNDLE_PATH: vendor/bundle
|
41
|
-
steps: # a collection of executable commands
|
42
|
-
- checkout # special step to check out source code to working directory
|
43
|
-
|
44
|
-
# Restore bundle cache
|
45
|
-
- restore_cache:
|
46
|
-
keys:
|
47
|
-
- pco-url-bundle-v2-ruby24-{{ checksum "pco-url.gemspec" }}
|
48
|
-
- pco-url-bundle-v2-ruby24-
|
49
|
-
|
50
|
-
- run:
|
51
|
-
name: Bundle Install
|
52
|
-
command: bundle check || bundle install
|
53
|
-
|
54
|
-
# Store bundle cache
|
37
|
+
name: Install appraisal dependencies
|
38
|
+
command: bundle exec appraisal bundle check || bundle exec appraisal bundle install
|
55
39
|
- save_cache:
|
56
|
-
key: pco-url-bundle-v2-
|
40
|
+
key: pco-url-bundle-v2-{{ checksum ".ruby-version" }}-{{ checksum "pco-url.gemspec" }}-{{ checksum "Appraisals" }}
|
57
41
|
paths:
|
58
42
|
- vendor/bundle
|
59
|
-
|
60
43
|
- run:
|
61
44
|
name: Run rspec
|
62
|
-
command:
|
63
|
-
bundle exec rspec --format progress
|
64
|
-
|
65
|
-
workflows:
|
66
|
-
version: 2
|
67
|
-
build:
|
68
|
-
jobs:
|
69
|
-
- "ruby-2.3"
|
70
|
-
- "ruby-2.4"
|
45
|
+
command: bundle exec appraisal rspec --format progress
|
@@ -0,0 +1,15 @@
|
|
1
|
+
### Summary
|
2
|
+
|
3
|
+
<!-- Provide a general description of the changes in your pull request -->
|
4
|
+
|
5
|
+
### Other Information
|
6
|
+
|
7
|
+
<!-- If there's anything else that's important and relevant to your pull
|
8
|
+
request, mention that information here. This could include
|
9
|
+
benchmarks, or other information. -->
|
10
|
+
|
11
|
+
<!-- Make sure you're familiar with the contributing guidelines: https://github.com/ministrycentered/knowledge-base/tree/master/gems#contributing
|
12
|
+
|
13
|
+
Before merging please have a +1 from a #platform team member, and another from a developer who's __not__ on your team. This will ensure that the changes are looked at by people who aren't directly working on the same application as you and can approach the changes with a fresh set of eyes.
|
14
|
+
|
15
|
+
When you're ready to merge, please follow the release process outlined here: https://github.com/ministrycentered/knowledge-base/tree/master/gems#release-process -->
|
data/.gitignore
CHANGED
data/.rubocop.yml
CHANGED
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.
|
1
|
+
2.5
|
data/Appraisals
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
appraise "rails-5.0" do
|
4
|
+
gem "rails", "~> 5.0.0"
|
5
|
+
gem "sqlite3", "< 1.4"
|
6
|
+
end
|
7
|
+
|
8
|
+
appraise "rails-5.1" do
|
9
|
+
gem "rails", "~> 5.1.0"
|
10
|
+
gem "sqlite3", "< 1.4"
|
11
|
+
end
|
12
|
+
|
13
|
+
appraise "rails-5.2" do
|
14
|
+
gem "rails", "~> 5.2.0"
|
15
|
+
end
|
16
|
+
|
17
|
+
appraise "rails-6.0" do
|
18
|
+
gem "rails", "~> 6.0.0"
|
19
|
+
end
|
data/CHANGELOG.md
CHANGED
data/Guardfile
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
guard :rspec, cmd: "bundle exec rspec" do
|
4
|
+
require "guard/rspec/dsl"
|
5
|
+
dsl = Guard::RSpec::Dsl.new(self)
|
6
|
+
|
7
|
+
# RSpec files
|
8
|
+
rspec = dsl.rspec
|
9
|
+
watch(rspec.spec_helper) { rspec.spec_dir }
|
10
|
+
watch(rspec.spec_support) { rspec.spec_dir }
|
11
|
+
watch(rspec.spec_files)
|
12
|
+
|
13
|
+
# Ruby files
|
14
|
+
ruby = dsl.ruby
|
15
|
+
dsl.watch_spec_files_for(ruby.lib_files)
|
16
|
+
end
|
data/README.md
CHANGED
data/Rakefile
CHANGED
data/lib/pco/url/version.rb
CHANGED
data/pco-url.gemspec
CHANGED
@@ -1,14 +1,15 @@
|
|
1
|
-
#
|
2
|
-
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
lib = File.expand_path("lib", __dir__)
|
3
4
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
-
require
|
5
|
+
require "pco/url/version"
|
5
6
|
|
6
7
|
Gem::Specification.new do |spec|
|
7
8
|
spec.name = "pco-url"
|
8
9
|
spec.version = PCO::URL::VERSION
|
9
10
|
spec.authors = ["James Miller"]
|
10
11
|
spec.email = ["bensie@gmail.com"]
|
11
|
-
spec.summary =
|
12
|
+
spec.summary = "Generate URLs for PCO apps in all environments"
|
12
13
|
spec.homepage = "https://github.com/ministrycentered/pco-url"
|
13
14
|
spec.license = "MIT"
|
14
15
|
|
@@ -17,10 +18,11 @@ Gem::Specification.new do |spec|
|
|
17
18
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
18
19
|
spec.require_paths = ["lib"]
|
19
20
|
|
20
|
-
spec.add_development_dependency "
|
21
|
-
spec.add_development_dependency "
|
22
|
-
spec.add_development_dependency "
|
23
|
-
spec.add_development_dependency "
|
24
|
-
spec.add_development_dependency "rspec
|
25
|
-
spec.add_development_dependency "
|
21
|
+
spec.add_development_dependency "appraisal"
|
22
|
+
spec.add_development_dependency "guard-rspec"
|
23
|
+
spec.add_development_dependency "rails"
|
24
|
+
spec.add_development_dependency "rake"
|
25
|
+
spec.add_development_dependency "rspec"
|
26
|
+
spec.add_development_dependency "rspec-rails"
|
27
|
+
spec.add_development_dependency "rubocop"
|
26
28
|
end
|
@@ -1,11 +1,15 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
require_relative "./boot"
|
2
4
|
require "action_controller/railtie"
|
3
5
|
|
4
|
-
require
|
6
|
+
require "pco/url"
|
5
7
|
|
6
8
|
module Dummy
|
7
9
|
class Application < Rails::Application
|
8
10
|
config.eager_load = false
|
11
|
+
config.hosts << /accounts\.pco\.(test|codes)/ if Rails::VERSION::MAJOR >= 6
|
12
|
+
config.secret_key_base = "123abc"
|
9
13
|
end
|
10
14
|
end
|
11
15
|
|
metadata
CHANGED
@@ -1,105 +1,113 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pco-url
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
4
|
+
version: 2.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Miller
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-12-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
14
|
+
name: appraisal
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '0'
|
20
20
|
type: :development
|
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: '
|
26
|
+
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: guard-rspec
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
27
41
|
- !ruby/object:Gem::Dependency
|
28
42
|
name: rails
|
29
43
|
requirement: !ruby/object:Gem::Requirement
|
30
44
|
requirements:
|
31
|
-
- - "
|
45
|
+
- - ">="
|
32
46
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
47
|
+
version: '0'
|
34
48
|
type: :development
|
35
49
|
prerelease: false
|
36
50
|
version_requirements: !ruby/object:Gem::Requirement
|
37
51
|
requirements:
|
38
|
-
- - "
|
52
|
+
- - ">="
|
39
53
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
54
|
+
version: '0'
|
41
55
|
- !ruby/object:Gem::Dependency
|
42
56
|
name: rake
|
43
57
|
requirement: !ruby/object:Gem::Requirement
|
44
58
|
requirements:
|
45
|
-
- - "
|
59
|
+
- - ">="
|
46
60
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
61
|
+
version: '0'
|
48
62
|
type: :development
|
49
63
|
prerelease: false
|
50
64
|
version_requirements: !ruby/object:Gem::Requirement
|
51
65
|
requirements:
|
52
|
-
- - "
|
66
|
+
- - ">="
|
53
67
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
68
|
+
version: '0'
|
55
69
|
- !ruby/object:Gem::Dependency
|
56
70
|
name: rspec
|
57
71
|
requirement: !ruby/object:Gem::Requirement
|
58
72
|
requirements:
|
59
73
|
- - ">="
|
60
74
|
- !ruby/object:Gem::Version
|
61
|
-
version:
|
62
|
-
- - "<"
|
63
|
-
- !ruby/object:Gem::Version
|
64
|
-
version: '4'
|
75
|
+
version: '0'
|
65
76
|
type: :development
|
66
77
|
prerelease: false
|
67
78
|
version_requirements: !ruby/object:Gem::Requirement
|
68
79
|
requirements:
|
69
80
|
- - ">="
|
70
81
|
- !ruby/object:Gem::Version
|
71
|
-
version:
|
72
|
-
- - "<"
|
73
|
-
- !ruby/object:Gem::Version
|
74
|
-
version: '4'
|
82
|
+
version: '0'
|
75
83
|
- !ruby/object:Gem::Dependency
|
76
84
|
name: rspec-rails
|
77
85
|
requirement: !ruby/object:Gem::Requirement
|
78
86
|
requirements:
|
79
|
-
- - "
|
87
|
+
- - ">="
|
80
88
|
- !ruby/object:Gem::Version
|
81
|
-
version:
|
89
|
+
version: '0'
|
82
90
|
type: :development
|
83
91
|
prerelease: false
|
84
92
|
version_requirements: !ruby/object:Gem::Requirement
|
85
93
|
requirements:
|
86
|
-
- - "
|
94
|
+
- - ">="
|
87
95
|
- !ruby/object:Gem::Version
|
88
|
-
version:
|
96
|
+
version: '0'
|
89
97
|
- !ruby/object:Gem::Dependency
|
90
98
|
name: rubocop
|
91
99
|
requirement: !ruby/object:Gem::Requirement
|
92
100
|
requirements:
|
93
|
-
- -
|
101
|
+
- - ">="
|
94
102
|
- !ruby/object:Gem::Version
|
95
|
-
version: 0
|
103
|
+
version: '0'
|
96
104
|
type: :development
|
97
105
|
prerelease: false
|
98
106
|
version_requirements: !ruby/object:Gem::Requirement
|
99
107
|
requirements:
|
100
|
-
- -
|
108
|
+
- - ">="
|
101
109
|
- !ruby/object:Gem::Version
|
102
|
-
version: 0
|
110
|
+
version: '0'
|
103
111
|
description:
|
104
112
|
email:
|
105
113
|
- bensie@gmail.com
|
@@ -109,14 +117,21 @@ extra_rdoc_files: []
|
|
109
117
|
files:
|
110
118
|
- ".circleci/config.yml"
|
111
119
|
- ".editorconfig"
|
120
|
+
- ".github/pull_request_template.md"
|
112
121
|
- ".gitignore"
|
113
122
|
- ".rubocop.yml"
|
114
123
|
- ".ruby-version"
|
124
|
+
- Appraisals
|
115
125
|
- CHANGELOG.md
|
116
126
|
- Gemfile
|
127
|
+
- Guardfile
|
117
128
|
- LICENSE.txt
|
118
129
|
- README.md
|
119
130
|
- Rakefile
|
131
|
+
- gemfiles/rails_5.0.gemfile
|
132
|
+
- gemfiles/rails_5.1.gemfile
|
133
|
+
- gemfiles/rails_5.2.gemfile
|
134
|
+
- gemfiles/rails_6.0.gemfile
|
120
135
|
- lib/pco/url.rb
|
121
136
|
- lib/pco/url/church_center.rb
|
122
137
|
- lib/pco/url/encryption.rb
|