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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9efbb648b9aa7ad7dffc2e02d8af20698ece92d9
4
- data.tar.gz: 0822fe4e135626b88d25078ecbc02fb06207db20
3
+ metadata.gz: b79a53466331f67a215b23c364208835f1312e91
4
+ data.tar.gz: b8d0c3a589c002f0e809740faac6a8aa81fe19cb
5
5
  SHA512:
6
- metadata.gz: 360e9669919ae31dfec11a9ad5ab7a902f20983b2e2de2448681b68130b467ee3a0b4c5467146a437441c0bdc8c48ec0436b6584eb9e2b2c8696d4d7fc7498b0
7
- data.tar.gz: bca20d67aacf28cefd0e5217f9546d6c80199d0b0b2fa1eace6fae7a07a4d03d6d2c00fe627bfc415ed27fcfefe2f59d7adc01da79cdb17732bbb68c07bd76b8
6
+ metadata.gz: e77443f55f09e2080b3ac2c4b3eaee27ff701b818b964d76626a5f213300962fb25ea21a542b0e7e8d6907071b5b541bcb6469e0055beb421e58d166d665199b
7
+ data.tar.gz: 8d098838fa88e0b092e1e55523cc6e713689c2e4e1aba2a43fccd33291cde7cdb5ac2c7f52f38e8bc4211a63255bb0bd509b1c029416b5fb4b746948f939d1b5
data/Gemfile CHANGED
@@ -1,7 +1,6 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
3
  gem 'coveralls', require: false
4
- gem 'guard'
5
- gem 'guard-rspec'
4
+
6
5
 
7
6
  gemspec
data/Gemfile.lock CHANGED
@@ -1,125 +1,98 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- gollum_rails (1.0.6)
5
- activemodel (>= 3.2.11)
6
- gollum-lib (~> 1.0.9)
4
+ gollum_rails (1.4.0.rc1)
5
+ activemodel (~> 4.0.0.rc1)
6
+ gollum-lib (~> 1.0.0)
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
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)
11
+ actionmailer (4.0.0.rc1)
12
+ actionpack (= 4.0.0.rc1)
13
+ mail (~> 2.5.3)
14
+ actionpack (4.0.0.rc1)
15
+ activesupport (= 4.0.0.rc1)
16
16
  builder (~> 3.1.0)
17
17
  erubis (~> 2.7.0)
18
18
  rack (~> 1.5.2)
19
19
  rack-test (~> 0.6.2)
20
- activemodel (4.0.1)
21
- activesupport (= 4.0.1)
20
+ activemodel (4.0.0.rc1)
21
+ activesupport (= 4.0.0.rc1)
22
22
  builder (~> 3.1.0)
23
- activerecord (4.0.1)
24
- activemodel (= 4.0.1)
23
+ activerecord (4.0.0.rc1)
24
+ activemodel (= 4.0.0.rc1)
25
25
  activerecord-deprecated_finders (~> 1.0.2)
26
- activesupport (= 4.0.1)
26
+ activesupport (= 4.0.0.rc1)
27
27
  arel (~> 4.0.0)
28
- activerecord-deprecated_finders (1.0.3)
29
- activesupport (4.0.1)
28
+ activerecord-deprecated_finders (1.0.2)
29
+ activesupport (4.0.0.rc1)
30
30
  i18n (~> 0.6, >= 0.6.4)
31
31
  minitest (~> 4.2)
32
32
  multi_json (~> 1.3)
33
33
  thread_safe (~> 0.1)
34
34
  tzinfo (~> 0.3.37)
35
- arel (4.0.1)
36
- atomic (1.1.14)
35
+ arel (4.0.0)
36
+ atomic (1.1.9)
37
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)
38
+ colorize (0.5.8)
39
+ coveralls (0.6.4)
40
+ colorize
43
41
  multi_json (~> 1.3)
44
42
  rest-client
45
43
  simplecov (>= 0.7)
46
- term-ansicolor
47
44
  thor
48
- diff-lcs (1.2.4)
45
+ diff-lcs (1.2.2)
49
46
  erubis (2.7.0)
50
- ffi (1.9.3)
51
- formatador (0.2.4)
47
+ github-markdown (0.5.3)
52
48
  github-markup (0.7.5)
