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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7c1b7d1d834268e00fc9b8c63f0aca04cc83bc85
4
- data.tar.gz: b7c4a10005a3837d4bf8d9eee0afb2ac2e7867e0
3
+ metadata.gz: 1dd1e54d072e792db90321826d56dfb77a87888b
4
+ data.tar.gz: 4983659fb53d6af311077327c7ad9e4b26afc8a8
5
5
  SHA512:
6
- metadata.gz: dab8d76e647ba708e1c9ee1ac8cb705633642682f6509b5d97e3fd40566333d4561d51c4bd699ca69cbd7ac774f6f34ae87d8ab1e8d8abfa87a3759729ee4609
7
- data.tar.gz: fae83809b25633f5dcff576ac3ce3531d4b9f50d02eabd35865f41d50c6fd5a3ab8b849336c9af01e15db09bc0b56a4797cc321c4674cb5b3c9427e3435ed015
6
+ metadata.gz: 3bb47d054fc9c8d222afefdb420ce6e3ae68718bf87afb6a4abf53139f2b00f63ddd914a328d4b7dc25f40afd174a8b093cf2e3b53442202ead7ab85cc22d6e8
7
+ data.tar.gz: 81720d04bd848724fa69988392e60db8bf62bcd7b526508440a1bf150dea6607946558ce905d428137686ce86a14ec9599a1109dceb3ffd5b183b0da69ce51b2
data/Gemfile CHANGED
@@ -1,6 +1,7 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
3
  gem 'coveralls', require: false
4
-
4
+ gem 'guard'
5
+ gem 'guard-rspec'
5
6
 
6
7
  gemspec
data/Gemfile.lock CHANGED
@@ -1,111 +1,125 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- gollum_rails (1.0.4)
5
- activemodel (~> 3.2.13)
6
- gollum-lib (~> 1.0.0)
4
+ gollum_rails (1.0.5)
5
+ activemodel (>= 3.2.11)
6
+ gollum-lib (~> 1.0.9)
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
- actionmailer (3.2.13)
12
- actionpack (= 3.2.13)
13
- mail (~> 2.5.3)
14
- actionpack (3.2.13)
15
- activemodel (= 3.2.13)
16
- activesupport (= 3.2.13)
17
- builder (~> 3.0.0)
11
+ actionmailer (4.0.1)
12
+ actionpack (= 4.0.1)
13
+ mail (~> 2.5.4)
14
+ actionpack (4.0.1)
15
+ activesupport (= 4.0.1)
16
+ builder (~> 3.1.0)
18
17
  erubis (~> 2.7.0)
19
- journey (~> 1.0.4)
20
- rack (~> 1.4.5)
21
- rack-cache (~> 1.2)
22
- rack-test (~> 0.6.1)
23
- sprockets (~> 2.2.1)
24
- activemodel (3.2.13)
25
- activesupport (= 3.2.13)
26
- builder (~> 3.0.0)
27
- activerecord (3.2.13)
28
- activemodel (= 3.2.13)
29
- activesupport (= 3.2.13)
30
- arel (~> 3.0.2)
31
- tzinfo (~> 0.3.29)
32
- activeresource (3.2.13)
33
- activemodel (= 3.2.13)
34
- activesupport (= 3.2.13)
35
- activesupport (3.2.13)
36
- i18n (= 0.6.1)
37
- multi_json (~> 1.0)
38
- arel (3.0.2)
39
- builder (3.0.4)
40
- colorize (0.5.8)
41
- coveralls (0.6.4)
42
- colorize
18
+ rack (~> 1.5.2)
19
+ rack-test (~> 0.6.2)
20
+ activemodel (4.0.1)
21
+ activesupport (= 4.0.1)
22
+ builder (~> 3.1.0)
23
+ activerecord (4.0.1)
24
+ activemodel (= 4.0.1)
25
+ activerecord-deprecated_finders (~> 1.0.2)
26
+ activesupport (= 4.0.1)
27
+ arel (~> 4.0.0)
28
+ activerecord-deprecated_finders (1.0.3)
29
+ activesupport (4.0.1)
30
+ i18n (~> 0.6, >= 0.6.4)
31
+ minitest (~> 4.2)
32
+ multi_json (~> 1.3)
33
+ thread_safe (~> 0.1)
34
+ tzinfo (~> 0.3.37)
35
+ arel (4.0.1)
36
+ atomic (1.1.14)
37
+ builder (3.1.4)
38
+ celluloid (0.15.2)
39
+ timers (~> 1.1.0)
40
+ charlock_holmes (0.6.9.4)
41
+ coderay (1.0.9)
42
+ coveralls (0.7.0)
43
43
  multi_json (~> 1.3)
