Permalink
Browse files

Updated master with latest from develop.

  • Loading branch information...
2 parents bd38578 + 3a2c3ed commit e836de0060de95352fe48e926da88f3857ae35cf @coldfumonkeh committed Nov 12, 2016
Showing with 63,418 additions and 221 deletions.
  1. +1 −1 .travis.yml → .travis.yml.bak
  2. +0 −2 README.md
  3. +89 −27 box.json
  4. +1 −1 build.xml
  5. +0 −173 com/coldfumonkeh/monkehTweet.cfc
  6. +308 −0 testbox/apidocs/allclasses-frame.html
  7. +7 −0 testbox/apidocs/bootstrap/css/bootstrap.min.css
  8. BIN testbox/apidocs/bootstrap/fonts/glyphicons-halflings-regular.eot
  9. +229 −0 testbox/apidocs/bootstrap/fonts/glyphicons-halflings-regular.svg
  10. BIN testbox/apidocs/bootstrap/fonts/glyphicons-halflings-regular.ttf
  11. BIN testbox/apidocs/bootstrap/fonts/glyphicons-halflings-regular.woff
  12. +6 −0 testbox/apidocs/bootstrap/js/bootstrap.min.js
  13. +4 −0 testbox/apidocs/bootstrap/js/jquery-2.1.0.min.js
  14. +17 −0 testbox/apidocs/highlighter/scripts/shAutoloader.js
  15. +59 −0 testbox/apidocs/highlighter/scripts/shBrushBash.js
  16. +100 −0 testbox/apidocs/highlighter/scripts/shBrushColdFusion.js
  17. +91 −0 testbox/apidocs/highlighter/scripts/shBrushCss.js
  18. +67 −0 testbox/apidocs/highlighter/scripts/shBrushGroovy.js
  19. +52 −0 testbox/apidocs/highlighter/scripts/shBrushJScript.js
  20. +57 −0 testbox/apidocs/highlighter/scripts/shBrushJava.js
  21. +33 −0 testbox/apidocs/highlighter/scripts/shBrushPlain.js
  22. +66 −0 testbox/apidocs/highlighter/scripts/shBrushSql.js
  23. +69 −0 testbox/apidocs/highlighter/scripts/shBrushXml.js
  24. +17 −0 testbox/apidocs/highlighter/scripts/shCore.js
  25. +17 −0 testbox/apidocs/highlighter/scripts/shLegacy.js
  26. +226 −0 testbox/apidocs/highlighter/styles/shCore.css
  27. +328 −0 testbox/apidocs/highlighter/styles/shCoreDefault.css
  28. +331 −0 testbox/apidocs/highlighter/styles/shCoreDjango.css
  29. +339 −0 testbox/apidocs/highlighter/styles/shCoreEclipse.css
  30. +324 −0 testbox/apidocs/highlighter/styles/shCoreEmacs.css
  31. +328 −0 testbox/apidocs/highlighter/styles/shCoreFadeToGrey.css
  32. +324 −0 testbox/apidocs/highlighter/styles/shCoreMDUltra.css
  33. +324 −0 testbox/apidocs/highlighter/styles/shCoreMidnight.css
  34. +324 −0 testbox/apidocs/highlighter/styles/shCoreRDark.css
  35. +117 −0 testbox/apidocs/highlighter/styles/shThemeDefault.css
  36. +120 −0 testbox/apidocs/highlighter/styles/shThemeDjango.css
  37. +128 −0 testbox/apidocs/highlighter/styles/shThemeEclipse.css
  38. +113 −0 testbox/apidocs/highlighter/styles/shThemeEmacs.css
  39. +117 −0 testbox/apidocs/highlighter/styles/shThemeFadeToGrey.css
  40. +113 −0 testbox/apidocs/highlighter/styles/shThemeMDUltra.css
  41. +113 −0 testbox/apidocs/highlighter/styles/shThemeMidnight.css
  42. +113 −0 testbox/apidocs/highlighter/styles/shThemeRDark.css
  43. +32 −0 testbox/apidocs/index.html
  44. +6,454 −0 testbox/apidocs/jstree/jstree.js
  45. +5 −0 testbox/apidocs/jstree/jstree.min.js
  46. +4 −0 testbox/apidocs/jstree/libs/jquery.js
  47. +36 −0 testbox/apidocs/jstree/libs/require.js
  48. BIN testbox/apidocs/jstree/themes/default/32px.png
  49. BIN testbox/apidocs/jstree/themes/default/40px.png
  50. +981 −0 testbox/apidocs/jstree/themes/default/style.css
  51. +1 −0 testbox/apidocs/jstree/themes/default/style.min.css
  52. BIN testbox/apidocs/jstree/themes/default/throbber.gif
  53. +116 −0 testbox/apidocs/overview-frame.html
  54. +121 −0 testbox/apidocs/overview-summary.html
  55. BIN testbox/apidocs/resources/inherit.gif
  56. +12 −0 testbox/apidocs/stylesheet.css
  57. +2,512 −0 testbox/apidocs/testbox/system/Assertion.html
  58. +2,208 −0 testbox/apidocs/testbox/system/BaseSpec.html
  59. +2,220 −0 testbox/apidocs/testbox/system/Expectation.html
  60. +1,685 −0 testbox/apidocs/testbox/system/MockBox.html
  61. +2,303 −0 testbox/apidocs/testbox/system/TestBox.html
  62. +3,487 −0 testbox/apidocs/testbox/system/TestResult.html
  63. +411 −0 testbox/apidocs/testbox/system/compat/framework/Results.html
  64. +2,577 −0 testbox/apidocs/testbox/system/compat/framework/TestCase.html
  65. +955 −0 testbox/apidocs/testbox/system/compat/framework/TestSuite.html
  66. +60 −0 testbox/apidocs/testbox/system/compat/framework/package-frame.html
  67. +136 −0 testbox/apidocs/testbox/system/compat/framework/package-summary.html
  68. +429 −0 testbox/apidocs/testbox/system/compat/runner/DirectoryTestSuite.html
  69. +464 −0 testbox/apidocs/testbox/system/compat/runner/Results.html
  70. +56 −0 testbox/apidocs/testbox/system/compat/runner/package-frame.html
  71. +126 −0 testbox/apidocs/testbox/system/compat/runner/package-summary.html
  72. +701 −0 testbox/apidocs/testbox/system/mockutils/MockGenerator.html
  73. +295 −0 testbox/apidocs/testbox/system/mockutils/Stub.html
  74. +56 −0 testbox/apidocs/testbox/system/mockutils/package-frame.html
  75. +126 −0 testbox/apidocs/testbox/system/mockutils/package-summary.html
  76. +72 −0 testbox/apidocs/testbox/system/package-frame.html
  77. +166 −0 testbox/apidocs/testbox/system/package-summary.html
  78. +697 −0 testbox/apidocs/testbox/system/reports/ANTJUnitReporter.html
  79. +454 −0 testbox/apidocs/testbox/system/reports/CodexWikiReporter.html
  80. +454 −0 testbox/apidocs/testbox/system/reports/ConsoleReporter.html
  81. +454 −0 testbox/apidocs/testbox/system/reports/DocReporter.html
  82. +454 −0 testbox/apidocs/testbox/system/reports/DotReporter.html
  83. +333 −0 testbox/apidocs/testbox/system/reports/IReporter.html
  84. +454 −0 testbox/apidocs/testbox/system/reports/JSONReporter.html
  85. +701 −0 testbox/apidocs/testbox/system/reports/JUnitReporter.html
  86. +454 −0 testbox/apidocs/testbox/system/reports/MinReporter.html
  87. +454 −0 testbox/apidocs/testbox/system/reports/RawReporter.html
  88. +454 −0 testbox/apidocs/testbox/system/reports/SimpleReporter.html
  89. +454 −0 testbox/apidocs/testbox/system/reports/TapReporter.html
  90. +454 −0 testbox/apidocs/testbox/system/reports/TextReporter.html
  91. +454 −0 testbox/apidocs/testbox/system/reports/XMLReporter.html
  92. +109 −0 testbox/apidocs/testbox/system/reports/package-frame.html
  93. +258 −0 testbox/apidocs/testbox/system/reports/package-summary.html
  94. +1,007 −0 testbox/apidocs/testbox/system/runners/BDDRunner.html
  95. +637 −0 testbox/apidocs/testbox/system/runners/BaseRunner.html
  96. +357 −0 testbox/apidocs/testbox/system/runners/IRunner.html
  97. +1,058 −0 testbox/apidocs/testbox/system/runners/UnitRunner.html
  98. +69 −0 testbox/apidocs/testbox/system/runners/package-frame.html
  99. +158 −0 testbox/apidocs/testbox/system/runners/package-summary.html
  100. +973 −0 testbox/apidocs/testbox/system/util/MixerUtil.html
  101. +658 −0 testbox/apidocs/testbox/system/util/Util.html
  102. +794 −0 testbox/apidocs/testbox/system/util/XMLConverter.html
  103. +60 −0 testbox/apidocs/testbox/system/util/package-frame.html
  104. +136 −0 testbox/apidocs/testbox/system/util/package-summary.html
  105. +32 −0 testbox/box.json
  106. +22 −0 testbox/license.txt
  107. +1 −0 testbox/mockbox.md
  108. +1 −0 testbox/readme.md
  109. +11 −0 testbox/system/Application.cfc
  110. +816 −0 testbox/system/Assertion.cfc
  111. +864 −0 testbox/system/BaseSpec.cfc
  112. +462 −0 testbox/system/Expectation.cfc
  113. +590 −0 testbox/system/MockBox.cfc
  114. +450 −0 testbox/system/TestBox.cfc
  115. +382 −0 testbox/system/TestResult.cfc
  116. +36 −0 testbox/system/compat/framework/Results.cfc
  117. +317 −0 testbox/system/compat/framework/TestCase.cfc
  118. +54 −0 testbox/system/compat/framework/TestSuite.cfc
  119. +43 −0 testbox/system/compat/runner/DirectoryTestSuite.cfc
  120. +57 −0 testbox/system/compat/runner/Results.cfc
  121. +27 −0 testbox/system/decorators/ORMTransactionRollback.cfc
  122. +318 −0 testbox/system/mockutils/MockGenerator.cfc
  123. +10 −0 testbox/system/mockutils/Stub.cfc
  124. +173 −0 testbox/system/reports/ANTJUnitReporter.cfc
  125. +58 −0 testbox/system/reports/CodexWikiReporter.cfc
  126. +51 −0 testbox/system/reports/ConsoleReporter.cfc
  127. +58 −0 testbox/system/reports/DocReporter.cfc
  128. +56 −0 testbox/system/reports/DotReporter.cfc
  129. +28 −0 testbox/system/reports/IReporter.cfc
  130. +36 −0 testbox/system/reports/JSONReporter.cfc
  131. +179 −0 testbox/system/reports/JUnitReporter.cfc
  132. +58 −0 testbox/system/reports/MinReporter.cfc
  133. +35 −0 testbox/system/reports/RawReporter.cfc
  134. +58 −0 testbox/system/reports/SimpleReporter.cfc
  135. +47 −0 testbox/system/reports/TapReporter.cfc
  136. +47 −0 testbox/system/reports/TextReporter.cfc
  137. +39 −0 testbox/system/reports/XMLReporter.cfc
  138. +78 −0 testbox/system/reports/assets/codexwiki.cfm
  139. +37 −0 testbox/system/reports/assets/css/simple.css
  140. +95 −0 testbox/system/reports/assets/doc.cfm
  141. +131 −0 testbox/system/reports/assets/dot.cfm
  142. +5 −0 testbox/system/reports/assets/js/jquery.js
  143. +75 −0 testbox/system/reports/assets/min.cfm
  144. +226 −0 testbox/system/reports/assets/simple.cfm
  145. +55 −0 testbox/system/reports/assets/tap.cfm
  146. +94 −0 testbox/system/reports/assets/text.cfm
  147. +230 −0 testbox/system/runners/BDDRunner.cfc
  148. +161 −0 testbox/system/runners/BaseRunner.cfc
  149. +61 −0 testbox/system/runners/HTMLRunner.cfm
  150. +27 −0 testbox/system/runners/IRunner.cfc
  151. +258 −0 testbox/system/runners/UnitRunner.cfc
  152. 0 testbox/system/stubs/StubsGoHere.txt
  153. +227 −0 testbox/system/util/MixerUtil.cfc
  154. +113 −0 testbox/system/util/Util.cfc
  155. +351 −0 testbox/system/util/XMLConverter.cfc
  156. +21 −0 testbox/test-browser/Application.cfc
  157. BIN testbox/test-browser/TestBoxLogo125.png
  158. +196 −0 testbox/test-browser/index.cfm
  159. +21 −0 testbox/test-harness/Application.cfc
  160. +11 −0 testbox/test-harness/results/TEST.properties
  161. +246 −0 testbox/test-harness/results/results.html
  162. 0 testbox/test-harness/results/results_go_here.txt
  163. +13 −0 testbox/test-harness/runner.cfm
  164. +107 −0 testbox/test-harness/specs/BDDTest.cfc
  165. 0 testbox/test-harness/specs/put_test_bundles_here.txt
  166. +137 −0 testbox/test-harness/test.xml
  167. +21 −0 testbox/test-runner/Application.cfc
  168. BIN testbox/test-runner/TestBoxLogo125.png
  169. +179 −0 testbox/test-runner/index.cfm
  170. +1 −0 testbox/testbox-2.1.0+00008-201411122116
  171. +20 −0 testbox/tests/Application.cfc
  172. +31 −0 testbox/tests/resources/Calculator.cfc
  173. +8 −0 testbox/tests/resources/CallPrivate.cfc
  174. +14 −0 testbox/tests/resources/Collaborator.cfc
  175. +4 −0 testbox/tests/resources/ContainsTest.cfc
  176. +11 −0 testbox/tests/resources/CustomAsserts.cfc
  177. +23 −0 testbox/tests/resources/CustomMatcher.cfc
  178. +5 −0 testbox/tests/resources/MyInterface.cfc
  179. +7 −0 testbox/tests/resources/MyInterfaceMock.cfc
  180. +74 −0 testbox/tests/resources/Test.cfc
  181. +7 −0 testbox/tests/resources/base1.cfc
  182. +8 −0 testbox/tests/resources/somepackage/ComponentInDifferentPackage.cfc
  183. +15 −0 testbox/tests/resources/test1.cfc
  184. +1 −0 testbox/tests/results-mb/TEST-test.specs.mockbox.MockBoxTest.xml
  185. +11 −0 testbox/tests/results-mb/TEST.properties
  186. +100 −0 testbox/tests/results-mb/junitreport/TESTS-TestSuites.xml
  187. +366 −0 testbox/tests/results-mb/junitreport/junit-noframes.html
  188. +107 −0 testbox/tests/results-mb/results.xml
  189. +1 −0 testbox/tests/results/TEST-test.specs.AssertionsTest.xml
  190. +1 −0 testbox/tests/results/TEST-test.specs.Assertionscf9Test.xml
  191. +1 −0 testbox/tests/results/TEST-test.specs.BDDInheritanceTest.xml
  192. +1 −0 testbox/tests/results/TEST-test.specs.BDDLifecycleTest.xml
  193. +1 −0 testbox/tests/results/TEST-test.specs.BDDTest.xml
  194. +1 −0 testbox/tests/results/TEST-test.specs.BaseTest.xml
  195. +1 −0 testbox/tests/results/TEST-test.specs.CustomAssertions.xml
  196. +1 −0 testbox/tests/results/TEST-test.specs.DebugTests.xml
  197. +1 −0 testbox/tests/results/TEST-test.specs.EdgeCases.xml
  198. +1 −0 testbox/tests/results/TEST-test.specs.LabelsTest.xml
  199. +1 −0 testbox/tests/results/TEST-test.specs.MXUnitCompatTest.xml
  200. +1 −0 testbox/tests/results/TEST-test.specs.NestedDescribeTest.xml
  201. +1 −0 testbox/tests/results/TEST-test.specs.ThreadCollisions.xml
  202. +1 −0 testbox/tests/results/TEST-test.specs.mockbox.MockBoxTest.xml
  203. +1 −0 testbox/tests/results/TEST-test.specs.more.EmbedTest.xml
  204. +11 −0 testbox/tests/results/TEST.properties
  205. +1,372 −0 testbox/tests/results/junitreport/TESTS-TestSuites.xml
  206. +3,260 −0 testbox/tests/results/junitreport/index.html
  207. +13 −0 testbox/tests/runner.cfm
  208. +7 −0 testbox/tests/runners/HTTPRunner.cfm
  209. +5 −0 testbox/tests/runners/assertions.cfm
  210. +5 −0 testbox/tests/runners/assertionsWithLabels.cfm
  211. +5 −0 testbox/tests/runners/bddrunner.cfm
  212. +4 −0 testbox/tests/runners/cf9runner.cfm
  213. +5 −0 testbox/tests/runners/directoryRunner.cfm
  214. +4 −0 testbox/tests/runners/directoryRunnerFlat.cfm
  215. +10 −0 testbox/tests/runners/directoryRunnerWithFilter.cfm
  216. +4 −0 testbox/tests/runners/mxunit/compat-directory-runner.cfm
  217. +3 −0 testbox/tests/runners/mxunit/compat-runner.cfm
  218. +11 −0 testbox/tests/runners/mxunit/compat-testsuites.cfm
  219. +49 −0 testbox/tests/specs/AssertionsTest.cfc
  220. +342 −0 testbox/tests/specs/Assertionscf9Test.cfc
  221. +107 −0 testbox/tests/specs/BDDInheritanceTest.cfc
  222. +82 −0 testbox/tests/specs/BDDLifecycleTest.cfc
  223. +285 −0 testbox/tests/specs/BDDTest.cfc
  224. +7 −0 testbox/tests/specs/BaseTest.cfc
  225. +42 −0 testbox/tests/specs/CustomAssertions.cfc
  226. +53 −0 testbox/tests/specs/DebugTests.cfc
  227. +17 −0 testbox/tests/specs/EdgeCases.cfc
  228. +43 −0 testbox/tests/specs/LabelsTest.cfc
  229. +246 −0 testbox/tests/specs/MXUnitCompatTest.cfc
  230. +28 −0 testbox/tests/specs/NestedDescribeTest.cfc
  231. +29 −0 testbox/tests/specs/ThreadCollisions.cfc
  232. +31 −0 testbox/tests/specs/index.cfm
  233. +324 −0 testbox/tests/specs/mockbox/MockBoxTest.cfc
  234. +115 −0 testbox/tests/specs/mockbox/MockBoxTestHarness.cfm
  235. +3 −0 testbox/tests/specs/more/EmbedTest.cfc
  236. +80 −0 testbox/tests/specsWithFailures/MXUnitExpectedExceptions.cfc
  237. +40 −0 testbox/tests/specsWithFailures/TeardownWithFailureBDD.cfc
  238. +50 −0 testbox/tests/specsWithFailures/TeardownWithFailureTest.cfc
  239. +1 −0 testbox/tests/test-auto.properties
  240. +1 −0 testbox/tests/test-local.properties
  241. +140 −0 testbox/tests/test-mockbox.xml
  242. +154 −0 testbox/tests/test.xml
  243. BIN tests/mxunit/mayo.JPG
  244. +17 −3 tests/mxunit/monkehTweetTest.cfc
  245. +0 −14 tests/testbox/dummyTest.cfc
  246. BIN tests/testbox/mayo.JPG
  247. +115 −0 tests/testbox/monkehTweetTest.cfc
  248. BIN tests/testbox/random.jpg