53
- gitlab-grit (2.6.0)
54
- charlock_holmes (~> 0.6.9)
49
+ gollum-lib (1.0.0)
50
+ github-markdown (~> 0.5.3)
51
+ github-markup (>= 0.7.5, < 1.0.0)
52
+ grit (~> 2.5.0)
53
+ nokogiri (~> 1.5.9)
54
+ pygments.rb (~> 0.4.2)
55
+ sanitize (~> 2.0.3)
56
+ stringex (~> 1.5.1)
57
+ grit (2.5.0)
55
58
  diff-lcs (~> 1.1)
56
59
  mime-types (~> 1.15)
57
60
  posix-spawn (~> 0.3.6)
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)
61
+ hike (1.2.2)
62
+ i18n (0.6.4)
63
+ mail (2.5.3)
64
+ i18n (>= 0.4.0)
82
65
  mime-types (~> 1.16)
83
66
  treetop (~> 1.4.8)
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)
67
+ mime-types (1.22)
68
+ minitest (4.7.4)
69
+ multi_json (1.7.2)
70
+ nokogiri (1.5.9)
91
71
  polyglot (0.3.3)
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)
72
+ posix-spawn (0.3.6)
73
+ pygments.rb (0.4.2)
98
74
  posix-spawn (~> 0.3.6)
99
75
  yajl-ruby (~> 1.1.0)
100
76
  rack (1.5.2)
101
77
  rack-test (0.6.2)
102
78
  rack (>= 1.0)
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)
79
+ rails (4.0.0.rc1)
80
+ actionmailer (= 4.0.0.rc1)
81
+ actionpack (= 4.0.0.rc1)
82
+ activerecord (= 4.0.0.rc1)
83
+ activesupport (= 4.0.0.rc1)
108
84
  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)
85
+ railties (= 4.0.0.rc1)
86
+ sprockets-rails (~> 2.0.0.rc4)
87
+ railties (4.0.0.rc1)
88
+ actionpack (= 4.0.0.rc1)
89
+ activesupport (= 4.0.0.rc1)
114
90
  rake (>= 0.8.7)
115
91
  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)
92
+ rake (10.0.4)
120
93
  rest-client (1.6.7)
121
94
  mime-types (>= 1.16)
122
- rr (1.1.2)
95
+ rr (1.0.5)
123
96
  rspec (2.13.0)
124
97
  rspec-core (~> 2.13.0)
125
98
  rspec-expectations (~> 2.13.0)
@@ -127,46 +100,40 @@ GEM
127
100
  rspec-core (2.13.1)
128
101
  rspec-expectations (2.13.0)
129
102
  diff-lcs (>= 1.1.3, < 2.0)
130
- rspec-mocks (2.13.1)
131
- sanitize (2.0.6)
132
- nokogiri (>= 1.4.4)
103
+ rspec-mocks (2.13.0)
104
+ sanitize (2.0.3)
105
+ nokogiri (>= 1.4.4, < 1.6)
133
106
  simplecov (0.7.1)
134
107
  multi_json (~> 1.0)
135
108
  simplecov-html (~> 0.7.1)
136
109
  simplecov-html (0.7.1)
137
- slop (3.4.6)
138
- sprockets (2.10.0)
110
+ sprockets (2.9.3)
139
111
  hike (~> 1.2)
140
112
  multi_json (~> 1.0)
141
113
  rack (~> 1.0)
142
114
  tilt (~> 1.1, != 1.3.0)
143
- sprockets-rails (2.0.1)
115
+ sprockets-rails (2.0.0.rc4)
144
116
  actionpack (>= 3.0)
145
117
  activesupport (>= 3.0)
146
118
  sprockets (~> 2.8)
147
- stringex (2.1.2)
148
- term-ansicolor (1.2.2)
149
- tins (~> 0.8)
119
+ stringex (1.5.1)
150
120
  thor (0.18.1)
151
- thread_safe (0.1.3)
121
+ thread_safe (0.1.0)
152
122
  atomic
153
- tilt (1.4.1)
154
- timers (1.1.0)
155
- tins (0.12.0)
156
- treetop (1.4.15)
123
+ tilt (1.4.0)
124
+ treetop (1.4.12)
157
125
  polyglot
158
126
  polyglot (>= 0.3.1)
159
- tzinfo (0.3.38)
127
+ tzinfo (0.3.37)
160
128
  yajl-ruby (1.1.0)
161
129
 
162
130
  PLATFORMS
131
+ java
163
132
  ruby
164
133
 
165
134
  DEPENDENCIES
