From 1f88e866f306a78cc7b981a35b1c09ebb794b99f Mon Sep 17 00:00:00 2001 From: Xavier Noria Date: Tue, 29 Nov 2011 22:19:48 +0100 Subject: [PATCH] adds "key" to all snippets YASnippet no longer use filenames as triggers, see https://github.com/capitaomorte/yasnippet/commit/238e46a020fc064b6f9a897c841b8bae1009026e --- !env | 1 + # | 1 + : | 1 + Array | 1 + Comp | 1 + Dir | 1 + Enum | 1 + File | 1 + File.1 | 1 + File.2 | 1 + Forw- | 1 + Hash | 1 + Md | 1 + Ml | 1 + Pn- | 1 + Yd- | 1 + Yl- | 1 + aa | 1 + ae | 1 + ako | 1 + all | 1 + am | 1 + ann | 1 + any | 1 + app | 1 + ar | 1 + ars | 1 + art | 1 + as | 1 + ase | 1 + asid | 1 + asio | 1 + asko | 1 + asm | 1 + asn | 1 + asne | 1 + asnm | 1 + asnn | 1 + asnr | 1 + asns | 1 + asnt | 1 + aso | 1 + asr | 1 + asrt | 1 + ass | 1 + ass.1 | 1 + ast | 1 + begin | 1 + bm | 1 + bm- | 1 + bt | 1 + case | 1 + cl | 1 + cla | 1 + cla- | 1 + cla.1 | 1 + cla.2 | 1 + cla.3 | 1 + cla.4 | 1 + clafn | 1 + class | 1 + classify | 1 + cls | 1 + col | 1 + collect | 1 + dee | 1 + deec | 1 + def | 1 + defd | 1 + defds | 1 + defmm | 1 + defs | 1 + deft | 1 + deli | 1 + desc | 1 + det | 1 + do | 1 + dow | 1 + ea | 1 + eab | 1 + eac | 1 + eac- | 1 + eai | 1 + eak | 1 + eal | 1 + eap | 1 + eas- | 1 + eav | 1 + eawi | 1 + fet | 1 + fil | 1 + filedn | 1 + fin | 1 + fina | 1 + fl | 1 + flao | 1 + flsh | 1 + forin | 1 + gre | 1 + gsu | 1 + hm | 1 + ho | 1 + i | 1 + if | 1 + ife | 1 + inj | 1 + inject | 1 + lam | 1 + logi | 1 + loo | 1 + map | 1 + mapwi- | 1 + max | 1 + min | 1 + mm | 1 + mod | 1 + mod.1 | 1 + module | 1 + nam | 1 + ope | 1 + opt | 1 + optp | 1 + par | 1 + patfh | 1 + pend | 1 + r | 1 + ra | 1 + ral | 1 + ran | 1 + rb | 1 + rcea | 1 + rcec | 1 + rceca | 1 + rea | 1 + reai | 1 + rec | 1 + reca | 1 + recai | 1 + rej | 1 + reject | 1 + rep | 1 + req | 1 + res | 1 + reve | 1 + rf | 1 + rfu | 1 + ri | 1 + ril | 1 + rit | 1 + rl | 1 + rn | 1 + rns | 1 + rp | 1 + rpc | 1 + rpl | 1 + rpo | 1 + rps | 1 + rreq | 1 + rspec-mode/aft | 1 + rspec-mode/annot | 1 + rspec-mode/anr | 1 + rspec-mode/anra | 1 + rspec-mode/anrb | 1 + rspec-mode/ant | 1 + rspec-mode/any | 1 + rspec-mode/atl | 1 + rspec-mode/atm | 1 + rspec-mode/bef | 1 + rspec-mode/befm | 1 + rspec-mode/bfe | 1 + rspec-mode/conn | 1 + rspec-mode/des | 1 + rspec-mode/desc | 1 + rspec-mode/desrc.delete | 1 + rspec-mode/desrc.get | 1 + rspec-mode/desrc.post | 1 + rspec-mode/desrc.put | 1 + rspec-mode/dest | 1 + rspec-mode/dests | 1 + rspec-mode/ex | 1 + rspec-mode/fm | 1 + rspec-mode/fmar | 1 + rspec-mode/it | 1 + rspec-mode/mat | 1 + rspec-mode/mocw.flexmock | 1 + rspec-mode/mocw.mocha | 1 + rspec-mode/mocw.rr | 1 + rspec-mode/on | 1 + rspec-mode/resh | 1 + rspec-mode/sce | 1 + rspec-mode/set | 1 + rspec-mode/sh= | 1 + rspec-mode/shb | 1 + rspec-mode/shbc | 1 + rspec-mode/shbio | 1 + rspec-mode/shbko | 1 + rspec-mode/shbr | 1 + rspec-mode/shbs | 1 + rspec-mode/she.eql | 1 + rspec-mode/she.equal | 1 + rspec-mode/shh | 1 + rspec-mode/shhal | 1 + rspec-mode/shham | 1 + rspec-mode/shhr | 1 + rspec-mode/shm.match | 1 + rspec-mode/shn= | 1 + rspec-mode/shnb | 1 + rspec-mode/shnbc | 1 + rspec-mode/shnbio | 1 + rspec-mode/shnbko | 1 + rspec-mode/shnbr | 1 + rspec-mode/shnbs | 1 + rspec-mode/shne.eql | 1 + rspec-mode/shne.equal | 1 + rspec-mode/shnm.match | 1 + rspec-mode/shnp | 1 + rspec-mode/shnr | 1 + rspec-mode/shnre | 1 + rspec-mode/shnrt | 1 + rspec-mode/shns | 1 + rspec-mode/shnt | 1 + rspec-mode/shp | 1 + rspec-mode/shr | 1 + rspec-mode/shre | 1 + rspec-mode/shrt | 1 + rspec-mode/shrt.redirect | 1 + rspec-mode/shrt.render | 1 + rspec-mode/shrt.respond | 1 + rspec-mode/shs | 1 + rspec-mode/sht | 1 + rspec-mode/sto | 1 + rspec-mode/stub | 1 + rspec-mode/tw | 1 + rspec-mode/wia | 1 + rt | 1 + rtl | 1 + rtlt | 1 + rts | 1 + rw | 1 + sca | 1 + sel | 1 + select | 1 + ses | 1 + sinc | 1 + sor | 1 + sorb | 1 + sr | 1 + ste | 1 + sub | 1 + task | 1 + task.1 | 1 + tc | 1 + tim | 1 + tra | 1 + ts | 1 + unif | 1 + unless | 1 + until | 1 + upt | 1 + usai | 1 + usau | 1 + va | 1 + vc | 1 + ve | 1 + vf | 1 + vi | 1 + vn | 1 + vp | 1 + vu | 1 + w | 1 + when | 1 + while | 1 + xml- | 1 + xpa | 1 + y | 1 + zip | 1 + { | 1 + 277 files changed, 277 insertions(+) diff --git a/!env b/!env index bc7195e..e489294 100644 --- a/!env +++ b/!env @@ -1,3 +1,4 @@ #name : /usr/bin/env ruby +# key: !env # -- #!/usr/bin/env ruby diff --git a/# b/# index 7d21bb4..945200a 100644 --- a/# +++ b/# @@ -1,3 +1,4 @@ #name : # => +# key: # # -- # => \ No newline at end of file diff --git a/: b/: index c340161..b797b7b 100644 --- a/: +++ b/: @@ -1,3 +1,4 @@ #name : :key => "value" +# key: : # -- :${key} => ${"value"} \ No newline at end of file diff --git a/Array b/Array index 04dfa8d..a55fd5d 100644 --- a/Array +++ b/Array @@ -1,4 +1,5 @@ #name : Array.new(10) { |i| ... } #group : Arrays +# key: Array # -- Array.new(${10}) { |${i}| $0 } \ No newline at end of file diff --git a/Comp b/Comp index 9602d59..0108f7b 100644 --- a/Comp +++ b/Comp @@ -1,4 +1,5 @@ #name : include Comparable; def <=> ... end +# key: Comp # -- include Comparable diff --git a/Dir b/Dir index 8ede61e..5d03610 100644 --- a/Dir +++ b/Dir @@ -1,4 +1,5 @@ #name : Dir.glob("..") do |file| .. end #group : Files +# key: Dir # -- Dir.glob(${1:"dir/glob/*}") { |${2:file}| $0 } \ No newline at end of file diff --git a/Enum b/Enum index c78e973..0d39444 100644 --- a/Enum +++ b/Enum @@ -1,5 +1,6 @@ # This was cloned from a TextMate bundle for yasnippet. #group : Enumerables +# key: Enum # -- include Enumerable diff --git a/File b/File index 5ac3d9d..226dbbf 100644 --- a/File +++ b/File @@ -1,4 +1,5 @@ # This was cloned from a TextMate bundle for yasnippet. #group : Files +# key: File # -- File.foreach(${1:"${2:path/to/file}"}) { |${3:line}| $0 } \ No newline at end of file diff --git a/File.1 b/File.1 index 1c16644..a6542e2 100644 --- a/File.1 +++ b/File.1 @@ -1,4 +1,5 @@ # This was cloned from a TextMate bundle for yasnippet. #group : Files +# key: File.1 # -- File.open(${1:"${2:path/to/file}"}${3/(^[rwab+]+$)|.*/(?1:, ")/}${3:w}${3/(^[rwab+]+$)|.*/(?1:")/}) { |${4:file}| $0 } \ No newline at end of file diff --git a/File.2 b/File.2 index 175c49d..5f78ddd 100644 --- a/File.2 +++ b/File.2 @@ -1,4 +1,5 @@ # This was cloned from a TextMate bundle for yasnippet. #group : Files +# key: File.2 # -- File.read(${1:"${2:path/to/file}"}) \ No newline at end of file diff --git a/Forw- b/Forw- index c629ff9..ea352f1 100644 --- a/Forw- +++ b/Forw- @@ -1,3 +1,4 @@ # This was cloned from a TextMate bundle for yasnippet. +# key: Forw- # -- extend Forwardable \ No newline at end of file diff --git a/Hash b/Hash index 3aa3ae3..ee071e9 100644 --- a/Hash +++ b/Hash @@ -1,4 +1,5 @@ # This was cloned from a TextMate bundle for yasnippet. #group : Hashes +# key: Hash # -- Hash.new { |${1:hash}, ${2:key}| ${1:hash}[${2:key}] = $0 } \ No newline at end of file diff --git a/Md b/Md index 92f4b87..7cf85f9 100644 --- a/Md +++ b/Md @@ -1,3 +1,4 @@ # This was cloned from a TextMate bundle for yasnippet. +# key: Md # -- File.open(${1:"${2:path/to/file}.dump"}, "w") { |${3:file}| Marshal.dump(${4:obj}, ${3:file}) } \ No newline at end of file diff --git a/Ml b/Ml index 97bf511..708359f 100644 --- a/Ml +++ b/Ml @@ -1,3 +1,4 @@ # This was cloned from a TextMate bundle for yasnippet. +# key: Ml # -- File.open(${1:"${2:path/to/file}.dump"}) { |${3:file}| Marshal.load(${3:file}) } \ No newline at end of file diff --git a/Pn- b/Pn- index bee9a44..ea947df 100644 --- a/Pn- +++ b/Pn- @@ -1,3 +1,4 @@ # This was cloned from a TextMate bundle for yasnippet. +# key: Pn- # -- PStore.new(${1:"${2:file_name.pstore}"}) \ No newline at end of file diff --git a/Yd- b/Yd- index 0b444be..2782c47 100644 --- a/Yd- +++ b/Yd- @@ -1,3 +1,4 @@ # This was cloned from a TextMate bundle for yasnippet. +# key: Yd- # -- File.open(${1:"${2:path/to/file}.yaml"}, "w") { |${3:file}| YAML.dump(${4:obj}, ${3:file}) } \ No newline at end of file diff --git a/Yl- b/Yl- index 09d6946..23478b5 100644 --- a/Yl- +++ b/Yl- @@ -1,3 +1,4 @@ #name : YAML.load(file) +# key: Yl- # -- File.open("${1:path/to/file.yaml}") { |${2:file}| YAML.load(${2:file}) } \ No newline at end of file diff --git a/aa b/aa index 18e8f75..b4f1786 100644 --- a/aa +++ b/aa @@ -1,3 +1,4 @@ #name : attr_accesor :... +# key: aa # -- attr_accessor :$0 \ No newline at end of file diff --git a/ae b/ae index e365c3f..78905cf 100644 --- a/ae +++ b/ae @@ -1,4 +1,5 @@ #name : assert_equal ... , ... #group: assert +# key: ae # -- assert_equal ${expected}, ${actual} diff --git a/ako b/ako index b4f34f8..9cbfa84 100644 --- a/ako +++ b/ako @@ -1,4 +1,5 @@ #name : assert_kind_of ... , ... #group: assert +# key: ako # -- assert_kind_of ${class}, ${object} diff --git a/all b/all index e794455..9d27b00 100644 --- a/all +++ b/all @@ -1,4 +1,5 @@ #name : all? { |...| ... } #group : Enumerables +# key: all # -- all? { |${e}| $0 } \ No newline at end of file diff --git a/am b/am index 20594fd..35798b4 100644 --- a/am +++ b/am @@ -1,3 +1,4 @@ #name : alias_method new, old +# key: am # -- alias_method :${new_name}, :${old_name} \ No newline at end of file diff --git a/ann b/ann index b6202a5..9911d68 100644 --- a/ann +++ b/ann @@ -1,4 +1,5 @@ #name : assert_not_nil ... #group: assert +# key: ann # -- assert_not_nil ${object} diff --git a/any b/any index 849c04f..90b9460 100644 --- a/any +++ b/any @@ -1,4 +1,5 @@ #name : any? { |...| ... } #group : Enumerables +# key: any # -- any? { |${e}| $0 } \ No newline at end of file diff --git a/app b/app index 7bda767..6e6cf6b 100644 --- a/app +++ b/app @@ -1,4 +1,5 @@ #name : if __FILE__ == $PROGRAM_NAME ... end +# key: app # -- if __FILE__ == $PROGRAM_NAME $0 diff --git a/ar b/ar index a372d62..ddc4670 100644 --- a/ar +++ b/ar @@ -1,3 +1,4 @@ #name : attr_reader :... +# key: ar # -- attr_reader :$0 \ No newline at end of file diff --git a/ars b/ars index 1fd68d5..3ee6f03 100644 --- a/ars +++ b/ars @@ -1,4 +1,5 @@ #name : assert_response : ... #group: assert +# key: ars # -- assert_response :${success} diff --git a/art b/art index 58085fc..8a055dc 100644 --- a/art +++ b/art @@ -1,4 +1,5 @@ #name : assert_redirected_to :controller => " ... " #group: assert +# key: art # -- assert_redirected_to :controller => "${controller}" diff --git a/as b/as index 67f8705..afb8a8a 100644 --- a/as +++ b/as @@ -1,4 +1,5 @@ # This was cloned from a TextMate bundle for yasnippet. #group : Tests +# key: as # -- assert`snippet_paren.rb`${1:test}, "${0:Failure message.}"`snippet_paren.rb end` \ No newline at end of file diff --git a/ase b/ase index 94474e9..4b7e5f0 100644 --- a/ase +++ b/ase @@ -1,4 +1,5 @@ # This was cloned from a TextMate bundle for yasnippet. #group : Tests +# key: ase # -- assert_equal`snippet_paren.rb`${1:expected}, ${0:actual}`snippet_paren.rb end` \ No newline at end of file diff --git a/asid b/asid index b87be44..288fe0a 100644 --- a/asid +++ b/asid @@ -1,4 +1,5 @@ # This was cloned from a TextMate bundle for yasnippet. #group : Tests +# key: asid # -- assert_in_delta`snippet_paren.rb`${1:expected_float}, ${2:actual_float}, ${0:2 ** -20}`snippet_paren.rb end` \ No newline at end of file diff --git a/asio b/asio index 2b8710d..dfb9640 100644 --- a/asio +++ b/asio @@ -1,4 +1,5 @@ # This was cloned from a TextMate bundle for yasnippet. #group : Tests +# key: asio # -- assert_instance_of`snippet_paren.rb`${1:ExpectedClass}, ${0:actual_instance}`snippet_paren.rb end` \ No newline at end of file diff --git a/asko b/asko index a65d37d..fcf675c 100644 --- a/asko +++ b/asko @@ -1,4 +1,5 @@ # This was cloned from a TextMate bundle for yasnippet. #group : Tests +# key: asko # -- assert_kind_of`snippet_paren.rb`${1:ExpectedKind}, ${0:actual_instance}`snippet_paren.rb end` \ No newline at end of file diff --git a/asm b/asm index d747575..1b4b00d 100644 --- a/asm +++ b/asm @@ -1,4 +1,5 @@ # This was cloned from a TextMate bundle for yasnippet. #group : Tests +# key: asm # -- assert_match`snippet_paren.rb`/${1:expected_pattern}/, ${0:actual_string}`snippet_paren.rb end` \ No newline at end of file diff --git a/asn b/asn index 260c03a..7203e66 100644 --- a/asn +++ b/asn @@ -1,4 +1,5 @@ # This was cloned from a TextMate bundle for yasnippet. #group : Tests +# key: asn # -- assert_nil`snippet_paren.rb`${0:instance}`snippet_paren.rb end` \ No newline at end of file diff --git a/asne b/asne index e10a5cf..7f7d45d 100644 --- a/asne +++ b/asne @@ -1,4 +1,5 @@ # This was cloned from a TextMate bundle for yasnippet. #group : Tests +# key: asne # -- assert_not_equal`snippet_paren.rb`${1:unexpected}, ${0:actual}`snippet_paren.rb end` \ No newline at end of file diff --git a/asnm b/asnm index 67659d4..adf7761 100644 --- a/asnm +++ b/asnm @@ -1,4 +1,5 @@ # This was cloned from a TextMate bundle for yasnippet. #group : Tests +# key: asnm # -- assert_no_match`snippet_paren.rb`/${1:unexpected_pattern}/, ${0:actual_string}`snippet_paren.rb end` \ No newline at end of file diff --git a/asnn b/asnn index 05a89bd..6f7f203 100644 --- a/asnn +++ b/asnn @@ -1,4 +1,5 @@ # This was cloned from a TextMate bundle for yasnippet. #group : Tests +# key: asnn # -- assert_not_nil`snippet_paren.rb`${0:instance}`snippet_paren.rb end` \ No newline at end of file diff --git a/asnr b/asnr index 964bd77..83fc100 100644 --- a/asnr +++ b/asnr @@ -1,4 +1,5 @@ # This was cloned from a TextMate bundle for yasnippet. #group : Tests +# key: asnr # -- assert_nothing_raised(${1:Exception}) { $0 } \ No newline at end of file diff --git a/asns b/asns index cae0ba4..7ce235d 100644 --- a/asns +++ b/asns @@ -1,4 +1,5 @@ # This was cloned from a TextMate bundle for yasnippet. #group : Tests +# key: asns # -- assert_not_same`snippet_paren.rb`${1:unexpected}, ${0:actual}`snippet_paren.rb end` \ No newline at end of file diff --git a/asnt b/asnt index cae34b9..9f9cd50 100644 --- a/asnt +++ b/asnt @@ -1,4 +1,5 @@ # This was cloned from a TextMate bundle for yasnippet. #group : Tests +# key: asnt # -- assert_nothing_thrown { $0 } \ No newline at end of file diff --git a/aso b/aso index 72c4d87..bbe1b99 100644 --- a/aso +++ b/aso @@ -1,4 +1,5 @@ # This was cloned from a TextMate bundle for yasnippet. #group : Tests +# key: aso # -- assert_operator`snippet_paren.rb`${1:left}, :${2:operator}, ${0:right}`snippet_paren.rb end` \ No newline at end of file diff --git a/asr b/asr index 632e0df..95d67f4 100644 --- a/asr +++ b/asr @@ -1,4 +1,5 @@ # This was cloned from a TextMate bundle for yasnippet. #group : Tests +# key: asr # -- assert_raise(${1:Exception}) { $0 } \ No newline at end of file diff --git a/asrt b/asrt index f29ea57..5a6391e 100644 --- a/asrt +++ b/asrt @@ -1,4 +1,5 @@ # This was cloned from a TextMate bundle for yasnippet. #group : Tests +# key: asrt # -- assert_respond_to`snippet_paren.rb`${1:object}, :${0:method}`snippet_paren.rb end` \ No newline at end of file diff --git a/ass b/ass index 010e436..7079aa7 100644 --- a/ass +++ b/ass @@ -1,4 +1,5 @@ # This was cloned from a TextMate bundle for yasnippet. #group : Tests +# key: ass # -- assert_same`snippet_paren.rb`${1:expected}, ${0:actual}`snippet_paren.rb end` \ No newline at end of file diff --git a/ass.1 b/ass.1 index 9e33ada..877788b 100644 --- a/ass.1 +++ b/ass.1 @@ -1,4 +1,5 @@ # This was cloned from a TextMate bundle for yasnippet. #group : Tests +# key: ass.1 # -- assert_send`snippet_paren.rb`[${1:object}, :${2:message}, ${0:args}]`snippet_paren.rb end` \ No newline at end of file diff --git a/ast b/ast index 5fd3931..855effe 100644 --- a/ast +++ b/ast @@ -1,4 +1,5 @@ # This was cloned from a TextMate bundle for yasnippet. #group : Tests +# key: ast # -- assert_throws(:${1:expected}) { $0 } \ No newline at end of file diff --git a/begin b/begin index 063b2ee..6a2f7b7 100644 --- a/begin +++ b/begin @@ -1,5 +1,6 @@ #name : begin ... rescue ... end #group : Blocks +# key: begin # -- begin $3 diff --git a/bm b/bm index 934ff85..c92641e 100644 --- a/bm +++ b/bm @@ -1,4 +1,5 @@ #name : Benchmark.bmbm(...) do ... end +# key: bm # -- Benchmark.bmbm(${1:10}) do |x| $0 diff --git a/bm- b/bm- index 5cf6951..224f6e0 100644 --- a/bm- +++ b/bm- @@ -1,4 +1,5 @@ # This was cloned from a TextMate bundle for yasnippet. +# key: bm- # -- TESTS = ${1:10_000} Benchmark.bmbm do |results| diff --git a/bt b/bt index 467b5c2..60ff75f 100644 --- a/bt +++ b/bt @@ -1,4 +1,5 @@ #name : belongs_to : ... #group: ActiveRecord +# key: bt # -- belongs_to :${class} diff --git a/case b/case index 3b6118e..c699305 100644 --- a/case +++ b/case @@ -1,5 +1,6 @@ #name : case ... end #group : Conditions +# key: case # -- case ${1:object} when ${2:condition} diff --git a/cl b/cl index 0fffa2d..5225eb9 100644 --- a/cl +++ b/cl @@ -1,3 +1,4 @@ #name : classify { |...| ... } +# key: cl # -- classify { |${e}| $0 } \ No newline at end of file diff --git a/cla b/cla index 81ccf45..189b2c9 100644 --- a/cla +++ b/cla @@ -1,5 +1,6 @@ #name : class << self ... end #group : definitions +# key: cla # -- class << ${self} $0 diff --git a/cla- b/cla- index fe37149..536073d 100644 --- a/cla- +++ b/cla- @@ -1,5 +1,6 @@ #name : class .. < DelegateClass .. initialize .. end (class) #group : definitions +# key: cla- # -- class ${1:ClassName} < DelegateClass(${2:ParentClass}) def initialize(${3:args}) diff --git a/cla.1 b/cla.1 index 7cb8d33..77e3942 100644 --- a/cla.1 +++ b/cla.1 @@ -1,5 +1,6 @@ # This was cloned from a TextMate bundle for yasnippet. #group : definitions +# key: cla.1 # -- ${1:${TM_FILENAME/(?:\A|_)([A-Za-z0-9]+)(?:\.rb)?/(?2::\u$1)/g}} = Struct.new(:${2:attr_names}) do def ${3:method_name} diff --git a/cla.2 b/cla.2 index 6401f20..960d770 100644 --- a/cla.2 +++ b/cla.2 @@ -1,5 +1,6 @@ # This was cloned from a TextMate bundle for yasnippet. #group : definitions +# key: cla.2 # -- class ${1:${TM_FILENAME/(?:\A|_)([A-Za-z0-9]+)(?:\.rb)?/(?2::\u$1)/g}} $0 diff --git a/cla.3 b/cla.3 index f266e89..41793a5 100644 --- a/cla.3 +++ b/cla.3 @@ -1,5 +1,6 @@ # This was cloned from a TextMate bundle for yasnippet. #group : definitions +# key: cla.3 # -- class ${1:${TM_FILENAME/(?:\A|_)([A-Za-z0-9]+)(?:\.rb)?/(?2::\u$1)/g}} def initialize${2/(^.*?\S.*)|.*/(?1:\()/}${2:args}${2/(^.*?\S.*)|.*/(?1:\))/} diff --git a/cla.4 b/cla.4 index e00dc50..db9142b 100644 --- a/cla.4 +++ b/cla.4 @@ -1,5 +1,6 @@ # This was cloned from a TextMate bundle for yasnippet. #group : definitions +# key: cla.4 # -- class ${1:BlankSlate} instance_methods.each { |meth| undef_method(meth) unless meth =~ /\A__/ } diff --git a/clafn b/clafn index f449df1..8a43542 100644 --- a/clafn +++ b/clafn @@ -1,3 +1,4 @@ #name : class_from_name() +# key: clafn # -- split("::").inject(Object) { |par, const| par.const_get(const) } \ No newline at end of file diff --git a/class b/class index 4ce8a0b..2b57480 100644 --- a/class +++ b/class @@ -1,6 +1,7 @@ #name : class ... end #contributor : hitesh #group : definitions +# key: class # -- class ${1:$ (let ((fn (capitalize (file-name-nondirectory diff --git a/classify b/classify index 2378afa..debcc83 100644 --- a/classify +++ b/classify @@ -1,4 +1,5 @@ #name : classify { |...| ... } #group : collections +# key: classify # -- classify { |${e}| $0 } \ No newline at end of file diff --git a/cls b/cls index 6ef9d9f..17701df 100644 --- a/cls +++ b/cls @@ -1,4 +1,5 @@ #name : class ... end +# key: cls # -- class ${Name} $0 diff --git a/col b/col index e0b1d85..65b5a19 100644 --- a/col +++ b/col @@ -1,4 +1,5 @@ #name : collect { |e| ... } #group : Enumerables +# key: col # -- collect { |${e}| $0 } diff --git a/collect b/collect index e194454..f712560 100644 --- a/collect +++ b/collect @@ -1,4 +1,5 @@ #name : collect { |...| ... } #group : Enumerables +# key: collect # -- collect { |${e}| $0 } \ No newline at end of file diff --git a/dee b/dee index ecec2f7..05eeb44 100644 --- a/dee +++ b/dee @@ -1,3 +1,4 @@ #name : deep_copy(...) +# key: dee # -- Marshal.load(Marshal.dump($0)) \ No newline at end of file diff --git a/deec b/deec index 8cb3a5a..4d824aa 100644 --- a/deec +++ b/deec @@ -1,3 +1,4 @@ # This was cloned from a TextMate bundle for yasnippet. +# key: deec # -- Marshal.load(Marshal.dump(${0:obj_to_copy})) \ No newline at end of file diff --git a/def b/def index ad3d114..9387ab1 100644 --- a/def +++ b/def @@ -1,5 +1,6 @@ #name : def ... end #group : definitions +# key: def # -- def ${1:method_name} $0 diff --git a/defd b/defd index fcf6e47..cf8df43 100644 --- a/defd +++ b/defd @@ -1,3 +1,4 @@ # This was cloned from a TextMate bundle for yasnippet. +# key: defd # -- def_delegator :${1:@del_obj}, :${2:del_meth}, :${3:new_name} \ No newline at end of file diff --git a/defds b/defds index f464a37..2a14539 100644 --- a/defds +++ b/defds @@ -1,3 +1,4 @@ # This was cloned from a TextMate bundle for yasnippet. +# key: defds # -- def_delegators :${1:@del_obj}, :${0:del_methods} \ No newline at end of file diff --git a/defmm b/defmm index 9d96b93..3e82c3c 100644 --- a/defmm +++ b/defmm @@ -1,4 +1,5 @@ # This was cloned from a TextMate bundle for yasnippet. +# key: defmm # -- def method_missing(meth, *args, &blk) $0 diff --git a/defs b/defs index 88f2f29..4a4f299 100644 --- a/defs +++ b/defs @@ -1,4 +1,5 @@ #name : def.self ... end +# key: defs # -- def self.${1:class_method_name} $0 diff --git a/deft b/deft index bbd7c50..fff274d 100644 --- a/deft +++ b/deft @@ -1,4 +1,5 @@ # This was cloned from a TextMate bundle for yasnippet. +# key: deft # -- def test_${1:case_name} $0 diff --git a/deli b/deli index a91fc7b..26e0dfa 100644 --- a/deli +++ b/deli @@ -1,3 +1,4 @@ #name : delete_if { |...| ... } +# key: deli # -- delete_if { |${e} $0 } \ No newline at end of file diff --git a/desc b/desc index 7a22522..50fd1ea 100644 --- a/desc +++ b/desc @@ -1,4 +1,5 @@ #name : describe (rspec) +# key: desc # -- describe "${1:method}" do it$0 diff --git a/det b/det index e5097f6..3d0d1c4 100644 --- a/det +++ b/det @@ -1,4 +1,5 @@ #name : detect { |...| ... } #group : Enumerables +# key: det # -- detect { |${e}| $0 } \ No newline at end of file diff --git a/do b/do index c540c5b..8efa3fb 100644 --- a/do +++ b/do @@ -1,5 +1,6 @@ #name : do |variable| ... end #group : Blocks +# key: do # -- do |${1:variable}| $0 diff --git a/dow b/dow index 1cfc406..a697b45 100644 --- a/dow +++ b/dow @@ -1,4 +1,5 @@ # This was cloned from a TextMate bundle for yasnippet. #group : Loops +# key: dow # -- downto(${1:0}) { ${2/(^(?\s*(?:\*|\*?[a-z_])[a-zA-Z0-9_]*\s*)(,\g)*,?\s*$)|.*/(?1:|)/}${2:n}${2/(^(?\s*(?:\*|\*?[a-z_])[a-zA-Z0-9_]*\s*)(,\g)*,?\s*$)|.*/(?1:| )/}$0 } \ No newline at end of file diff --git a/ea b/ea index c779dd6..284a183 100644 --- a/ea +++ b/ea @@ -1,3 +1,4 @@ #name : each { |...| ... } +# key: ea # -- each { |${e}| $0 } \ No newline at end of file diff --git a/eab b/eab index 4b14845..adb5735 100644 --- a/eab +++ b/eab @@ -1,3 +1,4 @@ # This was cloned from a TextMate bundle for yasnippet. +# key: eab # -- each_byte { |${1:byte}| $0 } \ No newline at end of file diff --git a/eac b/eac index 17a3708..beab31c 100644 --- a/eac +++ b/eac @@ -1,4 +1,5 @@ #name : each_cons(...) { |...| ... } #group : Enumerables +# key: eac # -- each_cons(${1:2}) { |${group}| $0 } \ No newline at end of file diff --git a/eac- b/eac- index 7348b9a..21830d0 100644 --- a/eac- +++ b/eac- @@ -1,3 +1,4 @@ # This was cloned from a TextMate bundle for yasnippet. +# key: eac- # -- each_char { |${1:chr}| $0 } \ No newline at end of file diff --git a/eai b/eai index 4136dc0..9bb0931 100644 --- a/eai +++ b/eai @@ -1,3 +1,4 @@ #name : each_index { |i| ... } +# key: eai # -- each_index { |${i}| $0 } \ No newline at end of file diff --git a/eak b/eak index cf6be2e..a93b9c2 100644 --- a/eak +++ b/eak @@ -1,3 +1,4 @@ # This was cloned from a TextMate bundle for yasnippet. +# key: eak # -- each_key { |${1:key}| $0 } \ No newline at end of file diff --git a/eal b/eal index 38a735e..4bd364a 100644 --- a/eal +++ b/eal @@ -1,3 +1,4 @@ # This was cloned from a TextMate bundle for yasnippet. +# key: eal # -- each_line$1 { |${2:line}| $0 } \ No newline at end of file diff --git a/eap b/eap index fb6d0aa..90a2139 100644 --- a/eap +++ b/eap @@ -1,3 +1,4 @@ # This was cloned from a TextMate bundle for yasnippet. +# key: eap # -- each_pair { |${1:name}, ${2:val}| $0 } \ No newline at end of file diff --git a/eas- b/eas- index 500b5d0..11dbf08 100644 --- a/eas- +++ b/eas- @@ -1,4 +1,5 @@ # This was cloned from a TextMate bundle for yasnippet. #group : Enumerables +# key: eas- # -- each_slice(${1:2}) { |${2:group}| $0 } \ No newline at end of file diff --git a/eav b/eav index 4ff171a..4a16c92 100644 --- a/eav +++ b/eav @@ -1,3 +1,4 @@ #name : each_value { |val| ... } +# key: eav # -- each_value { |${val}| $0 } \ No newline at end of file diff --git a/eawi b/eawi index 01a5389..ed51481 100644 --- a/eawi +++ b/eawi @@ -1,4 +1,5 @@ #name : each_with_index { |e, i| ... } #group : Enumerables +# key: eawi # -- each_with_index { |${e}, ${i}| $0 } \ No newline at end of file diff --git a/fet b/fet index ebcd825..9458872 100644 --- a/fet +++ b/fet @@ -1,3 +1,4 @@ # This was cloned from a TextMate bundle for yasnippet. +# key: fet # -- fetch(${1:name}) { ${2/(^(?\s*(?:\*|\*?[a-z_])[a-zA-Z0-9_]*\s*)(,\g)*,?\s*$)|.*/(?1:|)/}${2:key}${2/(^(?\s*(?:\*|\*?[a-z_])[a-zA-Z0-9_]*\s*)(,\g)*,?\s*$)|.*/(?1:| )/}$0 } \ No newline at end of file diff --git a/fil b/fil index c6ca790..070b433 100644 --- a/fil +++ b/fil @@ -1,3 +1,4 @@ # This was cloned from a TextMate bundle for yasnippet. +# key: fil # -- fill(${1:range}) { ${2/(^(?\s*(?:\*|\*?[a-z_])[a-zA-Z0-9_]*\s*)(,\g)*,?\s*$)|.*/(?1:|)/}${2:i}${2/(^(?\s*(?:\*|\*?[a-z_])[a-zA-Z0-9_]*\s*)(,\g)*,?\s*$)|.*/(?1:| )/}$0 } \ No newline at end of file diff --git a/filedn b/filedn index b334a34..f167eb2 100644 --- a/filedn +++ b/filedn @@ -1,4 +1,5 @@ #name : File.dirname(__FILE__) #group : Files +# key: filedn # -- File.dirname(${1:__FILE__}) + "/$0" \ No newline at end of file diff --git a/fin b/fin index d1571a2..08fa591 100644 --- a/fin +++ b/fin @@ -1,4 +1,5 @@ #name : find { |e| .. } #group : Enumerables +# key: fin # -- find { |${1:e}| $0 } \ No newline at end of file diff --git a/fina b/fina index 2c4a790..fd04a1b 100644 --- a/fina +++ b/fina @@ -1,4 +1,5 @@ # This was cloned from a TextMate bundle for yasnippet. #group : Enumerables +# key: fina # -- find_all { |${1:e}| $0 } \ No newline at end of file diff --git a/fl b/fl index d55a99e..64e1485 100644 --- a/fl +++ b/fl @@ -1,3 +1,4 @@ # This was cloned from a TextMate bundle for yasnippet. +# key: fl # -- flunk`snippet_paren.rb`"${0:Failure message.}"`snippet_paren.rb end` \ No newline at end of file diff --git a/flao b/flao index b721d8e..90e33f9 100644 --- a/flao +++ b/flao @@ -1,4 +1,5 @@ # This was cloned from a TextMate bundle for yasnippet. #group : Arrays +# key: flao # -- inject(Array.new) { |${1:arr}, ${2:a}| ${1:arr}.push(*${2:a}) } \ No newline at end of file diff --git a/flsh b/flsh index 7ba3309..b117442 100644 --- a/flsh +++ b/flsh @@ -1,4 +1,5 @@ #name : flash[: ... ] = " ... " #group: Rails +# key: flsh # -- flash[:${notice}] = "${Text here...}" diff --git a/forin b/forin index 52e41c1..6d44223 100644 --- a/forin +++ b/forin @@ -1,5 +1,6 @@ #name : for ... in ...; ... end #group : Loops +# key: forin # -- for ${1:element} in ${2:collection} $0 diff --git a/gre b/gre index e16c926..8a6dd58 100644 --- a/gre +++ b/gre @@ -1,4 +1,5 @@ # This was cloned from a TextMate bundle for yasnippet. #group : Enumerables +# key: gre # -- grep(${1:/${2:pattern}/}) { |${3:match}| $0 } \ No newline at end of file diff --git a/gsu b/gsu index efb575f..564a3e3 100644 --- a/gsu +++ b/gsu @@ -1,3 +1,4 @@ # This was cloned from a TextMate bundle for yasnippet. +# key: gsu # -- gsub(/${1:pattern}/) { ${2/(^(?\s*(?:\*|\*?[a-z_])[a-zA-Z0-9_]*\s*)(,\g)*,?\s*$)|.*/(?1:|)/}${2:match}${2/(^(?\s*(?:\*|\*?[a-z_])[a-zA-Z0-9_]*\s*)(,\g)*,?\s*$)|.*/(?1:| )/}$0 } \ No newline at end of file diff --git a/hm b/hm index 25658da..bcbc76c 100644 --- a/hm +++ b/hm @@ -1,4 +1,5 @@ #name : has_many : ... #group: ActiveRecord +# key: hm # -- has_many :${class} diff --git a/ho b/ho index 2e66677..9d54560 100644 --- a/ho +++ b/ho @@ -1,4 +1,5 @@ #name : has_one : ... #group: ActiveRecord +# key: ho # -- has_one :${class} diff --git a/i b/i index 83398c3..93535be 100644 --- a/i +++ b/i @@ -1,4 +1,5 @@ #name : def initialize(...) ... end +# key: i # -- def initialize(${1:params}) ${2:body} diff --git a/if b/if index 77bed37..7dbb8ab 100644 --- a/if +++ b/if @@ -1,6 +1,7 @@ # -*- mode: yasnippet -*- #name : if ... end #group : Conditions +# key: if # -- if ${1:condition} $0 diff --git a/ife b/ife index 6067460..9fcbafc 100644 --- a/ife +++ b/ife @@ -1,5 +1,6 @@ #name : if ... else ... end #group : Conditions +# key: ife # -- if ${1:condition} $2 diff --git a/inj b/inj index ad90117..4683a5e 100644 --- a/inj +++ b/inj @@ -1,4 +1,5 @@ # This was cloned from a TextMate bundle for yasnippet. #group : Enumerables +# key: inj # -- inject${1/.+/(/}${1:init}${1/.+/)/} { |${2:mem}, ${3:var}| $0 } \ No newline at end of file diff --git a/inject b/inject index 3187bc6..8ce3501 100644 --- a/inject +++ b/inject @@ -1,4 +1,5 @@ #name : inject(...) { |...| ... } #group : Enumerables +# key: inject # -- inject(${1:0}) { |${2:injection}, ${3:element}| $0 } \ No newline at end of file diff --git a/lam b/lam index 62b0f5a..761ad1c 100644 --- a/lam +++ b/lam @@ -1,3 +1,4 @@ # This was cloned from a TextMate bundle for yasnippet. +# key: lam # -- lambda { ${1/(^(?\s*(?:\*|\*?[a-z_])[a-zA-Z0-9_]*\s*)(,\g)*,?\s*$)|.*/(?1:|)/}${1:args}${1/(^(?\s*(?:\*|\*?[a-z_])[a-zA-Z0-9_]*\s*)(,\g)*,?\s*$)|.*/(?1:| )/}$0 } \ No newline at end of file diff --git a/logi b/logi index 1dcd47c..7568a73 100644 --- a/logi +++ b/logi @@ -1,4 +1,5 @@ #name : logger.info " ... " #group: general +# key: logi # -- logger.info "${Text here...}" diff --git a/loo b/loo index 8bbde33..15d3151 100644 --- a/loo +++ b/loo @@ -1,4 +1,5 @@ #name : loop { .. } #group : Loops +# key: loo # -- loop { $0 } \ No newline at end of file diff --git a/map b/map index f6c4799..91291b7 100644 --- a/map +++ b/map @@ -1,4 +1,5 @@ # This was cloned from a TextMate bundle for yasnippet. #group : Enumerables +# key: map # -- map { |${1:e}| $0 } \ No newline at end of file diff --git a/mapwi- b/mapwi- index 1f7d0ac..d1adb8d 100644 --- a/mapwi- +++ b/mapwi- @@ -1,4 +1,5 @@ # This was cloned from a TextMate bundle for yasnippet. #group : Enumerables +# key: mapwi- # -- enum_with_index.map { |${1:e}, ${2:i}| $0 } \ No newline at end of file diff --git a/max b/max index 06ba5c5..a92b46e 100644 --- a/max +++ b/max @@ -1,4 +1,5 @@ # This was cloned from a TextMate bundle for yasnippet. #group : Enumerables +# key: max # -- max { |a, b| $0 } \ No newline at end of file diff --git a/min b/min index 2b479a3..52be575 100644 --- a/min +++ b/min @@ -1,4 +1,5 @@ # This was cloned from a TextMate bundle for yasnippet. #group : Enumerables +# key: min # -- min { |a, b| $0 } \ No newline at end of file diff --git a/mm b/mm index 5f1ebfc..fbda615 100644 --- a/mm +++ b/mm @@ -1,4 +1,5 @@ #name : def method_missing ... end +# key: mm # -- def method_missing(method, *args) $0 diff --git a/mod b/mod index 5df8c87..c7dc888 100644 --- a/mod +++ b/mod @@ -1,4 +1,5 @@ #name : module ModuleName ... end +# key: mod # -- module ${ModuleName} $0 diff --git a/mod.1 b/mod.1 index 0f6bf52..82708e9 100644 --- a/mod.1 +++ b/mod.1 @@ -1,4 +1,5 @@ # This was cloned from a TextMate bundle for yasnippet. +# key: mod.1 # -- module ${1:ModuleName} module ClassMethods diff --git a/module b/module index 5df8c87..843310f 100644 --- a/module +++ b/module @@ -1,4 +1,5 @@ #name : module ModuleName ... end +# key: module # -- module ${ModuleName} $0 diff --git a/nam b/nam index fb8334f..d364db6 100644 --- a/nam +++ b/nam @@ -1,4 +1,5 @@ # This was cloned from a TextMate bundle for yasnippet. +# key: nam # -- namespace :${1:${TM_FILENAME/\.\w+//}} do $0 diff --git a/ope b/ope index 98bf17c..a1f82e5 100644 --- a/ope +++ b/ope @@ -1,3 +1,4 @@ # This was cloned from a TextMate bundle for yasnippet. +# key: ope # -- open(${1:"${2:path/or/url/or/pipe}"}${3/(^[rwab+]+$)|.*/(?1:, ")/}${3:w}${3/(^[rwab+]+$)|.*/(?1:")/}) { |${4:io}| $0 } \ No newline at end of file diff --git a/opt b/opt index be52e61..d2d2119 100644 --- a/opt +++ b/opt @@ -1,4 +1,5 @@ # This was cloned from a TextMate bundle for yasnippet. +# key: opt # -- opts.on( "-${1:o}", "--${2:long-option-name}"${3/^\s*$|(.*\S.*)/(?1:, )/}${3:String}, "${4:Option description.}" ) do |${6:opt}| diff --git a/optp b/optp index 25dd257..11d206a 100644 --- a/optp +++ b/optp @@ -1,4 +1,5 @@ # This was cloned from a TextMate bundle for yasnippet. +# key: optp # -- require "optparse" diff --git a/par b/par index 66e2776..3d0a5a8 100644 --- a/par +++ b/par @@ -1,4 +1,5 @@ #name : params[: ... ] #group: Rails +# key: par # -- params[:${id}] diff --git a/patfh b/patfh index ce2dfab..2de268c 100644 --- a/patfh +++ b/patfh @@ -1,3 +1,4 @@ # This was cloned from a TextMate bundle for yasnippet. +# key: patfh # -- File.join(File.dirname(__FILE__), *%w[${1:rel path here}]) \ No newline at end of file diff --git a/pend b/pend index 5b342d6..9de5980 100644 --- a/pend +++ b/pend @@ -1,3 +1,4 @@ #name : program end +# key: pend # -- __END__ diff --git a/r b/r index b8d68d3..878095a 100644 --- a/r +++ b/r @@ -1,3 +1,4 @@ #name : attr_reader ... +# key: r # -- attr_reader : \ No newline at end of file diff --git a/ra b/ra index 35b76fd..642728c 100644 --- a/ra +++ b/ra @@ -1,4 +1,5 @@ #name : render :action => " ... " #group: Rails render +# key: ra # -- render :action => "${action}" diff --git a/ral b/ral index caaafe6..a93f1ca 100644 --- a/ral +++ b/ral @@ -1,4 +1,5 @@ #name : render :action => " ... ", :layout => " ... " #group: Rails render +# key: ral # -- render :action => "${action}", :layout => "${layoutname}" diff --git a/ran b/ran index 29d799b..62c003e 100644 --- a/ran +++ b/ran @@ -1,4 +1,5 @@ # This was cloned from a TextMate bundle for yasnippet. #group : Enumerables +# key: ran # -- sort_by { rand } \ No newline at end of file diff --git a/rb b/rb index 74d26dd..fad48d7 100644 --- a/rb +++ b/rb @@ -1,4 +1,5 @@ #name : /usr/bin/ruby -wKU #group : general +# key: rb # -- #!/usr/bin/ruby -wKU diff --git a/rcea b/rcea index a8f522d..5808af6 100644 --- a/rcea +++ b/rcea @@ -1,4 +1,5 @@ #name : render_component :action => " ... " #group: Rails render +# key: rcea # -- render_component :action => "${index}" diff --git a/rcec b/rcec index b520cad..658407f 100644 --- a/rcec +++ b/rcec @@ -1,4 +1,5 @@ #name : render_component :controller => " ... " #group: Rails render +# key: rcec # -- render_component :controller => "${items}" diff --git a/rceca b/rceca index 73a82dd..0a9b845 100644 --- a/rceca +++ b/rceca @@ -1,4 +1,5 @@ #name : render_component :controller => " ... ", :action => " ... " #group: Rails render +# key: rceca # -- render_component :controller => "${items}", :action => "${index}" diff --git a/rea b/rea index c168156..64d9da6 100644 --- a/rea +++ b/rea @@ -1,4 +1,5 @@ #name : redirect_to :action => " ... " #group: Rails redirect +# key: rea # -- redirect_to :action => "${index}" diff --git a/reai b/reai index 84fbf3a..03ac9cf 100644 --- a/reai +++ b/reai @@ -1,4 +1,5 @@ #name : redirect_to :action => " ... ", :id => ... #group: Rails redirect +# key: reai # -- redirect_to :action => "${show}", :id => ${@item} diff --git a/rec b/rec index 1aabd0f..920b1a9 100644 --- a/rec +++ b/rec @@ -1,4 +1,5 @@ #name : redirect_to :controller => " ... " #group: Rails redirect +# key: rec # -- redirect_to :controller => "${items}" diff --git a/reca b/reca index d0559ba..962f0c9 100644 --- a/reca +++ b/reca @@ -1,4 +1,5 @@ #name : redirect_to :controller => " ... ", :action => " ... " #group: Rails redirect +# key: reca # -- redirect_to :controller => "${items}", :action => "${list}" diff --git a/recai b/recai index 67e242d..5b66114 100644 --- a/recai +++ b/recai @@ -1,4 +1,5 @@ #name : redirect_to :controller => " ... ", :action => " ... ", :id => ... #group: Rails redirect +# key: recai # -- redirect_to :controller => "${items}", :action => "${show}", :id => ${@item} diff --git a/rej b/rej index da1ff8f..fd48631 100644 --- a/rej +++ b/rej @@ -1,4 +1,5 @@ #name : reject { |e| .. } #group : Enumerables +# key: rej # -- reject { |${1:e}| $0 } \ No newline at end of file diff --git a/reject b/reject index f2f0bff..7e86114 100644 --- a/reject +++ b/reject @@ -1,4 +1,5 @@ #name : reject { |...| ... } #group : Enumerables +# key: reject # -- reject { |${1:element}| $0 } \ No newline at end of file diff --git a/rep b/rep index 65defbe..7605116 100644 --- a/rep +++ b/rep @@ -1,3 +1,4 @@ #name : results_report(..) { .. } +# key: rep # -- results.report("${1:name}:") { TESTS.times { $0 } } \ No newline at end of file diff --git a/req b/req index 2fbc3d4..7d3863f 100644 --- a/req +++ b/req @@ -1,3 +1,4 @@ #name : require "..." +# key: req # -- require "$0" \ No newline at end of file diff --git a/res b/res index 0b85ff0..07cb057 100644 --- a/res +++ b/res @@ -2,6 +2,7 @@ #name : respond_to do |format| .. #group : ActionController #contributor : Bjørn Arild Mæland [github.com/Chrononaut] +# key: res # -- respond_to do |format| format.${1:html} $0 diff --git a/reve b/reve index 47232d1..e972434 100644 --- a/reve +++ b/reve @@ -1,3 +1,4 @@ # This was cloned from a TextMate bundle for yasnippet. +# key: reve # -- reverse_each { |${1:e}| $0 } \ No newline at end of file diff --git a/rf b/rf index 05ac8fc..a67e268 100644 --- a/rf +++ b/rf @@ -1,4 +1,5 @@ #name : render :file => " ... " #group: Rails render +# key: rf # -- render :file => "${filepath}" diff --git a/rfu b/rfu index 9811359..42a9d9a 100644 --- a/rfu +++ b/rfu @@ -1,4 +1,5 @@ #name : render :file => " ... ", :use_full_path => ... #group: Rails render +# key: rfu # -- render :file => "${filepath}", :use_full_path => ${false} diff --git a/ri b/ri index 6007a59..eb5551a 100644 --- a/ri +++ b/ri @@ -1,4 +1,5 @@ #name : render :inline => " ... " #group: Rails render +# key: ri # -- render :inline => "${<%= 'hello' %>}" diff --git a/ril b/ril index a9ead8a..2e23824 100644 --- a/ril +++ b/ril @@ -1,4 +1,5 @@ #name : render :inline => " ... ", :locals => { ... => " ... " } #group: Rails render +# key: ril # -- render :inline => "${<%= 'hello' %>}", :locals => { ${name} => "${value}" } diff --git a/rit b/rit index 8336d9d..35ec0fd 100644 --- a/rit +++ b/rit @@ -1,4 +1,5 @@ #name : render :inline => " ... ", :type => : ... ) #group: Rails render +# key: rit # -- render :inline => "${<%= 'hello' %>}", :type => :${rxml}) diff --git a/rl b/rl index 2e9d0a8..410f1c0 100644 --- a/rl +++ b/rl @@ -1,4 +1,5 @@ #name : render :layout => " ... " #group: Rails render +# key: rl # -- render :layout => "${layoutname}" diff --git a/rn b/rn index 357d578..b67638e 100644 --- a/rn +++ b/rn @@ -1,4 +1,5 @@ #name : render :nothing => ... #group: Rails render +# key: rn # -- render :nothing => ${true} diff --git a/rns b/rns index cfc16e0..70efd4b 100644 --- a/rns +++ b/rns @@ -1,4 +1,5 @@ #name : render :nothing => ... , :status => ... #group: Rails render +# key: rns # -- render :nothing => ${true}, :status => ${401} diff --git a/rp b/rp index 1b15420..f8a8bb1 100644 --- a/rp +++ b/rp @@ -1,4 +1,5 @@ #name : render :partial => " ... " #group: Rails render +# key: rp # -- render :partial => "${item}" diff --git a/rpc b/rpc index 21b03a0..6482f92 100644 --- a/rpc +++ b/rpc @@ -1,4 +1,5 @@ #name : render :partial => " ... ", :collection => ... #group: Rails render +# key: rpc # -- render :partial => "${item}", :collection => ${items} diff --git a/rpl b/rpl index db0ff5b..ee8402e 100644 --- a/rpl +++ b/rpl @@ -1,4 +1,5 @@ #name : render :partial => " ... ", :locals => { : ... => " ... "} #group: Rails render +# key: rpl # -- render :partial => "${item}", :locals => { :${name} => "${value}"} diff --git a/rpo b/rpo index f4167ff..92f3b9f 100644 --- a/rpo +++ b/rpo @@ -1,4 +1,5 @@ #name : render :partial => " ... ", :object => ... #group: Rails render +# key: rpo # -- render :partial => "${item}", :object => ${object} diff --git a/rps b/rps index c48fd80..38786d3 100644 --- a/rps +++ b/rps @@ -1,4 +1,5 @@ #name : render :partial => " ... ", :status => ... #group: Rails render +# key: rps # -- render :partial => "${item}", :status => ${500} diff --git a/rreq b/rreq index 84ac9df..7cd88e7 100644 --- a/rreq +++ b/rreq @@ -1,3 +1,4 @@ #name : require File.join(File.dirname(__FILE__), ...) +# key: rreq # -- require File.join(File.dirname(__FILE__), $0) \ No newline at end of file diff --git a/rspec-mode/aft b/rspec-mode/aft index 276a9d5..1f709f0 100644 --- a/rspec-mode/aft +++ b/rspec-mode/aft @@ -1,6 +1,7 @@ #-*- require-final-newline: nil -*- #contributor: gary #name : after +# key: aft # -- after(${1::each}) do $0 diff --git a/rspec-mode/annot b/rspec-mode/annot index 83958a5..e91ef0f 100644 --- a/rspec-mode/annot +++ b/rspec-mode/annot @@ -1,5 +1,6 @@ #-*- require-final-newline: nil -*- #contributor: gary #name : any_number_of_times +# key: annot # -- any_number_of_times \ No newline at end of file diff --git a/rspec-mode/anr b/rspec-mode/anr index 7ce1931..48ad43f 100644 --- a/rspec-mode/anr +++ b/rspec-mode/anr @@ -1,3 +1,4 @@ #name: and_return($value) +# key: anr # -- and_return(${1:value})$0 \ No newline at end of file diff --git a/rspec-mode/anra b/rspec-mode/anra index d208e52..82bd97f 100644 --- a/rspec-mode/anra +++ b/rspec-mode/anra @@ -1,3 +1,4 @@ #name: and_raise($error) +# key: anra # -- and_raise(${1:RuntimeError})$0 \ No newline at end of file diff --git a/rspec-mode/anrb b/rspec-mode/anrb index 095ecd7..1c74846 100644 --- a/rspec-mode/anrb +++ b/rspec-mode/anrb @@ -1,5 +1,6 @@ #-*- require-final-newline: nil -*- #contributor: gary #name : and_return with block +# key: anrb # -- and_return { $1 } \ No newline at end of file diff --git a/rspec-mode/ant b/rspec-mode/ant index 43db982..45feecd 100644 --- a/rspec-mode/ant +++ b/rspec-mode/ant @@ -1,5 +1,6 @@ #-*- require-final-newline: nil -*- #contributor: gary #name : and_throw +# key: ant # -- and_throw(${1:sym}) \ No newline at end of file diff --git a/rspec-mode/any b/rspec-mode/any index 084a2c7..ba3711e 100644 --- a/rspec-mode/any +++ b/rspec-mode/any @@ -1,3 +1,4 @@ #name : any? { |...| ... } +# key: any # -- any? { |${e}| $0 } \ No newline at end of file diff --git a/rspec-mode/atl b/rspec-mode/atl index 67a9802..b30ce58 100644 --- a/rspec-mode/atl +++ b/rspec-mode/atl @@ -1,5 +1,6 @@ #-*- require-final-newline: nil -*- #contributor: gary #name : at_least +# key: atl # -- at_least(${1:n}).times \ No newline at end of file diff --git a/rspec-mode/atm b/rspec-mode/atm index 8f0f9c3..2e65302 100644 --- a/rspec-mode/atm +++ b/rspec-mode/atm @@ -1,5 +1,6 @@ #-*- require-final-newline: nil -*- #contributor: gary #name : at_most +# key: atm # -- at_most(${1:n}).times \ No newline at end of file diff --git a/rspec-mode/bef b/rspec-mode/bef index 1f52467..32a9028 100644 --- a/rspec-mode/bef +++ b/rspec-mode/bef @@ -1,6 +1,7 @@ #-*- require-final-newline: nil -*- #contributor: gary #name : before +# key: bef # -- before(${1::each}) do $0 diff --git a/rspec-mode/befm b/rspec-mode/befm index b1362bb..5e30bfd 100644 --- a/rspec-mode/befm +++ b/rspec-mode/befm @@ -1,4 +1,5 @@ #name : before (rspec) +# key: befm # -- before(:each) do @${1:model} = ${1:$(replace-regexp-in-string "_" "" (upcase-initials text))}.new$0 diff --git a/rspec-mode/bfe b/rspec-mode/bfe index 4b27a56..6dcd899 100644 --- a/rspec-mode/bfe +++ b/rspec-mode/bfe @@ -1,4 +1,5 @@ #name: before(:each) do ... end +# key: bfe # -- before(:each) do $0 diff --git a/rspec-mode/conn b/rspec-mode/conn index a391394..32c8b53 100644 --- a/rspec-mode/conn +++ b/rspec-mode/conn @@ -1,5 +1,6 @@ #-*- require-final-newline: nil -*- #contributor: gary #name : controller_name +# key: conn # -- controller_name :${1:controller} \ No newline at end of file diff --git a/rspec-mode/des b/rspec-mode/des index bee7542..7a6fdc8 100644 --- a/rspec-mode/des +++ b/rspec-mode/des @@ -1,6 +1,7 @@ #-*- require-final-newline: nil -*- #contributor: gary #name : describe (String) +# key: des # -- describe '${1:description}' do diff --git a/rspec-mode/desc b/rspec-mode/desc index 6f35d5a..9e04f55 100644 --- a/rspec-mode/desc +++ b/rspec-mode/desc @@ -1,6 +1,7 @@ #-*- require-final-newline: nil -*- #contributor: gary #name : describe (Controller) +# key: desc # -- require File.dirname(__FILE__) + '/../spec_helper' diff --git a/rspec-mode/desrc.delete b/rspec-mode/desrc.delete index c9b1574..d59715a 100644 --- a/rspec-mode/desrc.delete +++ b/rspec-mode/desrc.delete @@ -1,6 +1,7 @@ #-*- require-final-newline: nil -*- #contributor: gary #name : describe (RESTful Controller): DELETE +# key: desrc.delete # -- require File.direname(__FILE__) + '/.../spec_helper' diff --git a/rspec-mode/desrc.get b/rspec-mode/desrc.get index 12dfc94..34a7c50 100644 --- a/rspec-mode/desrc.get +++ b/rspec-mode/desrc.get @@ -1,6 +1,7 @@ #-*- require-final-newline: nil -*- #contributor: gary #name : describe (RESTful Controller): GET +# key: desrc.get # -- require File.direname(__FILE__) + '/.../spec_helper' diff --git a/rspec-mode/desrc.post b/rspec-mode/desrc.post index 37b12e1..6fe74c8 100644 --- a/rspec-mode/desrc.post +++ b/rspec-mode/desrc.post @@ -1,6 +1,7 @@ #-*- require-final-newline: nil -*- #contributor: gary #name : describe (RESTful Controller): POST +# key: desrc.post # -- require File.direname(__FILE__) + '/.../spec_helper' diff --git a/rspec-mode/desrc.put b/rspec-mode/desrc.put index aa92186..eb2a6bc 100644 --- a/rspec-mode/desrc.put +++ b/rspec-mode/desrc.put @@ -1,6 +1,7 @@ #-*- require-final-newline: nil -*- #contributor: gary #name : describe (RESTful Controller): PUT +# key: desrc.put # -- require File.direname(__FILE__) + '/.../spec_helper' diff --git a/rspec-mode/dest b/rspec-mode/dest index 28e6821..224944f 100644 --- a/rspec-mode/dest +++ b/rspec-mode/dest @@ -1,6 +1,7 @@ #-*- require-final-newline: nil -*- #contributor: gary #name : describe (type) +# key: dest # -- describe ${1:Type} do diff --git a/rspec-mode/dests b/rspec-mode/dests index 2dab0fa..1a5f842 100644 --- a/rspec-mode/dests +++ b/rspec-mode/dests @@ -1,6 +1,7 @@ #-*- require-final-newline: nil -*- #contributor: gary #name : describe (type, string) +# key: dests # -- describe ${1:Type}, '${2:description}' do diff --git a/rspec-mode/ex b/rspec-mode/ex index 13767da..d23c625 100644 --- a/rspec-mode/ex +++ b/rspec-mode/ex @@ -1,5 +1,6 @@ #-*- require-final-newline: nil -*- #contributor: gary #name : exactly +# key: ex # -- exactly(${1:n}).times \ No newline at end of file diff --git a/rspec-mode/fm b/rspec-mode/fm index 78fe6cf..ed06be0 100644 --- a/rspec-mode/fm +++ b/rspec-mode/fm @@ -1,6 +1,7 @@ #-*- require-final-newline: nil -*- #contributor: gary #name : flexmock mock object w/name +# key: fm # -- ${1:var} = flexmock('${2:mock_name}') $0 \ No newline at end of file diff --git a/rspec-mode/fmar b/rspec-mode/fmar index 4c79abb..fb34cbe 100644 --- a/rspec-mode/fmar +++ b/rspec-mode/fmar @@ -1,6 +1,7 @@ #-*- require-final-newline: nil -*- #contributor: gary #name : flexmock mock object, ActiveRecord +# key: fmar # -- ${1:var} = flexmock(:model, ${2:YourModel}) $0 \ No newline at end of file diff --git a/rspec-mode/it b/rspec-mode/it index 5aa483d..3eeb8ef 100644 --- a/rspec-mode/it +++ b/rspec-mode/it @@ -1,4 +1,5 @@ #name: it "should do something" do ... end +# key: it # -- it "should ${1:do something}" do $0 diff --git a/rspec-mode/mat b/rspec-mode/mat index b17428c..fa05f27 100644 --- a/rspec-mode/mat +++ b/rspec-mode/mat @@ -1,6 +1,7 @@ #-*- require-final-newline: nil -*- #contributor: gary #name : custom matcher +# key: mat # -- class ${1:ReverseTo} def initialize($3) diff --git a/rspec-mode/mocw.flexmock b/rspec-mode/mocw.flexmock index b088ba8..19c8677 100644 --- a/rspec-mode/mocw.flexmock +++ b/rspec-mode/mocw.flexmock @@ -1,6 +1,7 @@ #-*- require-final-newline: nil -*- #contributor: gary #name : mock_with flexmock +# key: mocw.flexmock # -- Spec::Runner.configure do |config| config.mock_with :flexmock diff --git a/rspec-mode/mocw.mocha b/rspec-mode/mocw.mocha index b3c458c..8d1e80f 100644 --- a/rspec-mode/mocw.mocha +++ b/rspec-mode/mocw.mocha @@ -1,6 +1,7 @@ #-*- require-final-newline: nil -*- #contributor: gary #name : mock_with mocha +# key: mocw.mocha # -- Spec::Runner.configure do |config| config.mock_with :mocha diff --git a/rspec-mode/mocw.rr b/rspec-mode/mocw.rr index 741ccb7..99245a6 100644 --- a/rspec-mode/mocw.rr +++ b/rspec-mode/mocw.rr @@ -1,6 +1,7 @@ #-*- require-final-newline: nil -*- #contributor: gary #name : mock_with rr +# key: mocw.rr # -- Spec::Runner.configure do |config| config.mock_with :rr diff --git a/rspec-mode/on b/rspec-mode/on index 211a09c..233093b 100644 --- a/rspec-mode/on +++ b/rspec-mode/on @@ -1,5 +1,6 @@ #-*- require-final-newline: nil -*- #contributor: gary #name : once +# key: on # -- once \ No newline at end of file diff --git a/rspec-mode/resh b/rspec-mode/resh index 4639c42..e456baf 100644 --- a/rspec-mode/resh +++ b/rspec-mode/resh @@ -1,5 +1,6 @@ #-*- require-final-newline: nil -*- #contributor: gary #name : Require spec_helper +# key: resh # -- require File.dirname(__FILE__) + '/../spec_helper' \ No newline at end of file diff --git a/rspec-mode/sce b/rspec-mode/sce index 97f2344..2069263 100644 --- a/rspec-mode/sce +++ b/rspec-mode/sce @@ -1,6 +1,7 @@ #-*- require-final-newline: nil -*- #contributor: gary #name : Scenario +# key: sce # -- Scenario '${1:title}' do Given '${2:given}' diff --git a/rspec-mode/set b/rspec-mode/set index 51a92f4..a4d6d5c 100644 --- a/rspec-mode/set +++ b/rspec-mode/set @@ -1,4 +1,5 @@ #name: setup do ... end +# key: set # -- setup do $1 diff --git a/rspec-mode/sh= b/rspec-mode/sh= index 82ad9d1..85af5d0 100644 --- a/rspec-mode/sh= +++ b/rspec-mode/sh= @@ -1,6 +1,7 @@ #-*- require-final-newline: nil -*- #contributor: gary #name : should == +# key: sh= # -- ${1:target}.should == ${2:value} $0 \ No newline at end of file diff --git a/rspec-mode/shb b/rspec-mode/shb index 0ffb8eb..1f26004 100644 --- a/rspec-mode/shb +++ b/rspec-mode/shb @@ -1,6 +1,7 @@ #-*- require-final-newline: nil -*- #contributor: gary #name : should be +# key: shb # -- ${1:target}.should be(${2:result}) $0 \ No newline at end of file diff --git a/rspec-mode/shbc b/rspec-mode/shbc index 45ba2af..2a4c77a 100644 --- a/rspec-mode/shbc +++ b/rspec-mode/shbc @@ -1,6 +1,7 @@ #-*- require-final-newline: nil -*- #contributor: gary #name : should be_close +# key: shbc # -- ${1:target}.should be_close(${2:result}, ${3:tolerance}) $0 \ No newline at end of file diff --git a/rspec-mode/shbio b/rspec-mode/shbio index ecaa0d7..80c7b1e 100644 --- a/rspec-mode/shbio +++ b/rspec-mode/shbio @@ -1,6 +1,7 @@ #-*- require-final-newline: nil -*- #contributor: gary #name : should be_instance_of +# key: shbio # -- ${1:target}.should be_instance_of(${2:klass}) $0 \ No newline at end of file diff --git a/rspec-mode/shbko b/rspec-mode/shbko index dbfaf8a..8551b59 100644 --- a/rspec-mode/shbko +++ b/rspec-mode/shbko @@ -1,6 +1,7 @@ #-*- require-final-newline: nil -*- #contributor: gary #name : should be_kind_of +# key: shbko # -- ${1:target}.should be_a_kind_of(${2:klass}) $0 \ No newline at end of file diff --git a/rspec-mode/shbr b/rspec-mode/shbr index ff94c06..1933533 100644 --- a/rspec-mode/shbr +++ b/rspec-mode/shbr @@ -1,6 +1,7 @@ #-*- require-final-newline: nil -*- #contributor: gary #name : should be_redirect +# key: shbr # -- response.should be_redirect $0 \ No newline at end of file diff --git a/rspec-mode/shbs b/rspec-mode/shbs index a3ad949..2be7881 100644 --- a/rspec-mode/shbs +++ b/rspec-mode/shbs @@ -1,6 +1,7 @@ #-*- require-final-newline: nil -*- #contributor: gary #name : should be_success +# key: shbs # -- response.should be_success $0 \ No newline at end of file diff --git a/rspec-mode/she.eql b/rspec-mode/she.eql index 9d57c34..eeade52 100644 --- a/rspec-mode/she.eql +++ b/rspec-mode/she.eql @@ -1,6 +1,7 @@ #-*- require-final-newline: nil -*- #contributor: gary #name : should eql +# key: she.eql # -- ${1:target}.should eql(${2:value}) $0 \ No newline at end of file diff --git a/rspec-mode/she.equal b/rspec-mode/she.equal index 7fbb308..c8c23a8 100644 --- a/rspec-mode/she.equal +++ b/rspec-mode/she.equal @@ -1,6 +1,7 @@ #-*- require-final-newline: nil -*- #contributor: gary #name : should equal +# key: she.equal # -- ${1:target}.should equal(${2:value}) $0 \ No newline at end of file diff --git a/rspec-mode/shh b/rspec-mode/shh index 2ae96e6..3612021 100644 --- a/rspec-mode/shh +++ b/rspec-mode/shh @@ -1,6 +1,7 @@ #-*- require-final-newline: nil -*- #contributor: gary #name : should have +# key: shh # -- ${1:target}.should have(${2:num}).${3:things} $0 \ No newline at end of file diff --git a/rspec-mode/shhal b/rspec-mode/shhal index 0b6acea..18f69bf 100644 --- a/rspec-mode/shhal +++ b/rspec-mode/shhal @@ -1,6 +1,7 @@ #-*- require-final-newline: nil -*- #contributor: gary #name : should have_at_least +# key: shhal # -- ${1:target}.should have_at_least(${2:num}).${3:things} $0 \ No newline at end of file diff --git a/rspec-mode/shham b/rspec-mode/shham index 413eccd..99b0df9 100644 --- a/rspec-mode/shham +++ b/rspec-mode/shham @@ -1,6 +1,7 @@ #-*- require-final-newline: nil -*- #contributor: gary #name : should have_at_most +# key: shham # -- ${1:target}.should have_at_most(${2:num}).${3:things} $0 \ No newline at end of file diff --git a/rspec-mode/shhr b/rspec-mode/shhr index 5952cda..db5ce82 100644 --- a/rspec-mode/shhr +++ b/rspec-mode/shhr @@ -1,6 +1,7 @@ #-*- require-final-newline: nil -*- #contributor: gary #name : should have_records +# key: shhr # -- ${1:target}.should have(${2:x}).records $0 \ No newline at end of file diff --git a/rspec-mode/shm.match b/rspec-mode/shm.match index 7808911..0764dc8 100644 --- a/rspec-mode/shm.match +++ b/rspec-mode/shm.match @@ -1,6 +1,7 @@ #-*- require-final-newline: nil -*- #contributor: gary #name : should match +# key: shm.match # -- ${1:target}.should match(/${2:regex}/) $0 \ No newline at end of file diff --git a/rspec-mode/shn= b/rspec-mode/shn= index 1dc293b..626b8ed 100644 --- a/rspec-mode/shn= +++ b/rspec-mode/shn= @@ -1,6 +1,7 @@ #-*- require-final-newline: nil -*- #contributor: gary #name : should_not == +# key: shn= # -- ${1:target}.should_not == ${2:value} $0 \ No newline at end of file diff --git a/rspec-mode/shnb b/rspec-mode/shnb index 1924706..1f45959 100644 --- a/rspec-mode/shnb +++ b/rspec-mode/shnb @@ -1,6 +1,7 @@ #-*- require-final-newline: nil -*- #contributor: gary #name : should_not be +# key: shnb # -- ${1:target}.should_not be(${2:result}) $0 \ No newline at end of file diff --git a/rspec-mode/shnbc b/rspec-mode/shnbc index da8ee0c..19483ec 100644 --- a/rspec-mode/shnbc +++ b/rspec-mode/shnbc @@ -1,6 +1,7 @@ #-*- require-final-newline: nil -*- #contributor: gary #name : should_not be_close +# key: shnbc # -- ${1:target}.should_not be_close(${2:result}, ${3:tolerance}) $0 \ No newline at end of file diff --git a/rspec-mode/shnbio b/rspec-mode/shnbio index e3bd4ac..96a9c64 100644 --- a/rspec-mode/shnbio +++ b/rspec-mode/shnbio @@ -1,6 +1,7 @@ #-*- require-final-newline: nil -*- #contributor: gary #name : should_not be_instance_of +# key: shnbio # -- ${1:target}.should_not be_instance_of(${2:klass}) $0 \ No newline at end of file diff --git a/rspec-mode/shnbko b/rspec-mode/shnbko index 8daef86..05057e1 100644 --- a/rspec-mode/shnbko +++ b/rspec-mode/shnbko @@ -1,6 +1,7 @@ #-*- require-final-newline: nil -*- #contributor: gary #name : should_not be_kind_of +# key: shnbko # -- ${1:target}.should_not be_a_kind_of(${2:klass}) $0 \ No newline at end of file diff --git a/rspec-mode/shnbr b/rspec-mode/shnbr index e192940..72b35d0 100644 --- a/rspec-mode/shnbr +++ b/rspec-mode/shnbr @@ -1,6 +1,7 @@ #-*- require-final-newline: nil -*- #contributor: gary #name : should_not be_redirect +# key: shnbr # -- response.should_not be_redirect $0 \ No newline at end of file diff --git a/rspec-mode/shnbs b/rspec-mode/shnbs index d9119a5..3f27f61 100644 --- a/rspec-mode/shnbs +++ b/rspec-mode/shnbs @@ -1,6 +1,7 @@ #-*- require-final-newline: nil -*- #contributor: gary #name : should_not be_success +# key: shnbs # -- response.should_not be_success $0 \ No newline at end of file diff --git a/rspec-mode/shne.eql b/rspec-mode/shne.eql index ef0517f..180264b 100644 --- a/rspec-mode/shne.eql +++ b/rspec-mode/shne.eql @@ -1,6 +1,7 @@ #-*- require-final-newline: nil -*- #contributor: gary #name : should_not eql +# key: shne.eql # -- ${1:target}.should_not eql(${2:value}) $0 \ No newline at end of file diff --git a/rspec-mode/shne.equal b/rspec-mode/shne.equal index 2f98092..b212f8d 100644 --- a/rspec-mode/shne.equal +++ b/rspec-mode/shne.equal @@ -1,6 +1,7 @@ #-*- require-final-newline: nil -*- #contributor: gary #name : should_not equal +# key: shne.equal # -- ${1:target}.should_not equal(${2:value}) $0 \ No newline at end of file diff --git a/rspec-mode/shnm.match b/rspec-mode/shnm.match index 7f648c8..0fd74c8 100644 --- a/rspec-mode/shnm.match +++ b/rspec-mode/shnm.match @@ -1,6 +1,7 @@ #-*- require-final-newline: nil buffer-read-only: nil -*- #contributor: gary #name : should_not match +# key: shnm.match # -- ${1:target}.should_not match(/${2:regex}/) $0 \ No newline at end of file diff --git a/rspec-mode/shnp b/rspec-mode/shnp index 26b54b9..c85d428 100644 --- a/rspec-mode/shnp +++ b/rspec-mode/shnp @@ -1,5 +1,6 @@ #-*- require-final-newline: nil -*- #contributor: gary #name : should_not predicate +# key: shnp # -- ${1:target}.should_not ${2:be_}${3:predicate} $0 \ No newline at end of file diff --git a/rspec-mode/shnr b/rspec-mode/shnr index b6dbeb1..d345b1c 100644 --- a/rspec-mode/shnr +++ b/rspec-mode/shnr @@ -1,5 +1,6 @@ #-*- require-final-newline: nil -*- #contributor: gary #name : should_not_receive +# key: shnr # -- ${1:mock}.should_not_receive(:${2:message})$0 \ No newline at end of file diff --git a/rspec-mode/shnre b/rspec-mode/shnre index 5c9cc55..1d523a9 100644 --- a/rspec-mode/shnre +++ b/rspec-mode/shnre @@ -1,6 +1,7 @@ #-*- require-final-newline: nil -*- #contributor: gary #name : should_not raise_error +# key: shnre # -- lambda { ${1: } }.should_not raise_error(${2:error}) $0 \ No newline at end of file diff --git a/rspec-mode/shnrt b/rspec-mode/shnrt index 95d6d49..714014e 100644 --- a/rspec-mode/shnrt +++ b/rspec-mode/shnrt @@ -1,6 +1,7 @@ #-*- require-final-newline: nil -*- #contributor: gary #name : should_not respond_to +# key: shnrt # -- ${1:target}.should_not respond_to(:${2:sym}) $0 \ No newline at end of file diff --git a/rspec-mode/shns b/rspec-mode/shns index 01edb1e..0a253d3 100644 --- a/rspec-mode/shns +++ b/rspec-mode/shns @@ -1,6 +1,7 @@ #-*- require-final-newline: nil -*- #contributor: gary #name : should_not satisfy +# key: shns # -- ${1:target}.should_not satisfy { |obj| ${2: } } $0 \ No newline at end of file diff --git a/rspec-mode/shnt b/rspec-mode/shnt index fa9ffba..26d3146 100644 --- a/rspec-mode/shnt +++ b/rspec-mode/shnt @@ -1,6 +1,7 @@ #-*- require-final-newline: nil -*- #contributor: gary #name : should_not throw +# key: shnt # -- lambda { ${1: } }.should_not throw_symbol(:${2:symbol}) $0 \ No newline at end of file diff --git a/rspec-mode/shp b/rspec-mode/shp index 03a3e91..ecf516e 100644 --- a/rspec-mode/shp +++ b/rspec-mode/shp @@ -1,5 +1,6 @@ #-*- require-final-newline: nil -*- #contributor: gary #name : should predicate +# key: shp # -- ${1:target}.should ${2:be_}${3:predicate} $0 \ No newline at end of file diff --git a/rspec-mode/shr b/rspec-mode/shr index 07b798f..1196f3b 100644 --- a/rspec-mode/shr +++ b/rspec-mode/shr @@ -1,5 +1,6 @@ #-*- require-final-newline: nil -*- #contributor: gary #name : should_receive +# key: shr # -- ${1:mock}.should_receive(:${2:message})$0 \ No newline at end of file diff --git a/rspec-mode/shre b/rspec-mode/shre index d6755f1..c73a359 100644 --- a/rspec-mode/shre +++ b/rspec-mode/shre @@ -1,6 +1,7 @@ #-*- require-final-newline: nil -*- #contributor: gary #name : should raise_error +# key: shre # -- lambda { ${1: } }.should raise_error(${2:error}) $0 \ No newline at end of file diff --git a/rspec-mode/shrt b/rspec-mode/shrt index 81d6071..6f8ebd5 100644 --- a/rspec-mode/shrt +++ b/rspec-mode/shrt @@ -1,3 +1,4 @@ #name: response.should render_template("$template") +# key: shrt # -- response.should render_template("${0:template}") \ No newline at end of file diff --git a/rspec-mode/shrt.redirect b/rspec-mode/shrt.redirect index aa98c0e..c04c97c 100644 --- a/rspec-mode/shrt.redirect +++ b/rspec-mode/shrt.redirect @@ -1,6 +1,7 @@ #-*- require-final-newline: nil -*- #contributor: gary #name : should redirect_to +# key: shrt.redirect # -- response.should redirect_to(${1:url}) $0 \ No newline at end of file diff --git a/rspec-mode/shrt.render b/rspec-mode/shrt.render index f927e7e..7b005f1 100644 --- a/rspec-mode/shrt.render +++ b/rspec-mode/shrt.render @@ -1,6 +1,7 @@ #-*- require-final-newline: nil -*- #contributor: gary #name : should render_template +# key: shrt.render # -- response.should render_template(:${1:template}) $0 \ No newline at end of file diff --git a/rspec-mode/shrt.respond b/rspec-mode/shrt.respond index 2c55828..ff1db01 100644 --- a/rspec-mode/shrt.respond +++ b/rspec-mode/shrt.respond @@ -1,6 +1,7 @@ #-*- require-final-newline: nil -*- #contributor: gary #name : should respond_to +# key: shrt.respond # -- ${1:target}.should respond_to(:${2:sym}) $0 \ No newline at end of file diff --git a/rspec-mode/shs b/rspec-mode/shs index 8321356..58174d1 100644 --- a/rspec-mode/shs +++ b/rspec-mode/shs @@ -1,6 +1,7 @@ #-*- require-final-newline: nil -*- #contributor: gary #name : should satisfy +# key: shs # -- ${1:target}.should satisfy { |obj| ${2: } } $0 \ No newline at end of file diff --git a/rspec-mode/sht b/rspec-mode/sht index 546f9a0..6f0a6d7 100644 --- a/rspec-mode/sht +++ b/rspec-mode/sht @@ -1,6 +1,7 @@ #-*- require-final-newline: nil -*- #contributor: gary #name : should throw +# key: sht # -- lambda { ${1: } }.should throw_symbol(:${2:symbol}) $0 \ No newline at end of file diff --git a/rspec-mode/sto b/rspec-mode/sto index 8b53280..cbbbf76 100644 --- a/rspec-mode/sto +++ b/rspec-mode/sto @@ -1,6 +1,7 @@ #-*- require-final-newline: nil -*- #contributor: gary #name : Story +# key: sto # -- Story '${1:title}', %{ As a ${2:role} diff --git a/rspec-mode/stub b/rspec-mode/stub index 10936cb..1e850b3 100644 --- a/rspec-mode/stub +++ b/rspec-mode/stub @@ -1,3 +1,4 @@ #name: $target.stub!(:$message) +# key: stub # -- ${1:target}.stub!(:${2:message})$0 \ No newline at end of file diff --git a/rspec-mode/tw b/rspec-mode/tw index 2224bc8..641a503 100644 --- a/rspec-mode/tw +++ b/rspec-mode/tw @@ -1,5 +1,6 @@ #-*- require-final-newline: nil -*- #contributor: gary #name : twice +# key: tw # -- twice \ No newline at end of file diff --git a/rspec-mode/wia b/rspec-mode/wia index df7e8c3..1ef11ee 100644 --- a/rspec-mode/wia +++ b/rspec-mode/wia @@ -1,6 +1,7 @@ #-*- require-final-newline: nil -*- #contributor: gary #name : with args +# key: wia # -- with(${1:args}) $0 \ No newline at end of file diff --git a/rt b/rt index b6e5e28..42615f6 100644 --- a/rt +++ b/rt @@ -1,4 +1,5 @@ #name : render :text => " ... " #group: Rails render +# key: rt # -- render :text => "${Text here...}" diff --git a/rtl b/rtl index b6b72b4..be66122 100644 --- a/rtl +++ b/rtl @@ -1,4 +1,5 @@ #name : render :text => " ... ", :layout => " ... " #group: Rails render +# key: rtl # -- render :text => "${Text here...}", :layout => "${layoutname}" diff --git a/rtlt b/rtlt index 1625b4b..5aeaf32 100644 --- a/rtlt +++ b/rtlt @@ -1,4 +1,5 @@ #name : render :text => " ... ", :layout => ... #group: Rails render +# key: rtlt # -- render :text => "${Text here...}", :layout => ${true} diff --git a/rts b/rts index 8f3b78b..ac4e476 100644 --- a/rts +++ b/rts @@ -1,4 +1,5 @@ #name : render :text => " ... ", :status => ... #group: Rails render +# key: rts # -- render :text => "${Text here...}", :status => ${401} diff --git a/rw b/rw index aadf605..52f4d62 100644 --- a/rw +++ b/rw @@ -1,3 +1,4 @@ #name : attr_accessor ... +# key: rw # -- attr_accessor : \ No newline at end of file diff --git a/sca b/sca index 6e084aa..9bf8b5c 100644 --- a/sca +++ b/sca @@ -1,3 +1,4 @@ #name : scan(/../) { |match| .. } +# key: sca # -- scan(/${1:pattern}/) { |${2:match}| $0 } \ No newline at end of file diff --git a/sel b/sel index 830343d..5a55593 100644 --- a/sel +++ b/sel @@ -1,4 +1,5 @@ #name : select { |e| .. } #group : Enumerables +# key: sel # -- select { |${e}| $0 } \ No newline at end of file diff --git a/select b/select index 3044874..8ea3b6c 100644 --- a/select +++ b/select @@ -1,4 +1,5 @@ #name : select { |...| ... } #group : Enumerables +# key: select # -- select { |${1:element}| $0 } \ No newline at end of file diff --git a/ses b/ses index 914b74b..81a3da5 100644 --- a/ses +++ b/ses @@ -1,4 +1,5 @@ #name : session[: ... ] #group: Rails +# key: ses # -- session[:${user}] diff --git a/sinc b/sinc index a9fe7a7..390cf3c 100644 --- a/sinc +++ b/sinc @@ -1,3 +1,4 @@ #name : singleton_class() +# key: sinc # -- class << self; self end \ No newline at end of file diff --git a/sor b/sor index 1a55799..bfcbd56 100644 --- a/sor +++ b/sor @@ -1,4 +1,5 @@ #name : sort { |a, b| .. } #group : Enumerables +# key: sor # -- sort { |a, b| $0 } \ No newline at end of file diff --git a/sorb b/sorb index ae10062..d949d9c 100644 --- a/sorb +++ b/sorb @@ -1,4 +1,5 @@ #name : sort_by { |e| .. } #group : Enumerables +# key: sorb # -- sort_by { |${e}| $0 } \ No newline at end of file diff --git a/sr b/sr index 18fdccc..f64daa0 100644 --- a/sr +++ b/sr @@ -1,3 +1,4 @@ #name : should_receive(:).and_return() +# key: sr # -- should_receive(:${1:method}).and_return(${2:return_val}) \ No newline at end of file diff --git a/ste b/ste index 848b128..3f6d0c7 100644 --- a/ste +++ b/ste @@ -1,3 +1,4 @@ #name : step(2) { |e| .. } +# key: ste # -- step(${1:2}) { |${2:n}| $0 } \ No newline at end of file diff --git a/sub b/sub index a203202..d5e4369 100644 --- a/sub +++ b/sub @@ -1,3 +1,4 @@ #name : sub(/../) { |match| .. } +# key: sub # -- sub(/${pattern}/) { |${match}| $0 } \ No newline at end of file diff --git a/task b/task index 74c4eee..b9ee6f4 100644 --- a/task +++ b/task @@ -1,4 +1,5 @@ #name : task :name ... end +# key: task # -- task :${2:name} do $0 diff --git a/task.1 b/task.1 index 960a172..7ce04f7 100644 --- a/task.1 +++ b/task.1 @@ -1,4 +1,5 @@ #name : desc ... task :name ... end +# key: task.1 # -- desc "${1:Task description}" task :${2:name} do diff --git a/tc b/tc index c787454..efd9078 100644 --- a/tc +++ b/tc @@ -1,4 +1,5 @@ # This was cloned from a TextMate bundle for yasnippet. +# key: tc # -- require "test/unit" diff --git a/tim b/tim index 3a132b3..6054fa7 100644 --- a/tim +++ b/tim @@ -1,3 +1,4 @@ #name : times { |n| ... } +# key: tim # -- times { |${n}| $0 } \ No newline at end of file diff --git a/tra b/tra index 26d797d..fdd2662 100644 --- a/tra +++ b/tra @@ -1,3 +1,4 @@ # This was cloned from a TextMate bundle for yasnippet. +# key: tra # -- transaction${1/(^.*?\S.*)|.*/(?1:\()/}${1:true}${1/(^.*?\S.*)|.*/(?1:\))/} { $0 } \ No newline at end of file diff --git a/ts b/ts index 5243154..e5f113e 100644 --- a/ts +++ b/ts @@ -1,4 +1,5 @@ # This was cloned from a TextMate bundle for yasnippet. +# key: ts # -- require "test/unit" diff --git a/unif b/unif index 298cf8a..692a2bd 100644 --- a/unif +++ b/unif @@ -1,4 +1,5 @@ #name : unix_filter { .. } +# key: unif # -- ARGF.each_line$1 do |${2:line}| $0 diff --git a/unless b/unless index 0bb96b1..f45cfbc 100644 --- a/unless +++ b/unless @@ -1,6 +1,7 @@ # -*- mode: yasnippet -*- #name : unless ... end #group : Conditions +# key: unless # -- unless ${1:condition} $0 diff --git a/until b/until index ed82b55..6db048f 100644 --- a/until +++ b/until @@ -1,4 +1,5 @@ #name : until ... end +# key: until # -- until ${1:condition} $0 diff --git a/upt b/upt index 103f6dd..7f3f97d 100644 --- a/upt +++ b/upt @@ -1,3 +1,4 @@ #name : upto(1.0/0.0) { |n| .. } +# key: upt # -- upto(${1:1.0/0.0}) { |${2:n}| $0 } \ No newline at end of file diff --git a/usai b/usai index 2a69001..b915d59 100644 --- a/usai +++ b/usai @@ -1,4 +1,5 @@ # This was cloned from a TextMate bundle for yasnippet. +# key: usai # -- if ARGV.$1 abort "Usage: #{\$PROGRAM_NAME} ${2:ARGS_GO_HERE}" diff --git a/usau b/usau index beb642e..2fc288c 100644 --- a/usau +++ b/usau @@ -1,4 +1,5 @@ # This was cloned from a TextMate bundle for yasnippet. +# key: usau # -- unless ARGV.$1 abort "Usage: #{\$PROGRAM_NAME} ${2:ARGS_GO_HERE}" diff --git a/va b/va index a0a62c0..d9f071e 100644 --- a/va +++ b/va @@ -1,4 +1,5 @@ #name : validates_associated : ... #group: ActiveRecord +# key: va # -- validates_associated :${attr} diff --git a/vc b/vc index 01250ad..7c7511e 100644 --- a/vc +++ b/vc @@ -1,4 +1,5 @@ #name : validates_confirmation_of : ... #group: ActiveRecord +# key: vc # -- validates_confirmation_of :${attr} diff --git a/ve b/ve index 22c6f65..9b47d22 100644 --- a/ve +++ b/ve @@ -1,4 +1,5 @@ #name : validates_exclusion_of : ... #group: ActiveRecord +# key: ve # -- validates_exclusion_of :${attr} diff --git a/vf b/vf index 5a03ec9..feaee20 100644 --- a/vf +++ b/vf @@ -1,4 +1,5 @@ #name : validates_format_of : ... , :with => / ... / #group: ActiveRecord +# key: vf # -- validates_format_of :${attr}, :with => /${regex}/ diff --git a/vi b/vi index 2db0966..8bc036e 100644 --- a/vi +++ b/vi @@ -1,4 +1,5 @@ #name : validates_inclusion_of : ... #group: ActiveRecord +# key: vi # -- validates_inclusion_of :${attr} \ No newline at end of file diff --git a/vn b/vn index b0f3386..8f21e8c 100644 --- a/vn +++ b/vn @@ -1,4 +1,5 @@ #name : validates_numericality_of : ... #group: ActiveRecord +# key: vn # -- validates_numericality_of :${attr} diff --git a/vp b/vp index 7437801..628ce2d 100644 --- a/vp +++ b/vp @@ -1,4 +1,5 @@ #name : validates_presence_of : ... #group: ActiveRecord +# key: vp # -- validates_presence_of :${attr} \ No newline at end of file diff --git a/vu b/vu index 79902ff..3ac5bcb 100644 --- a/vu +++ b/vu @@ -1,4 +1,5 @@ #name : validates_uniqueness_of : ... #group: ActiveRecord +# key: vu # -- validates_uniqueness_of :${attr} diff --git a/w b/w index d680f25..d0b912c 100644 --- a/w +++ b/w @@ -1,3 +1,4 @@ #name : attr_writer ... +# key: w # -- attr_writer : \ No newline at end of file diff --git a/when b/when index 1192024..6ec22f5 100644 --- a/when +++ b/when @@ -1,5 +1,6 @@ #name : when ... #group : Conditions +# key: when # -- when ${1:condition} $0 \ No newline at end of file diff --git a/while b/while index 936c2da..790eea8 100644 --- a/while +++ b/while @@ -1,5 +1,6 @@ #name : while ... end #group : Loops +# key: while # -- while ${condition} $0 diff --git a/xml- b/xml- index a4a8f70..0ac265b 100644 --- a/xml- +++ b/xml- @@ -1,3 +1,4 @@ # This was cloned from a TextMate bundle for yasnippet. +# key: xml- # -- REXML::Document.new(File.read(${1:"${2:path/to/file}"})) \ No newline at end of file diff --git a/xpa b/xpa index efdd6bc..4740cf0 100644 --- a/xpa +++ b/xpa @@ -1,4 +1,5 @@ #name : xpath(..) { .. } +# key: xpa # -- elements.each("${1://XPath}") do |${2:node}| $0 diff --git a/y b/y index cdec730..38ed59a 100644 --- a/y +++ b/y @@ -1,3 +1,4 @@ #name : :yields: arguments (rdoc) +# key: y # -- :yields: $0 \ No newline at end of file diff --git a/zip b/zip index 1c6eaf9..835f71e 100644 --- a/zip +++ b/zip @@ -1,4 +1,5 @@ #name : zip(...) { |...| ... } #group : Enumerables +# key: zip # -- zip(${enums}) { |${row}| $0 } \ No newline at end of file diff --git a/{ b/{ index ba29e21..0b77545 100644 --- a/{ +++ b/{ @@ -1,4 +1,5 @@ #name : { |variable| ... } #group : Blocks +# key: { # -- { |${1:variable}| $0 } \ No newline at end of file