Update js-array, sh, travis

This commit is contained in:
Rico Sta. Cruz 2015-10-15 18:55:41 +08:00
parent ec61195952
commit 8a3ba8d402
3 changed files with 45 additions and 35 deletions

View File

@ -29,6 +29,7 @@ layout: default
array.concat([X,Y]) //=> [_,_,_,_,_,X,Y] array.concat([X,Y]) //=> [_,_,_,_,_,X,Y]
### Inserting ### Inserting
// after -- [_,_,REF,NEW,_,_] // after -- [_,_,REF,NEW,_,_]
array.splice(array.indexOf(REF)+1, 0, NEW)) array.splice(array.indexOf(REF)+1, 0, NEW))

31
sh.md
View File

@ -235,26 +235,19 @@ or
### Getting options ### Getting options
while [[ "$1" =~ ^- && ! "$1" == "--" ]]; do while [[ "$1" =~ ^- && ! "$1" == "--" ]]; do case $1 in
case $1 in -V | --version )
-V | --version ) echo $version
echo $version exit
exit ;;
;; -s | --string )
-s | --string ) shift; string=$1
shift; string=$1 ;;
;; -f | --flag )
-f | --flag ) flag=1
flag=1 ;;
;;
esac
shift
done
if [[ "$1" == "--" ]]; then shift; fi
# compact
while [[ "$1" =~ ^- && ! "$1" == "--" ]]; do; case $1 in
esac; shift; done esac; shift; done
if [[ "$1" == '--' ]]; then shift; fi
### Heredoc ### Heredoc

View File

@ -5,27 +5,43 @@ layout: default
### Node ### Node
language: node_js ```yml
node_js: language: node_js
- "0.10" node_js:
- '4'
```
* Provides: 0.10, 0.8, 0.6, 0.11 (latest dev) * Provides: 0.10, 0.8, 0.6, 0.11 (latest dev)
* Defaults install to `npm install` * Defaults install to `npm install`
* Defaults test to `npm test` * Defaults test to `npm test`
### Ruby ### Ruby
language: ruby ```yml
rvm: language: ruby
- 2.0.0 rvm:
- 1.9.3 - 2.0.0
- 1.8.7 - 1.9.3
- rbx-19mode - 1.8.7
- jruby-19mode - rbx-19mode
- jruby-18mode - jruby-19mode
- jruby-18mode
```
* * Defaults install to `bundle install` * Defaults install to `bundle install`
* Defaults test to `rake` * Defaults test to `rake`
### Build lifecycle
* `before_install`
* `install`
* `before_script`
* `script`
* `after_success` or `after_failure`
* `after_script`
* OPTIONAL `before_deploy`
* OPTIONAL `deploy`
* OPTIONAL `after_deploy`
### Branches ### Branches