wulffeld_slug 0.0.28 → 0.0.29

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: 275f8b9f465cdcc19cf94f52e854579b72048330
4
- data.tar.gz: 7bc1473e01072658a868abf8b5bb2aac5dc846d0
3
+ metadata.gz: 50bb4c7afddf3a606499f8e3dc46721efb6a6eed
4
+ data.tar.gz: 8c92ba65368f80dd2611cd83f2260d11b6683b2c
5
5
  SHA512:
6
- metadata.gz: 2f868ddca1f81ceeb9ae15e965799bd15d96d05d7e8566adc9a01cfcf30fc570878b14c105db322a6a48ff840b54f584cf4db8fee28813f9586b9466369b095c
7
- data.tar.gz: 27905acdb566a4e70a4a49352083c0967fe12cc74440e218dd8ac4e478db847837fa93cd4d2b869b78f3af0eababc72e36b0dcd1afdaf97ca2043aef4d5cfda4
6
+ metadata.gz: 547928ccf29d171f17c16c69c331ad0a8cd94957daa4990adc4e5915cf91f5302bc16565ab0ce97a79e927106687453599762e72cb39a23a8c42c3056d0f1ee0
7
+ data.tar.gz: cf485499a7ce6ed2551ccd22ad7ce48a38e8b5e41656f7d43611c5e3b78710675cb0f00a069244adafbe220132b5f619bd7feeec8e62969e48054bb3e9147e5e
data/.gitignore CHANGED
@@ -1,3 +1,2 @@
1
- *.tmproj
2
1
  pkg
3
2
  .bundle
data/Gemfile CHANGED
@@ -1,15 +1,14 @@
1
- source 'https://rubygems.org'
1
+ source "https://rubygems.org"
2
2
  gemspec
3
3
 
4
4
  group :test, :development do
5
- gem 'mongoid', '>= 3.1.2'
6
- gem 'rspec', '2.13.0'
5
+ gem "mongoid", ">= 6.0.0"
6
+ gem "rspec", "3.7.0"
7
7
  end
8
8
 
9
9
  group :test do
10
- gem 'capybara', '1.0.0'
11
- gem 'database_cleaner', '0.9.1'
12
- gem 'factory_girl', '2.0.1'
13
- gem 'remarkable_mongoid', '0.6.0'
14
- gem 'shoulda-matchers', '1.0.0'
10
+ gem "capybara", "2.17.0"
11
+ gem "database_cleaner", "1.6.2"
12
+ gem "factory_bot", "4.8.2"
13
+ gem "shoulda-matchers", "3.1.2"
15
14
  end
@@ -1,104 +1,111 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- wulffeld_slug (0.0.28)
4
+ wulffeld_slug (0.0.29)
5
5
  activesupport (>= 3.1.0)
6
6
  babosa (>= 0.3.7)
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
- activemodel (3.2.17)
12
- activesupport (= 3.2.17)
13
- builder (~> 3.0.0)
14
- activesupport (3.2.17)
15
- i18n (~> 0.6, >= 0.6.4)
16
- multi_json (~> 1.0)
17
- babosa (0.3.11)
18
- builder (3.0.4)
19
- capybara (1.0.0)
20
- mime-types (>= 1.16)
11
+ activemodel (5.1.4)
12
+ activesupport (= 5.1.4)
13
+ activesupport (5.1.4)
14
+ concurrent-ruby (~> 1.0, >= 1.0.2)
15
+ i18n (~> 0.7)
16
+ minitest (~> 5.1)
17
+ tzinfo (~> 1.1)
18
+ addressable (2.5.2)
19
+ public_suffix (>= 2.0.2, < 4.0)
20
+ babosa (1.0.2)
21
+ bson (4.3.0)
22
+ builder (3.2.3)
23
+ capybara (2.17.0)
24
+ addressable
25
+ mini_mime (>= 0.1.3)
21
26
  nokogiri (>= 1.3.3)
22
27
  rack (>= 1.0.0)
23
28
  rack-test (>= 0.5.4)
24
- selenium-webdriver (~> 0.2.0)
25
- xpath (~> 0.1.4)
26
- childprocess (0.5.1)
27
- ffi (~> 1.0, >= 1.0.11)
28
- database_cleaner (0.9.1)
29
- diff-lcs (1.2.5)
30
- factory_girl (2.0.1)
31
- ffi (1.9.3)
32
- geminabox (0.12.3)
29
+ xpath (>= 2.0, < 4.0)
30
+ concurrent-ruby (1.0.5)
31
+ database_cleaner (1.6.2)
32
+ diff-lcs (1.3)
33
+ factory_bot (4.8.2)
34
+ activesupport (>= 3.0.0)
35
+ faraday (0.14.0)
36
+ multipart-post (>= 1.2, < 3)
37
+ geminabox (0.13.15)
33
38
  builder
