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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4731a995e9e8f3944ba316db910452830ba0a0606f0a9cc07db1a6a51ef7890c
4
- data.tar.gz: 436e8ac79dcfe60f89d81676b5b2149269561510e827c90548f2d3c804dd5f1e
3
+ metadata.gz: 3e4d2b6ccf53cc4ea13cee9a5aa2e4841b2b03a4616b666b33ee4849be22af07
4
+ data.tar.gz: 6f364718d66b34a75a260111e49ac2a2f69a36f715df6778f167c2f2787215c1
5
5
  SHA512:
6
- metadata.gz: d587df8300f3b0ff06db697ee73a7c6375a6e1b29122cb67a0730691fb56da073d466fce254f76fee308c17500beeca68731179d02eb18510fbb3b7f265153e5
7
- data.tar.gz: b1fc2d8431d4b6abe9b0b21ddef546c095de4b0afdb7d7e168dce643a168dc9bad1692739d3219326a641db467e9a11d6801d44e00c29d3f9d2cacb287267d3c
6
+ metadata.gz: 3c92f04b27e2244a8baeca932f1ec7bcb4d76ff1c13fe041fb7317fcba07d4b1df17f5e99da95d521f7df1275ad75df0aa73e854e915f95dc8427aef76e3c70a
7
+ data.tar.gz: dccee0de36fe8d61d63dcab7393e57b77eacc39af63445741119197896509d4d16aff33eb8029efd80dd88a303f8c1882d7f37f7063e0eaf1a7eb81f4e4557c7
data/.circleci/config.yml CHANGED
@@ -1,70 +1,45 @@
1
- version: 2 # use CircleCI 2.0
2
- jobs: # a collection of steps
3
- "ruby-2.3": # runs not using Workflows must have a `build` job as entry point
4
- docker: # run the steps with Docker
5
- - image: circleci/ruby:2.3
6
- environment: # environment variables for primary container
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: # a collection of executable commands
11
- - checkout # special step to check out source code to working directory
12
-
13
- # Restore bundle cache
25
+ steps:
26
+ - checkout
14
27
  - restore_cache:
15
28
  keys:
16
- - pco-url-bundle-v2-ruby23-{{ checksum "pco-url.gemspec" }}
17
- - pco-url-bundle-v2-ruby23-
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: Run rspec
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-ruby24-{{ checksum "pco-url.gemspec" }}
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
@@ -13,3 +13,4 @@
13
13
  *.a
14
14
  mkmf.log
15
15
  log
16
+ gemfiles/*.gemfile.lock
data/.rubocop.yml CHANGED
@@ -1,5 +1,5 @@
1
1
  AllCops:
2
- TargetRubyVersion: 2.3
2
+ TargetRubyVersion: 2.5
3
3
 
4
4
  Style/StringLiterals:
5
5
  Enabled: true
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 2.3.7
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
@@ -1,3 +1,8 @@
1
+ # v2.1.1 (2019-12-10)
2
+
3
+ * Chore: A bunch of maintenance [Shane Bonham]
4
+ * Fix: `NameError` raised by `aci_delete_org` [Shane Bonham]
5
+
1
6
  # v2.1.0 (2019-11-05)
2
7
 
3
8
  * Feature: Add support in dev for any TLD [Tim Morgan]
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
@@ -1,5 +1,7 @@
1
1
  # PCO::URL
2
2
 
3
+ [![CircleCI](https://circleci.com/gh/ministrycentered/pco-url.svg?style=svg)](https://circleci.com/gh/ministrycentered/pco-url)
4
+
3
5
  Fetch the base URL for the current and other applications based on the current application environment.
4
6
 
5
7
  ## Usage
data/Rakefile CHANGED
@@ -1,2 +1,9 @@
1
- require "bundler/gem_tasks"
1
+ # frozen_string_literal: true
2
2
 
3
+ require "rspec/core"
4
+ require "rspec/core/rake_task"
5
+
6
+ desc "Run all specs in spec directory (excluding plugin specs)"
7
+ RSpec::Core::RakeTask.new(:spec)
8
+ task default: :spec
9
+ task test: :spec
@@ -0,0 +1,8 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "rails", "~> 5.0.0"
6
+ gem "sqlite3", "< 1.4"
7
+
8
+ gemspec path: "../"
@@ -0,0 +1,8 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "rails", "~> 5.1.0"
6
+ gem "sqlite3", "< 1.4"
7
+
8
+ gemspec path: "../"
@@ -0,0 +1,7 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "rails", "~> 5.2.0"
6
+
7
+ gemspec path: "../"
@@ -0,0 +1,7 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "rails", "~> 6.0.0"
6
+
7
+ gemspec path: "../"
@@ -1,3 +1,7 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "rails/engine"
4
+
1
5
  module PCO
2
6
  class URL
3
7
  class Engine < Rails::Engine
@@ -1,5 +1,5 @@
1
1
  module PCO
2
2
  class URL
3
- VERSION = "2.1.0".freeze
3
+ VERSION = "2.1.1".freeze
4
4
  end
5
5
  end
data/pco-url.gemspec CHANGED
@@ -1,14 +1,15 @@
1
- # coding: utf-8
2
- lib = File.expand_path('../lib', __FILE__)
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 'pco/url/version'
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 = %q{Generate URLs for PCO apps in all environments}
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 "bundler", "~> 1.7"
21
- spec.add_development_dependency "rails", "~> 5.0"
22
- spec.add_development_dependency "rake", "~> 10.0"
23
- spec.add_development_dependency "rspec", ">= 3.0.0", "< 4"
24
- spec.add_development_dependency "rspec-rails", "~> 3.9.0"
25
- spec.add_development_dependency "rubocop", "0.54.0"
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 'pco/url'
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.0
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-27 00:00:00.000000000 Z
11
+ date: 2019-12-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: bundler
14
+ name: appraisal
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '1.7'
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: '1.7'
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: '5.0'
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: '5.0'
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: '10.0'
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: '10.0'
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: 3.0.0
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: 3.0.0
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: 3.9.0
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: 3.9.0
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.54.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.54.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