Permalink
Browse files

Upgrade for Ruby 1.9.3, minitest/spec, improved docs, new API

  • Loading branch information...
1 parent e2fef6f commit 7116a66f250f14271617ecdb7e06b18a4f672bf6 @joelparkerhenderson joelparkerhenderson committed Mar 17, 2012
Showing with 2,362 additions and 4,445 deletions.
  1. +1 −0 .yardoc/checksums
  2. BIN .yardoc/objects/root.dat
  3. +2 −0 .yardoc/proxy_types
  4. +0 −3 CHANGELOG.txt
  5. +0 −27 LICENSE.txt
  6. +67 −22 README.md
  7. +1 −1 VERSION
  8. +1 −0 coverage/.resultset.json
  9. BIN coverage/assets/0.4.4/favicon.png
  10. +0 −155 coverage/assets/0.4.4/jquery-1.4.2.min.js
  11. +0 −341 coverage/assets/0.4.4/stylesheet.css
  12. +0 −66 coverage/assets/0.4.5/app.js
  13. BIN coverage/assets/0.4.5/fancybox/blank.gif
  14. BIN coverage/assets/0.4.5/fancybox/fancy_close.png
  15. BIN coverage/assets/0.4.5/fancybox/fancy_loading.png
  16. BIN coverage/assets/0.4.5/fancybox/fancy_nav_left.png
  17. BIN coverage/assets/0.4.5/fancybox/fancy_nav_right.png
  18. BIN coverage/assets/0.4.5/fancybox/fancy_shadow_e.png
  19. BIN coverage/assets/0.4.5/fancybox/fancy_shadow_n.png
  20. BIN coverage/assets/0.4.5/fancybox/fancy_shadow_ne.png
  21. BIN coverage/assets/0.4.5/fancybox/fancy_shadow_nw.png
  22. BIN coverage/assets/0.4.5/fancybox/fancy_shadow_s.png
  23. BIN coverage/assets/0.4.5/fancybox/fancy_shadow_se.png
  24. BIN coverage/assets/0.4.5/fancybox/fancy_shadow_sw.png
  25. BIN coverage/assets/0.4.5/fancybox/fancy_shadow_w.png
  26. BIN coverage/assets/0.4.5/fancybox/fancy_title_left.png
  27. BIN coverage/assets/0.4.5/fancybox/fancy_title_main.png
  28. BIN coverage/assets/0.4.5/fancybox/fancy_title_over.png
  29. BIN coverage/assets/0.4.5/fancybox/fancy_title_right.png
  30. BIN coverage/assets/0.4.5/fancybox/fancybox-x.png
  31. BIN coverage/assets/0.4.5/fancybox/fancybox-y.png
  32. BIN coverage/assets/0.4.5/fancybox/fancybox.png
  33. +0 −363 coverage/assets/0.4.5/fancybox/jquery.fancybox-1.3.1.css
  34. +0 −44 coverage/assets/0.4.5/fancybox/jquery.fancybox-1.3.1.pack.js
  35. BIN coverage/assets/0.4.5/favicon.png
  36. +0 −155 coverage/assets/0.4.5/jquery-1.4.2.min.js
  37. +0 −152 coverage/assets/0.4.5/jquery.dataTables.min.js
  38. +0 −141 coverage/assets/0.4.5/jquery.timeago.js
  39. +0 −174 coverage/assets/0.4.5/jquery.url.js
  40. BIN coverage/assets/0.4.5/loading.gif
  41. BIN coverage/assets/0.4.5/magnify.png
  42. BIN coverage/assets/0.4.5/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png
  43. BIN coverage/assets/0.4.5/smoothness/images/ui-bg_flat_75_ffffff_40x100.png
  44. BIN coverage/assets/0.4.5/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png
  45. BIN coverage/assets/0.4.5/smoothness/images/ui-bg_glass_65_ffffff_1x400.png
  46. BIN coverage/assets/0.4.5/smoothness/images/ui-bg_glass_75_dadada_1x400.png
  47. BIN coverage/assets/0.4.5/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png
  48. BIN coverage/assets/0.4.5/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png
  49. BIN coverage/assets/0.4.5/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png
  50. BIN coverage/assets/0.4.5/smoothness/images/ui-icons_222222_256x240.png
  51. BIN coverage/assets/0.4.5/smoothness/images/ui-icons_2e83ff_256x240.png
  52. BIN coverage/assets/0.4.5/smoothness/images/ui-icons_454545_256x240.png
  53. BIN coverage/assets/0.4.5/smoothness/images/ui-icons_888888_256x240.png
  54. BIN coverage/assets/0.4.5/smoothness/images/ui-icons_cd0a0a_256x240.png
  55. +0 −295 coverage/assets/0.4.5/smoothness/jquery-ui-1.8.4.custom.css
  56. +34 −12 coverage/assets/{0.4.4 → 0.5.3}/app.js
  57. BIN coverage/assets/{0.4.4 → 0.5.3}/fancybox/blank.gif
  58. BIN coverage/assets/{0.4.4 → 0.5.3}/fancybox/fancy_close.png
  59. BIN coverage/assets/{0.4.4 → 0.5.3}/fancybox/fancy_loading.png
  60. BIN coverage/assets/{0.4.4 → 0.5.3}/fancybox/fancy_nav_left.png
  61. BIN coverage/assets/{0.4.4 → 0.5.3}/fancybox/fancy_nav_right.png
  62. BIN coverage/assets/{0.4.4 → 0.5.3}/fancybox/fancy_shadow_e.png
  63. BIN coverage/assets/{0.4.4 → 0.5.3}/fancybox/fancy_shadow_n.png
  64. BIN coverage/assets/{0.4.4 → 0.5.3}/fancybox/fancy_shadow_ne.png
  65. BIN coverage/assets/{0.4.4 → 0.5.3}/fancybox/fancy_shadow_nw.png
  66. BIN coverage/assets/{0.4.4 → 0.5.3}/fancybox/fancy_shadow_s.png
  67. BIN coverage/assets/{0.4.4 → 0.5.3}/fancybox/fancy_shadow_se.png
  68. BIN coverage/assets/{0.4.4 → 0.5.3}/fancybox/fancy_shadow_sw.png
  69. BIN coverage/assets/{0.4.4 → 0.5.3}/fancybox/fancy_shadow_w.png
  70. BIN coverage/assets/{0.4.4 → 0.5.3}/fancybox/fancy_title_left.png
  71. BIN coverage/assets/{0.4.4 → 0.5.3}/fancybox/fancy_title_main.png
  72. BIN coverage/assets/{0.4.4 → 0.5.3}/fancybox/fancy_title_over.png
  73. BIN coverage/assets/{0.4.4 → 0.5.3}/fancybox/fancy_title_right.png
  74. BIN coverage/assets/{0.4.4 → 0.5.3}/fancybox/fancybox-x.png
  75. BIN coverage/assets/{0.4.4 → 0.5.3}/fancybox/fancybox-y.png
  76. BIN coverage/assets/{0.4.4 → 0.5.3}/fancybox/fancybox.png
  77. 0 coverage/assets/{0.4.4 → 0.5.3}/fancybox/jquery.fancybox-1.3.1.css
  78. 0 coverage/assets/{0.4.4 → 0.5.3}/fancybox/jquery.fancybox-1.3.1.pack.js
  79. BIN coverage/assets/0.5.3/favicon_green.png
  80. BIN coverage/assets/0.5.3/favicon_red.png
  81. BIN coverage/assets/0.5.3/favicon_yellow.png
  82. +129 −0 coverage/assets/0.5.3/highlight.css
  83. +1 −0 coverage/assets/0.5.3/highlight.pack.js
  84. +18 −0 coverage/assets/0.5.3/jquery-1.6.2.min.js
  85. 0 coverage/assets/{0.4.4 → 0.5.3}/jquery.dataTables.min.js
  86. 0 coverage/assets/{0.4.4 → 0.5.3}/jquery.timeago.js
  87. 0 coverage/assets/{0.4.4 → 0.5.3}/jquery.url.js
  88. BIN coverage/assets/{0.4.4 → 0.5.3}/loading.gif
  89. BIN coverage/assets/{0.4.4 → 0.5.3}/magnify.png
  90. BIN coverage/assets/{0.4.4 → 0.5.3}/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png
  91. BIN coverage/assets/{0.4.4 → 0.5.3}/smoothness/images/ui-bg_flat_75_ffffff_40x100.png
  92. BIN coverage/assets/{0.4.4 → 0.5.3}/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png
  93. BIN coverage/assets/{0.4.4 → 0.5.3}/smoothness/images/ui-bg_glass_65_ffffff_1x400.png
  94. BIN coverage/assets/{0.4.4 → 0.5.3}/smoothness/images/ui-bg_glass_75_dadada_1x400.png
  95. BIN coverage/assets/{0.4.4 → 0.5.3}/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png
  96. BIN coverage/assets/{0.4.4 → 0.5.3}/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png
  97. BIN coverage/assets/{0.4.4 → 0.5.3}/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png
  98. BIN coverage/assets/{0.4.4 → 0.5.3}/smoothness/images/ui-icons_222222_256x240.png
  99. BIN coverage/assets/{0.4.4 → 0.5.3}/smoothness/images/ui-icons_2e83ff_256x240.png
  100. BIN coverage/assets/{0.4.4 → 0.5.3}/smoothness/images/ui-icons_454545_256x240.png
  101. BIN coverage/assets/{0.4.4 → 0.5.3}/smoothness/images/ui-icons_888888_256x240.png
  102. BIN coverage/assets/{0.4.4 → 0.5.3}/smoothness/images/ui-icons_cd0a0a_256x240.png
  103. 0 coverage/assets/{0.4.4 → 0.5.3}/smoothness/jquery-ui-1.8.4.custom.css
  104. +77 −35 coverage/assets/{0.4.5 → 0.5.3}/stylesheet.css
  105. +203 −21 coverage/index.html
  106. +0 −5 coverage/resultset.yml
  107. +189 −296 doc/EmailAddressValidation.html
  108. +0 −99 doc/LICENSE_txt.html
  109. +0 −166 doc/README_rdoc.html
  110. +0 −404 doc/Testing.html
  111. +106 −0 doc/_index.html
  112. +47 −0 doc/class_list.html
  113. +0 −1 doc/created.rid
  114. +1 −0 doc/css/common.css
  115. +55 −0 doc/css/full_list.css
  116. +322 −0 doc/css/style.css
  117. +220 −0 doc/file.README.html
  118. +49 −0 doc/file_list.html
  119. +13 −0 doc/frames.html
  120. BIN doc/images/brick.png
  121. BIN doc/images/brick_link.png
  122. BIN doc/images/bug.png
  123. BIN doc/images/bullet_black.png
  124. BIN doc/images/bullet_toggle_minus.png
  125. BIN doc/images/bullet_toggle_plus.png
  126. BIN doc/images/date.png
  127. BIN doc/images/find.png
  128. BIN doc/images/loadingAnimation.gif
  129. BIN doc/images/macFFBgHack.png
  130. BIN doc/images/package.png
  131. BIN doc/images/page_green.png
  132. BIN doc/images/page_white_text.png
  133. BIN doc/images/page_white_width.png
  134. BIN doc/images/plugin.png
  135. BIN doc/images/ruby.png
  136. BIN doc/images/tag_green.png
  137. BIN doc/images/wrench.png
  138. BIN doc/images/wrench_orange.png
  139. BIN doc/images/zoom.png
  140. +220 −78 doc/index.html
  141. +205 −0 doc/js/app.js
  142. +0 −116 doc/js/darkfish.js
  143. +173 −0 doc/js/full_list.js
  144. +13 −29 doc/js/jquery.js
  145. +0 −114 doc/js/quicksearch.js
  146. +0 −10 doc/js/thickbox-compressed.js
  147. +0 −136 doc/lib/sixarm_ruby_email_address_validation_rb.html
  148. +46 −0 doc/method_list.html
  149. +0 −696 doc/rdoc.css
  150. +0 −104 doc/sixarm_ruby_email_address_validation_gemspec.html
  151. +0 −86 doc/sixarm_ruby_email_address_validation_sha512_txt.html
  152. +0 −56 doc/test/sixarm_ruby_email_address_validation_test_rb.html
  153. +105 −0 doc/top-level-namespace.html
  154. +15 −15 lib/sixarm_ruby_email_address_validation.rb
  155. +0 −1 sixarm_ruby_email_address_validation-1.2.4-sha512.txt
  156. BIN sixarm_ruby_email_address_validation-1.2.4.gem
  157. +1 −0 sixarm_ruby_email_address_validation-2.0.0-sha512.txt
  158. BIN sixarm_ruby_email_address_validation-2.0.0.gem
  159. +3 −3 sixarm_ruby_email_address_validation.gemspec
  160. +45 −23 test/sixarm_ruby_email_address_validation_test.rb