44
44
  rest-client
45
45
  simplecov (>= 0.7)
46
+ term-ansicolor
46
47
  thor
47
- diff-lcs (1.2.2)
48
+ diff-lcs (1.2.4)
48
49
  erubis (2.7.0)
49
- github-markdown (0.5.3)
50
+ ffi (1.9.3)
51
+ formatador (0.2.4)
50
52
  github-markup (0.7.5)
51
- gollum-lib (1.0.0)
52
- github-markdown (~> 0.5.3)
53
- github-markup (>= 0.7.5, < 1.0.0)
54
- grit (~> 2.5.0)
55
- nokogiri (~> 1.5.9)
56
- pygments.rb (~> 0.4.2)
57
- sanitize (~> 2.0.3)
58
- stringex (~> 1.5.1)
59
- grit (2.5.0)
53
+ gitlab-grit (2.6.0)
54
+ charlock_holmes (~> 0.6.9)
60
55
  diff-lcs (~> 1.1)
61
56
  mime-types (~> 1.15)
62
57
  posix-spawn (~> 0.3.6)
63
- hike (1.2.1)
64
- i18n (0.6.1)
65
- journey (1.0.4)
66
- json (1.7.7)
67
- json (1.7.7-java)
68
- mail (2.5.3)
69
- i18n (>= 0.4.0)
58
+ gollum-lib (1.0.9)
59
+ github-markup (>= 0.7.5, < 1.0.0)
60
+ gitlab-grit (= 2.6.0)
61
+ nokogiri (~> 1.6.0)
62
+ pygments.rb (~> 0.5.2)
63
+ sanitize (~> 2.0.6)
64
+ stringex (~> 2.1.0)
65
+ guard (2.2.3)
66
+ formatador (>= 0.2.4)
67
+ listen (~> 2.1)
68
+ lumberjack (~> 1.0)
69
+ pry (>= 0.9.12)
70
+ thor (>= 0.18.1)
71
+ guard-rspec (3.1.0)
72
+ guard (>= 1.8)
73
+ rspec (~> 2.13)
74
+ hike (1.2.3)
75
+ i18n (0.6.5)
76
+ listen (2.2.0)
77
+ celluloid (>= 0.15.2)
78
+ rb-fsevent (>= 0.9.3)
79
+ rb-inotify (>= 0.9)
80
+ lumberjack (1.0.4)
81
+ mail (2.5.4)
70
82
  mime-types (~> 1.16)
71
83
  treetop (~> 1.4.8)
72
- mime-types (1.22)
73
- multi_json (1.7.2)
74
- nokogiri (1.5.9)
75
- nokogiri (1.5.9-java)
84
+ method_source (0.8.2)
85
+ mime-types (1.25)
86
+ mini_portile (0.5.2)
87
+ minitest (4.7.5)
88
+ multi_json (1.8.2)
89
+ nokogiri (1.6.0)
90
+ mini_portile (~> 0.5.0)
76
91
  polyglot (0.3.3)
77
- posix-spawn (0.3.6)
78
- pygments.rb (0.4.2)
92
+ posix-spawn (0.3.8)
93
+ pry (0.9.12.2)
94
+ coderay (~> 1.0.5)
95
+ method_source (~> 0.8)
96
+ slop (~> 3.4)
97
+ pygments.rb (0.5.4)
79
98
  posix-spawn (~> 0.3.6)
80
99
  yajl-ruby (~> 1.1.0)
81
- rack (1.4.5)
82
- rack-cache (1.2)
83
- rack (>= 0.4)
84
- rack-ssl (1.3.3)
85
- rack
100
+ rack (1.5.2)
86
101
  rack-test (0.6.2)
