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 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
@@ -0,0 +1,3 @@
1
+ *.tmproj
2
+ pkg
3
+ .bundle
data/Gemfile CHANGED
@@ -1,22 +1,15 @@
1
- source :rubygems
1
+ source 'https://rubygems.org'
2
2
  gemspec
3
3
 
4
4
  group :test, :development do
5
- gem 'mongoid', '2.2.0'
6
- gem 'bson', '1.3.0'
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.6.7'
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.27)
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: http://rubygems.org/
9
+ remote: https://rubygems.org/
11
10
  specs:
12
- ZenTest (4.6.2)
13
- actionpack (3.1.3)
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
- erubis (~> 2.7.0)
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.7)
31
- bson (1.3.0)
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.2.4)
42
- ffi (~> 1.0.6)
43
- database_cleaner (0.6.7)
44
- diff-lcs (1.1.3)
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
- factory_girl_rails (1.1.rc1)
48
- factory_girl (~> 2.0.0.rc)
49
- railties (>= 3.0.0)
50
- ffi (1.0.11)
51
- git (1.2.5)
52
- hike (1.2.1)
53
- i18n (0.6.0)
54
- jeweler (1.6.4)
55
- bundler (~> 1.0)
56
- git (>= 1.2.5)
57
- rake
58
- json (1.6.4)
59
- json_pure (1.6.4)
60
- mime-types (1.17.2)
61
- mongo (1.3.0)
62
- bson (>= 1.3.0)
63
- mongoid (2.2.0)
64
- activemodel (~> 3.0)
65
- mongo (~> 1.3)
66
- tzinfo (~> 0.3.22)
67
- multi_json (1.0.4)
68
- nokogiri (1.5.0)
69
- rack (1.3.6)
70
- rack-cache (1.1)
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.1)
56
+ rack-test (0.6.2)
77
57
  rack (>= 1.0)
78
- railties (3.1.3)
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.7.0)
96
- rspec-core (~> 2.7.0)
97
- rspec-expectations (~> 2.7.0)
98
- rspec-mocks (~> 2.7.0)
99
- rspec-core (2.7.1)
100
- rspec-expectations (2.7.0)
101
- diff-lcs (~> 1.1.2)
102
- rspec-mocks (2.7.0)
103
- rspec-rails (2.7.0)
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
- sprockets (2.0.3)
116
- hike (~> 1.2)
117
- rack (~> 1.0)
118
- tilt (~> 1.1, != 1.3.0)
119
- thor (0.14.6)
120
- tilt (1.3.3)
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
- ZenTest (>= 4.5.0)
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.6.7)
96
+ database_cleaner (= 0.9.1)
135
97
  factory_girl (= 2.0.1)
136
- factory_girl_rails (= 1.1.rc1)
137
- jeweler (>= 1.6.2)
138
- mongoid (= 2.2.0)
139
- rdoc (>= 3.8)
98
+ geminabox
99
+ mongoid (>= 3.1.2)
100
+ rake
140
101
  remarkable_mongoid (= 0.6.0)
141
- rspec (>= 2.7.0)
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 'rubygems'
2
- require 'rake'
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
@@ -14,9 +14,3 @@ module WulffeldSlug
14
14
  end
15
15
  end
16
16
  end
17
-
18
- module ActiveRecord
19
- class Base
20
- extend WulffeldSlug::Slug
21
- end
22
- end
@@ -0,0 +1,3 @@
1
+ module WulffeldSlug
2
+ VERSION = '0.0.28'
3
+ end
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.master = Mongo::Connection.new.db("wulffeld_slug_test")
19
- config.logger = nil
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