instructions 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (45) hide show
  1. data/.gitignore +9 -0
  2. data/Gemfile +7 -0
  3. data/Gemfile.lock +26 -0
  4. data/LICENSE.txt +20 -0
  5. data/README.textile +141 -0
  6. data/Rakefile +40 -0
  7. data/VERSION +1 -0
  8. data/extras/hint_errors.en.yml +27 -0
  9. data/init.rb +0 -0
  10. data/install.rb +1 -0
  11. data/instructions.gemspec +19 -0
  12. data/instructions.gemspec.generated +89 -0
  13. data/lib/core_files.rb +4 -0
  14. data/lib/instructions.rb +6 -0
  15. data/lib/instructions/abstract.rb +21 -0
  16. data/lib/instructions/attribute_state.rb +25 -0
  17. data/lib/instructions/configuration.rb +49 -0
  18. data/lib/instructions/core_ext/action_view_ext.rb +9 -0
  19. data/lib/instructions/error_message.rb +9 -0
  20. data/lib/instructions/error_message_tag.rb +21 -0
  21. data/lib/instructions/field_error.rb +33 -0
  22. data/lib/instructions/field_instructions.rb +6 -0
  23. data/lib/instructions/form_helper.rb +65 -0
  24. data/lib/instructions/formatters.rb +10 -0
  25. data/lib/instructions/instructions_tag.rb +15 -0
  26. data/lib/instructions/tag.rb +71 -0
  27. data/lib/instructions/valid_instructions_tag.rb +9 -0
  28. data/rails/init.rb +0 -0
  29. data/spec/attribute_state_spec.rb +62 -0
  30. data/spec/configuration_spec.rb +74 -0
  31. data/spec/error_message_spec.rb +42 -0
  32. data/spec/error_message_tag_spec.rb +30 -0
  33. data/spec/fake_model.rb +17 -0
  34. data/spec/field_error_spec.rb +85 -0
  35. data/spec/form_helper_spec.rb +123 -0
  36. data/spec/formatters_spec.rb +76 -0
  37. data/spec/spec_helper.rb +7 -0
  38. data/spec/support/field_instructions_namespace.rb +2 -0
  39. data/spec/support/html_safe_string.rb +7 -0
  40. data/spec/support/rspec_patches.rb +22 -0
  41. data/spec/tag_spec.rb +136 -0
  42. data/test/instructions_test.rb +8 -0
  43. data/test/test_helper.rb +3 -0
  44. data/uninstall.rb +1 -0
  45. metadata +110 -0
@@ -0,0 +1,8 @@
1
+ require 'test_helper'
2
+
3
+ class InstructionsTest < ActiveSupport::TestCase
4
+ # Replace this with your real tests.
5
+ test "the truth" do
6
+ assert true
7
+ end
8
+ end
@@ -0,0 +1,3 @@
1
+ require 'rubygems'
2
+ require 'test/unit'
3
+ require 'active_support'
@@ -0,0 +1 @@
1
+ # Uninstall hook code here
metadata ADDED
@@ -0,0 +1,110 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: instructions
3
+ version: !ruby/object:Gem::Version
4
+ hash: 27
5
+ prerelease: false
6
+ segments:
7
+ - 0
8
+ - 1
9
+ - 0
10
+ version: 0.1.0
11
+ platform: ruby
12
+ authors:
13
+ - Scott Bellware
14
+ autorequire:
15
+ bindir: bin
16
+ cert_chain: []
17
+
18
+ date: 2011-01-24 00:00:00 -06:00
19
+ default_executable:
20
+ dependencies: []
21
+
22
+ description: Rails 3 plugin that renders error messages and input hints next to their fields with semantic markup
23
+ email: opensource@ampgt.com
24
+ executables: []
25
+
26
+ extensions: []
27
+
28
+ extra_rdoc_files: []
29
+
30
+ files:
31
+ - .gitignore
32
+ - Gemfile
33
+ - Gemfile.lock
34
+ - LICENSE.txt
35
+ - README.textile
36
+ - Rakefile
37
+ - VERSION
38
+ - extras/hint_errors.en.yml
39
+ - init.rb
40
+ - install.rb
41
+ - instructions.gemspec
42
+ - instructions.gemspec.generated
43
+ - lib/core_files.rb
44
+ - lib/instructions.rb
45
+ - lib/instructions/abstract.rb
46
+ - lib/instructions/attribute_state.rb
47
+ - lib/instructions/configuration.rb
48
+ - lib/instructions/core_ext/action_view_ext.rb
49
+ - lib/instructions/error_message.rb
50
+ - lib/instructions/error_message_tag.rb
51
+ - lib/instructions/field_error.rb
52
+ - lib/instructions/field_instructions.rb
53
+ - lib/instructions/form_helper.rb
54
+ - lib/instructions/formatters.rb
55
+ - lib/instructions/instructions_tag.rb
56
+ - lib/instructions/tag.rb
57
+ - lib/instructions/valid_instructions_tag.rb
58
+ - rails/init.rb
59
+ - spec/attribute_state_spec.rb
60
+ - spec/configuration_spec.rb
61
+ - spec/error_message_spec.rb
62
+ - spec/error_message_tag_spec.rb
63
+ - spec/fake_model.rb
64
+ - spec/field_error_spec.rb
65
+ - spec/form_helper_spec.rb
66
+ - spec/formatters_spec.rb
67
+ - spec/spec_helper.rb
68
+ - spec/support/field_instructions_namespace.rb
69
+ - spec/support/html_safe_string.rb
70
+ - spec/support/rspec_patches.rb
71
+ - spec/tag_spec.rb
72
+ - test/instructions_test.rb
73
+ - test/test_helper.rb
74
+ - uninstall.rb
75
+ has_rdoc: true
76
+ homepage: http://github.com/sbellware/instructions
77
+ licenses:
78
+ - MIT
79
+ post_install_message:
80
+ rdoc_options: []
81
+
82
+ require_paths:
83
+ - lib
84
+ required_ruby_version: !ruby/object:Gem::Requirement
85
+ none: false
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ hash: 3
90
+ segments:
91
+ - 0
92
+ version: "0"
93
+ required_rubygems_version: !ruby/object:Gem::Requirement
94
+ none: false
95
+ requirements:
96
+ - - ">="
97
+ - !ruby/object:Gem::Version
98
+ hash: 3
99
+ segments:
100
+ - 0
101
+ version: "0"
102
+ requirements: []
103
+
104
+ rubyforge_project:
105
+ rubygems_version: 1.3.7
106
+ signing_key:
107
+ specification_version: 3
108
+ summary: Semantic Error Message and Hint Markup for Rails 3 Form Fields
109
+ test_files: []
110
+