slippery 0.2.0 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8f80fda0bae62ca067435e834e419d92aa8afe0a
4
- data.tar.gz: 142867e88db162cc4df8bedacca3fdaee9a8e84d
3
+ metadata.gz: 1491dbf26924ecc74cedaa9844aeb852879859b9
4
+ data.tar.gz: d9b12a2e1d14577735431745372c87d3081287d2
5
5
  SHA512:
6
- metadata.gz: 87cd334648baa6b950f6444bc4b97d37762f475c0a90f75bc3e046c307bf53cef62bf4f77226f20fd064776819dfa4bc564791d27022fdbfea21b99a0253eb4b
7
- data.tar.gz: 441939de5557f7de808772ccd8e2a1dfd5c4e75c3e2deade95dee4c205276de6f1adcbb234a789a05b0d6fc791d8467ece9605b417d962bb19eb4f8f107ea11a
6
+ metadata.gz: 28f97b9e0817227b2a0a968122036302ad9c88fe44e131846637014aa23df2ac784c0e765730ec8752605f5de261b77781f7bce7c75297b14e538529dcae3051
7
+ data.tar.gz: b5c424106415ce8cbe20b2f2431faae70af09452b4d9b62991f37a768cb1c20a24451dd73a5533e480ea10666146ec92838d7e5858a369fde18111a7e3e26545
data/.gitignore CHANGED
@@ -1,2 +1,3 @@
1
1
  .bundle
2
2
  pkg
3
+ Gemfile.lock
data/.travis.yml CHANGED
@@ -2,7 +2,7 @@ language: ruby
2
2
  rvm:
3
3
  - 1.9.3
4
4
  - 2.0.0
5
- - 2.1.0
5
+ - 2.1.1
6
6
  - jruby-19mode
7
7
  - rbx
8
8
  - ruby-head
data/Changelog.md ADDED
@@ -0,0 +1,24 @@
1
+ # v0.3.0
2
+
3
+ - Make `rake slippery:presentation:watch` work cross platform (Greg Karékinian)
4
+ - Fix bug in watch task when HTML file does not exist yet (Greg Karékinian)
5
+
6
+ # v0.2.0
7
+
8
+ - Remove core extension (private_attr_accessor)
9
+ - Use [AssetPacker](https://github.com/plexus/asset_packer) to bundle assets locally
10
+
11
+ # v0.1.0
12
+
13
+ - Have watch task detect changes in CSS and JS, not just in the Markdown
14
+ - Support for highlight.js
15
+
16
+ # v0.0.3
17
+
18
+ - Add anchors to sections
19
+ - Introduce Slippery::RakeTasks
20
+ - Initial implementation for local copy of assets (Christophe Philemotte)
21
+
22
+ # v0.0.1
23
+
24
+ First release, support for Impress.js, Reveal.js, Graphviz.
@@ -17,7 +17,6 @@ module Slippery
17
17
  head <<= H[:script, 'hljs.initHighlightingOnLoad();']
18
18
  end
19
19
  end
20
-
21
20
  end
22
21
  end
23
22
  end
@@ -36,7 +36,6 @@ module Slippery
36
36
  end
37
37
  element.set_children(sections)
38
38
  end
39
-
40
39
  end
41
40
  end
42
41
  end
@@ -1,5 +1,5 @@
1
1
  require 'rake/tasklib'
2
- require 'rb-inotify'
2
+ require 'listen'
3
3
 
4
4
  module Slippery
5
5
  class RakeTasks < Rake::TaskLib
@@ -55,7 +55,6 @@ module Slippery
55
55
  ).(doc)
56
56
  end
57
57
 
58
-
59
58
  def title(title)
60
59
  processor 'head' do |head|
61
60
  head <<= H[:title, title]
@@ -88,7 +87,7 @@ module Slippery
88
87
  desc "watch #{name} for changes"
89
88
  WatchTask.new(name, [path.to_s, *files]) do
90
89
  dest = Tempfile.new("#{name}.html")
91
- File.open("#{name}.html") { |src| FileUtils.copy_stream(src, dest) }
90
+ File.open("#{name}.html", 'w+') { |src| FileUtils.copy_stream(src, dest) }
92
91
  dest.close
93
92
  Rake::Task["#{@name}:build:#{name}"].execute
94
93
  puts "="*60
@@ -96,9 +95,7 @@ module Slippery
96
95
  end
97
96
  end
98
97
  end
99
-
100
98
  end
101
-
102
99
  end
103
100
  end
104
101
 
@@ -106,19 +103,13 @@ module Slippery
106
103
  class WatchTask
107
104
  def initialize(name, files, &block)
108
105
  Rake::Task.define_task name do
