Commit Graph

81 Commits

Author SHA1 Message Date
Iuri Fernandes
5eeaf6dd24 Rename 'exp' snippet to more common snippet.
The old 'exp' with a block expectation becomes 'expb'.
2013-10-29 22:10:31 -03:00
Yamamoto Yuji
4526fcb19a Fix typo in ruby.snippets: snippets => snippets 2013-10-13 18:49:26 +09:00
Marc Weber
6a38707185 fix css_block 2013-10-12 06:49:20 +02:00
Bruno Sutic
0fd6eefc21 Ruby strf snippet
strf snippet contains a template that should format time in the same way
as `Time.now` default output.
2013-09-30 01:16:53 +02:00
Bruno Sutic
83345ba694 Improve ruby desc snippet
Instead of dummy text, first argument for `describe` becomes a class
name derived from a file name. Example:
file:              some_class_spec.rb
describe argument: SomeClass
2013-09-21 12:18:02 +02:00
Adnan Zafar
7f9c4f5807 Modify snippets to support zero tabstop 2013-09-05 14:53:52 -04:00
Bruno Sutic
ff7606bdc5 Ruby pry snippet inserts only one line
Problem: pry snippet inserts 2 lines instead of one. The other line is
used as a document header margin (for source code readability).
2013-08-21 16:31:32 -07:00
Bruno Sutic
0f452a4875 Fix ruby super_call snippet
There was no tab in the beginning of the line and snippet wasn't
working.
2013-08-17 13:14:05 -07:00
carme
db20c6140b fixed conflict ruby snippets. 2013-08-14 22:07:31 +09:00
Marc Weber
8024cfcecd while -> wh, see #230 and README.md 2013-08-08 11:24:27 +02:00
Marc Weber
c0cddc9f86 ruby: count from 1, not 0 (I think its very important to think about the name)
add static_var snippet
2013-08-08 09:28:08 +02:00
Marc Weber
533fe487a1 ruby snippets:
use do dov for both engines
drop #TODO comments

changing defaults is bad, but I expect ruby folks to expect do to type
do ..

doo has the advantage to get a completion popup .. but its too long to
type

The UtiSnips do snippet didn't make sense: the nested placeholder still
didn't remove the space after the "do" when deleting it - so it was
written badly. Could be fixed, by why bother?

Thus learn do and dov and be happy forever. Would Do be a better choice
(upper case chars?) Don't know. This was used by UltiSnips.

Comment on this commit if you don't like this choice.
2013-07-08 23:47:14 +02:00
Marc Weber
80697bea6f replace Filename by vim_snippets#Filename and document it
It doesn't make sense that all snippet engines have to
keep this function somewhere
2013-07-08 23:47:14 +02:00
Iuri Fernandes
3f956a0f48 Add ruby snippets for "it { should respond_to :method }" 2013-07-05 11:17:21 -03:00
babybeasimple
6fbe9913f2 refactor (ruby.snippet) new pattern for rspec snippets 2013-06-30 15:49:17 +04:00
Vladimir Rybas
9573b83de4 Duplicated Ruby snippet sel 2013-06-29 08:42:22 +07:00
aisensiy
dc336dcd49 ruby test assert_diff with a chance to set value 2013-06-27 16:00:14 +08:00
Iuri Fernandes
acb135cfad Refactor some ruby rspec/shoulda snippets and add new ones 2013-06-23 12:58:54 -03:00
Iuri Fernandes
efb571e2c5 Place together ruby on rails migrations snippets 2013-06-23 12:58:30 -03:00
Marc Weber
68532499e5 Merge branch 'shoulda_matchers' of git://github.com/babybeasimple/vim-snippets into babybeasimple-shoulda_matchers
* 'shoulda_matchers' of git://github.com/babybeasimple/vim-snippets:
  add rspec shoulda matchers snippets
  make rspec section definiton comment more readable
  move accepts_nested_attributes_for to attributes section

