Skip to content

Commit

Permalink
Initial package
Browse files Browse the repository at this point in the history
  • Loading branch information
retgoat committed Jan 27, 2016
0 parents commit fa4363e
Show file tree
Hide file tree
Showing 15 changed files with 263 additions and 0 deletions.
31 changes: 31 additions & 0 deletions Snippets/Custom Matcher.tmSnippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>content</key>
<string>defmodule ${1:MyCustomMatcher}
defp match(${3:subject}, ${4:number}) do
result = rem(${4:number}, ${3:subject})
{result == 0, result}
end
defp success_message(${3:subject}, ${4:number}, ${5:_result}, ${6:positive}) do
to = if ${6:positive}, do: "is", else: "is not"
"`#{inspect ${3:subject}}` #{to} the divisor of #{${4:number}}."
end
defp error_message(${3:subject}, ${4:number}, ${5:result}, ${6:positive}) do
to = if ${6:positive}, do: "to", else: "not to"
"Expected `#{inspect ${3:subject}}` #{to} be the divisor of `#{${4:number}}`, but the remainder is '#{${5:result}}'."
end
end</string>
<key>name</key>
<string>Custom Matcher</string>
<key>scope</key>
<string>source.elixir.espec</string>
<key>tabTrigger</key>
<string>cusmat</string>
<key>uuid</key>
<string>55BF6C99-B4C4-4772-B7DC-0A18407E429C</string>
</dict>
</plist>
19 changes: 19 additions & 0 deletions Snippets/context-sync-async.tmSnippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>content</key>
<string>context "${1:description}", sync: ${2:sync_mode} do
${3:matcher}
end$0
</string>
<key>name</key>
<string>context sync</string>
<key>scope</key>
<string>source.elixir.espec</string>
<key>tabTrigger</key>
<string>consy</string>
<key>uuid</key>
<string>1201777F-3AC4-4B2A-9A46-C215F891B07A</string>
</dict>
</plist>
19 changes: 19 additions & 0 deletions Snippets/finally-block.tmSnippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>content</key>
<string>finally do
${1:block}
end
</string>
<key>name</key>
<string>finally</string>
<key>scope</key>
<string>source.elixir.espec</string>
<key>tabTrigger</key>
<string>fnlb</string>
<key>uuid</key>
<string>1201777F-3AC4-4B2A-9A46-C215F891B07A</string>
</dict>
</plist>
16 changes: 16 additions & 0 deletions Snippets/finally-one-line.tmSnippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>content</key>
<string>finally do: ${1:block} do</string>
<key>name</key>
<string>finally</string>
<key>scope</key>
<string>source.elixir.espec</string>
<key>tabTrigger</key>
<string>fnl</string>
<key>uuid</key>
<string>1201777F-3AC4-4B2A-9A46-C215F891B07A</string>
</dict>
</plist>
16 changes: 16 additions & 0 deletions Snippets/include_examples.tmSnippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>content</key>
<string>include_examples(${1:SharedExample})</string>
<key>name</key>
<string>include shared examples</string>
<key>scope</key>
<string>source.elixir.espec</string>
<key>tabTrigger</key>
<string>incse</string>
<key>uuid</key>
<string>1201777F-3AC4-4B2A-9A46-C215F891B07A</string>
</dict>
</plist>
16 changes: 16 additions & 0 deletions Snippets/setup-one-line.tmSnippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>content</key>
<string>before do: $0</string>
<key>name</key>
<string>before</string>
<key>scope</key>
<string>source.elixir.espec</string>
<key>tabTrigger</key>
<string>bef</string>
<key>uuid</key>
<string>7D960FC5-4859-4328-A06B-73A3CF6763E0</string>
</dict>
</plist>
18 changes: 18 additions & 0 deletions Snippets/setup.tmSnippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>content</key>
<string>before do
$0
end</string>
<key>name</key>
<string>before</string>
<key>scope</key>
<string>source.elixir.espec</string>
<key>tabTrigger</key>
<string>befb</string>
<key>uuid</key>
<string>7D960FC5-4859-4328-A06B-73A3CF6763E0</string>
</dict>
</plist>
16 changes: 16 additions & 0 deletions Snippets/to_raise.tmSnippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>content</key>
<string>to_raise(${1:exception})</string>
<key>name</key>
<string>to_raise</string>
<key>scope</key>
<string>source.elixir.espec</string>
<key>tabTrigger</key>
<string>tre</string>
<key>uuid</key>
<string>65B85B0D-26FC-4A08-8D6A-7BF00AA787FC</string>
</dict>
</plist>
16 changes: 16 additions & 0 deletions Snippets/to_throw.tmSnippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>content</key>
<string>to(${:throw_term})</string>
<key>name</key>
<string>to(throw_term)</string>
<key>scope</key>
<string>source.elixir.espec</string>
<key>tabTrigger</key>
<string>tth</string>
<key>uuid</key>
<string>2CC293EE-496A-4B66-928C-332DDCBEE884</string>
</dict>
</plist>
16 changes: 16 additions & 0 deletions Snippets/to_throw_term.tmSnippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>content</key>
<string>to(${:throw_term} ${2:term})</string>
<key>name</key>
<string>to(throw_term term)</string>
<key>scope</key>
<string>source.elixir.espec</string>
<key>tabTrigger</key>
<string>tth</string>
<key>uuid</key>
<string>2CC293EE-496A-4B66-928C-332DDCBEE884</string>
</dict>
</plist>
16 changes: 16 additions & 0 deletions Snippets/use-ESpec.Phoenix.Controller.tmSnippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>content</key>
<string>use ESpec.Phoenix, controller: Pspgwe.MyController</string>
<key>name</key>
<string>use ESpec.Phoenix.Controller</string>
<key>scope</key>
<string>source.elixir.espec</string>
<key>tabTrigger</key>
<string>usesphc</string>
<key>uuid</key>
<string>DAD2B74D-2105-42B0-9FC5-466F3B3D0DB7</string>
</dict>
</plist>
16 changes: 16 additions & 0 deletions Snippets/use-ESpec.Phoenix.Model.tmSnippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>content</key>
<string>use ESpec.Phoenix, model: MyModel</string>
<key>name</key>
<string>use ESpec.Phoenix</string>
<key>scope</key>
<string>source.elixir.espec</string>
<key>tabTrigger</key>
<string>usesphm</string>
<key>uuid</key>
<string>DAD2B74D-2105-42B0-9FC5-466F3B3D0DB7</string>
</dict>
</plist>
16 changes: 16 additions & 0 deletions Snippets/use-ESpec.Phoenix.Request.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>content</key>
<string>use ESpec.Phoenix, request: Pspgwe.Endpoint</string>
<key>name</key>
<string>use ESpec.Phoenix.Endpoint</string>
<key>scope</key>
<string>source.elixir.espec</string>
<key>tabTrigger</key>
<string>usesphr</string>
<key>uuid</key>
<string>DAD2B74D-2105-42B0-9FC5-466F3B3D0DB7</string>
</dict>
</plist>
16 changes: 16 additions & 0 deletions Snippets/use-ESpec.Phoenix.View.tmSnippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>content</key>
<string>use ESpec.Phoenix, view: Pspgwe.ExamplesView</string>
<key>name</key>
<string>use ESpec.Phoenix.ExamplesView</string>
<key>scope</key>
<string>source.elixir.espec</string>
<key>tabTrigger</key>
<string>usesphv</string>
<key>uuid</key>
<string>DAD2B74D-2105-42B0-9FC5-466F3B3D0DB7</string>
</dict>
</plist>
16 changes: 16 additions & 0 deletions Snippets/use-ESpec.tmSnippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>content</key>
<string>use ESpec</string>
<key>name</key>
<string>use ESpec</string>
<key>scope</key>
<string>source.elixir.espec</string>
<key>tabTrigger</key>
<string>usesp</string>
<key>uuid</key>
<string>DAD2B74D-2105-42B0-9FC5-466F3B3D0DB7</string>
</dict>
</plist>

0 comments on commit fa4363e

Please sign in to comment.