README.md in gist_updater-0.2.0 vs README.md in gist_updater-0.3.0
- old
+ new
@@ -50,39 +50,41 @@
```ruby
require 'gist_updater'
GistUpdater::Updater.new(
- yaml: <User definition YAML file>,
- user: <GitHub usename>, # or $GISTUPDATER_USER
- token: <GitHub personal access token>, # or $GISTUPDATER_ACCESS_TOKEN
- debug: <true or false>
+ yaml: 'User definition YAML file',
+ user: 'GitHub usename', # or $GISTUPDATER_USER
+ token: 'GitHub personal access token', # or $GISTUPDATER_ACCESS_TOKEN
+ debug: 'true or false'
).update
#=> update count
```
## YAML format
```yaml
-
- - <gist_id1>
- - <path to file1>
+ - 'gist_id_1'
+ - 'path to file_1'
-
- - <gist_id2>
- - <path to file2>
+ - 'gist_id_2'
+ - 'path to file_2a'
+ - 'path to file_2b'
```
For example,
```yaml
-
# https://gist.github.com/masutaka/8177244
- 8177244
- .emacs.d/init.el
-
- # https://gist.github.com/masutaka/9642146
- - 9642146
- - bin/my-brew-bundle
+ # https://gist.github.com/masutaka/f7ce8b3c71e995c20e48
+ - f7ce8b3c71e995c20e48
+ - circle.yml
+ - tasks/pushover.rake
```
## Development
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.