@@ -6,7 +6,7 @@ env:
- PLATFORM=railo41 TESTFRAMEWORK=mxunit
- PLATFORM=railo42 TESTFRAMEWORK=mxunit
- PLATFORM=lucee451 TESTFRAMEWORK=mxunit
- # - PLATFORM=lucee5_beta TESTFRAMEWORK=mxunit
+ - PLATFORM=lucee5_beta TESTFRAMEWORK=mxunit
# - PLATFORM=acf10-linux64 TESTFRAMEWORK=mxunit
- PLATFORM=acf902-linux64 TESTFRAMEWORK=mxunit
# - PLATFORM=railo40 TESTFRAMEWORK=testbox
View
@@ -57,5 +57,3 @@ One of the questions received in regards to monkehTweets is how to manage authen
You can find the answer right here:
- [Managing multiple Twitter users' authentication using monkehTweets](http://www.monkehworks.com/managing-multiple-twitter-users-authentication-with-monkehtweet)
-
-[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/coldfumonkeh/monkehtweets/trend.png)](https://bitdeli.com/free "Bitdeli Badge")
View
@@ -1,29 +1,91 @@
{
- "name" : "monkehTweets",
- "slug" : "monkehtweets",
- "version" : "1.4.8.0",
- "author" : "Matt Gifford <matt@monkehworks.com>",
- "location" : "https://github.com/coldfumonkeh/monkehTweets",
- "directory" : "",
- "createPackageDirectory" : "true",
- "Homepage" : "https://github.com/coldfumonkeh/monkehTweets",
- "Documentation" : "https://github.com/coldfumonkeh/monkehTweets",
- "Repository" : {
- "type" : "git", "URL" : "https://github.com/coldfumonkeh/monkehTweets"
- },
- "Bugs" : "https://github.com/coldfumonkeh/monkehTweets/issues",
- "shortDescription" : "A ColdFusion wrapper to interact with the Twitter API (with OAuth integration)",
- "keywords" : [ "twitter", "api", "oauth", "tweet", "monkeh" ],
- "private" : "false",
- "engines" : [
- { "type" : "railo", "version" : ">=4.1.x" },
- { "type" : "adobe", "version" : ">=9.0.0" }
- ],
- "defaultEngine" : "railo",
- "defaultPort" : "8085",
- "License" : [
- { "type" : "MIT", "URL" : "" }
- ],
- "Contributors" : [ {"name": "Matt Gifford", "url": "https://www.monkehworks.com"} ],
- "ignore" : [ "tests/*", "README.md", "Vagrantfile", "mxunit/*", ".gitignore", "travis.yml", "build.xml" ]
+ "name":"monkehTweets",
+ "slug":"monkehtweets",
+ "version":"1.4.8.0",
+ "author":"Matt Gifford <matt@monkehworks.com>",
+ "location":"https://github.com/coldfumonkeh/monkehTweets",
+ "directory":"",
+ "createPackageDirectory":"false",
+ "Homepage":"https://github.com/coldfumonkeh/monkehTweets",
+ "Documentation":"https://github.com/coldfumonkeh/monkehTweets",
+ "Repository":{
+ "type":"git",
+ "URL":"https://github.com/coldfumonkeh/monkehTweets"
+ },
+ "Bugs":"https://github.com/coldfumonkeh/monkehTweets/issues",
+ "shortDescription":"A ColdFusion wrapper to interact with the Twitter API (with OAuth integration)",
+ "keywords":[
+ "twitter",
+ "api",
+ "oauth"
+ ],
+ "testbox":{
+ "runner":[
+ {
+ "default":"http://127.0.0.1:8085/testbox/tests/runner.cfm"
+ }
+ ],
+ "labels":[
+
+ ],
+ "reporter":"",
+ "reporterResults":"",
+ "bundles":[
+ ""
+ ],
+ "directory":{
+ "mapping":"tests.testbox",
+ "recurse":true
+ },
+ "watchers":[
+
+ ],
+ "notify":{
+ "emails":[
+
+ ],
+ "growl":"",
+ "url":""
+ }
+ }
+ "private":"false",
+ "engines":[
+ {
+ "type":"railo",
+ "version":">=4.1.x"
+ },
+ {
+ "type":"adobe",
+ "version":">=9.0.0"
+ }
+ ],
+ "defaultEngine":"railo",
+ "defaultPort":"8085",
+ "License":[
+ {
+ "type":"MIT",
+ "URL":""
+ }
+ ],
+ "Contributors":[
+ {
+ "name":"Matt Gifford",
+ "url":"https://www.monkehworks.com"
+ }
+ ],
+ "ignore":[
+ "tests/*",
+ "README.md",
+ "Vagrantfile",
+ "mxunit/*",
+ ".gitignore",
+ "travis.yml",
+ "build.xml"
+ ],
+ "dependencies":{
+ "testbox":"2.1.0"
+ },
+ "installPaths":{
+ "testbox":"testbox"
+ }
}
View
@@ -53,7 +53,7 @@
<property name="acf10-linux64.remote.url" value="http://cfml-ci.s3.amazonaws.com/cf10-linux64.tar.gz" />
<property name="acf902-linux64.remote.url" value="http://cfml-ci.s3.amazonaws.com/cf902-linux64.tar.gz" />
- <property name="testbox.remote.url" value="http://downloads.ortussolutions.com/ortussolutions/testbox/2.0.0/testbox-2.0.0.zip" />
+ <property name="testbox.remote.url" value="https://github.com/Ortus-Solutions/TestBox/archive/master.zip" />
<property name="mxunit.remote.url" value="https://github.com/marcins/mxunit/archive/fix-railo-nulls.zip" />
<!--
@@ -1405,177 +1405,4 @@ Revision history
<!--- End of Help / Configuration methods --->
- <!--- @Anywhere methods --->
-
- <cffunction name="twitAnywhere" access="public" output="false" hint="I build the JS script block and populate the required calls to the @Anywhere service.">
- <cfargument name="params" required="true" type="struct" hint="I am a structure of method names and their parameters that you send through to this function." />
- <cfargument name="includHeaderScript" required="false" type="boolean" default="true" hint="I include the required remote Javascript file with your consumer key into the page." />
- <cfset var strReturn = '' />
- <cfset var strContent = '' />
- <cfset var methodResult = '' />
- <!--- Loop over the provided params to invoke the methods --->
- <cfloop collection="#arguments.params#" item="local.item">
- <cftry>
- <cfset structInsert(arguments.params[item],'individual',false) />
- <!--- Make the call to the method and assign the results to the content variable. --->
- <cfinvoke method="#item#" argumentcollection="#arguments.params[item]#" returnvariable="methodResult" />
- <cfset strContent = strContent & methodResult />
- <!--- Just to catch any erroneous method names that may be passed through. --->
- <cfcatch></cfcatch>
- </cftry>
- </cfloop>
- <cfif arguments.includHeaderScript>
- <cfset strReturn = anywhereScriptHeader() />
- </cfif>
- <cfset strReturn = strReturn & getOpeningScript() & strContent & getClosingScript() />
- <cfreturn strReturn />
- </cffunction>
-
- <cffunction name="linkifyUsers" access="public" output="false" hint="">
- <cfargument name="htmlSection" required="false" type="string" default="" hint="The ID of the document element to apply the linkifyUsers to. If left blank, all Twitter names within the document will be linkified." />
- <cfargument name="className" required="false" type="string" default="" hint="By default, linkifying usernames will wrap matched names in an anchor element with a class of 'twitter-anywhere-user'. Here you can specify an alternate class name to adjust to suit your CSS." />
- <cfargument name="individual" required="false" type="boolean" default="true" hint="If set to true, this method will generate purely the function to deal with the linkification of users." />
- <cfset var strReturn = '' />
- <cfif arguments.individual>
- <cfset strReturn = anywhereScriptHeader() & chr(10) & getOpeningScript() />
- </cfif>
- <cfset strReturn = strReturn & 'T' />
- <cfif len(arguments.htmlSection)>
- <cfset strReturn = strReturn & '("###arguments.htmlSection#")' />
- </cfif>
- <cfset strReturn = strReturn & '.linkifyUsers(_className_);' />
- <cfif len(arguments.className)>
- <cfset strReturn = replaceNoCase(strReturn,"_className_","{ className: '#arguments.className#' }") />
- <cfelse>
- <cfset strReturn = replaceNoCase(strReturn,'_className_',' ') />
- </cfif>
- <cfif arguments.individual>
- <cfset strReturn = strReturn & chr(10) & getClosingScript() />
- </cfif>
- <cfreturn strReturn />
- </cffunction>
-
- <cffunction name="hovercards" access="public" output="false" hint="Hovercard is a small, context-aware tooltip that provides access to data about a particular Twitter user. Hovercards also allows a user to take action upon a Twitter user such as following and unfollowing, as well as toggling device updates.">
- <cfargument name="htmlSection" required="false" type="string" default="" hint="The ID of the document element to apply the hovercard to. If left blank, all Twitter names within the document will be converted." />
- <cfargument name="linkify" required="false" type="boolean" default="true" hint="If Twitter names have already been linkified elsewhere, set to false." />
- <cfargument name="infer" required="false" type="boolean" default="false" hint="Use the infer option to trigger Hovercards on elements whose text contains a Twitter username. When the infer option is used, the hovercards method will not call the linkifyUsers method. This is useful when Twitter usernames have already been linkified by some other means. For example: <a ...>Follow @coldfumonkeh on Twitter!</a>." />
- <cfargument name="expanded" required="false" type="boolean" default="false" hint="Set to true to render the hovercards in expanded state by default." />
- <cfargument name="individual" required="false" type="boolean" default="true" hint="If set to true, this method will generate purely the function to deal with the hovercards." />
- <cfset var strReturn = '' />
- <cfset var strParamList = '' />
- <cfif arguments.individual>
- <cfset strReturn = anywhereScriptHeader() & chr(10) & getOpeningScript() />
- </cfif>
- <cfset strReturn = strReturn & 'T' />
- <cfif !arguments.linkify><cfset strParamList = listAppend(strParamList,'linkify: #arguments.linkify#') /></cfif>
- <cfif arguments.infer><cfset strParamList = listAppend(strParamList,'infer: #arguments.infer#') /></cfif>
- <cfif arguments.expanded><cfset strParamList = listAppend(strParamList,'expanded: #arguments.expanded#') /></cfif>
- <cfif len(arguments.htmlSection)>
- <cfset strReturn = strReturn & '("###arguments.htmlSection#")' />
- </cfif>
- <cfset strReturn = strReturn & '.hovercards({ #strParamList# });' />
- <cfif arguments.individual>
- <cfset strReturn = strReturn & chr(10) & getClosingScript() />
- </cfif>
- <cfreturn strReturn />
- </cffunction>
-
- <cffunction name="followButton" access="public" output="false" hint="Follow buttons make it easy to provide users of your site or application with a way to follow users on Twitter.">
- <cfargument name="htmlSection" required="true" type="string" hint="The ID of the document element to apply the follow button to." />
- <cfargument name="twittername" required="true" type="string" hint="The Twitter username you wish the follow button to follow." />
- <cfargument name="individual" required="false" type="boolean" default="true" hint="If set to true, this method will generate purely the function to deal with the follow button." />
- <cfset var strReturn = '' />
- <cfif arguments.individual>
- <cfset strReturn = anywhereScriptHeader() & chr(10) & getOpeningScript() />
- </cfif>
- <cfset strReturn = strReturn & 'T' />
- <cfif len(arguments.htmlSection)>
- <cfset strReturn = strReturn & '("###arguments.htmlSection#")' />
- </cfif>
- <cfset strReturn = strReturn & '.followButton("#arguments.twittername#");' />
- <cfif arguments.individual>
- <cfset strReturn = strReturn & chr(10) & getClosingScript() />
- </cfif>
- <cfreturn strReturn />
- </cffunction>
-
- <cffunction name="tweetBox" access="public" output="false" hint="The Tweet Box allows Twitter users to tweet directly from within your web site or web application.">
- <cfargument name="htmlSection" required="true" type="string" hint="The ID of the document element to apply the tweetbox to." />
- <cfargument name="counter" required="true" type="boolean" default="true" hint="Display a counter in the Tweet Box for counting characters. True or false." />
- <cfargument name="height" required="false" type="numeric" default="65" hint="The height of the Tweet Box in pixels." />
- <cfargument name="width" required="false" type="numeric" default="515" hint="The width of the Tweet Box in pixels." />
- <cfargument name="label" required="false" type="string" default="What's happening?" hint="The text above the Tweet Box, a call to action." />
- <cfargument name="defaultContent" required="false" type="string" default="" hint="Pre-populated text in the Tweet Box. Useful for an @mention, a ##hashtag, a link, etc." />
- <cfargument name="onTweet" required="false" type="string" default="" hint="Specify a listener for when a tweet is sent from the Tweet Box. The listener receives two arguments: a plaintext tweet and an HTML tweet." />
- <cfargument name="data" required="false" type="struct" default="#structNew()#" hint="Key + value pairs representing any of the additional metadata that can be set when updating a user's status. See the REST API documentation for a complete list of the possible options." />
- <cfargument name="individual" required="false" type="boolean" default="true" hint="If set to true, this method will generate purely the function to deal with the tweetbox." />
- <cfset var strReturn = '' />
- <cfif arguments.individual>
- <cfset strReturn = anywhereScriptHeader() & chr(10) & getOpeningScript() />
- </cfif>
- <cfset strReturn = strReturn & 'T("###arguments.htmlSection#").tweetBox({
- counter: #arguments.counter#,
- height: #arguments.height#,
- width: #arguments.width#,
- label: "#arguments.label#",
- defaultContent: "#arguments.defaultContent#",
- onTweet: function(plaintext, html) {
- #arguments.onTweet#
- },
- data: #lcase(serializeJSON(arguments.data))#
- });' />
- <cfif arguments.individual>
- <cfset strReturn = strReturn & chr(10) & getClosingScript() />
- </cfif>
-
- <cfreturn strReturn />
- </cffunction>
-
- <cffunction name="login" access="public" output="false" hint="The 'Connect with Twitter' button provides a method for users to authenticate securely with Twitter, yielding your application with an access token for use in API calls.">
- <cfargument name="htmlSection" required="true" type="string" hint="The ID of the document element to apply the login button to." />
- <cfargument name="size" required="false" type="string" default="medium" hint="A range of sizes to choose from: small, medium, large, xlarge. 'medium' is the default size." />
- <cfargument name="authComplete" required="false" type="string" default="" hint="I am the JS code to run when authorisation is complete." />
- <cfargument name="signOut" required="false" type="string" default="" hint="I am the JS code to run when a user signs out." />
- <cfargument name="custom" required="false" type="boolean" default="false" hint="If set to true, the @Anywhere signIn() method will be applied to the supplied htmlSection DOM element." />
- <cfargument name="individual" required="false" type="boolean" default="true" hint="If set to true, this method will generate purely the function to deal with the login button." />
- <cfset var strReturn = '' />
- <cfif arguments.individual>
- <cfset strReturn = anywhereScriptHeader() & chr(10) & getOpeningScript() />
- </cfif>
- <cfif arguments.custom>
- <cfset strReturn = strReturn & 'document.getElementById("#arguments.htmlSection#").onclick = function () { T.signIn(); };' />
- <cfelse>
- <cfset strReturn = strReturn & 'T("###arguments.htmlSection#").connectButton({
- size: "#arguments.size#",
- authComplete: function(user) {
- // triggered when auth completed successfully
- #arguments.authComplete#
- },
- signOut: function(user) {
- // triggered when user logs out
- #arguments.signOut#
- }
- });' />
- </cfif>
- <cfif arguments.individual>
- <cfset strReturn = strReturn & chr(10) & getClosingScript() />
- </cfif>
- <cfreturn strReturn />
- </cffunction>
-
- <cffunction name="anywhereScriptHeader" access="public" output="false" returntype="String" hint="I return the required script tag for the @Anywhere api.">
- <cfargument name="consumerKey" required="true" type="string" default="#getAuthDetails().getConsumerKey()#" />
- <cfreturn "<script src='http://platform.twitter.com/anywhere.js?id=#arguments.consumerKey#&v=1' type='text/javascript'></script>" />
- </cffunction>
-
- <cffunction name="getOpeningScript" access="private" otput="false" hint="I return the opening portion of the @Anywhere script.">
- <cfreturn '<script type="text/javascript">twttr.anywhere(function (T) {' />
- </cffunction>
-
- <cffunction name="getClosingScript" access="private" otput="false" hint="I return the closing portion of the @Anywhere script.">
- <cfreturn '});</script>' />
- </cffunction>
-
- <!--- End of @Anywhere methods --->
-
</cfcomponent>
Oops, something went wrong.

0 comments on commit e836de0

Please sign in to comment.