widget_list 1.3.6 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -13
- data/README.md +98 -711
- data/checkin_gem.sh +10 -10
- data/docs/legacy-readme.md +757 -0
- data/lib/extensions/action_controller_base.rb +21 -29
- data/lib/widget_list/engine.rb +1 -4
- data/lib/widget_list/railtie.rb +10 -33
- data/lib/widget_list/request_context.rb +5 -0
- data/lib/widget_list/sequel.rb +17 -41
- data/lib/widget_list/utils.rb +7 -7
- data/lib/widget_list/version.rb +1 -1
- data/lib/widget_list/widgets.rb +1 -2
- data/lib/widget_list.rb +217 -216
- data/publish_gem.sh +14 -35
- data/vendor/assets/stylesheets/{widget_list.css → widget_list.css.erb} +21 -21
- data/vendor/assets/stylesheets/{widgets.css → widgets.css.erb} +9 -9
- data/widget_list.gemspec +8 -10
- metadata +40 -28
data/checkin_gem.sh
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
set -euo pipefail
|
|
2
3
|
|
|
3
|
-
|
|
4
|
+
cd "$(dirname "$0")"
|
|
5
|
+
version=$(ruby -Ilib -rwidget_list/version -e 'print WidgetList::VERSION')
|
|
6
|
+
gem build widget_list.gemspec --output "widget_list-${version}.gem"
|
|
4
7
|
|
|
5
|
-
|
|
8
|
+
example_dir="../widget_list_example_rails8"
|
|
9
|
+
if [[ -f "${example_dir}/bin/rails" ]]; then
|
|
10
|
+
(cd "$example_dir" && bundle install && bin/rails test)
|
|
11
|
+
fi
|
|
6
12
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
echo -e -n "Please test your solution and press enter to checkin new gem"
|
|
10
|
-
read THEMENAME
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
svn commit vendor/cache/widget_list-$1.gem vendor/bundle/ruby/1.9.1/cache/widget_list-$1.gem vendor/bundle/ruby/1.9.1/specifications/widget_list-$1.gemspec vendor/bundle/ruby/1.9.1/gems/widget_list-$1 vendor/cache/widget_list-$2.gem vendor/bundle/ruby/1.9.1/cache/widget_list-$2.gem vendor/bundle/ruby/1.9.1/specifications/widget_list-$2.gemspec vendor/bundle/ruby/1.9.1/gems/widget_list-$2 Gemfile.lock Gemfile -m "$1 -> $2 gem update"
|
|
13
|
+
printf 'Built widget_list-%s.gem. Review git diff and commit on main before publishing.\n' "$version"
|