A Twitterbot is a program used to produce automated posts on the Twitter microblogging service, or to automatically follow Twitter users. (Wikipedia)
利用者の Twitter アカウント関する操作権限をもらって何かするもの。つぶやいたり、フォローしたり、ふぁぼったり。
| $ sbt console | |
| <console>:35: error: erroneous or inaccessible type | |
| def apply(g: ResultName[Group])(rs: WrappedResultSet): Group = Group(rs.long(g.id), rs.get(g.name)) | |
| ^ | |
| [success] Total time: 108 s, completed 2014/07/02 12:51:30 |
| source 'https://rubygems.org/' | |
| gem 'sinatra' | |
| gem 'omniauth-twitter' | |
| gem 'json' | |
| gem 'twitter' | |
| gem 'dotenv' | |
| gem 'thin' |
| diff --git a/project/Build.scala b/project/Build.scala | |
| index 87a595e..6c5a150 100644 | |
| --- a/project/Build.scala | |
| +++ b/project/Build.scala | |
| @@ -8,6 +8,8 @@ import com.earldouglas.xsbtwebplugin.WebPlugin._ | |
| import ScalateKeys._ | |
| import scala.language.postfixOps | |
| import org.sbtidea.SbtIdeaPlugin._ | |
| +import com.heroku.sbt.HerokuPlugin | |
| +import com.typesafe.sbt.SbtNativePackager._ |
| AllCops: | |
| # Include gemspec and Rakefile | |
| Include: | |
| - '**/*.rb' | |
| Exclude: | |
| - 'bin/**/*' | |
| - 'config/**/*' | |
| - 'db/**/*' | |
| - 'app/views/**/*' | |
| - 'node_modules/**/*' |
| java.lang.StackOverflowError | |
| at scala.tools.nsc.transform.Erasure$Eraser.adaptMember(Erasure.scala:604) | |
| at scala.tools.nsc.transform.Erasure$Eraser.typed1(Erasure.scala:670) | |
| at scala.tools.nsc.typechecker.Typers$Typer.runTyper$1(Typers.scala:5295) | |
| at scala.tools.nsc.typechecker.Typers$Typer.scala$tools$nsc$typechecker$Typers$Typer$$typedInternal(Typers.scala:5322) | |
| at scala.tools.nsc.typechecker.Typers$Typer.body$2(Typers.scala:5269) | |
| at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:5273) | |
| at scala.tools.nsc.typechecker.Typers$Typer.typedQualifier(Typers.scala:5371) | |
| at scala.tools.nsc.typechecker.Typers$Typer.typedQualifier(Typers.scala:5379) | |
| at scala.tools.nsc.transform.Erasure$Eraser.adaptMember(Erasure.scala:616) |
| [info] Done updating. | |
| error: error while loading CharSequence, class file '/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/jre/lib/rt.jar(java/lang/CharSequence.class)' is broken | |
| (class java.lang.RuntimeException/bad constant pool tag 18 at byte 10) | |
| error: error while loading Comparator, class file '/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/jre/lib/rt.jar(java/util/Comparator.class)' is broken | |
| (class java.lang.RuntimeException/bad constant pool tag 18 at byte 20) | |
| error: error while loading AnnotatedElement, class file '/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/jre/lib/rt.jar(java/lang/reflect/AnnotatedElement.class)' is broken | |
| (class java.lang.RuntimeException/bad constant pool tag 18 at byte 76) | |
| error: error while loading Arrays, class file '/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/jre/lib/rt.jar(java/util/Arrays.class)' is broken | |
| (class java.lang.RuntimeException/bad constant pool tag 18 at byte 755) | |
| /var/folders/j8/y_pv9qps1cb8glnqmv66c |
| package controller | |
| import skinny._ | |
| import skinny.validator._ | |
| class RootController extends ApplicationController { | |
| object twoElements extends ValidationRule { | |
| def name = "twoElements" | |
| def isValid(v: Any) = v == null || { |
| $ cloc */src/main/scala/ | |
| 104 text files. | |
| 104 unique files. | |
| 0 files ignored. | |
| http://cloc.sourceforge.net v 1.62 T=0.46 s (226.5 files/s, 26459.1 lines/s) | |
| ------------------------------------------------------------------------------- | |
| Language files blank comment code | |
| ------------------------------------------------------------------------------- | |
| Scala 104 1619 3812 6717 |
| lazy val http4sVersion = "0.6.5" | |
| lazy val skinnyVersion = "1.3.16" | |
| lazy val root = (project in file(".")).settings( | |
| scalaVersion := "2.11.6", | |
| resolvers += "Scalaz Bintray Repo" at "http://dl.bintray.com/scalaz/releases", | |
| scalacOptions ++= Seq("-unchecked", "-deprecation", "-feature"), | |
| libraryDependencies ++= Seq( | |
| "org.skinny-framework" %% "skinny-framework" % skinnyVersion, | |
| "org.http4s" %% "http4s-dsl" % http4sVersion, |