md_splitter 0.0.9 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,7 +1,6 @@
1
1
  require 'json'
2
2
  require 'uuidtools'
3
3
  require 'active_support/inflector'
4
- require 'base64'
5
4
 
6
5
  module MdSplitter
7
6
  class ElfManifestBuilder
@@ -74,7 +73,7 @@ module MdSplitter
74
73
  end
75
74
 
76
75
  def encode_string str
77
- Base64.urlsafe_encode64 str
76
+ str.gsub(%r{\W+},"_")
78
77
  end
79
78
  end
80
79
  end
@@ -1,3 +1,3 @@
1
1
  module MdSplitter
2
- VERSION = "0.0.9"
2
+ VERSION = "0.1.0"
3
3
  end
@@ -3,7 +3,7 @@ require 'base64'
3
3
 
4
4
  describe "ELF manifest builder." do
5
5
  before(:each) do
6
- @manifest_id = 'this/is/a/path'
6
+ @manifest_id = 'this/is/a/./path'
7
7
  @page_list = get_test_page_list
8
8
  @subject = MdSplitter::ElfManifestBuilder.new # @page_list, @manifest_id
9
9
  end
@@ -27,9 +27,7 @@ describe "ELF manifest builder." do
27
27
  end
28
28
 
29
29
  it "should properly encode the id provided" do
30
- encoded_id = @result[:id]
31
- decoded_id = Base64.urlsafe_decode64 encoded_id
32
- decoded_id.should eq @manifest_id
30
+ @result[:id].should eq 'this_is_a_path'
33
31
  end
34
32
 
35
33
  it "should have a pages array" do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: md_splitter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.1.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-11-03 00:00:00.000000000Z
12
+ date: 2011-11-04 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake
16
- requirement: &70311673374340 !ruby/object:Gem::Requirement
16
+ requirement: &70142634290060 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 0.9.2
22
22
  type: :development
23
23
  prerelease: false
24
- version_requirements: *70311673374340
24
+ version_requirements: *70142634290060
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: bundler
27
- requirement: &70311673373060 !ruby/object:Gem::Requirement
27
+ requirement: &70142634288560 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: 1.0.21
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *70311673373060
35
+ version_requirements: *70142634288560
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: rspec
38
- requirement: &70311673371980 !ruby/object:Gem::Requirement
38
+ requirement: &70142634287760 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ~>
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: 2.7.0
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *70311673371980
46
+ version_requirements: *70142634287760
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: guard-rspec
49
- requirement: &70311673371340 !ruby/object:Gem::Requirement
49
+ requirement: &70142634287100 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: '0'
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *70311673371340
57
+ version_requirements: *70142634287100
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: growl
60
- requirement: &70311673370480 !ruby/object:Gem::Requirement
60
+ requirement: &70142634286340 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ! '>='
@@ -65,10 +65,10 @@ dependencies:
65
65
  version: '0'
66
66
  type: :development
67
67
  prerelease: false
68
- version_requirements: *70311673370480
68
+ version_requirements: *70142634286340
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rb-fsevent
71
- requirement: &70311673369600 !ruby/object:Gem::Requirement
71
+ requirement: &70142634285680 !ruby/object:Gem::Requirement
72
72
  none: false
73
73
  requirements:
74
74
  - - ! '>='
@@ -76,10 +76,10 @@ dependencies:
76
76
  version: '0'
77
77
  type: :development
78
78
  prerelease: false
79
- version_requirements: *70311673369600
79
+ version_requirements: *70142634285680
80
80
  - !ruby/object:Gem::Dependency
81
81
  name: kramdown
82
- requirement: &70311673368520 !ruby/object:Gem::Requirement
82
+ requirement: &70142634284540 !ruby/object:Gem::Requirement
83
83
  none: false
84
84
  requirements:
85
85
  - - ~>
@@ -87,10 +87,10 @@ dependencies:
87
87
  version: 0.13.3
88
88
  type: :runtime
89
89
  prerelease: false
90
- version_requirements: *70311673368520
90
+ version_requirements: *70142634284540
91
91
  - !ruby/object:Gem::Dependency
92
92
  name: commander
93
- requirement: &70311673367460 !ruby/object:Gem::Requirement
93
+ requirement: &70142634283840 !ruby/object:Gem::Requirement
94
94
  none: false
95
95
  requirements:
96
96
  - - ~>
@@ -98,10 +98,10 @@ dependencies:
98
98
  version: 4.0.6
99
99
  type: :runtime
100
100
  prerelease: false
101
- version_requirements: *70311673367460
101
+ version_requirements: *70142634283840
102
102
  - !ruby/object:Gem::Dependency
103
103
  name: json
104
- requirement: &70311673361960 !ruby/object:Gem::Requirement
104
+ requirement: &70142634283240 !ruby/object:Gem::Requirement
105
105
  none: false
106
106
  requirements:
107
107
  - - ~>
@@ -109,10 +109,10 @@ dependencies:
109
109
  version: 1.6.1
110
110
  type: :runtime
111
111
  prerelease: false
112
- version_requirements: *70311673361960
112
+ version_requirements: *70142634283240
113
113
  - !ruby/object:Gem::Dependency
114
114
  name: uuidtools
115
- requirement: &70311673361120 !ruby/object:Gem::Requirement
115
+ requirement: &70142634281720 !ruby/object:Gem::Requirement
116
116
  none: false
117
117
  requirements:
118
118
  - - ~>
@@ -120,10 +120,10 @@ dependencies:
120
120
  version: 2.1.2
121
121
  type: :runtime
122
122
  prerelease: false
123
- version_requirements: *70311673361120
123
+ version_requirements: *70142634281720
124
124
  - !ruby/object:Gem::Dependency
125
125
  name: active_support
126
- requirement: &70311673359880 !ruby/object:Gem::Requirement
126
+ requirement: &70142634280740 !ruby/object:Gem::Requirement
127
127
  none: false
128
128
  requirements:
129
129
  - - ~>
@@ -131,7 +131,7 @@ dependencies:
131
131
  version: 3.0.0
132
132
  type: :runtime
133
133
  prerelease: false
134
- version_requirements: *70311673359880
134
+ version_requirements: *70142634280740
135
135
  description: Parses md docs for split markers and produces multiple html files and
136
136
  a json manifest
137
137
  email:
@@ -181,7 +181,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
181
181
  version: '0'
182
182
  segments:
183
183
  - 0
184
- hash: -1265141025115172998
184
+ hash: -372280616915862322
185
185
  required_rubygems_version: !ruby/object:Gem::Requirement
186
186
  none: false
187
187
  requirements:
@@ -190,7 +190,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
190
190
  version: '0'
191
191
  segments:
192
192
  - 0
193
- hash: -1265141025115172998
193
+ hash: -372280616915862322
194
194
  requirements: []
195
195
  rubyforge_project: md_splitter
196
196
  rubygems_version: 1.8.10