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 +4 -4
- data/.gitignore +2 -1
- data/.travis.yml +12 -20
- data/Gemfile +1 -1
- data/gemfiles/Gemfile.rails-5-0-stable +1 -1
- data/gemfiles/Gemfile.rails-5-1-stable +1 -1
- data/gemfiles/Gemfile.rails-5-2-stable +1 -1
- data/lib/blocks/helpers/controller_extensions.rb +4 -2
- data/lib/blocks/version.rb +1 -1
- metadata +7 -9
- data/bin/deploy_docs +0 -50
- data/bin/setup +0 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6514db3994d5dca614d81e9441afedb963f36ac68b2884bc0b55bbc8a32dd490
|
4
|
+
data.tar.gz: d76fe105e80388c986d90ab3ae5cb9887329982c7b240c1aa09d8501ba0826b4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e5f71b99378aa63f869ac83cc9b1838f04e2f8ab4dc113f00171a80d1a8266635b1df5bc1ec7d6cc429a5fdcb398990f035d266896ac8b27f97b36b233d5e409
|
7
|
+
data.tar.gz: 83718a88a327ba0e4650c40f366d847777b083e7765642fd43d6c9f0e0ed2ccf8df1e1b0adc621096256591aabf3a9f734ea4a7e40e1d095e67f9b85abe05e6f
|
data/.gitignore
CHANGED
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
|
-
|
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
|
-
|
95
|
-
|
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
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require '
|
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
|
-
|
13
|
+
ActiveSupport.on_load(:action_controller) do
|
14
|
+
include Blocks::ControllerExtensions
|
15
|
+
end
|
data/lib/blocks/version.rb
CHANGED
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.
|
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:
|
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:
|
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
|