View
@@ -0,0 +1 @@
+lib/sixarm_ruby_email_address_validation.rb 6326937f6a08ba4331f4e6dbe98a937396f19d36
View
Binary file not shown.
View
@@ -0,0 +1,2 @@
+{I" Object:EF:
+class
View
@@ -1,3 +0,0 @@
-CHANGELOG
-2011-06-12 1.2.4 Rename EMAIL_ADDRESS_PATTERN to EMAIL_ADDRESS_INNER_PATTERN for clarity
-2011-04-24 1.2.2 Update for Ruby 1.9.2 and Rails 3.0.6
View
@@ -1,27 +0,0 @@
-LICENSE
-
-You may choose any of these open source licenses:
-
- - Apache License
- - BSD License
- - CreativeCommons License, Non-commercial Share Alike
- - GNU General Public License Version 2 (GPL 2)
- - GNU Lesser General Public License (LGPL)
- - MIT License
- - Perl Artistic License
- - Ruby License
-
-The software is provided "as is", without warranty of any kind,
-express or implied, including but not limited to the warranties of
-merchantability, fitness for a particular purpose and noninfringement.
-
-In no event shall the authors or copyright holders be liable for any
-claim, damages or other liability, whether in an action of contract,
-tort or otherwise, arising from, out of or in connection with the
-software or the use or other dealings in the software.
-
-This license is for the included software that is created by SixArm;
-some of the included software may have its own licenses, copyrights,
-authors, etc. and these do take precedence over the SixArm license.
-
-Copyright (c) 2005-2013 Joel Parker Henderson
View
@@ -24,19 +24,32 @@ Install:
Bundler:
- gem "sixarm_ruby_email_address_validation", "=1.2.4"
+ gem "sixarm_ruby_email_address_validation", "=2.0.0"
Require:
require "sixarm_ruby_email_address_validation"
+## High Security (Optional)
+
+To enable high security for all our gems:
+
+ wget http://sixarm.com/sixarm.pem
+ gem cert --add sixarm.pem
+ gem sources --add http://sixarm.com
+
+To install with high security:
+
+ gem install sixarm_ruby_email_address_validation --test --trust-policy HighSecurity
+
+
## Example
- if EMAIL_ADDRESS_INNER_PATTERN=~"foo@bar.com"
- puts "found"
+ if EmailAddressValidation::Pattern=~"foo@bar.com"
+ puts "present"
else
- puts "not found"
+ puts "absent"
end
=> "found"
@@ -48,44 +61,44 @@ then use the result, which is the match's string position:
Example of match position:
- match_position = EMAIL_ADDRESS_INNER_PATTERN=~'foo@bar.com'
+ match_position = EmailAddressValidation::Pattern=~'foo@bar.com'
=> 0
- match_position = EMAIL_ADDRESS_INNER_PATTERN=~'... foo@bar.com ...'
+ match_position = EmailAddressValidation::Pattern=~'... foo@bar.com ...'
=> 4
- match_position = EMAIL_ADDRESS_INNER_PATTERN=~'... hello world ...'
+ match_position = EmailAddressValidation::Pattern=~'... hello world ...'
=> nil
-## Exact Pattern Match
+## Pattern Match Exact
-To do an exact pattern match, use the EMAIL_ADDRESS_EXACT_PATTERN.
-This matches the entire string from start to end; in other words,
-the entire string must be one email address.
+To do a pattern match to the entire string, use the EmailAddressValidation::PatternExact.
-Example of exact pattern match:
+The entire string must be one email address.
- if EMAIL_ADDRESS_EXACT_PATTERN=~'foo@bar.com'
- puts "found"
+Example of pattern match:
+
+ if EmailAddressValidation::PatternExact=~'foo@bar.com'
+ puts "present"
else
- puts "not found"
+ puts "absent"
end
=> found
- if EMAIL_ADDRESS_EXACT_PATTERN=~'... foo@bar.com ...'
- puts "found"
+ if EmailAddressValidation::PatternExact=~'... foo@bar.com ...'
+ puts "present"
else
- puts "not found"
+ puts "absent"
end
- => not found
+ => absent
-The exact pattern is especialy useful to validate an email address.
+This pattern is especialy useful to validate an email address.
Example to validate an email address:
def valid?(email_address)
- EMAIL_ADDRESS_EXACT_PATTERN=~email_address ? true : false
+ EmailAddressValidation::PatternExact=~email_address ? true : false
end
@@ -95,8 +108,40 @@ To add email address validation to a typical Ruby On Rails model:
class User
include EmailAddressValidation
- validates :email_address, :format => { :with => EMAIL_ADDRESS_EXACT_PATTERN },
+ validates :email_address, :format => { :with => EmailAddressValidation::PatternExact }
end
+## Changes
+
+* 2012-03-17 2.0.0 Upgrade for Ruby 1.9.3, minitest/spec, improved docs, new API.
+* 2011-04-24 1.2.2 Upgrade for Ruby 1.9.2 and Rails 3.0.6
+
+
+## License
+
+You may choose any of these open source licenses:
+
+ * Apache License
+ * BSD License
+ * CreativeCommons License, Non-commercial Share Alike
+ * GNU General Public License Version 2 (GPL 2)
+ * GNU Lesser General Public License (LGPL)
+ * MIT License
+ * Perl Artistic License
+ * Ruby License
+
+The software is provided "as is", without warranty of any kind,
+express or implied, including but not limited to the warranties of
+merchantability, fitness for a particular purpose and noninfringement.
+
+In no event shall the authors or copyright holders be liable for any
+claim, damages or other liability, whether in an action of contract,
+tort or otherwise, arising from, out of or in connection with the
+software or the use or other dealings in the software.
+
+This license is for the included software that is created by SixArm;
+some of the included software may have its own licenses, copyrights,
+authors, etc. and these do take precedence over the SixArm license.
+Copyright (c) 2005-2013 Joel Parker Henderson
View
@@ -1 +1 @@
-1.2.4
+2.0.0
View
@@ -0,0 +1 @@
+{"Unit Tests":{"coverage":{"/home/sixarm/git/sixarm_ruby_email_address_validation/lib/sixarm_ruby_email_address_validation.rb":[null,null,null,null,null,null,1,null,1,1,1,1,1,1,1,1,1,1,1,1,1,1,null,null]},"timestamp":1332024690}}
Deleted file not rendered
Oops, something went wrong.

0 comments on commit 7116a66

Please sign in to comment.