gollum_rails 1.0.2 → 1.0.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8e56f1c38049b5c88e4774cd88ceb414d3a88e3c
4
- data.tar.gz: 4238c31d63ca8597e1ed8b0e69a9aaa46a31f253
3
+ metadata.gz: 2a2c2e98a8c012221cdd7df298985e2a78e484a7
4
+ data.tar.gz: 0541fe5604df89959e2f164cec74cfe3cac97546
5
5
  SHA512:
6
- metadata.gz: 6599a1872724fbb09a65bb489e845eef9d2b07cfd9c7e093d82eaacdbf6af6e3633c511b147cae1600f9297ab7503f7dac1a00df97e03ff9236011f79abe4dd7
7
- data.tar.gz: 9a6c1f70a997384592437c2295fffab178639fdb1ef1d94c2690eacc844a6cba06db48fa8070a2813845b873d7ad6ec5950604a82b15b5c3dd748392957495d9
6
+ metadata.gz: ecde48f9e07329566993ad8372bd6ea6ac859be2801a37cbab1c564944c9fb15546956cb5232f66927b98bc6fdb97f3a10dcb6b05492ba80fdeea072161ff42a
7
+ data.tar.gz: 3aec45e7526934f729262afb84c9f563d70ff25213e41bdbd61b73c542cb881683f83cb4b7297439c1c00dacd614fe3ba6712f9a243e9753aa0d076f555ade4a
data/Gemfile.lock CHANGED
@@ -1,9 +1,8 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- gollum_rails (1.0.2)
4
+ gollum_rails (1.0.3)
5
5
  activemodel (~> 3.2.13)
6
- gitlab-grit (~> 1.0.0)
7
6
  gollum-lib (~> 1.0.0)
8
7
 
9
8
  GEM
@@ -49,10 +48,6 @@ GEM
49
48
  erubis (2.7.0)
50
49
  github-markdown (0.5.3)
51
50
  github-markup (0.7.5)
52
- gitlab-grit (1.0.0)
53
- diff-lcs (~> 1.1)
54
- mime-types (~> 1.15)
55
- posix-spawn (~> 0.3.6)
56
51
  gollum-lib (1.0.0)
57
52
  github-markdown (~> 0.5.3)
58
53
  github-markup (>= 0.7.5, < 1.0.0)
data/HISTORY.md CHANGED
@@ -1,3 +1,8 @@
1
+ # 1.0.3 25th April 2013
2
+ * fixed post install messsage
3
+ * removed unused require statements
4
+ * removed gitlab-grit
5
+
1
6
  # 1.0.2 23th April 2013
2
7
  * added standalone compability for ruby 2.0
3
8
  * added patches by styx
data/gollum_rails.gemspec CHANGED
@@ -4,14 +4,13 @@ Gem::Specification.new do |s|
4
4
  s.name = 'gollum_rails'
5
5
  s.rubyforge_project = s.name
6
6
 
7
- s.version = '1.0.2'
7
+ s.version = '1.0.3'
8
8
 
9
9
  s.summary = 'Combines the benefits from Gollum and Rails'
10
10
  s.description= 'Use all the benefits from Rails and combine them with the awesome Gollum wiki'
11
11
 
12
12
  s.add_dependency 'activemodel', '~> 3.2.13'
13
13
  s.add_dependency 'gollum-lib', '~> 1.0.0'
14
- s.add_dependency 'gitlab-grit', '~> 1.0.0'
15
14
 
16
15
  s.add_development_dependency 'rspec', '~> 2.13.0'
17
16
  s.add_development_dependency 'rr', '~> 1.0.4'
@@ -77,13 +76,11 @@ Gem::Specification.new do |s|
77
76
  s.require_paths = %w[lib]
78
77
  s.post_install_message = <<-END
79
78
  Important: \n
80
- **********************************************
81
- To use the installer just run the following command:
79
+ To enable gollum_rails run the following command:
82
80
  \trails g gollum_rails:install\n
83
81
  To generate a new Page model just run:
84
82
  \trails g gollum_rails:model MODEL_NAME\n
85
83
  To install an additional parsing language run:
86
- rails g gollum_rails:language LANGUAGE
87
- **********************************************"
84
+ \trails g gollum_rails:language LANGUAGE
88
85
  END
89
86
  end
data/lib/gollum_rails.rb CHANGED
@@ -2,6 +2,7 @@ require 'rubygems'
2
2
  require 'gollum-lib'
3
3
  require 'grit/git-ruby/internal/pack'
4
4
  require 'core_ext/string'
5
+
5
6
  # GollumRails is a RubyGem for extending Rails and the Gollum wiki powered by github
6
7
  # It has the ability to combine the benefits from a git powered wiki with Rails.
7
8
  #
@@ -15,7 +16,7 @@ module GollumRails
15
16
  autoload :Setup, 'gollum_rails/setup'
16
17
 