109
- Array(files).each do |pattern|
110
- notifier.watch(pattern, :modify, &block)
111
- end
106
+ listener = Listen.to('.', :only => /#{files.join('|')}/, &block)
107
+
112
108
  at_exit do
113
- block.call
114
- notifier.run
109
+ listener.start # not blocking
110
+ sleep
115
111
  end
116
112
  end
117
113
  end
118
-
119
- def notifier
120
- @notifier ||= INotify::Notifier.new
121
- end
122
114
  end
123
-
124
115
  end
@@ -1,3 +1,3 @@
1
1
  module Slippery
2
- VERSION = '0.2.0'
2
+ VERSION = '0.3.0'
3
3
  end
data/slippery.gemspec CHANGED
@@ -20,7 +20,7 @@ Gem::Specification.new do |gem|
20
20
  gem.add_runtime_dependency 'hexp' , '~> 0.3.3'
21
21
  gem.add_runtime_dependency 'kramdown' , '~> 1.1'
22
22
  gem.add_runtime_dependency 'rake' , '~> 10.1'
23
- gem.add_runtime_dependency 'rb-inotify' , '~> 0.9.3'
23
+ gem.add_runtime_dependency 'listen' , '~> 2.7'
24
24
  gem.add_runtime_dependency 'concord' , '~> 0.1.4'
25
25
  gem.add_runtime_dependency 'asset_packer' , '~> 0.1.0'
26
26
 
@@ -63,5 +63,4 @@ describe Slippery::Converter, 'convert' do
63
63
  specify { expect(hexp).to eq html(*result) }
64
64
  end
65
65
  end
66
-
67
66
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: slippery
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Arne Brasseur
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-04-20 00:00:00.000000000 Z
11
+ date: 2014-04-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: hexp
@@ -53,19 +53,19 @@ dependencies:
53
53
  - !ruby/object:Gem::Version
54
54
  version: '10.1'
55
55
  - !ruby/object:Gem::Dependency
56
- name: rb-inotify
56
+ name: listen
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - ~>
60
60
  - !ruby/object:Gem::Version
61
- version: 0.9.3
61
+ version: '2.7'
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - ~>
67
67
  - !ruby/object:Gem::Version
68
- version: 0.9.3
68
+ version: '2.7'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: concord
71
71
  requirement: !ruby/object:Gem::Requirement
@@ -133,8 +133,8 @@ extra_rdoc_files:
133
133
  files:
134
134
  - .gitignore
135
135
  - .travis.yml
136
+ - Changelog.md
136
137
  - Gemfile
137
- - Gemfile.lock
138
138
  - LICENSE
139
139
  - README.md
140
140
  - Rakefile
data/Gemfile.lock DELETED
@@ -1,105 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- slippery (0.2.0)
5
- asset_packer (~> 0.1.0)
6
- concord (~> 0.1.4)
7
- hexp (~> 0.3.3)
8
- kramdown (~> 1.1)
9
- rake (~> 10.1)
10
- rb-inotify (~> 0.9.3)
11
-
12
- GEM
13
- remote: https://rubygems.org/
14
- specs:
15
- abstract_type (0.0.7)
16
- adamantium (0.2.0)
17
- ice_nine (~> 0.11.0)
18
- memoizable (~> 0.4.0)
19
- anima (0.2.0)
20
- abstract_type (~> 0.0.7)
21
- adamantium (~> 0.1)
22
- equalizer (~> 0.0.8)
23
- asset_packer (0.1.0)
24
- hexp (~> 0.3.3)
25
- mime-types (~> 2.2)
26
- ast (1.1.0)
27
- concord (0.1.4)
28
- adamantium (~> 0.1)
29
- equalizer (~> 0.0.7)
30
- diff-lcs (1.2.5)
31
- equalizer (0.0.9)
32
- ffi (1.9.3)
33
- hexp (0.3.3)
34
- equalizer (~> 0.0)
35
- ice_nine (~> 0.9)
36
- nokogiri (~> 1.6)
37
- sass (~> 3.2.19)
38
- ice_nine (0.11.0)
39
- inflecto (0.0.2)
40
- kramdown (1.3.3)
41
- memoizable (0.4.2)
42
- thread_safe (~> 0.3, >= 0.3.1)
43
- mime-types (2.2)
44
- mini_portile (0.5.3)
45
- morpher (0.2.2)
46
- abstract_type (~> 0.0.7)
47
- adamantium (~> 0.2.0)
48
- anima (~> 0.2.0)
49
- ast (~> 1.1.0)
50
- concord (~> 0.1.4)
51
- equalizer (~> 0.0.9)
52
- ice_nine (~> 0.11.0)
53
- procto (~> 0.0.2)
54
- mutant (0.5.10)
55
- abstract_type (~> 0.0.7)
56
- adamantium (~> 0.2.0)
57
- anima (~> 0.2.0)
58
- concord (~> 0.1.4)
59
- diff-lcs (~> 1.2)
60
- equalizer (~> 0.0.9)
61
- ice_nine (~> 0.11.0)
62
- inflecto (~> 0.0.2)
63
- memoizable (~> 0.4.2)
64
- morpher (~> 0.2.1)
65
- parser (~> 2.1)
66
- procto (~> 0.0.2)
67
- unparser (~> 0.1.10)
68
- mutant-rspec (0.5.3)
69
- mutant (~> 0.5.3)
70
- rspec-core (>= 2.14.1, <= 3.0.0.beta2)
71
- nokogiri (1.6.1)
72
- mini_portile (~> 0.5.0)
73
- parser (2.1.8)
74
- ast (~> 1.1)
75
- slop (~> 3.4, >= 3.4.5)
76
- procto (0.0.2)
77
- rake (10.3.1)
78
- rb-inotify (0.9.3)
79
- ffi (>= 0.5.0)
80
- rspec (2.14.1)
81
- rspec-core (~> 2.14.0)
82
- rspec-expectations (~> 2.14.0)
83
- rspec-mocks (~> 2.14.0)
84
- rspec-core (2.14.8)
85
- rspec-expectations (2.14.5)
86
- diff-lcs (>= 1.1.3, < 2.0)
87
- rspec-mocks (2.14.6)
88
- sass (3.2.19)
89
- slop (3.5.0)
90
- thread_safe (0.3.3)
91
- unparser (0.1.12)
92
- abstract_type (~> 0.0.7)
93
- adamantium (~> 0.2.0)
94
- concord (~> 0.1.4)
95
- equalizer (~> 0.0.9)
96
- parser (~> 2.1)
97
- procto (~> 0.0.2)
98
-
99
- PLATFORMS
100
- ruby
101
-
102
- DEPENDENCIES
103
- mutant-rspec (~> 0.5.3)
104
- rspec (~> 2.14)
105
- slippery!