166
135
  coveralls
167
136
  gollum_rails!
168
- guard
169
- guard-rspec
170
- rails (>= 3.2.11)
171
- rr (~> 1.1.1)
137
+ rails (~> 4.0.0.rc1)
138
+ rr (~> 1.0.4)
172
139
  rspec (~> 2.13.0)
data/HISTORY.md CHANGED
@@ -1,38 +1,3 @@
1
- # 1.0.6 9th December 2013
2
- * Rails 3 backwards compability
3
-
4
- # 1.4.5 6th November 2013
5
- * Updated Gollum-Lib version to 1.0.9
6
- * Updated Rails stuff to 4.0.1
7
-
8
-
9
- # 1.4.4 31th October 2013
10
- * Removed Monkey patch for Grit
11
- * Upgraded Gollum lib version
12
- * Fixed specs for new gollum behavior
13
- * Removed String freedom patches
14
-
15
- # 1.4.3 1th September 2013
16
- * Display the current pages version (short OR long)
17
- * Display if the page is a sub page
18
- * Display the pages filename
19
- * Improved specs
20
- * Refactored find method to return nil if no page was found (BUG)
21
- * Refactored find_or_initialize_by_name to be useable :)
22
- * Returning nil on history if a page was not saved
23
- * Added finding with version string
24
- * Using activemodel convenient `destroy` and deprecated old `delete`
25
- * Added callback for initializer
26
-
27
- # 1.4.2 1th August 2013
28
- * Found an issue that the Wiki was not updating from external pushes
29
- * Some helper methods implemented
30
- * Improved code quality
31
- * Should be threadsaver now
32
- * Updated documentation
33
-
34
- # 1.4.1 26th June 2013
35
- * Rails4
36
1
 
37
2
  # 1.0.4 1th May 2013
38
3
  * 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)
8
7
 
9
- gollum_rails combines the git-powered wiki software gollum with the extreme popular webframework rails.
8
+
9
+ gollum_rails combines the git-powered wiki software gollum with the extremely 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,10 +17,6 @@ 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
-
24
20
  ## SYSTEM REQUIREMENTS
25
21
  - Python 2.5+ (2.7.3 recommended)
26
22
  - Ruby 1.9.3+ (2.0.0 recommended)
@@ -32,7 +28,6 @@ It provides nearly the same features as the official editor.
32
28
  ## [Usage](https://github.com/nirnanaaa/gollum_rails/wiki/Usage)
33
29
 
34
30
 
35
-
36
31
  ## DEVELOPER
37
32
 
38
33
  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"
122
+ sh "git push origin master"
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,36 +4,35 @@ 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.6'
7
+ s.version = '1.4.0.rc1'
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.11'
13
- s.add_dependency 'gollum-lib', '~> 1.0.9'
12
+ s.add_dependency 'activemodel', '~> 4.0.0.rc1'
13
+ s.add_dependency 'gollum-lib', '~> 1.0.0'
14
14
 
15
15
  s.add_development_dependency 'rspec', '~> 2.13.0'
16
- s.add_development_dependency 'rr', '~> 1.1.1'
17
- s.add_development_dependency 'rails', '>= 3.2.11'
16
+ s.add_development_dependency 'rr', '~> 1.0.4'
17
+ s.add_development_dependency 'rails', '~> 4.0.0.rc1'
18
18
 
19
19
  s.author = 'Florian Kasper'
20
20
  s.email = 'mosny@zyg.li'
21
- s.homepage = 'https://github.com/nirnanaaa/gollum_rails'
21
+ s.homepage = 'http://gollum.zyg.li'
22
22
  s.license = 'AGPL'
23
23
  s.platform = Gem::Platform::RUBY
24
24
  s.required_ruby_version = '>=1.9.3'
25
25
 
26
-
27
26
  # = MANIFEST =
