blocks 4.0.0.rc2 → 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: 5c2bc8606eb38fc14ef7d5cba2af1243900777696d36555948c3723d96242032
4
- data.tar.gz: 3d278dc1864520beaa5b33d44680fe0326621128f7fe97d96249080698237e2b
3
+ metadata.gz: 6514db3994d5dca614d81e9441afedb963f36ac68b2884bc0b55bbc8a32dd490
4
+ data.tar.gz: d76fe105e80388c986d90ab3ae5cb9887329982c7b240c1aa09d8501ba0826b4
5
5
  SHA512:
6
- metadata.gz: 0db01d1469f15ac1f833ae155d04ea28232106eff6a108d7640552f3f18116a7aec72f32d54939efe3ba5cdd56bc5d19fa2150cb79ff1b5fcfa89414a2696b51
7
- data.tar.gz: 4fa95a20bc9f3ab1372dfa921a8acb4bea749beabb2aff6ae0241ff134a38074d9f24fd0c5dd5ff779a30a1f3ea3371d443af5f6ea6de66949f3163d42da9576
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.rc2"
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.rc2
4
+ version: 4.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Hunter
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-06-08 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
@@ -178,7 +176,7 @@ licenses:
178
176
  - MIT
179
177
  metadata:
180
178
  allowed_push_host: https://rubygems.org
181
- post_install_message:
179
+ post_install_message:
182
180
  rdoc_options: []
183
181
  require_paths:
184
182
  - lib
@@ -189,12 +187,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
189
187
  version: '0'
190
188
  required_rubygems_version: !ruby/object:Gem::Requirement
191
189
  requirements:
192
- - - ">"
190
+ - - ">="
193
191
  - !ruby/object:Gem::Version
194
- version: 1.3.1
192
+ version: '0'
195
193
  requirements: []
196
194
  rubygems_version: 3.1.2
197
- signing_key:
195
+ signing_key:
198
196
  specification_version: 4
199
197
  summary: Blocks gives you total control over how your blocks of code render.
200
198
  test_files: []
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