gumdrop 1.0.1 → 1.0.2

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.
data/ChangeLog.md CHANGED
@@ -1,3 +1,8 @@
1
+ # v1.0.2
2
+ - `gumdrop new` will automatically run `bundle install` so the project site is ready to go.
3
+ - Using kramdown in default template.
4
+ - Bugfix: Windows regression, in data providers.
5
+
1
6
  # v1.0.1
2
7
  - 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
8
  - Fixed local reference to gumdrop gem in the default tempalte Gemfile.
data/Rakefile CHANGED
@@ -42,5 +42,5 @@ end
42
42
 
43
43
  desc "test generated output > OpenDiff"
44
44
  task :test_output_ui do
45
- sh "cd specs/fixtures/source && bundle exec gumdrop build -f && opendiff ../output ../expected"
45
+ sh "cd specs/fixtures/source && bundle exec gumdrop build -f -q && opendiff ../output ../expected"
46
46
  end
@@ -26,7 +26,10 @@ module Gumdrop::CLI
26
26
  say "Unknown template!!\n"
27
27
  say "Please select from one of the following:\n\n"
28
28
  self.templates
29
+ return
29
30
  end
31
+ path= File.expand_path(name)
32
+ puts `cd #{path} && bundle install`
30
33
  end
31
34
 
32
35
  desc 'templates', 'List templates'
@@ -1,8 +1,14 @@
1
1
  module Gumdrop::Data
2
- class YAMLDBDataProvider < YAMLandJSONDataProvider
2
+ class YAMLDBDataProvider < Provider
3
3
 
4
4
  extension :yamldb
5
5
 
6
+ def available?
7
+ require 'yaml'
8
+ true
9
+ rescue LoadError
10
+ false
11
+ end
6
12
 
7
13
  def data_for(filepath)
8
14
  docs=[]
@@ -1,8 +1,15 @@
1
1
  module Gumdrop::Data
2
- class YAMLDocDataProvider < YAMLandJSONDataProvider
2
+ class YAMLDocDataProvider < Provider
3
3
 
4
4
  extension :yamldoc
5
5
 
6
+ def available?
7
+ require 'yaml'
8
+ true
9
+ rescue LoadError
10
+ false
11
+ end
12
+
6
13
  def data_for(filepath)
7
14
  yamldoc= Gumdrop::Util::YamlDoc.new File.read(filepath), true
8
15
  supply_data yamldoc.data
@@ -1,5 +1,5 @@
1
1
  module Gumdrop
2
2
 
3
- VERSION= "1.0.1"
3
+ VERSION= "1.0.2"
4
4
 
5
5
  end
@@ -8,7 +8,7 @@ Gumdrop.configure do |config|
8
8
  config.output_dir= '../output'
9
9
  config.data_dir= './data'
10
10
  config.custom_setting= 'yep'
11
- config.log_level= :debug
11
+ config.log_level= :debug if config.mode == :test
12
12
  config.log= config.mode == :test ? 'test.log' : STDOUT
13
13
  end
14
14
 
@@ -23,7 +23,7 @@ gem 'stitch-rb'
23
23
  #gem 'sprockets'
24
24
 
25
25
  # For markdown support, a couple of options:
26
- gem "kramdown", :git => "git://github.com/darthapo/kramdown.git"
26
+ gem "kramdown" #, :git => "git://github.com/darthapo/kramdown.git" #(github code-fence support)
27
27
  # gem 'redcarpet'
28
28
  # gem "rdiscount"
29
29
  # gem 'maruku'
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 1
7
7
  - 0
8
- - 1
9
- version: 1.0.1
8
+ - 2
9
+ version: 1.0.2
10
10
  platform: ruby
11
11
  authors:
12
12
  - Matt McCray
@@ -185,7 +185,6 @@ files:
185
185
  - .gitignore
186
186
  - ChangeLog.md
187
187
  - Gemfile
188
- - Gemfile.lock
189
188
  - License
190
189
  - Rakefile
191
190
  - Readme.md
@@ -271,7 +270,6 @@ files:
271
270
  - specs/fixtures/expected/test-yamldoc.html
272
271
  - specs/fixtures/expected/test.html
273
272
  - specs/fixtures/source/Gemfile
274
- - specs/fixtures/source/Gemfile.lock
275
273
  - specs/fixtures/source/Gumdrop
276
274
  - specs/fixtures/source/data-access/from-csv.html.erb
277
275
  - specs/fixtures/source/data-access/from-json.html.erb
