pushify 1.2.0 → 1.2.1

Sign up to get free protection for your applications and to get access to all the features.
data/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2009 Thinklink, LLC
1
+ Copyright (c) 2011 Jason Tillery
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
data/README.markdown CHANGED
@@ -1,7 +1,7 @@
1
- # Pushify: Instantly push css changes to your browser(s) whenever you save.
2
- See updates you make to css files appear immediately in all of your browsers without having to refresh.
1
+ # Pushify = way faster CSS development
2
+ See updates you make to css files appear immediately in all of your browsers without having to refresh them.
3
3
 
4
- If you've ever spent more than 5 minutes making changes to a css file you should really love this tool.
4
+ If you've ever spent more than 5 minutes making changes to a css file you should really love this tool. Pushify instruments your application in development mode with pushify.js. It then creates a socket connection from your browser back to the pushify server with the help of juggernaut. When you save a css file, pushify notifies your browser (or browsers) and reloads only that file. This makes style changes appear in your browser almost instantly, letting you develop your stylesheets way faster.
5
5
 
6
6
  # Installation
7
7
 
@@ -21,11 +21,19 @@ That's it. Load your app in a browser and update the CSS file in your editor.
21
21
 
22
22
  Now open up a different browser and update the CSS. Now you can watch the effect of your CSS updates on multiple browsers without refreshing.
23
23
 
24
+ # Future
25
+ There are two big sets of improvements that need to be made to pushify.
26
+
27
+ 1. Support for more frameworks
28
+ 2. The ability to auto-update more than just CSS. Pushify actually already supports image file updates, but it will be really cool when it supports js and html changes.
29
+
30
+ _Check the issues list for specific tasks_
31
+
24
32
  # Limitations
25
- * Will not work in windows development environments
26
- * Currently is only available as a plugin to rails
33
+ * Not tested on windows
34
+ * Currently only compatible with rails
27
35
 
28
36
  # Authors
29
- Jason Tillery
30
- Vishu Ramanathan
37
+ * Jason Tillery
38
+ * Vishu Ramanathan
31
39
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.2.0
1
+ 1.2.1
@@ -1,4 +1,4 @@
1
1
  body {
2
2
  background-color: #880000;
3
- background-color: red;
3
+ background-color: green;
4
4
  }