87
102
  rack (>= 1.0)
88
- rails (3.2.13)
89
- actionmailer (= 3.2.13)
90
- actionpack (= 3.2.13)
91
- activerecord (= 3.2.13)
92
- activeresource (= 3.2.13)
93
- activesupport (= 3.2.13)
94
- bundler (~> 1.0)
95
- railties (= 3.2.13)
96
- railties (3.2.13)
97
- actionpack (= 3.2.13)
98
- activesupport (= 3.2.13)
99
- rack-ssl (~> 1.3.2)
103
+ rails (4.0.1)
104
+ actionmailer (= 4.0.1)
105
+ actionpack (= 4.0.1)
106
+ activerecord (= 4.0.1)
107
+ activesupport (= 4.0.1)
108
+ bundler (>= 1.3.0, < 2.0)
109
+ railties (= 4.0.1)
110
+ sprockets-rails (~> 2.0.0)
111
+ railties (4.0.1)
112
+ actionpack (= 4.0.1)
113
+ activesupport (= 4.0.1)
100
114
  rake (>= 0.8.7)
101
- rdoc (~> 3.4)
102
- thor (>= 0.14.6, < 2.0)
103
- rake (10.0.4)
104
- rdoc (3.12.2)
105
- json (~> 1.4)
115
+ thor (>= 0.18.1, < 2.0)
116
+ rake (10.1.0)
117
+ rb-fsevent (0.9.3)
118
+ rb-inotify (0.9.2)
119
+ ffi (>= 0.5.0)
106
120
  rest-client (1.6.7)
107
121
  mime-types (>= 1.16)
108
- rr (1.0.5)
122
+ rr (1.1.2)
109
123
  rspec (2.13.0)
110
124
  rspec-core (~> 2.13.0)
111
125
  rspec-expectations (~> 2.13.0)
@@ -113,34 +127,46 @@ GEM
113
127
  rspec-core (2.13.1)
114
128
  rspec-expectations (2.13.0)
115
129
  diff-lcs (>= 1.1.3, < 2.0)
116
- rspec-mocks (2.13.0)
117
- sanitize (2.0.3)
118
- nokogiri (>= 1.4.4, < 1.6)
130
+ rspec-mocks (2.13.1)
131
+ sanitize (2.0.6)
132
+ nokogiri (>= 1.4.4)
119
133
  simplecov (0.7.1)
120
134
  multi_json (~> 1.0)
121
135
  simplecov-html (~> 0.7.1)
122
136
  simplecov-html (0.7.1)
123
- sprockets (2.2.2)
137
+ slop (3.4.6)
138
+ sprockets (2.10.0)
124
139
  hike (~> 1.2)
125
140
  multi_json (~> 1.0)
126
141
  rack (~> 1.0)
127
142
  tilt (~> 1.1, != 1.3.0)
128
- stringex (1.5.1)
143
+ sprockets-rails (2.0.1)
144
+ actionpack (>= 3.0)
145
+ activesupport (>= 3.0)
146
+ sprockets (~> 2.8)
147
+ stringex (2.1.2)
148
+ term-ansicolor (1.2.2)
149
+ tins (~> 0.8)
129
150
  thor (0.18.1)
130
- tilt (1.3.6)
131
- treetop (1.4.12)
151
+ thread_safe (0.1.3)
152
+ atomic
153
+ tilt (1.4.1)
154
+ timers (1.1.0)
155
+ tins (0.12.0)
156
+ treetop (1.4.15)
132
157
  polyglot
133
158
  polyglot (>= 0.3.1)
134
- tzinfo (0.3.37)
159
+ tzinfo (0.3.38)
135
160
  yajl-ruby (1.1.0)
136
161
 
137
162
  PLATFORMS
138
- java
139
163
  ruby
140
164
 
141
165
  DEPENDENCIES
142
166
  coveralls
143
167
  gollum_rails!
144
- rails (~> 3.2.13)
145
- rr (~> 1.0.4)
168
+ guard
169
+ guard-rspec
170
+ rails (>= 3.2.11)
171
+ rr (~> 1.1.1)
146
172
  rspec (~> 2.13.0)