17
18
  # GollumRails version string
18
- VERSION = '1.0.2'
19
+ VERSION = '1.0.3'
19
20
 
20
21
  # Simplified error
21
22
  class Error < StandardError; end
@@ -30,7 +31,5 @@ end
30
31
 
31
32
  require File.expand_path '../gollum_rails/adapters/activemodel', __FILE__
32
33
  require File.expand_path '../gollum_rails/adapters/gollum', __FILE__
33
- #require File.expand_path '../gollum_rails/setup', __FILE__
34
- #require File.expand_path '../gollum_rails/page', __FILE__
35
34
  # load extensions
36
35
  require File.expand_path '../gollum_rails/modules/loader', __FILE__
@@ -8,9 +8,9 @@ describe "Gollum Page" do
8
8
  :email => "mosny@zyg.li"
9
9
  }
10
10
  @call = {
11
- :name => "Goole",
12
- :content => "content data",
13
- :commit => @commit,
11
+ :name => "Goole",
12
+ :content => "content data",
13
+ :commit => @commit,
14
14
  :format => :markdown
15
15
  }
16
16
  end
@@ -26,7 +26,7 @@ describe "Gollum Page" do
26
26
  rr.save!.should be_instance_of Gollum::Page
27
27
  RailsModel.create(@call)
28
28
  end
29
-
29
+
30
30
  it "should test the update of a page" do
31
31
  rr = RailsModel.new @call
32
32
  cc = rr.save.should be_instance_of Gollum::Page
@@ -116,7 +116,7 @@ describe "Gollum Page" do
116
116
  @name.should == "Goole"
117
117
  end
118
118
  def before_update
119
- @name.should == "Goole"
119
+ @name.should == "Goole"
120
120
  end
121
121
 
122
122
  def after_update
@@ -124,13 +124,13 @@ describe "Gollum Page" do
124
124
  end
125
125
 
126
126
  def before_delete
127
- @name.should == "Goole"
127
+ @name.should == "Goole"
128
128
  end
129
129
 
130
130
  def after_delete
131
131
  @name.should == "Goole"
132
132
  end
133
-
133
+
134
134
  end
135
135
 
136
136
  test = CallbackTest.new @call
@@ -169,7 +169,7 @@ describe "Gollum Page" do
169
169
  @call[:name] = "das ist zu lang"*10
170
170
  cla = SugarBaby.new @call
171
171
  cla.valid?.should be_true
172
- end
172
+ end
173
173
  it "should test the presence validator" do
174
174
  @call[:name] = [ ]
175
175
  bla = SugarBaby.new @call
@@ -187,5 +187,21 @@ describe "Gollum Page" do
187
187
  end
188
188
 
189
189
  end
190
+ describe "the thread safety" do
191
+ class ThreadModel < GollumRails::Page
192
+
193
+ end
194
+ it "should save " do
195
+ 100.times do |time|
196
+ Thread.new do
197
+ ThreadModel.new(@call)
198
+ ThreadModel.save.should be_instance_of(Gollum::Page)
199
+ ThreadModel.delete(@commit).length.should == 40
200
+ end
201
+ end
202
+
203
+ end
204
+
190
205
 
191
206
  end
207
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gollum_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
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-04-23 00:00:00.000000000 Z
11
+ date: 2013-04-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activemodel
@@ -38,20 +38,6 @@ dependencies:
38
38
  - - ~>
39
39
  - !ruby/object:Gem::Version
40
40
  version: 1.0.0
41
- - !ruby/object:Gem::Dependency
42
- name: gitlab-grit
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - ~>
46
- - !ruby/object:Gem::Version
47
- version: 1.0.0
48
- type: :runtime
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - ~>
53
- - !ruby/object:Gem::Version
54
- version: 1.0.0
55
41
  - !ruby/object:Gem::Dependency
56
42
  name: rspec
57
43
  requirement: !ruby/object:Gem::Requirement
@@ -149,11 +135,10 @@ homepage: http://gollum.zyg.li
149
135
  licenses:
150
136
  - AGPL
151
137
  metadata: {}
152
- post_install_message: " Important: \n\n **********************************************\n
153
- \ To use the installer just run the following command:\n \trails g gollum_rails:install\n\n
154
- \ To generate a new Page model just run:\n \trails g gollum_rails:model MODEL_NAME\n\n
155
- \ To install an additional parsing language run:\n rails g gollum_rails:language
156
- LANGUAGE\n **********************************************\"\n"
138
+ post_install_message: " Important: \n\n To enable gollum_rails run the following
139
+ command:\n \trails g gollum_rails:install\n\n To generate a new Page model just
140
+ run:\n \trails g gollum_rails:model MODEL_NAME\n\n To install an additional parsing
141
+ language run:\n \trails g gollum_rails:language LANGUAGE\n"
157
142
  rdoc_options: []
158
143
  require_paths:
159
144
  - lib