@@ -1,6 +1,8 @@
1
1
  /*
2
2
  Copyright (c) 2008 Alexander MacCaw
3
3
 
4
+ tilleryj: Modified the original to break dependency on PrototypeJS
5
+
4
6
  Permission is hereby granted, free of charge, to any person obtaining
5
7
  a copy of this software and associated documentation files (the
6
8
  "Software"), to deal in the Software without restriction, including
data/install/pushify.js CHANGED
@@ -19,17 +19,6 @@ var Pushify = (function() {
19
19
  }
20
20
  };
21
21
 
22
- var handleScssFile = function(file) {
23
- var cssFile = "/compiled/" + file.match(/(.*)\.scss($|\?)/)[1];
24
- handleCssFile(cssFile);
25
- setTimeout(function() {
26
- handleCssFile(cssFile);
27
- }, 1000);
28
- setTimeout(function() {
29
- handleCssFile(cssFile);
30
- }, 2000);
31
- };
32
-
33
22
  var handleImageFile = function(file) {
34
23
  var images = document.getElementsByTagName("img");
35
24
  var imgSrc = "/images" + file;
@@ -66,9 +55,7 @@ var Pushify = (function() {
66
55
 
67
56
  for (var i=0, length=files.length; i<length; i++) {
68
57
  var file = strip(files[i]).toLowerCase();
69
- if (file.match(/\.scss($|\?)/)) {
70
- handleCssFile(file);
71
- } else if (file.match(/\.css($|\?)/)) {
58
+ if (file.match(/\.css($|\?)/)) {
72
59
  handleCssFile(file);
73
60
  } else if (file.match(/\.js($|\?)/)) {
74
61
  handleJsFile(file);
@@ -9,7 +9,7 @@ module Pushify
9
9
  CONFIG_FILE = "#{File.dirname(__FILE__)}/../../install/juggernaut_hosts.yml"
10
10
  end
11
11
 
12
- CONFIG = YAML::load(ERB.new(IO.read(CONFIG_FILE)).result).freeze
12
+ CONFIG = YAML::load(::ERB.new(IO.read(CONFIG_FILE)).result).freeze
13
13
  CR = "\0"
14
14
 
15
15
  class << self
data/pushify.gemspec CHANGED
@@ -5,7 +5,10 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{pushify}
8
- s.version = "1.0.0"
8
+ s.version = "1.2.0"
9
+
10
+ s.add_dependency("juggernaut")
11
+ s.add_dependency("json")
9
12
 
10
13
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
14
  s.authors = ["Jason Tillery"]
@@ -14,10 +17,8 @@ Gem::Specification.new do |s|
14
17
  s.email = %q{tilleryj@thinklinkr.com}
15
18
  s.executables = ["pushify"]
16
19
  s.files = [
17
- ".specification",
18
20
  "LICENSE",
19
21
  "README.markdown",
20
- "ROADMAP",
21
22
  "Rakefile",
22
23
  "VERSION",
23
24
  "bin/pushify",
@@ -36,12 +37,9 @@ Gem::Specification.new do |s|
36
37
  "lib/pushify/rack.rb",
37
38
  "lib/pushify/rails.rb",
38
39
  "lib/pushify/server.rb",
39
- "pkg/pushify-1.0.0.gem",
40
- "pushify.gemspec",
41
- "spec/css_push_spec.rb",
42
- "spec/spec_helper.rb"
40
+ "pushify.gemspec"
43
41
  ]
44
- s.homepage = %q{http://github.com/tilleryj/pushify}
42
+ s.homepage = %q{https://github.com/tilleryj/pushify}
45
43
  s.require_paths = ["lib"]
46
44
  s.rubygems_version = %q{1.3.7}
47
45
  s.summary = %q{See updates you make to css, html, javascript, and images appear immediately in all of your browsers without having to refresh.}
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pushify
3
3
  version: !ruby/object:Gem::Version
4
- hash: 31
4
+ hash: 29
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 2
9
- - 0
10
- version: 1.2.0
9
+ - 1
10
+ version: 1.2.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Jason Tillery
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-01-29 00:00:00 -06:00
18
+ date: 2011-02-06 00:00:00 -06:00
19
19
  default_executable: pushify
20
20
  dependencies: []
21
21
 
@@ -56,10 +56,6 @@ files:
56
56
  - demos/rails2/db/development.sqlite3
57
57
  - demos/rails2/db/seeds.rb
58
58
  - demos/rails2/doc/README_FOR_APP
59
- - demos/rails2/log/development.log
60
- - demos/rails2/log/production.log
61
- - demos/rails2/log/server.log
62
- - demos/rails2/log/test.log
63
59
  - demos/rails2/public/404.html
64
60
  - demos/rails2/public/422.html
65
61
  - demos/rails2/public/500.html
@@ -1,90 +0,0 @@
1
- # Logfile created on Thu Jan 20 02:35:24 -0600 2011
2
-
3
- Processing TestController#index (for 127.0.0.1 at 2011-01-20 03:03:33) [GET]
4
- Rendering test/index
5
- Completed in 23ms (View: 22, DB: 0) | 200 OK [http://localhost/]
6
-
7
-
8
- Processing TestController#index (for 127.0.0.1 at 2011-01-20 03:17:09) [GET]
9
- Rendering test/index
10
- Completed in 15ms (View: 14, DB: 0) | 200 OK [http://localhost/]
11
-
12
-
13
- Processing TestController#index (for 127.0.0.1 at 2011-01-20 03:17:36) [GET]
14
- Rendering test/index
15
- Completed in 14ms (View: 13, DB: 0) | 200 OK [http://localhost/]
16
-
17
-
18
- Processing TestController#index (for 127.0.0.1 at 2011-01-20 03:20:00) [GET]
19
- Rendering test/index
20
- Completed in 14ms (View: 13, DB: 0) | 200 OK [http://localhost/]
21
-
22
-
23
- Processing TestController#index (for 127.0.0.1 at 2011-01-20 03:20:02) [GET]
24
- Rendering test/index
25
- Completed in 2ms (View: 1, DB: 0) | 200 OK [http://localhost/]
26
-
27
-
28
- Processing TestController#index (for 127.0.0.1 at 2011-01-20 03:20:02) [GET]
29
- Rendering test/index
30
- Completed in 2ms (View: 1, DB: 0) | 200 OK [http://localhost/]
31
-
32
-
33
- Processing TestController#index (for 127.0.0.1 at 2011-01-20 03:20:02) [GET]
34
- Rendering test/index
35
- Completed in 2ms (View: 1, DB: 0) | 200 OK [http://localhost/]
36
-
37
-
38
- Processing TestController#index (for 127.0.0.1 at 2011-01-20 03:20:03) [GET]
39
- Rendering test/index
40
- Completed in 2ms (View: 1, DB: 0) | 200 OK [http://localhost/]
41
-
42
-
43
- Processing TestController#index (for 127.0.0.1 at 2011-01-25 22:00:38) [GET]
44
- Rendering test/index
45
- Completed in 32ms (View: 31, DB: 0) | 200 OK [http://localhost/]
46
-
47
-
48
- Processing TestController#index (for 127.0.0.1 at 2011-01-25 22:02:18) [GET]
49
- Rendering test/index
50
- Completed in 2ms (View: 1, DB: 0) | 200 OK [http://localhost/]
51
-
52
-
53
- Processing TestController#index (for 127.0.0.1 at 2011-01-29 17:06:52) [GET]
54
- Rendering test/index
55
- Completed in 528ms (View: 339, DB: 0) | 200 OK [http://localhost/]
56
-
57
-
58
- Processing TestController#index (for 127.0.0.1 at 2011-01-29 17:09:32) [GET]
59
- Rendering test/index
60
- Completed in 2ms (View: 1, DB: 0) | 200 OK [http://localhost/]
61
-
62
-
63
- Processing TestController#index (for 127.0.0.1 at 2011-01-29 17:09:38) [GET]
64
- Rendering test/index
65
- Completed in 2ms (View: 1, DB: 0) | 200 OK [http://localhost/]
66
-
67
-
68
- Processing TestController#index (for 127.0.0.1 at 2011-01-29 17:09:46) [GET]
69
- Rendering test/index
70
- Completed in 2ms (View: 1, DB: 0) | 200 OK [http://localhost/]
71
-
72
-
73
- Processing TestController#index (for 127.0.0.1 at 2011-01-29 17:09:52) [GET]
74
- Rendering test/index
75
- Completed in 2ms (View: 1, DB: 0) | 200 OK [http://localhost/]
76
-
77
-
78
- Processing TestController#index (for 127.0.0.1 at 2011-01-29 17:10:00) [GET]
79
- Rendering test/index
80
- Completed in 2ms (View: 1, DB: 0) | 200 OK [http://localhost/]
81
-
82
-
83
- Processing TestController#index (for 127.0.0.1 at 2011-01-29 17:10:44) [GET]
84
- Rendering test/index
85
- Completed in 2ms (View: 1, DB: 0) | 200 OK [http://localhost/]
86
-
87
-
88
- Processing TestController#index (for 127.0.0.1 at 2011-01-29 17:14:22) [GET]
89
- Rendering test/index
90
- Completed in 2ms (View: 1, DB: 0) | 200 OK [http://localhost/]
File without changes
File without changes
File without changes