gollum_rails 1.0.6 → 1.4.0.rc1

Sign up to get free protection for your applications and to get access to all the features.
@@ -40,21 +40,5 @@ describe GollumRails::Setup do
40
40
  expect{setup.startup=true}.to raise_error
41
41
  end
42
42
  end
43
- it "should test the Rails configuration" do
44
- GollumRails::Setup.build do |setup|
45
-
46
- # => The repository path to the
47
- #
48
- #
49
- setup.repository = :application
50
-
51
- #setup.wiki.use = :default
52
- expect{setup.startup=(true)}.to raise_error(NoMethodError, "undefined method `config' for nil:NilClass")
53
-
54
- #setup.repository = nil
55
- #expect{setup.startup=true}.to raise_error GollumRails::GollumInternalError
56
-
57
- end
58
- end
59
43
 
60
44
  end
data/spec/spec.opts ADDED
@@ -0,0 +1,3 @@
1
+ --color
2
+ --format progress
3
+
data/spec/spec_helper.rb CHANGED
@@ -7,14 +7,37 @@ Coveralls.wear!
7
7
  require 'gollum_rails'
8
8
 
9
9
 
10
+ require 'benchmark'
11
+ RSpec::Matchers.define :take_less_than do |n|
12
+ chain :seconds do; end
13
+ match do |block|
14
+ @elapsed = Benchmark.realtime do
15
+ block.call
16
+ end
17
+ @elapsed <= n
18
+ end
19
+ end
10
20
 
11
21
  RSpec.configure do |config|
12
22
  config.treat_symbols_as_metadata_keys_with_true_values = true
13
23
 
24
+ config.backtrace_clean_patterns = [
25
+ /\/lib\d*\/ruby\//,
26
+ /bin\//,
27
+ /gems/,
28
+ /spec\/spec_helper\.rb/,
29
+ /lib\/rspec\/(core|expectations|matchers|mocks)/
30
+ ]
14
31
  config.before(:each) do
15
32
  GollumRails::Adapters::Gollum::Connector.enabled = true
16
33
  end
34
+ config.full_backtrace= false # save the console
35
+ config.color_enabled= true # save your eyes
36
+ config.formatter = :documentation
17
37
 
18
38
  config.mock_with :rr
39
+
40
+ config.before(:each) do
41
+ end
19
42
 
20
43
  end
metadata CHANGED
@@ -1,43 +1,43 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gollum_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.6
4
+ version: 1.4.0.rc1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Florian Kasper
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-12-09 00:00:00.000000000 Z
11
+ date: 2013-05-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activemodel
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '>='
17
+ - - ~>
18
18
  - !ruby/object:Gem::Version
19
- version: 3.2.11
19
+ version: 4.0.0.rc1
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - '>='
24
+ - - ~>
25
25
  - !ruby/object:Gem::Version
26
- version: 3.2.11
26
+ version: 4.0.0.rc1
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: gollum-lib
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - ~>
32
32
  - !ruby/object:Gem::Version
33
- version: 1.0.9
33
+ version: 1.0.0
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - ~>
39
39
  - !ruby/object:Gem::Version
40
- version: 1.0.9
40
+ version: 1.0.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rspec
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -58,28 +58,28 @@ dependencies:
58
58
  requirements:
59
59
  - - ~>
60
60
  - !ruby/object:Gem::Version
61
- version: 1.1.1
61
+ version: 1.0.4
62
62
  type: :development
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: 1.1.1
68
+ version: 1.0.4
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rails
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - '>='
73
+ - - ~>
74
74
  - !ruby/object:Gem::Version
75
- version: 3.2.11
75
+ version: 4.0.0.rc1
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - '>='
80
+ - - ~>
81
81
  - !ruby/object:Gem::Version
82
- version: 3.2.11
82
+ version: 4.0.0.rc1
83
83
  description: include Gollum into Rails with ease
84
84
  email: mosny@zyg.li
85
85
  executables: []
