reloadapp 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,17 @@
1
+ *.gem
2
+ *.rbc
3
+ .bundle
4
+ .config
5
+ .yardoc
6
+ Gemfile.lock
7
+ InstalledFiles
8
+ _yardoc
9
+ coverage
10
+ doc/
11
+ lib/bundler/man
12
+ pkg
13
+ rdoc
14
+ spec/reports
15
+ test/tmp
16
+ test/version_tmp
17
+ tmp
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in reloadapp.gemspec
4
+ gemspec
data/LICENSE ADDED
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2012 Roy van der Meij
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,18 @@
1
+ # Reloadapp
2
+
3
+ Reload your browsers when you change code
4
+
5
+ ## Installation
6
+
7
+ $ gem install reloadapp
8
+
9
+ ## Usage
10
+
11
+ Using is simple.
12
+
13
+ 1. Create an account on http://reloadapp.com
14
+ 2. Create a website
15
+ 3. Paste the js snippet in your application layout file
16
+ 4. run 'reloadapp :token' in the root of your application
17
+ 5. Smile :). You don't have to refresh your browsers anymore
18
+
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env rake
2
+ require "bundler/gem_tasks"
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'reloadapp'
4
+ puts Reloadapp.run(ARGV[0])
@@ -0,0 +1,23 @@
1
+ require "reloadapp/version"
2
+ require "rb-fsevent"
3
+
4
+ module Reloadapp
5
+ @@token = ''
6
+
7
+ def self.run(token)
8
+ @@token = token
9
+ on_change { change_event }
10
+ end
11
+
12
+ def self.change_event
13
+ `curl -silet http://reloadapp.com/faye -d 'message={"channel" :"/websites/#{@@token}/reload", "data":"reload"}' > /dev/null`
14
+ puts "sending reload request"
15
+ end
16
+
17
+ def self.on_change &block
18
+ FSEvent.new.tap do |fsevent|
19
+ fsevent.watch('.', &block)
20
+ fsevent.run
21
+ end
22
+ end
23
+ end
@@ -0,0 +1,3 @@
1
+ module Reloadapp
2
+ VERSION = "0.0.1"
3
+ end
@@ -0,0 +1,22 @@
1
+ # -*- encoding: utf-8 -*-
2
+ require File.expand_path('../lib/reloadapp/version', __FILE__)
3
+
4
+ Gem::Specification.new do |gem|
5
+ gem.authors = ["Roy van der Meij"]
6
+ gem.email = ["roy@royapps.nl"]
7
+ gem.description = %q{Stop reloading your browser when working on an app, automate it!}
8
+ gem.summary = %q{
9
+ Are you tired of always switching to you browser from you editor to hit reload? Reloadapp is your solution!
10
+
11
+ Reloadapp will watch your code for changes, and whenever it spots a change, it will reload all browsers currently open with your app.
12
+ }
13
+ gem.homepage = "http://reloadapp.com"
14
+
15
+ gem.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
16
+ gem.files = `git ls-files`.split("\n")
17
+ gem.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
18
+ gem.name = "reloadapp"
19
+ gem.require_paths = ["lib"]
20
+ gem.version = Reloadapp::VERSION
21
+ gem.add_development_dependency "rb-fsevent"
22
+ end
metadata ADDED
@@ -0,0 +1,87 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: reloadapp
3
+ version: !ruby/object:Gem::Version
4
+ hash: 29
5
+ prerelease:
6
+ segments:
7
+ - 0
8
+ - 0
9
+ - 1
10
+ version: 0.0.1
11
+ platform: ruby
12
+ authors:
13
+ - Roy van der Meij
14
+ autorequire:
15
+ bindir: bin
16
+ cert_chain: []
17
+
18
+ date: 2012-03-25 00:00:00 Z
19
+ dependencies:
20
+ - !ruby/object:Gem::Dependency
21
+ name: rb-fsevent
22
+ prerelease: false
23
+ requirement: &id001 !ruby/object:Gem::Requirement
24
+ none: false
25
+ requirements:
26
+ - - ">="
27
+ - !ruby/object:Gem::Version
28
+ hash: 3
29
+ segments:
30
+ - 0
31
+ version: "0"
32
+ type: :development
33
+ version_requirements: *id001
34
+ description: Stop reloading your browser when working on an app, automate it!
35
+ email:
36
+ - roy@royapps.nl
37
+ executables:
38
+ - reloadapp
39
+ extensions: []
40
+
41
+ extra_rdoc_files: []
42
+
43
+ files:
44
+ - .gitignore
45
+ - Gemfile
46
+ - LICENSE
47
+ - README.md
48
+ - Rakefile
49
+ - bin/reloadapp
50
+ - lib/reloadapp.rb
51
+ - lib/reloadapp/version.rb
52
+ - reloadapp.gemspec
53
+ homepage: http://reloadapp.com
54
+ licenses: []
55
+
56
+ post_install_message:
57
+ rdoc_options: []
58
+
59
+ require_paths:
60
+ - lib
61
+ required_ruby_version: !ruby/object:Gem::Requirement
62
+ none: false
63
+ requirements:
64
+ - - ">="
65
+ - !ruby/object:Gem::Version
66
+ hash: 3
67
+ segments:
68
+ - 0
69
+ version: "0"
70
+ required_rubygems_version: !ruby/object:Gem::Requirement
71
+ none: false
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ hash: 3
76
+ segments:
77
+ - 0
78
+ version: "0"
79
+ requirements: []
80
+
81
+ rubyforge_project:
82
+ rubygems_version: 1.8.10
83
+ signing_key:
84
+ specification_version: 3
85
+ summary: Are you tired of always switching to you browser from you editor to hit reload? Reloadapp is your solution! Reloadapp will watch your code for changes, and whenever it spots a change, it will reload all browsers currently open with your app.
86
+ test_files: []
87
+