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.
data/checkin_gem.sh CHANGED
@@ -1,13 +1,13 @@
1
- svn delete --force 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
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
2
3
 
3
- grep -rl '"widget_list", "'$1'"' Gemfile | xargs sed -i 's/"widget_list", "'$1'"/"widget_list", "'$2'"/g'
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
- bundle install
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
- svn add 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
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"