@@ -88,12 +88,12 @@ extra_rdoc_files: []
88
88
  files:
89
89
  - Gemfile
90
90
  - Gemfile.lock
91
- - Guardfile
92
91
  - HISTORY.md
93
92
  - LICENSE
94
93
  - README.md
95
94
  - Rakefile
96
95
  - gollum_rails.gemspec
96
+ - lib/core_ext/string.rb
97
97
  - lib/generators/gollum_rails/install/install_generator.rb
98
98
  - lib/generators/gollum_rails/install/templates/gollum_initializer.rb
99
99
  - lib/generators/gollum_rails/language/language_generator.rb
@@ -109,8 +109,11 @@ files:
109
109
  - lib/gollum_rails/adapters/gollum/error.rb
110
110
  - lib/gollum_rails/adapters/gollum/page.rb
111
111
  - lib/gollum_rails/adapters/gollum/wiki.rb
112
+ - lib/gollum_rails/modules/hash.rb
113
+ - lib/gollum_rails/modules/loader.rb
112
114
  - lib/gollum_rails/page.rb
113
115
  - lib/gollum_rails/setup.rb
116
+ - lib/grit/git-ruby/internal/pack.rb
114
117
  - spec/gollum_rails/adapters/activemodel/error_spec.rb
115
118
  - spec/gollum_rails/adapters/activemodel/naming_spec.rb
116
119
  - spec/gollum_rails/adapters/activemodel/validation_unused.rb
@@ -118,14 +121,15 @@ files:
118
121
  - spec/gollum_rails/adapters/gollum/connector_spec.rb
119
122
  - spec/gollum_rails/adapters/gollum/error_spec.rb
120
123
  - spec/gollum_rails/adapters/gollum/page_spec.rb
121
- - spec/gollum_rails/adapters/gollum/wiki_spec_off.rb
122
- - spec/gollum_rails/error_spec.rb
124
+ - spec/gollum_rails/adapters/gollum/wiki_spec.rb
125
+ - spec/gollum_rails/modules/hash_spec.rb
123
126
  - spec/gollum_rails/page_spec.rb
124
127
  - spec/gollum_rails/respository_spec.rb
125
128
  - spec/gollum_rails/setup_spec.rb
126
129
  - spec/gollum_rails/wiki_spec.rb
130
+ - spec/spec.opts
127
131
  - spec/spec_helper.rb
128
- homepage: https://github.com/nirnanaaa/gollum_rails
132
+ homepage: http://gollum.zyg.li
129
133
  licenses:
130
134
  - AGPL
131
135
  metadata: {}
@@ -143,12 +147,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
143
147
  version: 1.9.3
144
148
  required_rubygems_version: !ruby/object:Gem::Requirement
145
149
  requirements:
146
- - - '>='
150
+ - - '>'
147
151
  - !ruby/object:Gem::Version
148
- version: '0'
152
+ version: 1.3.1
149
153
  requirements: []
150
154
  rubyforge_project: gollum_rails
151
- rubygems_version: 2.1.11
155
+ rubygems_version: 2.0.3
152
156
  signing_key:
153
157
  specification_version: 4
154
158
  summary: Combines Gollum and Rails
data/Guardfile DELETED
@@ -1,7 +0,0 @@
1
- guard :rspec do
2
- watch(%r{^spec/.+_spec\.rb$})
3
- watch(%r{^lib/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
4
- watch('spec/spec_helper.rb') { "spec" }
5
-
6
- end
7
-
@@ -1,10 +0,0 @@
1
- require 'spec_helper'
2
- describe GollumRails::GollumInternalError do
3
-
4
- it "should display a fancy inspect" do
5
- GollumRails::GollumInternalError.new("hihi").inspect.should include("{name: \"hihi\"")
6
- end
7
- it "should raise an error with custom message" do
8
- expect{raise GollumRails::GollumInternalError.new("myname", "is", "i am the message")}.to raise_error
9
- end
10
- end