data/Guardfile ADDED
@@ -0,0 +1,7 @@
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
+
data/HISTORY.md CHANGED
@@ -1,3 +1,35 @@
1
+ # 1.4.5 6th November 2013
2
+ * Updated Gollum-Lib version to 1.0.9
3
+ * Updated Rails stuff to 4.0.1
4
+
5
+
6
+ # 1.4.4 31th October 2013
7
+ * Removed Monkey patch for Grit
8
+ * Upgraded Gollum lib version
9
+ * Fixed specs for new gollum behavior
10
+ * Removed String freedom patches
11
+
12
+ # 1.4.3 1th September 2013
13
+ * Display the current pages version (short OR long)
14
+ * Display if the page is a sub page
15
+ * Display the pages filename
16
+ * Improved specs
17
+ * Refactored find method to return nil if no page was found (BUG)
18
+ * Refactored find_or_initialize_by_name to be useable :)
19
+ * Returning nil on history if a page was not saved
20
+ * Added finding with version string
21
+ * Using activemodel convenient `destroy` and deprecated old `delete`
22
+ * Added callback for initializer
23
+
24
+ # 1.4.2 1th August 2013
25
+ * Found an issue that the Wiki was not updating from external pushes
26
+ * Some helper methods implemented
27
+ * Improved code quality
28
+ * Should be threadsaver now
29
+ * Updated documentation
30
+
31
+ # 1.4.1 26th June 2013
32
+ * Rails4
1
33
 
2
34
  # 1.0.4 1th May 2013
3
35
  * removed mutex again
