gollum_rails 1.0.4 → 1.0.5
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.
- checksums.yaml +4 -4
- data/Gemfile +2 -1
- data/Gemfile.lock +118 -92
- data/Guardfile +7 -0
- data/HISTORY.md +32 -0
- data/README.md +7 -2
- data/Rakefile +5 -5
- data/gollum_rails.gemspec +9 -13
- data/lib/gollum_rails.rb +2 -9
- data/lib/gollum_rails/adapters/gollum.rb +12 -3
- data/lib/gollum_rails/adapters/gollum/page.rb +92 -45
- data/lib/gollum_rails/adapters/gollum/wiki.rb +12 -11
- data/lib/gollum_rails/page.rb +208 -65
- data/lib/gollum_rails/setup.rb +9 -2
- data/spec/gollum_rails/adapters/gollum/connector_spec.rb +8 -2
- data/spec/gollum_rails/adapters/gollum/page_spec.rb +18 -78
- data/spec/gollum_rails/adapters/gollum/{wiki_spec.rb → wiki_spec_off.rb} +0 -0
- data/spec/gollum_rails/page_spec.rb +310 -79
- data/spec/spec_helper.rb +0 -23
- metadata +17 -23
- data/lib/core_ext/string.rb +0 -3
- data/lib/gollum_rails/modulesDEPRECATED/hash.rb +0 -33
- data/lib/gollum_rails/modulesDEPRECATED/loader.rb +0 -5
- data/lib/grit/git-ruby/internal/pack.rb +0 -397
- data/spec/gollum_rails/modulesDEPRECATED/hash.rb +0 -31
- data/spec/gollum_rails_spec.rb +0 -9
- data/spec/spec.opts +0 -3
@@ -1,31 +0,0 @@
|
|
1
|
-
require 'spec_helper'
|
2
|
-
|
3
|
-
describe ::Hash do
|
4
|
-
before(:each) do
|
5
|
-
@hash_a = {:a => "b", :b => "c"}
|
6
|
-
@hash_b = {a: "b", b: "c"}
|
7
|
-
end
|
8
|
-
it "should initialize a new hash" do
|
9
|
-
@hash_a.should be_instance_of(Hash)
|
10
|
-
@hash_b.should be_instance_of(Hash)
|
11
|
-
@hash_b.should == @hash_a
|
12
|
-
@hash_b.a.should == @hash_b[:a]
|
13
|
-
@hash_b.b.should == @hash_b[:b]
|
14
|
-
@hash_b.a.should == @hash_a.a
|
15
|
-
@hash_b.b.should == @hash_a.b
|
16
|
-
end
|
17
|
-
it "should change the value by method missing" do
|
18
|
-
|
19
|
-
@hash_c = {:hooh => "c", :tripple => {:d => "d"}}
|
20
|
-
@hash_d = Hash.new
|
21
|
-
expect{@hash_d.x}.to raise_error
|
22
|
-
#@hash_a.d.to_s.should == "{ d: 'd', x: 'Hash.new' }"
|
23
|
-
#@hash_a.d.should be_instance_of(Hash)
|
24
|
-
#puts @hash_a.d
|
25
|
-
#expect{@hash_a.hash = {d:"d"}}.to be_equal Hash['{:a=>"b", :b=>"c", "b"=>[3], :d=>"d"}']
|
26
|
-
#puts @hash_a
|
27
|
-
#@hash_a.a = "other"
|
28
|
-
#puts @hash_a
|
29
|
-
#expect{@hash_a.a = "other"}.to be_equal "other"
|
30
|
-
end
|
31
|
-
end
|
data/spec/gollum_rails_spec.rb
DELETED
data/spec/spec.opts
DELETED