gumdrop 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore CHANGED
@@ -4,4 +4,4 @@ output
4
4
  .sass-cache
5
5
  *.log
6
6
  old_*
7
- **/Gemfile.lock
7
+ Gemfile.lock
data/ChangeLog.md CHANGED
@@ -1,3 +1,7 @@
1
+ # v1.0.1
2
+ - Moved `watch` feature from gem CLI to example in Gumdrop site file. (Because the listen gem does not, in fact, work on every platform out of the box -- At least, not in a way that's usable in a library like this -- Gumdrop needs to support Windows, so listen is gone from core.)
3
+ - Fixed local reference to gumdrop gem in the default tempalte Gemfile.
4
+
1
5
  # v1.0.0
2
6
  - Complete internel rearchitecture. Good stuff.
3
7
  - Gumdrop files are now straight ruby that's loaded by gumdrop. You can do any typical ruby kind of things are the root level without having any scope surprises (Gumdrop will have been loaded).
data/Readme.md CHANGED
@@ -77,7 +77,7 @@ open source projects (in alphabetical order):
77
77
 
78
78
  * ActiveSupport
79
79
  * Bundle
80
- * Listen
80
+ * Launchy
81
81
  * Onfire
82
82
  * Sinatra
83
83
  * Tilt
@@ -89,5 +89,8 @@ And will, optionally, leverage these in building your site:
89
89
  * sprockets
90
90
  * stitch
91
91
  * jsmin
92
+ * slim
93
+ * haml/sass
94
+ * coffee-script
92
95
  * and many, many more! (todo: gotta document 'em all!)
93
96
 
data/gumdrop.gemspec CHANGED
@@ -29,7 +29,6 @@ Gem::Specification.new do |s|
29
29
  s.add_dependency 'active_support'
30
30
  s.add_dependency 'onfire'
31
31
  s.add_dependency 'sinatra'
32
- s.add_dependency 'listen'
33
32
  s.add_dependency 'i18n'
34
33
  s.add_dependency 'bundle'
35
34
 
@@ -1,5 +1,4 @@
1
1
  require 'fileutils'
2
- require 'listen'
3
2
  require 'thor'
4
3
 
5
4
  module Gumdrop::CLI
@@ -27,23 +26,10 @@ module Gumdrop::CLI
27
26
 
28
27
  desc 'server', 'Run development server'
29
28
  def server
30
- Gumdrop.site.options = options.merge(mode:'build')
29
+ Gumdrop.site.options = options.merge(mode:'server')
31
30
  Gumdrop::Server
32
31
  end
33
32
 
34
- desc 'watch', "Watch filesystem for changes and recompile"
35
- method_option :quiet, default:false, aliases:'-q', type: :boolean
36
- method_option :subdued, default:false, aliases:'-s', type: :boolean, desc:"Subdued output (....)"
37
- method_option :resume, default:false, aliases:'-r', type: :boolean, desc:"Auto resume rendering after any errors"
38
- def watch
39
- Gumdrop.run options.merge(mode:'merge')
40
- paths= [Gumdrop.site.source_dir, Gumdrop.site.sitefile] #? Sitefile too?
41
- paths << Gumdrop.site.data_dir if File.directory? Gumdrop.site.data_dir
42
- Listen.to(*paths, :latency => 0.5) do |m, a, r|
43
- Gumdrop.rebuild options.merge(mode:'merge')
44
- end
45
- end
46
-
47
33
  desc 'template [NAME]', "Create local template from this project"
48
34
  def template(name)
49
35
  template= name
@@ -89,7 +75,6 @@ module Gumdrop::CLI
89
75
  say "Gumdrop v#{ Gumdrop::VERSION }"
90
76
  end
91
77
 
92
-
93
78
  private
94
79
 
95
80
  def home_path(name="")
@@ -1,5 +1,5 @@
1
1
  module Gumdrop
2
2
 
3
- VERSION= "1.0.0"
3
+ VERSION= "1.0.1"
4
4
 
5
5
  end
@@ -198,6 +198,27 @@ end
198
198
  # end
199
199
  # end
200
200
 
201
+ # desc 'watch', "Watches the filesystem and recompiles whenever a source file changes."
202
+ # method_option :quiet, default:false, aliases:'-q', type: :boolean
203
+ # def watch
204
+ # require 'listen'
205
+ # if options[:quiet]
206
+ # Gumdrop.configure {|c| c.log_level= :warn }
207
+ # end
208
+ # Gumdrop.run
209
+ # paths= [Gumdrop.site.source_dir] #? Sitefile too?
210
+ # paths << Gumdrop.site.data_dir if File.directory? Gumdrop.site.data_dir
211
+ # Listen.to(*paths, :latency => 0.5) do |m, a, r|
212
+ # Gumdrop.log.info "Reloading site!"
213
+ # Gumdrop.rebuild
214
+ # end
215
+ # rescue LoadError
216
+ # say "Error: Watch requires the listen gem, be sure and add it to your Gemfile!"
217
+ # rescue => ex
218
+ # say "Error: #{ ex }"
219
+ # end
220
+
221
+
201
222
  # end
202
223
 
203
224
 
@@ -1,6 +1,9 @@
1
1
  source "http://rubygems.org"
2
2
 
3
- gem "gumdrop", :path=>'../../'
3
+ gem "gumdrop"
4
+
5
+ # for the watch command
6
+ # gem "listen"
4
7
 
5
8
  # Add your dependencies here:
6
9
 
@@ -197,6 +197,26 @@ Gumdrop.cli do
197
197
  end
198
198
  end
199
199
 
200
+ desc 'watch', "Watches the filesystem and recompiles whenever a source file changes."
201
+ method_option :quiet, default:false, aliases:'-q', type: :boolean
202
+ def watch
203
+ require 'listen'
204
+ if options[:quiet]
205
+ Gumdrop.configure {|c| c.log_level= :warn }
206
+ end
207
+ Gumdrop.run
208
+ paths= [Gumdrop.site.source_dir] #? Sitefile too?
209
+ paths << Gumdrop.site.data_dir if File.directory? Gumdrop.site.data_dir
210
+ Listen.to(*paths, :latency => 0.5) do |m, a, r|
211
+ Gumdrop.log.info "Reloading site!"
212
+ Gumdrop.rebuild
213
+ end
214
+ rescue LoadError
215
+ say "Error: Watch requires the listen gem, be sure and add it to your Gemfile!"
216
+ rescue => ex
217
+ say "Error: #{ ex }"
218
+ end
219
+
200
220
  end
201
221
 
202
222
 
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 1
7
7
  - 0
8
- - 0
9
- version: 1.0.0
8
+ - 1
9
+ version: 1.0.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - Matt McCray
@@ -83,7 +83,7 @@ dependencies:
83
83
  type: :runtime
84
84
  version_requirements: *id005
85
85
  - !ruby/object:Gem::Dependency
86
- name: listen
86
+ name: i18n
87
87
  prerelease: false
88
88
  requirement: &id006 !ruby/object:Gem::Requirement
89
89
  none: false
@@ -96,7 +96,7 @@ dependencies:
96
96
  type: :runtime
97
97
  version_requirements: *id006
98
98
  - !ruby/object:Gem::Dependency
99
- name: i18n
99
+ name: bundle
100
100
  prerelease: false
101
101
  requirement: &id007 !ruby/object:Gem::Requirement
102
102
  none: false
@@ -109,7 +109,7 @@ dependencies:
109
109
  type: :runtime
110
110
  version_requirements: *id007
111
111
  - !ruby/object:Gem::Dependency
112
- name: bundle
112
+ name: minitest
113
113
  prerelease: false
114
114
  requirement: &id008 !ruby/object:Gem::Requirement
115
115
  none: false
@@ -119,10 +119,10 @@ dependencies:
119
119
  segments:
120
120
  - 0
121
121
  version: "0"
122
- type: :runtime
122
+ type: :development
123
123
  version_requirements: *id008
124
124
  - !ruby/object:Gem::Dependency
125
- name: minitest
125
+ name: sqlite3
126
126
  prerelease: false
127
127
  requirement: &id009 !ruby/object:Gem::Requirement
128
128
  none: false
@@ -135,7 +135,7 @@ dependencies:
135
135
  type: :development
136
136
  version_requirements: *id009
137
137
  - !ruby/object:Gem::Dependency
138
- name: sqlite3
138
+ name: sprockets
139
139
  prerelease: false
140
140
  requirement: &id010 !ruby/object:Gem::Requirement
141
141
  none: false
@@ -148,7 +148,7 @@ dependencies:
148
148
  type: :development
149
149
  version_requirements: *id010
150
150
  - !ruby/object:Gem::Dependency
151
- name: sprockets
151
+ name: stitch
152
152
  prerelease: false
153
153
  requirement: &id011 !ruby/object:Gem::Requirement
154
154
  none: false
@@ -161,7 +161,7 @@ dependencies:
161
161
  type: :development
162
162
  version_requirements: *id011
163
163
  - !ruby/object:Gem::Dependency
164
- name: stitch
164
+ name: jsmin
165
165
  prerelease: false
166
166
  requirement: &id012 !ruby/object:Gem::Requirement
167
167
  none: false
@@ -173,19 +173,6 @@ dependencies:
173
173
  version: "0"
174
174
  type: :development
175
175
  version_requirements: *id012
176
- - !ruby/object:Gem::Dependency
177
- name: jsmin
178
- prerelease: false
179
- requirement: &id013 !ruby/object:Gem::Requirement
180
- none: false
181
- requirements:
182
- - - ">="
183
- - !ruby/object:Gem::Version
184
- segments:
185
- - 0
186
- version: "0"
187
- type: :development
188
- version_requirements: *id013
189
176
  description: The sweet 'n simple cms and prototyping tool for creating static html websites and webapps.
190
177
  email: matt@elucidata.net
191
178
  executables: