wulffeld_slug 0.0.27 → 0.0.28
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +3 -0
- data/Gemfile +4 -11
- data/Gemfile.lock +59 -99
- data/Rakefile +2 -41
- data/lib/wulffeld_slug/slug.rb +0 -6
- data/lib/wulffeld_slug/version.rb +3 -0
- data/spec/spec_helper.rb +8 -4
- data/wulffeld_slug.gemspec +21 -674
- metadata +58 -2282
- data/VERSION +0 -1
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 275f8b9f465cdcc19cf94f52e854579b72048330
|
4
|
+
data.tar.gz: 7bc1473e01072658a868abf8b5bb2aac5dc846d0
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 2f868ddca1f81ceeb9ae15e965799bd15d96d05d7e8566adc9a01cfcf30fc570878b14c105db322a6a48ff840b54f584cf4db8fee28813f9586b9466369b095c
|
7
|
+
data.tar.gz: 27905acdb566a4e70a4a49352083c0967fe12cc74440e218dd8ac4e478db847837fa93cd4d2b869b78f3af0eababc72e36b0dcd1afdaf97ca2043aef4d5cfda4
|
data/.gitignore
ADDED
data/Gemfile
CHANGED
@@ -1,22 +1,15 @@
|
|
1
|
-
source
|
1
|
+
source 'https://rubygems.org'
|
2
2
|
gemspec
|
3
3
|
|
4
4
|
group :test, :development do
|
5
|
-
gem 'mongoid',
|
6
|
-
gem '
|
7
|
-
gem 'bson_ext', '1.3.0'
|
8
|
-
gem 'bundler', '>= 1.0.21'
|
9
|
-
gem 'jeweler', '>= 1.6.2'
|
10
|
-
gem 'rdoc', '>= 3.8'
|
11
|
-
gem 'rspec', '>= 2.7.0'
|
5
|
+
gem 'mongoid', '>= 3.1.2'
|
6
|
+
gem 'rspec', '2.13.0'
|
12
7
|
end
|
13
8
|
|
14
9
|
group :test do
|
15
|
-
gem 'rspec-rails', '2.7.0'
|
16
10
|
gem 'capybara', '1.0.0'
|
17
|
-
gem 'database_cleaner', '0.
|
11
|
+
gem 'database_cleaner', '0.9.1'
|
18
12
|
gem 'factory_girl', '2.0.1'
|
19
|
-
gem 'factory_girl_rails', '1.1.rc1'
|
20
13
|
gem 'remarkable_mongoid', '0.6.0'
|
21
14
|
gem 'shoulda-matchers', '1.0.0'
|
22
15
|
end
|
data/Gemfile.lock
CHANGED
@@ -1,36 +1,21 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
wulffeld_slug (0.0.
|
4
|
+
wulffeld_slug (0.0.28)
|
5
5
|
activesupport (>= 3.1.0)
|
6
6
|
babosa (>= 0.3.7)
|
7
|
-
wulffeld_slug
|
8
7
|
|
9
8
|
GEM
|
10
|
-
remote:
|
9
|
+
remote: https://rubygems.org/
|
11
10
|
specs:
|
12
|
-
|
13
|
-
|
14
|
-
activemodel (= 3.1.3)
|
15
|
-
activesupport (= 3.1.3)
|
11
|
+
activemodel (3.2.17)
|
12
|
+
activesupport (= 3.2.17)
|
16
13
|
builder (~> 3.0.0)
|
17
|
-
|
18
|
-
i18n (~> 0.6)
|
19
|
-
rack (~> 1.3.5)
|
20
|
-
rack-cache (~> 1.1)
|
21
|
-
rack-mount (~> 0.8.2)
|
22
|
-
rack-test (~> 0.6.1)
|
23
|
-
sprockets (~> 2.0.3)
|
24
|
-
activemodel (3.1.3)
|
25
|
-
activesupport (= 3.1.3)
|
26
|
-
builder (~> 3.0.0)
|
27
|
-
i18n (~> 0.6)
|
28
|
-
activesupport (3.1.3)
|
14
|
+
activesupport (3.2.17)
|
15
|
+
i18n (~> 0.6, >= 0.6.4)
|
29
16
|
multi_json (~> 1.0)
|
30
|
-
babosa (0.3.
|
31
|
-
|
32
|
-
bson_ext (1.3.0)
|
33
|
-
builder (3.0.0)
|
17
|
+
babosa (0.3.11)
|
18
|
+
builder (3.0.4)
|
34
19
|
capybara (1.0.0)
|
35
20
|
mime-types (>= 1.16)
|
36
21
|
nokogiri (>= 1.3.3)
|
@@ -38,53 +23,39 @@ GEM
|
|
38
23
|
rack-test (>= 0.5.4)
|
39
24
|
selenium-webdriver (~> 0.2.0)
|
40
25
|
xpath (~> 0.1.4)
|
41
|
-
childprocess (0.
|
42
|
-
ffi (~> 1.0.
|
43
|
-
database_cleaner (0.
|
44
|
-
diff-lcs (1.
|
45
|
-
erubis (2.7.0)
|
26
|
+
childprocess (0.5.1)
|
27
|
+
ffi (~> 1.0, >= 1.0.11)
|
28
|
+
database_cleaner (0.9.1)
|
29
|
+
diff-lcs (1.2.5)
|
46
30
|
factory_girl (2.0.1)
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
rack (1.
|
70
|
-
rack-
|
71
|
-
rack (>= 0.4)
|
72
|
-
rack-mount (0.8.3)
|
73
|
-
rack (>= 1.0.0)
|
74
|
-
rack-ssl (1.3.2)
|
31
|
+
ffi (1.9.3)
|
32
|
+
geminabox (0.12.3)
|
33
|
+
builder
|
34
|
+
httpclient (>= 2.2.7)
|
35
|
+
nesty
|
36
|
+
sinatra (>= 1.2.7)
|
37
|
+
httpclient (2.3.4.1)
|
38
|
+
i18n (0.6.9)
|
39
|
+
json_pure (1.8.1)
|
40
|
+
mime-types (2.2)
|
41
|
+
mini_portile (0.5.2)
|
42
|
+
mongoid (3.1.6)
|
43
|
+
activemodel (~> 3.2)
|
44
|
+
moped (~> 1.4)
|
45
|
+
origin (~> 1.0)
|
46
|
+
tzinfo (~> 0.3.29)
|
47
|
+
moped (1.5.2)
|
48
|
+
multi_json (1.9.0)
|
49
|
+
nesty (1.0.2)
|
50
|
+
nokogiri (1.6.1)
|
51
|
+
mini_portile (~> 0.5.0)
|
52
|
+
origin (1.1.0)
|
53
|
+
rack (1.5.2)
|
54
|
+
rack-protection (1.5.2)
|
75
55
|
rack
|
76
|
-
rack-test (0.6.
|
56
|
+
rack-test (0.6.2)
|
77
57
|
rack (>= 1.0)
|
78
|
-
|
79
|
-
actionpack (= 3.1.3)
|
80
|
-
activesupport (= 3.1.3)
|
81
|
-
rack-ssl (~> 1.3.2)
|
82
|
-
rake (>= 0.8.7)
|
83
|
-
rdoc (~> 3.4)
|
84
|
-
thor (~> 0.14.6)
|
85
|
-
rake (0.9.2.2)
|
86
|
-
rdoc (3.12)
|
87
|
-
json (~> 1.4)
|
58
|
+
rake (10.1.1)
|
88
59
|
remarkable (4.0.0.alpha4)
|
89
60
|
rspec (>= 2.0.0.alpha11)
|
90
61
|
remarkable_activemodel (4.0.0.alpha4)
|
@@ -92,33 +63,27 @@ GEM
|
|
92
63
|
rspec (>= 2.0.0.alpha11)
|
93
64
|
remarkable_mongoid (0.6.0)
|
94
65
|
remarkable_activemodel (~> 4.0.0.alpha4)
|
95
|
-
rspec (2.
|
96
|
-
rspec-core (~> 2.
|
97
|
-
rspec-expectations (~> 2.
|
98
|
-
rspec-mocks (~> 2.
|
99
|
-
rspec-core (2.
|
100
|
-
rspec-expectations (2.
|
101
|
-
diff-lcs (
|
102
|
-
rspec-mocks (2.
|
103
|
-
|
104
|
-
actionpack (~> 3.0)
|
105
|
-
activesupport (~> 3.0)
|
106
|
-
railties (~> 3.0)
|
107
|
-
rspec (~> 2.7.0)
|
108
|
-
rubyzip (0.9.5)
|
66
|
+
rspec (2.13.0)
|
67
|
+
rspec-core (~> 2.13.0)
|
68
|
+
rspec-expectations (~> 2.13.0)
|
69
|
+
rspec-mocks (~> 2.13.0)
|
70
|
+
rspec-core (2.13.1)
|
71
|
+
rspec-expectations (2.13.0)
|
72
|
+
diff-lcs (>= 1.1.3, < 2.0)
|
73
|
+
rspec-mocks (2.13.1)
|
74
|
+
rubyzip (1.1.1)
|
109
75
|
selenium-webdriver (0.2.2)
|
110
76
|
childprocess (>= 0.1.9)
|
111
77
|
ffi (>= 1.0.7)
|
112
78
|
json_pure
|
113
79
|
rubyzip
|
114
80
|
shoulda-matchers (1.0.0)
|
115
|
-
|
116
|
-
|
117
|
-
rack (~> 1.
|
118
|
-
tilt (~> 1.
|
119
|
-
|
120
|
-
|
121
|
-
tzinfo (0.3.31)
|
81
|
+
sinatra (1.4.4)
|
82
|
+
rack (~> 1.4)
|
83
|
+
rack-protection (~> 1.4)
|
84
|
+
tilt (~> 1.3, >= 1.3.4)
|
85
|
+
tilt (1.4.1)
|
86
|
+
tzinfo (0.3.39)
|
122
87
|
xpath (0.1.4)
|
123
88
|
nokogiri (~> 1.3)
|
124
89
|
|
@@ -126,19 +91,14 @@ PLATFORMS
|
|
126
91
|
ruby
|
127
92
|
|
128
93
|
DEPENDENCIES
|
129
|
-
|
130
|
-
bson (= 1.3.0)
|
131
|
-
bson_ext (= 1.3.0)
|
132
|
-
bundler (>= 1.0.21)
|
94
|
+
bundler (>= 1.3.2)
|
133
95
|
capybara (= 1.0.0)
|
134
|
-
database_cleaner (= 0.
|
96
|
+
database_cleaner (= 0.9.1)
|
135
97
|
factory_girl (= 2.0.1)
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
rdoc (>= 3.8)
|
98
|
+
geminabox
|
99
|
+
mongoid (>= 3.1.2)
|
100
|
+
rake
|
140
101
|
remarkable_mongoid (= 0.6.0)
|
141
|
-
rspec (
|
142
|
-
rspec-rails (= 2.7.0)
|
102
|
+
rspec (= 2.13.0)
|
143
103
|
shoulda-matchers (= 1.0.0)
|
144
104
|
wulffeld_slug!
|
data/Rakefile
CHANGED
@@ -1,45 +1,6 @@
|
|
1
|
-
require
|
2
|
-
require
|
3
|
-
|
4
|
-
begin
|
5
|
-
require 'jeweler'
|
6
|
-
Jeweler::Tasks.new do |gem|
|
7
|
-
gem.name = "wulffeld_slug"
|
8
|
-
gem.summary = "Slug generation."
|
9
|
-
gem.description = ""
|
10
|
-
gem.email = "martin@wulffeld.org"
|
11
|
-
gem.homepage = "http://www.wulffeld.org/"
|
12
|
-
gem.authors = ["Martin Moen Wulffeld"]
|
13
|
-
gem.add_dependency(%q<babosa>, ">= 0.3.7")
|
14
|
-
gem.add_dependency(%q<activesupport>, ">= 3.1.0")
|
15
|
-
end
|
16
|
-
Jeweler::GemcutterTasks.new
|
17
|
-
rescue LoadError
|
18
|
-
puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
|
19
|
-
end
|
20
|
-
|
21
|
-
require 'rspec/core'
|
22
|
-
require 'rspec/core/rake_task'
|
1
|
+
require "bundler/gem_tasks"
|
2
|
+
require "rspec/core/rake_task"
|
23
3
|
|
24
4
|
RSpec::Core::RakeTask.new(:spec) do |spec|
|
25
5
|
spec.pattern = FileList['spec/**/*_spec.rb']
|
26
6
|
end
|
27
|
-
|
28
|
-
RSpec::Core::RakeTask.new(:rcov) do |spec|
|
29
|
-
spec.pattern = 'spec/**/*_spec.rb'
|
30
|
-
spec.rcov = true
|
31
|
-
end
|
32
|
-
|
33
|
-
task :default => :spec
|
34
|
-
|
35
|
-
desc "New release"
|
36
|
-
task :new_release do |t|
|
37
|
-
`rake version:bump:patch`
|
38
|
-
`rake gemspec`
|
39
|
-
`bundle install`
|
40
|
-
`git commit -am "Preparing new release."`
|
41
|
-
`rm -f pkg/*`
|
42
|
-
`rake build`
|
43
|
-
`rake release`
|
44
|
-
`cat VERSION`
|
45
|
-
end
|
data/lib/wulffeld_slug/slug.rb
CHANGED
data/spec/spec_helper.rb
CHANGED
@@ -1,5 +1,4 @@
|
|
1
1
|
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), "..", "lib"))
|
2
|
-
|
3
2
|
MODELS = File.join(File.dirname(__FILE__), "app/models")
|
4
3
|
$LOAD_PATH.unshift(MODELS)
|
5
4
|
|
@@ -9,16 +8,21 @@ require 'bundler/setup'
|
|
9
8
|
ENV["RAILS_ENV"] = "test"
|
10
9
|
|
11
10
|
require "wulffeld_slug"
|
11
|
+
|
12
12
|
require "mongoid"
|
13
13
|
require "database_cleaner"
|
14
14
|
require "factory_girl"
|
15
15
|
require "rspec"
|
16
16
|
|
17
17
|
Mongoid.configure do |config|
|
18
|
-
config.
|
19
|
-
|
18
|
+
config.sessions = {
|
19
|
+
default: {
|
20
|
+
hosts: ["localhost:27017"],
|
21
|
+
database: "wulffeld_slug_test"
|
22
|
+
}
|
23
|
+
}
|
20
24
|
end
|
21
|
-
|
25
|
+
|
22
26
|
Dir[ File.join(MODELS, "*.rb") ].sort.each { |file| require File.basename(file) }
|
23
27
|
|
24
28
|
DatabaseCleaner[:mongoid].strategy = :truncation
|