28
27
  s.files = %w[
29
28
  Gemfile
30
29
  Gemfile.lock
31
- Guardfile
32
30
  HISTORY.md
33
31
  LICENSE
34
32
  README.md
35
33
  Rakefile
36
34
  gollum_rails.gemspec
35
+ lib/core_ext/string.rb
37
36
  lib/generators/gollum_rails/install/install_generator.rb
38
37
  lib/generators/gollum_rails/install/templates/gollum_initializer.rb
39
38
  lib/generators/gollum_rails/language/language_generator.rb
@@ -49,8 +48,11 @@ Gem::Specification.new do |s|
49
48
  lib/gollum_rails/adapters/gollum/error.rb
50
49
  lib/gollum_rails/adapters/gollum/page.rb
51
50
  lib/gollum_rails/adapters/gollum/wiki.rb
51
+ lib/gollum_rails/modules/hash.rb
52
+ lib/gollum_rails/modules/loader.rb
52
53
  lib/gollum_rails/page.rb
53
54
  lib/gollum_rails/setup.rb
55
+ lib/grit/git-ruby/internal/pack.rb
54
56
  spec/gollum_rails/adapters/activemodel/error_spec.rb
55
57
  spec/gollum_rails/adapters/activemodel/naming_spec.rb
56
58
  spec/gollum_rails/adapters/activemodel/validation_unused.rb
@@ -58,12 +60,13 @@ Gem::Specification.new do |s|
58
60
  spec/gollum_rails/adapters/gollum/connector_spec.rb
59
61
  spec/gollum_rails/adapters/gollum/error_spec.rb
60
62
  spec/gollum_rails/adapters/gollum/page_spec.rb
61
- spec/gollum_rails/adapters/gollum/wiki_spec_off.rb
62
- spec/gollum_rails/error_spec.rb
63
+ spec/gollum_rails/adapters/gollum/wiki_spec.rb
64
+ spec/gollum_rails/modules/hash_spec.rb
63
65
  spec/gollum_rails/page_spec.rb
64
66
  spec/gollum_rails/respository_spec.rb
65
67
  spec/gollum_rails/setup_spec.rb
66
68
  spec/gollum_rails/wiki_spec.rb
69
+ spec/spec.opts
67
70
  spec/spec_helper.rb
68
71
  ]
69
72
  # = MANIFEST =
@@ -80,5 +83,3 @@ Gem::Specification.new do |s|
80
83
  \trails g gollum_rails:language LANGUAGE
81
84
  END
82
85
  end
83
-
84
-
@@ -0,0 +1,10 @@
1
+ class String
2
+ if ((defined? RUBY_VERSION) && (['1.9', '2.0'].include? RUBY_VERSION[0..2]))
3
+ def getord(offset); self[offset].ord; end
4
+ else
5
+ alias :getord :[]
6
+ end
7
+
8
+
9
+
10
+ end
data/lib/gollum_rails.rb CHANGED
@@ -1,11 +1,7 @@
1
- # ~*~ encoding: utf-8 ~*~
2
-
3
- # stdlib
4
1
  require 'rubygems'
5
-
6
- # external
7
2
  require 'gollum-lib'
8
-
3
+ require 'grit/git-ruby/internal/pack'
4
+ require 'core_ext/string'
9
5
 
10
6
  # GollumRails is a RubyGem for extending Rails and the Gollum wiki powered by github
11
7
  # It has the ability to combine the benefits from a git powered wiki with Rails.
@@ -20,35 +16,21 @@ module GollumRails
20
16
  autoload :Setup, 'gollum_rails/setup'
21
17
 
22
18
  # GollumRails version string
23
- VERSION = '1.0.6'
19
+ VERSION = '1.4.0.rc1'
24
20
 
25
21
  # Simplified error
26
22
  class Error < StandardError; end
27
23
 
28
- # All Gollum internal exceptions will be redirected to this
24
+ # For use with internal gollumGem exceptions
25
+ #
29
26
  class GollumInternalError < Error
30
27
 
31
-
32
- attr_accessor :name
33
- attr_accessor :message
34
- attr_accessor :target
35
-
36
- # modifies content for throwing an exception
37
- def initialize(name, target = nil, message = nil)
38
- @name = name
39
- @target = target
40
- @message = message
41
-
42
- super(message || "An Error occured: #{name} on #{target}")
43
- end
44
-
45
- # Fancy inspects
46
- def inspect
47
- "#<GollumRails::GollumInternalError:#{object_id} {name: #{name.inspect}, message: #{message.inspect}, target: #{target.inspect}}>"
48
- end
49
28
  end
50
29
  end
51
30
 
52
31
 
53
32
  require File.expand_path '../gollum_rails/adapters/activemodel', __FILE__
54
33
  require File.expand_path '../gollum_rails/adapters/gollum', __FILE__
34
+ # load extensions
35
+ # TODO: Remove this shit. It is unnecessary
36
+ require File.expand_path '../gollum_rails/modules/loader', __FILE__