widget_list 1.0.5 → 1.0.6
Sign up to get free protection for your applications and to get access to all the features.
- data/.idea/workspace.xml +98 -73
- data/README.md +248 -227
- data/lib/widget_list/engine.rb +1 -1
- data/lib/widget_list/version.rb +1 -1
- data/lib/widget_list.rb +293 -240
- data/publish_gem.sh +37 -0
- data/vendor/assets/images/gobblecons/teal/arrow-16.png +0 -0
- data/vendor/assets/images/gobblecons/teal/share-arrows-24-left.png +0 -0
- data/vendor/assets/images/gobblecons/teal/share-arrows-24.png +0 -0
- data/vendor/assets/images/head-gradient.gif +0 -0
- data/vendor/assets/javascripts/widget_list.js +527 -510
- data/vendor/assets/stylesheets/widget_list.css +33 -10
- metadata +6 -2
data/publish_gem.sh
ADDED
@@ -0,0 +1,37 @@
|
|
1
|
+
#these scripts will create a new gem, mount a vendor folder and publish the gem
|
2
|
+
|
3
|
+
CAMELCASE=WidgetList
|
4
|
+
GEMNAME=widget_list
|
5
|
+
|
6
|
+
rvm gemset create $GEMNAME
|
7
|
+
rvm gemset use $GEMNAME
|
8
|
+
gem install bundler
|
9
|
+
bundle gem $GEMNAME
|
10
|
+
#chown wcapp:wcapp -R $GEMNAME/*
|
11
|
+
cd $GEMNAME/
|
12
|
+
mkdir -p vendor/assets/{images,javascripts,stylesheets}
|
13
|
+
touch vendor/assets/javascripts/$GEMNAME.js
|
14
|
+
touch vendor/assets/stylesheets/$GEMNAME.css
|
15
|
+
touch lib/$GEMNAME/engine.rb
|
16
|
+
echo 'Add require "'$GEMNAME'/engine" to lib/'$GEMNAME'.rb'
|
17
|
+
echo 'Next Add //= require '$GEMNAME' to application.js in your rails application'
|
18
|
+
echo 'Next Add *= require '$GEMNAME' to application.css in your rails application'
|
19
|
+
echo 'module '$CAMELCASE > lib/$GEMNAME/engine.rb
|
20
|
+
echo ' class Engine < Rails::Engine' >> lib/$GEMNAME/engine.rb
|
21
|
+
echo ' # auto wire' >> lib/$GEMNAME/engine.rb
|
22
|
+
echo " initializer 'static_assets.load_static_assets' do |app|" >> lib/$GEMNAME/engine.rb
|
23
|
+
echo ' app.middleware.use ::ActionDispatch::Static, "#{root}/vendor"' >> lib/$GEMNAME/engine.rb
|
24
|
+
echo ' end' >> lib/$GEMNAME/engine.rb
|
25
|
+
echo ' end' >> lib/$GEMNAME/engine.rb
|
26
|
+
echo 'end' >> lib/$GEMNAME/engine.rb
|
27
|
+
|
28
|
+
#to publish it
|
29
|
+
#curl -u incubus158 https://rubygems.org/api/v1/api_key.yaml > ~/.gem/credentials
|
30
|
+
|
31
|
+
#first edit version.rb and increment it to your new version, then run this
|
32
|
+
gem build *gemspec | awk 'NR==4{print $2}' > tmpfile.txt
|
33
|
+
GEMBUILD=`cat tmpfile.txt`
|
34
|
+
gem push $GEMBUILD
|
35
|
+
rm tmpfile.txt $GEMBUILD
|
36
|
+
|
37
|
+
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|