39
+ faraday
34
40
  httpclient (>= 2.2.7)
35
41
  nesty
42
+ reentrant_flock
36
43
  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)
44
+ httpclient (2.8.3)
45
+ i18n (0.9.3)
46
+ concurrent-ruby (~> 1.0)
47
+ mini_mime (1.0.0)
48
+ mini_portile2 (2.3.0)
49
+ minitest (5.11.3)
50
+ mongo (2.5.0)
51
+ bson (>= 4.3.0, < 5.0.0)
52
+ mongoid (6.3.0)
53
+ activemodel (~> 5.1)
54
+ mongo (>= 2.5.0, < 3.0.0)
55
+ multipart-post (2.0.0)
56
+ mustermann (1.0.1)
49
57
  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)
58
+ nokogiri (1.8.2)
59
+ mini_portile2 (~> 2.3.0)
60
+ public_suffix (3.0.1)
61
+ rack (2.0.4)
62
+ rack-protection (2.0.0)
55
63
  rack
56
- rack-test (0.6.2)
57
- rack (>= 1.0)
58
- rake (10.1.1)
59
- remarkable (4.0.0.alpha4)
60
- rspec (>= 2.0.0.alpha11)
61
- remarkable_activemodel (4.0.0.alpha4)
62
- remarkable (~> 4.0.0.alpha4)
63
- rspec (>= 2.0.0.alpha11)
64
- remarkable_mongoid (0.6.0)
65
- remarkable_activemodel (~> 4.0.0.alpha4)
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)
75
- selenium-webdriver (0.2.2)
76
- childprocess (>= 0.1.9)
77
- ffi (>= 1.0.7)
78
- json_pure
79
- rubyzip
80
- shoulda-matchers (1.0.0)
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)
87
- xpath (0.1.4)
88
- nokogiri (~> 1.3)
64
+ rack-test (0.8.2)
65
+ rack (>= 1.0, < 3)
66
+ rake (12.3.0)
67
+ reentrant_flock (0.1.1)
68
+ rspec (3.7.0)
69
+ rspec-core (~> 3.7.0)
70
+ rspec-expectations (~> 3.7.0)
71
+ rspec-mocks (~> 3.7.0)
72
+ rspec-core (3.7.1)
73
+ rspec-support (~> 3.7.0)
74
+ rspec-expectations (3.7.0)
75
+ diff-lcs (>= 1.2.0, < 2.0)
76
+ rspec-support (~> 3.7.0)
77
+ rspec-mocks (3.7.0)
78
+ diff-lcs (>= 1.2.0, < 2.0)
79
+ rspec-support (~> 3.7.0)
80
+ rspec-support (3.7.1)
81
+ shoulda-matchers (3.1.2)
82
+ activesupport (>= 4.0.0)
83
+ sinatra (2.0.0)
84
+ mustermann (~> 1.0)
85
+ rack (~> 2.0)
86
+ rack-protection (= 2.0.0)
87
+ tilt (~> 2.0)
88
+ thread_safe (0.3.6)
89
+ tilt (2.0.8)
90
+ tzinfo (1.2.5)
91
+ thread_safe (~> 0.1)
92
+ xpath (3.0.0)
93
+ nokogiri (~> 1.8)
89
94
 
90
95
  PLATFORMS
91
96
  ruby
92
97
 
93
98
  DEPENDENCIES
94
99
  bundler (>= 1.3.2)
95
- capybara (= 1.0.0)
96
- database_cleaner (= 0.9.1)
97
- factory_girl (= 2.0.1)
100
+ capybara (= 2.17.0)
101
+ database_cleaner (= 1.6.2)
102
+ factory_bot (= 4.8.2)
98
103
  geminabox
99
- mongoid (>= 3.1.2)
104
+ mongoid (>= 6.0.0)
100
105
  rake
101
- remarkable_mongoid (= 0.6.0)
102
- rspec (= 2.13.0)
103
- shoulda-matchers (= 1.0.0)
106
+ rspec (= 3.7.0)
107
+ shoulda-matchers (= 3.1.2)
104
108
  wulffeld_slug!
109
+
110
+ BUNDLED WITH
111
+ 1.14.4
@@ -1,3 +1,3 @@
1
1
  module WulffeldSlug
2
- VERSION = '0.0.28'
2
+ VERSION = '0.0.29'
3
3
  end