data/README.md CHANGED
@@ -4,9 +4,9 @@ Gollum for Rails
4
4
  [![Dependency Status](https://gemnasium.com/nirnanaaa/gollum_rails.png)](https://gemnasium.com/nirnanaaa/gollum_rails)
5
5
  [![Gem Version](https://badge.fury.io/rb/gollum_rails.png)](http://badge.fury.io/rb/gollum_rails)
6
6
  [![Coverage Status](https://coveralls.io/repos/nirnanaaa/gollum_rails/badge.png?branch=master)](https://coveralls.io/r/nirnanaaa/gollum_rails)
7
+ [![Code Climate](https://codeclimate.com/github/nirnanaaa/gollum_rails.png)](https://codeclimate.com/github/nirnanaaa/gollum_rails)
7
8
 
8
-
9
- gollum_rails combines the git-powered wiki software gollum with the extremely popular webframework rails.
9
+ gollum_rails combines the git-powered wiki software gollum with the extreme popular webframework rails.
10
10
  It improves the lightweight "gollum" experience which is quite awesome.
11
11
 
12
12
  with gollum_rails you can:
@@ -17,6 +17,10 @@ with gollum_rails you can:
17
17
  * Use own preprocession e.g. background workers for data procession
18
18
  * Use user authentication e.g. Devise or Authlogic
19
19
 
20
+ For an Editor to use with gollum_rails I personally like the [gollum_editor](https://github.com/samknight/gollum_editor)
21
+
22
+ It provides nearly the same features as the official editor.
23
+
20
24
  ## SYSTEM REQUIREMENTS
21
25
  - Python 2.5+ (2.7.3 recommended)
22
26
  - Ruby 1.9.3+ (2.0.0 recommended)
@@ -28,6 +32,7 @@ with gollum_rails you can:
28
32
  ## [Usage](https://github.com/nirnanaaa/gollum_rails/wiki/Usage)
29
33
 
30
34
 
35
+
31
36
  ## DEVELOPER
32
37
 
33
38
  Very cool. Just fork this repository and send me pull requests.
data/Rakefile CHANGED
@@ -112,14 +112,14 @@ end
112
112
 
113
113
  desc 'Create a release build'
114
114
  task :release => :build do
115
- unless `git branch` =~ /^\* master$/
116
- puts "You must be on the master branch to release!"
117
- exit!
118
- end
115
+ # unless `git branch` =~ /^\* master$/
116
+ # puts "You must be on the master branch to release!"
117
+ # exit!
118
+ # end
119
119
  sh "git commit --allow-empty -a -m 'Release #{version}'"
120
120
  sh "git pull"
121
121
  sh "git tag v#{version}"
122
- sh "git push origin master"
122
+ sh "git push"
123
123
  sh "git push origin v#{version}"
124
124
  sh "gem push pkg/#{name}-#{version}.gem"
125
125
  end
data/gollum_rails.gemspec CHANGED
@@ -4,17 +4,17 @@ 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.4'
7
+ s.version = '1.0.5'
8
8
 
9
9
  s.summary = 'Combines Gollum and Rails'
10
10
  s.description= 'include Gollum into Rails with ease'
11
11
 
12
- s.add_dependency 'activemodel', '~> 3.2.13'
13
- s.add_dependency 'gollum-lib', '~> 1.0.0'
12
+ s.add_dependency 'activemodel', '>= 3.2.11'
13
+ s.add_dependency 'gollum-lib', '~> 1.0.9'
14
14
 
15
15
  s.add_development_dependency 'rspec', '~> 2.13.0'
16
- s.add_development_dependency 'rr', '~> 1.0.4'
17
- s.add_development_dependency 'rails', '~> 3.2.13'
16
+ s.add_development_dependency 'rr', '~> 1.1.1'
17
+ s.add_development_dependency 'rails', '>= 3.2.11'
18
18
 
19
19
  s.author = 'Florian Kasper'
20
20
  s.email = 'mosny@zyg.li'
@@ -28,12 +28,12 @@ Gem::Specification.new do |s|
28
28
  s.files = %w[
29
29
  Gemfile
30
30
  Gemfile.lock
31
+ Guardfile
31
32
  HISTORY.md
32
33
  LICENSE
33
34
  README.md
34
35
  Rakefile
35
36
  gollum_rails.gemspec
36
- lib/core_ext/string.rb
37
37
  lib/generators/gollum_rails/install/install_generator.rb
38
38
  lib/generators/gollum_rails/install/templates/gollum_initializer.rb
39
39
  lib/generators/gollum_rails/language/language_generator.rb
@@ -49,11 +49,8 @@ Gem::Specification.new do |s|
49
49
  lib/gollum_rails/adapters/gollum/error.rb
50
50
  lib/gollum_rails/adapters/gollum/page.rb
51
51
  lib/gollum_rails/adapters/gollum/wiki.rb
52
- lib/gollum_rails/modulesDEPRECATED/hash.rb
53
- lib/gollum_rails/modulesDEPRECATED/loader.rb
54
52
  lib/gollum_rails/page.rb
55
53
  lib/gollum_rails/setup.rb
56
- lib/grit/git-ruby/internal/pack.rb
57
54
  spec/gollum_rails/adapters/activemodel/error_spec.rb
58
55
  spec/gollum_rails/adapters/activemodel/naming_spec.rb
59
56
  spec/gollum_rails/adapters/activemodel/validation_unused.rb
@@ -61,15 +58,12 @@ Gem::Specification.new do |s|
61
58
  spec/gollum_rails/adapters/gollum/connector_spec.rb
62
59
  spec/gollum_rails/adapters/gollum/error_spec.rb
63
60
  spec/gollum_rails/adapters/gollum/page_spec.rb
64
- spec/gollum_rails/adapters/gollum/wiki_spec.rb
61
+ spec/gollum_rails/adapters/gollum/wiki_spec_off.rb
65
62
  spec/gollum_rails/error_spec.rb
66
- spec/gollum_rails/modulesDEPRECATED/hash.rb
67
63
  spec/gollum_rails/page_spec.rb
68
64
  spec/gollum_rails/respository_spec.rb
69
65
  spec/gollum_rails/setup_spec.rb
70
66
  spec/gollum_rails/wiki_spec.rb
71
- spec/gollum_rails_spec.rb
72
- spec/spec.opts
73
67
  spec/spec_helper.rb
74
68
  ]
75
69
  # = MANIFEST =
@@ -86,3 +80,5 @@ Gem::Specification.new do |s|
86
80
  \trails g gollum_rails:language LANGUAGE
87
81
  END
88
82
  end
83
+
84
+