Conflicts:
	snippets/ruby.snippets
2013-06-23 13:33:47 +02:00
Marc Weber
9ffd166a55 fixes, add link to discussion page 2013-06-23 13:31:33 +02:00
babybeasimple
e3e7ab1b45 add rspec shoulda matchers snippets 2013-06-23 14:45:32 +04:00
babybeasimple
c3403b2daa make rspec section definiton comment more readable 2013-06-23 14:44:41 +04:00
babybeasimple
673415f2d0 move accepts_nested_attributes_for to attributes section 2013-06-23 14:15:22 +04:00
Marc Weber
344ac6ea2c new policies for if, eif, el
What about wh(ile)?
drop some placeholder comments which don't add (enough) value to keep
for patterns used very often.
2013-06-23 02:30:26 +02:00
DSIW
64c819f892 Add instance variable cache snippet to ruby snippets 2013-06-22 16:26:11 +02:00
DSIW
8c2ad98d54 Use lambda in scopes for rails snippets 2013-06-22 16:26:10 +02:00
DSIW
34ead4e3bf Rename wants to format in respond_to blocks in ruby snippets 2013-06-22 16:26:00 +02:00
DSIW
609ac9ecff Add reduce snippets to ruby snippets 2013-06-22 15:33:54 +02:00
DSIW
3699e8654f Add prot and priv to ruby snipppets 2013-06-22 15:33:53 +02:00
DSIW
46ba1032e4 Add snippet descm for rspec 2013-06-22 15:32:46 +02:00
DSIW
1a4fc2561d Fix snippet exp for rspec 2013-06-22 15:32:46 +02:00
DSIW
9e31911a79 Add snippet raise for rspec 2013-06-22 15:32:46 +02:00
DSIW
f222c1b806 Add snippet for initialize method for ruby 2013-06-22 15:32:46 +02:00
DSIW
f89f57e359 Update snippet s. and remove snippet s for rspec 2013-06-22 15:32:46 +02:00
DSIW
fdb7185a0b Add snippet s for rspec 2013-06-22 15:32:46 +02:00
DSIW
6a459fdc56 Add snippet itsn for rspec 2013-06-22 15:32:45 +02:00
George Lee
2ed243e2f7 add in migration index / simple_form input 2013-06-19 11:27:01 +08:00
Iuri Fernandes
bc17b3d023 Fix ruby snippets with the same name 2013-06-04 10:30:10 -03:00
babybeasimple
234ddb7e70 refactor ruby on rails validations with new style 2013-05-31 23:57:19 +04:00
Iuri Fernandes
1d04040a19 Add has_one ... dependent: ... ruby snippet 2013-05-19 18:00:59 -03:00
Iuri Fernandes
38cb74198d Add ruby snippet for accepts_nested_attributes_for 2013-05-13 10:32:32 -03:00
Iuri Fernandes
d01c475b29 Add let! and remove brackets from let.
The user must choose which block syntax to be used.
2013-05-03 10:26:29 -03:00
Iuri Fernandes
c89448fcad Add ruby snippet btp for polymorphic belongs_to 2013-05-02 10:09:31 -03:00
Iuri Fernandes
0312e12c29 Refactor old migration creation snippet and an alternative one 2013-04-28 15:51:55 -03:00
Iuri Fernandes
76f2ff8337 Remove empty column in mct snippet 2013-04-28 15:50:34 -03:00
Iuri Fernandes
3391280570 Refactor snippet to create new collumn in a migration(mccc -> mnc) 2013-04-28 15:47:48 -03:00
indi
7238147272 add reqr to expand to require_relative 2013-03-17 20:54:25 +01:00
Marc Weber
dfe410306b merge changes from pull/179 2013-03-17 20:46:38 +01:00
Mike Foley
0fbb89d908 added delegate to ruby.snippets 2013-03-01 14:48:50 -08:00