@@ -12,7 +12,7 @@ describe 'WulffeldSlug::PrepareString' do
12
12
  describe "preparing various words" do
13
13
  [
14
14
  [["This", "PLACE"], "this-place"],
15
- ["«Огни Уфы»", "ogny-ufy"],
15
+ ["«Огни Уфы»", "ohny-ufy"],
16
16
  ["Развлекательный Комплекс «Огни Уфы», «Колизео»", "razvlekatelinyi-kompleks-ogni-ufy-kolizeo"],
17
17
  ["Rider´s Cafe", "riders-cafe"],
18
18
  ["Rider`s Cafe", "riders-cafe"],
@@ -2,8 +2,8 @@ $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), "..", "lib"))
2
2
  MODELS = File.join(File.dirname(__FILE__), "app/models")
3
3
  $LOAD_PATH.unshift(MODELS)
4
4
 
5
- require 'rubygems'
6
- require 'bundler/setup'
5
+ require "rubygems"
6
+ require "bundler/setup"
7
7
 
8
8
  ENV["RAILS_ENV"] = "test"
9
9
 
@@ -11,24 +11,28 @@ require "wulffeld_slug"
11
11
 
12
12
  require "mongoid"
13
13
  require "database_cleaner"
14
- require "factory_girl"
14
+ require "factory_bot"
15
15
  require "rspec"
16
16
 
17
- Mongoid.configure do |config|
18
- config.sessions = {
17
+ CONFIG = {
18
+ clients: {
19
19
  default: {
20
- hosts: ["localhost:27017"],
21
- database: "wulffeld_slug_test"
20
+ database: "wulffeld_slug_test",
21
+ hosts: [ "127.0.0.1:27017" ]
22
22
  }
23
23
  }
24
+ }
25
+
26
+ Mongoid.configure do |config|
27
+ config.load_configuration(CONFIG)
24
28
  end
25
-
29
+
26
30
  Dir[ File.join(MODELS, "*.rb") ].sort.each { |file| require File.basename(file) }
27
31
 
28
32
  DatabaseCleaner[:mongoid].strategy = :truncation
29
33
 
30
34
  RSpec.configure do |config|
31
- require 'rspec/expectations'
35
+ require "rspec/expectations"
32
36
 
33
37
  config.include RSpec::Matchers
34
38
 
@@ -36,7 +40,6 @@ RSpec.configure do |config|
36
40
 
37
41
  config.before(:each) do
38
42
  DatabaseCleaner.clean
39
- Mongoid::IdentityMap.clear
40
43
  end
41
44
 
42
45
  config.after(:suite) do
metadata CHANGED
@@ -1,83 +1,83 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wulffeld_slug
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.28
4
+ version: 0.0.29
5
5
  platform: ruby
6
6
  authors:
7
7
  - Martin Moen Wulffeld
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-03-17 00:00:00.000000000 Z
11
+ date: 2018-02-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '>='
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: 1.3.2
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - '>='
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: 1.3.2
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '>='
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - '>='
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: geminabox
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - '>='
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - '>='
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: babosa
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - '>='
59
+ - - ">="
60
60
  - !ruby/object:Gem::Version
61
61
  version: 0.3.7
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - '>='
66
+ - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: 0.3.7
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: activesupport
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - '>='
73
+ - - ">="
74
74
  - !ruby/object:Gem::Version
75
75
  version: 3.1.0
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - '>='
80
+ - - ">="
81
81
  - !ruby/object:Gem::Version
82
82
  version: 3.1.0
83
83
  description: Slug generation.
@@ -87,7 +87,7 @@ executables: []
87
87
  extensions: []
88
88
  extra_rdoc_files: []
89
89
  files:
90
- - .gitignore
90
+ - ".gitignore"
91
91
  - Gemfile
92
92
  - Gemfile.lock
93
93
  - README
@@ -116,17 +116,17 @@ require_paths:
116
116
  - lib
117
117
  required_ruby_version: !ruby/object:Gem::Requirement
118
118
  requirements:
119
- - - '>='
119
+ - - ">="
120
120
  - !ruby/object:Gem::Version
121
121
  version: '0'
122
122
  required_rubygems_version: !ruby/object:Gem::Requirement
123
123
  requirements:
124
- - - '>='
124
+ - - ">="
125
125
  - !ruby/object:Gem::Version
126
126
  version: '0'
127
127
  requirements: []
128
128
  rubyforge_project:
129
- rubygems_version: 2.1.11
129
+ rubygems_version: 2.6.11
130
130
  signing_key:
131
131
  specification_version: 4
132
132
  summary: Slug generation.