Skip to content

Commit

Permalink
dave - added script to upgrade version numbers of MD files
Browse files Browse the repository at this point in the history
  • Loading branch information
daviddenton committed Jan 30, 2016
1 parent e3b2ec9 commit 6ab0f73
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 5 deletions.
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -34,7 +34,7 @@ and it has built against the version below:
```scala
resolvers += "JCenter" at "https://jcenter.bintray.com"
libraryDependencies += "com.twitter" %% "finagle-http" % "6.31.0"
libraryDependencies += "io.github.daviddenton" %% "fintrospect" % "X.X.X"
libraryDependencies += "io.github.daviddenton" %% "fintrospect" % "12.0.2"
```

Additionally, to activate any message formats other than Argo JSON and native XML you'll need to import the relevant libraries (e.g. Json4S native/jackson), since only the bindings are included in the Fintrospect JAR.
Expand Down Expand Up @@ -118,4 +118,4 @@ See the <a href="https://github.com/daviddenton/fintrospect/blob/master/RELEASE.

### Contributing
If there are any message format library or templating engine bindings that you'd like to see included, then please feel free to suggest them or provide a PR. For JSON formats, this
is particularly easy to implement - just provide an implementation of ```JsonLibrary``` by following the ```Argo``` example in the source.
is particularly easy to implement - just provide an implementation of ```JsonLibrary``` by following the ```Argo``` example in the source.
9 changes: 8 additions & 1 deletion harp.json
@@ -1,5 +1,12 @@
{
"globals": {
"name": "fintrospect"
"finagle": {
"old": "6.30.0",
"new": "6.31.0"
},
"fintrospect": {
"old": "12.0.1",
"new": "12.0.2"
}
}
}
2 changes: 1 addition & 1 deletion src/main/site/installation.md
Expand Up @@ -6,7 +6,7 @@ Add the following lines to ```build.sbt```. Note that while the library doesn't
```scala
resolvers += "JCenter" at "https://jcenter.bintray.com"
libraryDependencies += "com.twitter" %% "finagle-http" % "6.31.0"
libraryDependencies += "io.github.daviddenton" %% "fintrospect" % "X.X.X"
libraryDependencies += "io.github.daviddenton" %% "fintrospect" % "12.0.2"
```

Additionally, to activate any message formats other than Argo JSON and native XML you'll need to import the relevant libraries (e.g. Json4S native/jackson), since only the bindings are included in the Fintrospect JAR.
2 changes: 1 addition & 1 deletion src/main/site/templating-and-static-content.md
Expand Up @@ -36,4 +36,4 @@ Similarly to how the ResponseBuilders work, no 3rd-party dependencies are bundle
Files can be served easily by using a StaticModule:
```
val publicModule = StaticModule(Root / "public", "public")
```
```
Binary file added tools/jq
Binary file not shown.
10 changes: 10 additions & 0 deletions upgrade.sh
@@ -0,0 +1,10 @@
#!/bin/bash
set -e

function upgrade {
echo Upgrade $1 to $2
find . -type f -name '*.md' | grep -v "node_modules" | grep -v "bower_components" | xargs sed -i '' s/"$1"/"$2"/g
}

upgrade `./tools/jq .globals.fintrospect.old harp.json` `./tools/jq .globals.fintrospect.new harp.json`
upgrade `./tools/jq .globals.finagle.old harp.json` `./tools/jq .globals.finagle.new harp.json`

0 comments on commit 6ab0f73

Please sign in to comment.