data/Gemfile.lock DELETED
@@ -1,75 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- gumdrop (1.0.0)
5
- active_support
6
- bundle
7
- i18n
8
- listen
9
- onfire
10
- sinatra
11
- thor
12
- tilt
13
-
14
- GEM
15
- remote: https://rubygems.org/
16
- specs:
17
- active_support (3.0.0)
18
- activesupport (= 3.0.0)
19
- activesupport (3.0.0)
20
- bundle (0.0.1)
21
- bundler
22
- chunky_png (1.2.5)
23
- compass (0.12.2)
24
- chunky_png (~> 1.2)
25
- fssm (>= 0.2.7)
26
- sass (~> 3.1)
27
- ffi (1.0.11)
28
- fssm (0.2.9)
29
- hike (1.2.1)
30
- i18n (0.6.0)
31
- jsmin (1.0.1)
32
- listen (0.4.7)
33
- rb-fchange (~> 0.0.5)
34
- rb-fsevent (~> 0.9.1)
35
- rb-inotify (~> 0.8.8)
36
- minitest (3.2.0)
37
- multi_json (1.3.6)
38
- onfire (0.2.0)
39
- rack (1.4.1)
40
- rack-protection (1.2.0)
41
- rack
42
- rb-fchange (0.0.5)
43
- ffi
44
- rb-fsevent (0.9.1)
45
- rb-inotify (0.8.8)
46
- ffi (>= 0.5.0)
47
- redcarpet (2.1.1)
48
- sass (3.2.0.alpha.261)
49
- sinatra (1.3.2)
50
- rack (~> 1.3, >= 1.3.6)
51
- rack-protection (~> 1.2)
52
- tilt (~> 1.3, >= 1.3.3)
53
- sprockets (2.4.3)
54
- hike (~> 1.2)
55
- multi_json (~> 1.0)
56
- rack (~> 1.0)
57
- tilt (~> 1.1, != 1.3.0)
58
- sqlite3 (1.3.6)
59
- stitch (0.1.6)
60
- compass
61
- sass (~> 3.2.0.alpha)
62
- thor (0.15.4)
63
- tilt (1.3.3)
64
-
65
- PLATFORMS
66
- ruby
67
-
68
- DEPENDENCIES
69
- gumdrop!
70
- jsmin
71
- minitest
72
- redcarpet
73
- sprockets
74
- sqlite3
75
- stitch
@@ -1,84 +0,0 @@
1
- PATH
2
- remote: ../../../
3
- specs:
4
- gumdrop (1.0.0)
5
- active_support
6
- bundle
7
- i18n
8
- listen
9
- onfire
10
- sinatra
11
- thor
12
- tilt
13
-
14
- GEM
15
- remote: https://rubygems.org/
16
- specs:
17
- active_support (3.0.0)
18
- activesupport (= 3.0.0)
19
- activesupport (3.0.0)
20
- bundle (0.0.1)
21
- bundler
22
- coffee-script (2.2.0)
23
- coffee-script-source
24
- execjs
25
- coffee-script-source (1.3.3)
26
- execjs (1.4.0)
27
- multi_json (~> 1.0)
28
- ffi (1.0.11)
29
- hike (1.2.1)
30
- i18n (0.6.0)
31
- jsmin (1.0.1)
32
- listen (0.4.7)
33
- rb-fchange (~> 0.0.5)
34
- rb-fsevent (~> 0.9.1)
35
- rb-inotify (~> 0.8.8)
36
- multi_json (1.3.6)
37
- onfire (0.2.0)
38
- rack (1.4.1)
39
- rack-protection (1.2.0)
40
- rack
41
- rake (0.9.2.2)
42
- rb-fchange (0.0.5)
43
- ffi
44
- rb-fsevent (0.9.1)
45
- rb-inotify (0.8.8)
46
- ffi (>= 0.5.0)
47
- redcarpet (2.1.1)
48
- sass (3.1.19)
49
- sinatra (1.3.2)
50
- rack (~> 1.3, >= 1.3.6)
51
- rack-protection (~> 1.2)
52
- tilt (~> 1.3, >= 1.3.3)
53
- slim (1.2.2)
54
- temple (~> 0.4.0)
55
- tilt (~> 1.3.3)
56
- sprockets (2.4.3)
57
- hike (~> 1.2)
58
- multi_json (~> 1.0)
59
- rack (~> 1.0)
60
- tilt (~> 1.1, != 1.3.0)
61
- sqlite3 (1.3.6)
62
- stitch-rb (0.0.8)
63
- temple (0.4.0)
64
- thor (0.15.3)
65
- tilt (1.3.3)
66
-
67
- PLATFORMS
68
- ruby
69
-
70
- DEPENDENCIES
71
- active_support
72
- coffee-script
73
- gumdrop!
74
- i18n
75
- jsmin
76
- rake
77
- redcarpet
78
- sass
79
- sinatra
80
- slim
81
- sprockets
82
- sqlite3
83
- stitch-rb
84
- thor