Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1112 commits
Select commit Hold shift + click to select a range
a00ab55
Fixed link to the config file.
smathy May 18, 2011
177cf4f
Merge pull request #565 from smathy/patch-1
justinfrench May 18, 2011
873f50a
Don't strip '-' in choice_html_safe_value
robinst May 22, 2011
83e0877
Create rspec to demonstrate has_many error messages aren't properly b…
mhuggins May 24, 2011
f7d9cfd
A bunch of Rails 3.1 compatability stuff for #564
justinfrench Apr 18, 2011
b82fd53
Fixes for i18n under Rails 3.1, all tests pass under Rails 3.1.0.rc1 …
justinfrench May 19, 2011
92a5072
Merge pull request #567 from robinst/master
justinfrench May 25, 2011
19fc3e2
fix for broken semantic_fields_for
twalpole May 26, 2011
406b530
Merge pull request #575 from twalpole/semantic_fields_for
justinfrench May 27, 2011
4503a22
Merge pull request #569 from mhuggins/master
justinfrench May 27, 2011
45a3dda
Fix syntax error in Ruby 1.9.2
jwinter May 27, 2011
8c76c3f
Merge pull request #579 from jwinter/patch-1
justinfrench May 29, 2011
ff296bd
Boolean fields should not use global requied default. Fixes #580
May 30, 2011
d0a8ebe
Merge pull request #582 from asanghi/boolean2
justinfrench May 30, 2011
eff38a1
too hard to maintain the maintainers
justinfrench May 27, 2011
a3713e8
use real objects in :for and fields_for examples, fixes #561
justinfrench May 30, 2011
4f4b069
Rails 3.1 Asset Pipeline compatibility (Fixes #563)
justinfrench May 30, 2011
90e674f
ignore :base in semantic_errors, since base errors are always rendere…
justinfrench May 31, 2011
33aeedd
remove incorrect comment about all_fields_required_by_default from co…
justinfrench May 31, 2011
382b283
tweaking install instructions, not that anyone really sees them any m…
justinfrench May 31, 2011
43153bc
Fixes #584 . Retry if value received from i18n is not a string
Jun 1, 2011
8f1e885
Merge pull request #586 from asanghi/i18n_584
justinfrench Jun 1, 2011
2787d87
Deferring garbage collection cuts the time to run the test suite down…
justinfrench Jun 1, 2011
d57c054
README: Fix mention of inexistent StringTextInput
robinst Jun 2, 2011
34d6e16
README: Fix custom input example about DatePicker
robinst Jun 2, 2011
6fe793d
Merge pull request #587 from robinst/master
sobrinho Jun 2, 2011
7f01af4
switch to gemspec generated by bundler. #535 #548
kou Jun 3, 2011
6789a46
Merge pull request #588 from kou/master
sobrinho Jun 3, 2011
6d9cae1
Removed formtastic:form generator and changed formtastic:install gene…
sobrinho Jun 5, 2011
a1d2149
merge two .input styles into one
justinfrench Jun 2, 2011
6540d3a
fix samples/basic_inputs.html reference to stylesheet which moved to …
justinfrench Jun 2, 2011
a1fdf12
we don't need jQuery at the moment in the samples
justinfrench Jun 2, 2011
2508880
Refactor labels CSS, add classes.
justinfrench Jun 2, 2011
70f9a89
merge duplicated .label styles together
justinfrench Jun 2, 2011
9a2714e
fix for .boolean labels in IE8
justinfrench Jun 2, 2011
4ef7512
quick rack app to serve samples, to make testing over windows VMs muc…
justinfrench Jun 2, 2011
a42f6c8
added (empty) ie6 and ie7 stylesheets
justinfrench Jun 2, 2011
3829a49
some styles for ie6 and ie7
justinfrench Jun 2, 2011
28754a2
updated README for asset pipeline with ie6 & 7 css
justinfrench Jun 2, 2011
9be0cd8
update install generator to include ie6 & 7 css
justinfrench Jun 2, 2011
e98f1f8
tweak margins around checkboxes and radios
justinfrench Jun 2, 2011
c6cc440
change i18n specs to use association names, not associations
justinfrench Jun 6, 2011
90c6e29
Revert "use real objects in :for and fields_for examples"
justinfrench Jun 6, 2011
ba93de2
CHANGELOG catch-up
justinfrench Jun 9, 2011
7a0851c
merge in changelog from 1.2-stable
justinfrench Jun 9, 2011
aae91c2
remove form generator docs from README
justinfrench Jun 9, 2011
ab530b7
bumped the version to 2.0.0.rc1
justinfrench Jun 9, 2011
ea34367
updated install instructions in readme to reflect 2.0.0.rc1
justinfrench Jun 9, 2011
995a513
checkbox input should come before the label text in the BooleanInput …
justinfrench Jun 11, 2011
aefbba4
changelog catch-up
justinfrench Jun 11, 2011
82fa002
spec to expose bug and fixed #590
justinfrench Jun 11, 2011
e34f01b
some documentation for Timeish inputs, fixes #589
justinfrench Jun 11, 2011
cbb4c9c
version bump to rc2
justinfrench Jun 13, 2011
d55918d
let's see what happens if i omit the date
justinfrench Jun 13, 2011
2e8e282
CHANGELOG
justinfrench Jun 14, 2011
14aef5f
don't apply a .label class to <label> tags inside a .choice on radio …
justinfrench Jun 18, 2011
a452caf
fix mongo_mapper related issue: mongo_mapper doesn't respond to refle…
ijonas Jun 18, 2011
b87d729
version bump 2.0.0.rc3
justinfrench Jun 19, 2011
c6a285a
drop date from gemspec
justinfrench Jun 19, 2011
17053dc
CHANGELOG
justinfrench Jun 19, 2011
c6c6d2b
specs for support of polymorphic association checking on top of Mongo…
ijonas Jun 20, 2011
e64a36a
added MongoMapper-specific reflection capability
ijonas Jun 20, 2011
96d5c39
Merge branch 'master' of git://github.com/justinfrench/formtastic int…
ijonas Jun 20, 2011
4431bed
Merge pull request #600 from ijonas/mongo_mapper_associations
justinfrench Jun 20, 2011
c9c23ed
fixed i18n_lookups config variable name in template
morgoth Jun 24, 2011
39cb617
Merge pull request #605 from morgoth/config-template-fix
justinfrench Jun 24, 2011
d1c3365
Added failing test for validates_length_of :maximum-only setting
julian7 Jun 27, 2011
be7285f
html5 validators should reflect AR validations more strictly
julian7 Jun 27, 2011
7b22ff0
Better specs for converting AR validators to required parameters
julian7 Jun 27, 2011
bbc4052
input_helper_spec refactor, typo fix
julian7 Jun 27, 2011
4325eae
fix #606
mhenrixon Jun 27, 2011
0b21d5f
added test to expose missing methods error_list error_sentence error_…
justinfrench Jul 1, 2011
daac316
added new configuration to opt out of HTML5 attribute, fixes #604
justinfrench Jul 4, 2011
88fb05f
Merge pull request #610 from julian7/validates_presence
justinfrench Jul 4, 2011
281dc89
Specs for #606
mhenrixon Jul 4, 2011
19050ba
Merge pull request #617 from mhenrixon/master
justinfrench Jul 4, 2011
cd66ccc
Failing spec for check_boxes input
pfeiffer Jul 5, 2011
44516ca
attributes in model with #validators_on without defined validations s…
Jul 7, 2011
210138e
moved ie specific css to ie files
gucki Jul 8, 2011
a5e3d7a
Merge pull request #620 from iscra/master
justinfrench Jul 12, 2011
94a0697
Merge pull request #624 from gucki/css_cleanups
justinfrench Jul 12, 2011
504ec7a
FIX for mongo patches under 3.1
justinfrench Jul 14, 2011
7afcf0f
Patch for 44516ca under Rails 3.1 there was a "multiple values for a …
justinfrench Jul 14, 2011
a19f006
remove the abstraction wrapper method that semantic_fields_for and se…
justinfrench Jul 19, 2011
14010b8
remove the stuff that sematnci_fields_for doesn't need
justinfrench Jul 19, 2011
d674c4a
Altered semantic_fields_for to work with Rails 3 *and* 3.1's method s…
justinfrench Jul 19, 2011
9ce1721
these should be testing semantic_fields_for, not fields_for ref #568
justinfrench Jul 19, 2011
06790f4
add a context around these tests
justinfrench Jul 19, 2011
8a44881
added more coverage for semantic_fields_for ref #568
justinfrench Jul 19, 2011
aac8d75
require rake < 0.9 for now
justinfrench Jul 19, 2011
131f350
Fix bug when simple_fields_for is used with a hask like model
justinfrench Jul 19, 2011
4eb72a8
don't add the required attribute to the choices in a :radio or :check…
justinfrench Jul 20, 2011
2223df8
Added a configuration 'perform_browser_validations' to opt out of HTM…
justinfrench Jul 20, 2011
235b89f
Merge pull request #619 from pfeiffer/checkboxes
justinfrench Jul 21, 2011
c8509d9
Revert "Merge pull request #619 from pfeiffer/checkboxes"
justinfrench Jul 21, 2011
3fc2190
Add a basic .travis.yml file
Jul 22, 2011
1326648
clarify that spec a little bit more
justinfrench Jul 21, 2011
a0d6092
Rspec => RSpec in spec_helper
justinfrench Jul 24, 2011
d2c4ff7
Collections of strings in CheckBoxesInput should now be checked if th…
justinfrench Jul 26, 2011
fca597b
Merge pull request #631 from bai/master
justinfrench Jul 26, 2011
589ab47
Remove the email addresses from .travis.yml
justinfrench Jul 26, 2011
0baec94
check ENV['DEFER_GC'] isn't 'false' before doing the the DeferredGarb…
justinfrench Jul 26, 2011
ac48a50
set DEFER_GC=false env for Travis CI
justinfrench Jul 26, 2011
9b340bc
remove all the rubies from .travis.yml -- let's try to get one workin…
justinfrench Jul 26, 2011
27ee0bc
Fix example code for FileInput
betelgeuse Jul 27, 2011
65e8bc2
Merge pull request #636 from betelgeuse/master
sobrinho Jul 27, 2011
88a3114
Fix input type detection for CarrierWave
betelgeuse Jul 27, 2011
18639a1
Merge pull request #638 from betelgeuse/master
sobrinho Jul 28, 2011
7d1b028
make blank label for timish fragment html safe
Jul 31, 2011
0acfe94
spec for timeish fragment label
Jul 31, 2011
f445f4f
fix issue #603
nashby Jul 31, 2011
4202457
Merge pull request #641 from nathanscott/master
sobrinho Jul 31, 2011
20b6ead
remove validation_reflection plugin from docs... not neccessariy and …
justinfrench Aug 1, 2011
2bcedcf
Change the way 'perform_browser_validations' option is used.
Juanmcuello Aug 5, 2011
29c45b9
Merge pull request #644 from Juanmcuello/master
sobrinho Aug 5, 2011
8cf977f
Default step attribute to 'any' in number_input.
Juanmcuello Aug 9, 2011
d6762c4
Merge pull request #650 from Juanmcuello/master
sobrinho Aug 10, 2011
5fb1d2c
Merge pull request #642 from nashby/issue-603
justinfrench Aug 14, 2011
f1d0ab3
Fixed false fragment labels on date/time inputs producing unsafe HTML.
justinfrench Aug 14, 2011
2bb0234
Now that formtastic is green, why not add some more rubies! :)
joshk Aug 14, 2011
e03f3c4
Merge pull request #653 from joshk/patch-1
justinfrench Aug 14, 2011
8b8e86c
fix epic failing tests under Rails 3.1.0.rc5 due to our fake URL help…
justinfrench Aug 15, 2011
f761fcb
remove failing rubies from travil.yml -- you can have them back when …
justinfrench Aug 16, 2011
b66cb77
Remove coverage requirement for 1.9.2 & 1.9.3, add back to Travis.
justinfrench Aug 16, 2011
b043bd6
Fixed #634, where TimeInput was not rendering hidden y/m/d inputs by …
justinfrench Aug 16, 2011
e93fce2
CHANGELOG catch-up for 2.0.0.rc4
justinfrench Aug 16, 2011
9efaea6
version bump to 2.0.0.rc4
justinfrench Aug 16, 2011
cd707e6
delete the post_install_message from gemspec, they're not visible wit…
justinfrench Aug 16, 2011
ed60316
update release instructions, no longer need to edit date
justinfrench Aug 16, 2011
fdd2300
fixed #657
gucki Aug 19, 2011
a95479e
Merge pull request #658 from gucki/master
sobrinho Aug 18, 2011
c64f967
Spec for issue #657 to avoid regression
sobrinho Aug 19, 2011
7d3bb2f
Changed HTML5 configuration defaults from true to false fixes #662
justinfrench Aug 23, 2011
65a1916
ISSUE 660 fix
timothyklim Aug 30, 2011
4b3fb38
dirty but it's works for me
timothyklim Aug 30, 2011
4d61e33
added specs
timothyklim Aug 31, 2011
b11e143
Merge pull request #665 from TimothyKlim/master
sobrinho Aug 31, 2011
14efd86
CHANGELOG
justinfrench Sep 1, 2011
9a7fa55
version bump 2.0.0.rc5
justinfrench Sep 1, 2011
d9ec403
tweak release process
justinfrench Sep 1, 2011
22a9af1
prep README for 2.0
justinfrench Sep 1, 2011
70986a2
collection_from_association now works with Proc conditions for the as…
eneagoe Sep 1, 2011
60f85a3
Closes #667 Made it easier to override commit button wrapper class by…
mattvague Sep 1, 2011
f48af20
Refactored commit_button method. Split it into a couple of different …
mattvague Sep 1, 2011
d0b0b93
Added form template for Slim engine
ovelar Sep 1, 2011
01bf2ef
Merge pull request #670 from eneagoe/master
justinfrench Sep 1, 2011
eab2360
Merge pull request #671 from versapay/667-more-customizeable-commit-b…
justinfrench Sep 1, 2011
8843ed2
Merge pull request #672 from ovelar/master
justinfrench Sep 2, 2011
bd218ed
Closes #674 don't check all check_boxes if Array is passed to :collec…
cthiel Sep 5, 2011
61113d6
Revert "Closes #674 don't check all check_boxes if Array is passed to…
cthiel Sep 5, 2011
292a0c2
add failing spec for issue #674
cthiel Sep 5, 2011
7691f5b
Closes #674 don't check all check_boxes if Array is passed to :collec…
cthiel Sep 5, 2011
a77267c
Merge pull request #674 from cthiel/master
justinfrench Sep 10, 2011
13ed3f7
add failing spec for 677 select generates incorrect name when passed …
taavo Sep 11, 2011
86cb1ed
MongoMapper does not use `associations(method)`. `.associations` is a…
hypomodern Sep 12, 2011
6034e77
this should fix the remaining problems.
hypomodern Sep 12, 2011
8da6eae
fix nested object i18n scopes order
crystalin Sep 16, 2011
be5fdeb
very minor grammar fix
chadoh Sep 20, 2011
ea31556
Merge pull request #687 from chadoh/patch-1
sobrinho Sep 20, 2011
bdbe30b
a few README clean-ups for 2.0
justinfrench Sep 23, 2011
b669fd2
version bump
justinfrench Sep 23, 2011
c21a417
Merge pull request #680 from hypomodern/master
justinfrench Sep 23, 2011
dc7b668
2.0.0 Changelog
justinfrench Sep 24, 2011
9bd7764
2.0.0 Changelog
justinfrench Sep 24, 2011
5e3fc7f
more changelog'n
justinfrench Sep 24, 2011
a6a4692
Depend on Railties instead of Rails
alsemyonov Sep 24, 2011
9352a13
fixed #690 :input_html => { :multiple => true} had no affect
justinfrench Sep 24, 2011
c7ac097
fixed #690 :input_html => { :multiple => true} had no affect
justinfrench Sep 24, 2011
cb409db
Depend in runtime only on ActionPack
alsemyonov Sep 24, 2011
17d4c77
restore support for :multiple option, didn't have to change specs, wh…
justinfrench Sep 25, 2011
f100dc0
restore support for :multiple option, didn't have to change specs, wh…
justinfrench Sep 25, 2011
8b72c05
Fixed placeholder tests for all input types (not just string). Added …
michaelkoper Sep 25, 2011
a829895
deleted before block in splaceholder spec.
michaelkoper Sep 25, 2011
666f26a
Merge pull request #689 from alsemyonov/master
sobrinho Sep 25, 2011
b5024d1
Merge pull request #692 from michaelkoper/placeholder_for_textarea
sobrinho Sep 25, 2011
71222a0
Remove active resource require because we are not using it
sobrinho Sep 25, 2011
152f04e
Use `require 'bundler/setup'` instead of calling Bundler.setup manually
sobrinho Sep 25, 2011
0c119b4
Add tzinfo as development dependency
sobrinho Sep 25, 2011
9c489db
Do not need to require active_record in this spec
sobrinho Sep 25, 2011
7e1490a
Do not verify coverage by default
sobrinho Sep 25, 2011
f0995e4
Merge pull request #685 from crystalin/i18n-nested-fix
sobrinho Sep 25, 2011
4f6e4b9
spec to expose that :multiple => true doesn't work when there's no as…
justinfrench Sep 26, 2011
6625a52
fixes #690 and failing test in 4f6e4b9
justinfrench Sep 26, 2011
d94ee2f
Merge pull request #678 from taavo/677_permit_nil_for_select_name
justinfrench Sep 26, 2011
64d55a8
Improve grammar, capitalization, formatting
Sep 26, 2011
ae220ac
Merge pull request #693 from sleeplessgeek/stickler
sobrinho Sep 26, 2011
eb9e523
Better documentation for custom inputs
Sep 27, 2011
2e04c06
Merge pull request #696 from sleeplessgeek/custom_input_documentation
sobrinho Sep 27, 2011
600e013
always use inputs() block in README examples, less chance of WTF moments
justinfrench Sep 27, 2011
913215e
use |f| consistently in README for form builder variable name
justinfrench Sep 27, 2011
d35bc74
Extract method field_set_legend.
Sep 29, 2011
392cdfa
added generator specs using ammeter gem
alexrothenberg Sep 30, 2011
29984dc
Merge pull request #699 from sleeplessgeek/extract_legend_method
justinfrench Sep 30, 2011
e4d9a76
Merge pull request #700 from alexrothenberg/generator_specs
justinfrench Oct 1, 2011
224e283
Fix issue with the extraction of field_set_legend
twalpole Oct 1, 2011
32eb366
Merge pull request #703 from twalpole/extract_legend_method_fix
justinfrench Oct 1, 2011
0b23716
spec to expose that :multiple => true doesn't work when there's no as…
justinfrench Sep 26, 2011
f90da6f
fixes #690 and failing test in 4f6e4b9
justinfrench Sep 26, 2011
0f0878c
CHANGELOG
justinfrench Oct 2, 2011
75f4233
verion bump 2.0.1
justinfrench Oct 2, 2011
2e5d319
Merge branch '2-0-stable'
justinfrench Oct 2, 2011
5cec1a6
Fixed prompts on select inputs
dim Oct 5, 2011
fa26bdf
Merge pull request #708 from dim/master
sobrinho Oct 6, 2011
b51411c
Revert "Fixed prompts on select inputs"
sobrinho Oct 6, 2011
45014a8
Improved :prompt patch for select inputs
dim Oct 6, 2011
dbb6e92
Merge pull request #710 from dim/master
sobrinho Oct 6, 2011
0514d73
Ability to customize localization
Oct 11, 2011
c546844
FormGenerator is Back!
jcorcuera Oct 18, 2011
1fbdf8f
Fix generator templates: To generate the correct indentation for Haml…
jcorcuera Oct 18, 2011
e7d3e0f
memoize the selected values array
Oct 20, 2011
dbc7452
better code organization, thanks sobrinho
Oct 20, 2011
4c5bf68
Fixed invalid html output for nested inputs with multiple siblings
haines Oct 24, 2011
ca5ffdf
1.8 hash syntax
haines Oct 24, 2011
fc95a63
Merge pull request #725 from haines/master
justinfrench Oct 24, 2011
2befcea
Merge pull request #723 from ContinuityControl/speedup-large-checkbox…
justinfrench Oct 24, 2011
e95ad93
Merge pull request #716 from nathanl/custom_localization
justinfrench Oct 24, 2011
e767ce7
Merge pull request #721 from jcorcuera/GH-717
justinfrench Oct 24, 2011
2d99ed2
thin out README documentation from pull #716
justinfrench Oct 24, 2011
b42542c
tweak localizer documentation and shift up to class level for Yard (r…
justinfrench Oct 24, 2011
373fbd4
thin out config template documentation for localizer from pull #716
justinfrench Oct 24, 2011
186d548
Update commit_button documentation
Oct 24, 2011
c26e551
Merge pull request #726 from tmiller/patch-1
justinfrench Oct 24, 2011
56c8dd1
remove deprecated SemanticFormBuilder
justinfrench Oct 25, 2011
749d7de
remove deprecated SemanticFormHelper
justinfrench Oct 25, 2011
72a8c88
remove deprecated inline_errors_for and related methods
justinfrench Oct 25, 2011
8228f1f
remove deprecated :as => :numeric (use number instead)
justinfrench Oct 25, 2011
b926118
Removed deprecated :label_method, :value_method & :group_label_method…
justinfrench Oct 25, 2011
ba46d2a
whitespace
justinfrench Oct 26, 2011
e05bbb6
fix boolean input to respect :index from fields_for in input[name] at…
justinfrench Oct 26, 2011
1d63ebe
fix select input to respect :index from fields_for in select[name] at…
justinfrench Oct 26, 2011
56bf917
fix checkboxes input to respect :index from fields_for in input[name]…
justinfrench Oct 26, 2011
ec28828
fix date, datetime and time inputs to respect :index from fields_for,…
justinfrench Oct 26, 2011
253dc6d
coverage to assert that fields for with :index works on various input…
justinfrench Oct 27, 2011
0566774
address syntax errors with 1.9.2-p290
jslag Oct 27, 2011
0ee2154
Merge pull request #729 from jslag/master
sobrinho Oct 27, 2011
617ef95
Support empty Time inputs
jslag Oct 27, 2011
9ead0e9
calculate length of integer columns as bytes
Nov 2, 2011
1bc9fab
passing spec related to #714
justinfrench Nov 3, 2011
1f3746d
Merge pull request #733 from ContinuityControl/bugfix-integer-maxleng…
justinfrench Nov 7, 2011
4df91fc
Documentation update: :include_blank option should be passed outside …
kazjote Nov 7, 2011
ddaaea2
Merge pull request #736 from kazjote/patch-1
sobrinho Nov 7, 2011
7804a9f
Fixed up the documentation for text_input
bradleypriest Nov 8, 2011
ce77365
Merge pull request #738 from bradleypriest/patch-1
sobrinho Nov 8, 2011
9632dbe
Demonstrate a problem when using with_options.
spraints Nov 9, 2011
f34c6c4
Clone wrapper_html options before modifying it.
spraints Nov 9, 2011
a09a6db
Fix for #740 - Mongoid belongs_to select raises NoMethodError and alw…
rgarner Nov 11, 2011
193e0ae
Merge pull request #741 from rgarner/master
justinfrench Nov 15, 2011
4a99a8a
Merge pull request #739 from spraints/with_options_fix
justinfrench Nov 15, 2011
45ec7a7
Merge pull request #730 from jslag/master
justinfrench Nov 15, 2011
82b1ecc
trying to handle composite primary keys in reflection
Nov 22, 2011
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
.DS_Store
.rvmrc
coverage
coverage.data
pkg
*~
*watchr.rb
log/*
.rvmrc
.bundle
Gemfile.lock
.yardoc
doc/
tmp
2 changes: 2 additions & 0 deletions .rspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
--color
--format=progress
7 changes: 7 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
rvm:
- 1.8.7
- ree
- 1.9.2
- 1.9.3
env:
- DEFER_GC=false
1 change: 1 addition & 0 deletions .yardopts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
--no-private --title "Formtastic Documentation" --markup markdown --quiet
308 changes: 308 additions & 0 deletions CHANGELOG

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
source :rubygems

gem 'rake', '< 0.9'

gemspec
2 changes: 1 addition & 1 deletion MIT-LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2008 Justin French
Copyright (c) 2008-2010 Justin French

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
Expand Down
489 changes: 269 additions & 220 deletions README.textile

Large diffs are not rendered by default.

17 changes: 6 additions & 11 deletions RELEASE_PROCESS
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
git status # check you have a clean working directory
rake version:bump:minor # or patch or major, commits the change
rake gemspec # to generate the new gemspec file
git add formtastic.gemspec # stage changes
git commit -am "new gemspec" # commit and describe the reason for the new gem
git tag -am "0.2.3" 0.2.3 # tag the new version in the code base too
git log 0.2.2..0.2.3 # check the log since last tag
gem build formtastic.gemspec # build the gem
gem push formtastic-0.2.3.gem # publish the gem
git push # push to github
git push --tags # push the tags up to remote too
# edit version.rb
git ci -am "version bump" # commit changes
git tag X.X.X # tag the new version in the code base too
gem build formtastic.gemspec # build the gem
gem push formtastic-X.X.X.gem # publish the gem
git push && git push --tags # push to remote
115 changes: 33 additions & 82 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1,71 +1,12 @@
# coding: utf-8
# encoding: utf-8
require 'rubygems'
require 'rake'
require 'rake/rdoctask'
require 'rspec/core/rake_task'
require 'tasks/verify_rcov'
require 'bundler'

begin
require 'spec/rake/spectask'
rescue LoadError
begin
gem 'rspec-rails', '>= 1.0.0'
require 'spec/rake/spectask'
rescue LoadError
puts "[formtastic:] RSpec - or one of it's dependencies - is not available. Install it with: sudo gem install rspec-rails"
end
end

begin
GEM = "formtastic"
AUTHOR = "Justin French"
EMAIL = "justin@indent.com.au"
SUMMARY = "A Rails form builder plugin/gem with semantically rich and accessible markup"
HOMEPAGE = "http://github.com/justinfrench/formtastic/tree/master"
INSTALL_MESSAGE = %q{
========================================================================
Thanks for installing Formtastic!
------------------------------------------------------------------------
You can now (optionally) run the generator to copy some stylesheets and
a config initializer into your application:
./script/generate formtastic

To generate some semantic form markup for your existing models, just run:
./script/generate form MODEL_NAME

Find out more and get involved:
http://github.com/justinfrench/formtastic
http://groups.google.com.au/group/formtastic
========================================================================
}

gem 'jeweler', '>= 1.0.0'
require 'jeweler'

Jeweler::Tasks.new do |s|
s.name = GEM
s.summary = SUMMARY
s.email = EMAIL
s.homepage = HOMEPAGE
s.description = SUMMARY
s.author = AUTHOR
s.post_install_message = INSTALL_MESSAGE

s.require_path = 'lib'
s.files = %w(MIT-LICENSE README.textile Rakefile) + Dir.glob("{rails,lib,generators,spec}/**/*")

# Runtime dependencies: When installing Formtastic these will be checked if they are installed.
# Will be offered to install these if they are not already installed.
s.add_dependency 'activesupport', '>= 2.3.0'
s.add_dependency 'actionpack', '>= 2.3.0'

# Development dependencies. Not installed by default.
# Install with: sudo gem install formtastic --development
s.add_development_dependency 'rspec-rails', '>= 1.2.6'
s.add_development_dependency 'rspec_tag_matchers', '>= 1.0.0'
end

Jeweler::GemcutterTasks.new
rescue LoadError
puts "[formtastic:] Jeweler - or one of its dependencies - is not available. Install it with: sudo gem install jeweler -s http://gemcutter.org"
end
Bundler::GemHelper.install_tasks

desc 'Default: run unit specs.'
task :default => :spec
Expand All @@ -79,23 +20,33 @@ Rake::RDocTask.new(:rdoc) do |rdoc|
rdoc.rdoc_files.include('lib/**/*.rb')
end

if defined?(Spec)
desc 'Test the formtastic plugin.'
Spec::Rake::SpecTask.new('spec') do |t|
t.spec_files = FileList['spec/**/*_spec.rb']
t.spec_opts = ["-c"]
end
desc 'Test the formtastic plugin.'
RSpec::Core::RakeTask.new('spec') do |t|
t.pattern = FileList['spec/**/*_spec.rb']
end

desc 'Test the formtastic plugin with specdoc formatting and colors'
Spec::Rake::SpecTask.new('specdoc') do |t|
t.spec_files = FileList['spec/**/*_spec.rb']
t.spec_opts = ["--format specdoc", "-c"]
end
desc 'Test the formtastic inputs.'
RSpec::Core::RakeTask.new('spec:inputs') do |t|
t.pattern = FileList['spec/inputs/*_spec.rb']
end

desc 'Test the formtastic plugin with specdoc formatting and colors'
RSpec::Core::RakeTask.new('specdoc') do |t|
t.pattern = FileList['spec/**/*_spec.rb']
end

desc 'Run all examples with RCov'
RSpec::Core::RakeTask.new('rcov') do |t|
t.pattern = FileList['spec/**/*_spec.rb']
t.rcov = true
t.rcov_opts = %w(--exclude gems/*,spec/*,.bundle/*, --aggregate coverage.data)
end

RCov::VerifyTask.new(:verify_coverage) do |t|
t.require_exact_threshold = false
t.threshold = (RUBY_VERSION == "1.8.7" ? 95 : 0)
end

desc "Run all examples with RCov"
Spec::Rake::SpecTask.new('examples_with_rcov') do |t|
t.spec_files = FileList['spec/**/*_spec.rb']
t.rcov = true
t.rcov_opts = ['--exclude', 'spec,Library']
end
desc "Run all examples and verify coverage"
task :spec_and_verify_coverage => [:rcov, :verify_coverage] do
end
5 changes: 0 additions & 5 deletions VERSION.yml

This file was deleted.

Loading