Skip to content

Commit

Permalink
improved documentation of code.
Browse files Browse the repository at this point in the history
  • Loading branch information
andrzejsliwa committed Mar 9, 2011
1 parent 3f047c8 commit aad0a08
Show file tree
Hide file tree
Showing 13 changed files with 9,102 additions and 688 deletions.
4 changes: 2 additions & 2 deletions .couchapprc.example
@@ -1,7 +1,7 @@
{
"env": {
"test": {
"db": "http://localhost:5984/couchwatch-test"
},
"db": "http://localhost:5984/backbone-couch-test"
}
}
}
44 changes: 44 additions & 0 deletions Gemfile.lock
@@ -0,0 +1,44 @@
GEM
remote: http://rubygems.org/
specs:
archive-tar-minitar (0.5.2)
compass (0.10.6)
haml (>= 3.0.4)
downlow (0.1.4)
archive-tar-minitar (>= 0.5.2)
rubyzip (>= 0.9.4)
haml (3.0.25)
jim (0.2.3)
downlow (>= 0.1.3)
version_sorter (>= 1.1.0)
yajl-ruby
json (1.4.6)
mime-types (1.16)
mustache (0.11.2)
rack (1.2.1)
rb-fsevent (0.3.10)
ruby-growl (3.0)
rubyzip (0.9.4)
soca (0.1.2)
compass (~> 0.10.5)
jim (~> 0.2.3)
json (~> 1.4.6)
mime-types (~> 1.16)
mustache (~> 0.11.2)
thor (~> 0.14.0)
typhoeus (~> 0.1.31)
thor (0.14.6)
typhoeus (0.1.31)
rack
version_sorter (1.1.0)
watchr (0.7)
yajl-ruby (0.8.1)

PLATFORMS
ruby

DEPENDENCIES
rb-fsevent
ruby-growl
soca (~> 0.1.2)
watchr (~> 0.7)
6 changes: 0 additions & 6 deletions autopush.watchr
Expand Up @@ -36,10 +36,6 @@ def run(cmd)
system cmd
end

# couchapprc = check_file(".couchapprc")
# couchapprc = JSON.parse(File.read(couchapprc))
# dbname = couchapprc["env"]["test"]["db"].match(/\d\/(\S*)$/m)[1]

configjs = check_file("config.js")
configjs = JSON.parse(File.read(configjs))
appname = configjs["id"]
Expand All @@ -49,8 +45,6 @@ if is_growl
growl.notify("CouchApp AutoPush", "backbone-couch", "default & test.", 1, true)
end

push(appname, growl)

watch('.*') do |m|
unless m[0].match(/\/.idea\//) or m[0].match(/\/.git\//)
puts "#{m[0]} was changed."
Expand Down

0 comments on commit aad0a08

Please sign in to comment.