blocks 4.0.0 → 4.0.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: 4d09904f4e9227a5c2087bfe8479106f5b82ba9c04f3fa44f679e30eae649e0c
4
- data.tar.gz: 985af7cb5d86cc4a742afe5779043fb32598258fdc1d3ea2c8d9f7958005f689
3
+ metadata.gz: 6514db3994d5dca614d81e9441afedb963f36ac68b2884bc0b55bbc8a32dd490
4
+ data.tar.gz: d76fe105e80388c986d90ab3ae5cb9887329982c7b240c1aa09d8501ba0826b4
5
5
  SHA512:
6
- metadata.gz: 14dd1a0f2352f151d2b7076ab9909e546c1cbfb0522894f79344bfbd8cd20b4a8b0902bf3f67097b2b82a7ab35ce793c7a69a1de2dbcdde0d46f9797e0898d5f
7
- data.tar.gz: a8d7ecfaf7aded7699f59508a4f0112d2e863861a3b28369c00ba9e97cd55355cf158064e50bcaef87d950781aa8f2816066cb0721c048ba79d150959254bc77
6
+ metadata.gz: e5f71b99378aa63f869ac83cc9b1838f04e2f8ab4dc113f00171a80d1a8266635b1df5bc1ec7d6cc429a5fdcb398990f035d266896ac8b27f97b36b233d5e409
7
+ data.tar.gz: 83718a88a327ba0e4650c40f366d847777b083e7765642fd43d6c9f0e0ed2ccf8df1e1b0adc621096256591aabf3a9f734ea4a7e40e1d095e67f9b85abe05e6f
data/.gitignore CHANGED
@@ -6,4 +6,5 @@ Gemfile.lock
6
6
  coverage/
7
7
  _site/
8
8
  .sass-cache/
9
- .idea/
9
+ .idea/
10
+ docs/.jekyll-cache
data/.travis.yml CHANGED
@@ -1,18 +1,6 @@
1
1
  language: ruby
2
2
  cache: bundler
3
3
 
4
- before_install:
5
- - function version { echo "$@" | awk -F. '{ printf("%d%03d%03d%03d\n", $1,$2,$3,$4); }'; };
6
- if [ $(version $TRAVIS_RUBY_VERSION) -ge $(version '2.7.0') ];
7
- then
8
- gem install "rubygems-update" --no-document;
9
- update_rubygems;
10
- gem install bundler -v 1.17.3;
11
- else
12
- gem install "rubygems-update:<3.0.0" --no-document;
13
- update_rubygems;
14
- gem install bundler -v 1.17.3;
15
- fi
16
4
  rvm:
17
5
  - 2.0.0
18
6
  - 2.1.10
@@ -34,7 +22,7 @@ gemfile:
34
22
  - gemfiles/Gemfile.rails-5-1-stable
35
23
  - gemfiles/Gemfile.rails-5-2-stable
36
24
  - Gemfile
37
- matrix:
25
+ jobs:
38
26
  exclude:
39
27
  # Exclude Rails 5 from Ruby < 2.3
40
28
  - rvm: 2.0.0
@@ -86,16 +74,20 @@ matrix:
86
74
  gemfile: gemfiles/Gemfile.rails-4-1-stable
87
75
  - rvm: 2.7.0
88
76
  gemfile: gemfiles/Gemfile.rails-4-2-stable
89
-
90
- script: 'bundle exec rake'
91
-
92
- jobs:
93
77
  include:
94
- # ./bin/deploy_docs will exit if the current branch is not master
95
- - stage: documentation
96
- script: './bin/deploy_docs'
78
+ - name: Documentation
79
+ script: bundle exec jekyll build
97
80
  rvm: 2.6.5
98
81
  gemfile: Gemfile
82
+ if: branch = master AND type = push
83
+ deploy:
84
+ local_dir: _site
85
+ provider: pages
86
+ skip_cleanup: true
87
+ github_token: $GITHUB_TOKEN # Set in the settings page of your repository, as a secure variable
88
+ keep_history: true
89
+
90
+ script: 'bundle exec rake'
99
91
 
100
92
  notifications:
101
93
  email:
data/Gemfile CHANGED
@@ -4,7 +4,7 @@ gemspec
4
4
 
5
5
  # Requires min Ruby version 2.3
6
6
 
7
- gem "nokogiri", "1.10.7"
7
+ gem "nokogiri", "1.10.8"
8
8
  gem "capybara"
9
9
  gem "rspec", "~> 3.6.0"
10
10
  gem "rspec-its", "~> 1.2.0"
@@ -4,7 +4,7 @@ gemspec path: ".."
4
4
 
5
5
  # Requires min Ruby version 2.3
6
6
 
7
- gem "nokogiri", "1.10.7"
7
+ gem "nokogiri", "1.10.8"
8
8
  gem "capybara"
9
9
  gem "rspec", "~> 3.6.0"
10
10
  gem "rspec-its", "~> 1.2.0"
@@ -4,7 +4,7 @@ gemspec path: ".."
4
4
 
5
5
  # Requires min Ruby version 2.3
6
6
 
7
- gem "nokogiri", "1.10.7"
7
+ gem "nokogiri", "1.10.8"
8
8
  gem "capybara"
9
9
  gem "rspec", "~> 3.6.0"
10
10
  gem "rspec-its", "~> 1.2.0"
@@ -4,7 +4,7 @@ gemspec path: ".."
4
4
 
5
5
  # Requires min Ruby version 2.3
6
6
 
7
- gem "nokogiri", "1.10.7"
7
+ gem "nokogiri", "1.10.8"
8
8
  gem "capybara"
9
9
  gem "rspec", "~> 3.6.0"
10
10
  gem "rspec-its", "~> 1.2.0"
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'action_controller'
3
+ require 'active_support/dependencies'
4
4
 
5
5
  module Blocks
6
6
  module ControllerExtensions
@@ -10,4 +10,6 @@ module Blocks
10
10
  end
11
11
  end
12
12
 
13
- ActionController::Base.send :include, Blocks::ControllerExtensions
13
+ ActiveSupport.on_load(:action_controller) do
14
+ include Blocks::ControllerExtensions
15
+ end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Blocks
4
- VERSION = "4.0.0"
4
+ VERSION = "4.0.1"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: blocks
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.0
4
+ version: 4.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Hunter
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-09-01 00:00:00.000000000 Z
11
+ date: 2023-03-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -71,8 +71,6 @@ files:
71
71
  - Rakefile
72
72
  - _config.yml
73
73
  - bin/console
74
- - bin/deploy_docs
75
- - bin/setup
76
74
  - blocks.gemspec
77
75
  - docs/.gitignore
78
76
  - docs/404.html
data/bin/deploy_docs DELETED
@@ -1,50 +0,0 @@
1
- set -e
2
-
3
- DEPLOY_REPO="https://${GITHUB_TOKEN}@github.com/hunterae/blocks.git"
4
-
5
- function main {
6
- clean
7
- get_current_site
8
- build_site
9
- deploy
10
- }
11
-
12
- function clean {
13
- echo "cleaning _site folder"
14
- if [ -d "_site" ]; then rm -Rf _site; fi
15
- }
16
-
17
- function get_current_site {
18
- echo "getting latest site"
19
- git clone --depth 1 $DEPLOY_REPO _site
20
- }
21
-
22
- function build_site {
23
- echo "building site"
24
- bundle exec jekyll build
25
- }
26
-
27
- function deploy {
28
- echo "deploying changes"
29
-
30
- if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then
31
- echo "except don't publish site for pull requests"
32
- exit 0
33
- fi
34
-
35
- if [ "$TRAVIS_BRANCH" != "master" ]; then
36
- echo "except we should only publish the master branch. stopping here"
37
- exit 0
38
- fi
39
-
40
- cd _site
41
- git config --global user.name "Travis CI"
42
- git config --global user.email 'Deployment Bot'
43
- git add -A
44
- git status
45
- git commit -m "Lastest site built on successful travis build $TRAVIS_BUILD_NUMBER auto-pushed to github"
46
- git push --force $DEPLOY_REPO master:gh-pages
47
- }
48
-
49
-
50
- main
data/bin/setup DELETED
@@ -1,8 +0,0 @@
1
- #!/usr/bin/env bash
2
- set -euo pipefail
3
- IFS=$'\n\t'
4
- set -vx
5
-
6
- bundle install
7
-
8
- # Do any other automated setup that you need to do here