mongoid_permalink_extension 0.1.1 → 0.1.2

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: afa92956e8ef6a3711242da5394ab3038cc67018
4
- data.tar.gz: febc6cd2b8d1e6ac4c6af461dde98803d747bf17
3
+ metadata.gz: 871d9e6f3675450b0bea4e3f772d4ca1a37a7d3e
4
+ data.tar.gz: cfe647f888ec7ee710a434a0ba057aa3a8da6e1e
5
5
  SHA512:
6
- metadata.gz: 835869deffcb225a7c79497637521612f9a6f04fdf183d56ad9bfc34555759f05f4c7aaee5bf18dfa401a3b5a99a41594e7d0f42d83a8f35c4356084ba90ea24
7
- data.tar.gz: b628f68a4374240bd153783b52dba029974adcb53aa5e2ceab5a663a5e865d7c753c817d6bf064fd002daabea1c635ff6bb699c2d996ec4778f9481632992ab6
6
+ metadata.gz: 32a6ff15eb4117584c9c98f323da1b8f3f5152ffe39889cd08856da9102bba9df0de551e645a734653da3478a98d61e54d7b34618ab41513d9ea9b1045f130ad
7
+ data.tar.gz: 62526cba6d41c7e3619b01dd22e5dc24bff869a3bc5397889db892d6c4bd9e79669a854c145232cc71f8d408352ca979bbc2d0ba5b3668968aaa56c1091396b3
@@ -2,11 +2,11 @@ language: ruby
2
2
  cache: bundler
3
3
  script: 'bundle exec rake'
4
4
  rvm:
5
- - 1.9.3
5
+ - 2.2.5
6
6
 
7
7
  notifications:
8
8
  email:
9
9
  recipients:
10
10
  - tomas.celizna@gmail.com
11
11
  on_failure: change
12
- on_success: never
12
+ on_success: never
@@ -12,7 +12,7 @@ module MongoidPermalinkExtension
12
12
  end
13
13
 
14
14
  def mongoize value
15
- return if value.nil?
15
+ return if value.nil? # FIXME: this way we can never set the value to nil
16
16
  value.to_s.
17
17
  gsub(/([^[:upper:]](?=[[:upper:]]))|([a-z](?=\d+))/, '\1\2-').
18
18
  gsub(/\//, '-').
@@ -1,3 +1,3 @@
1
1
  module MongoidPermalinkExtension
2
- VERSION = "0.1.1"
2
+ VERSION = '0.1.2'.freeze
3
3
  end
@@ -4,27 +4,27 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
  require 'mongoid_permalink_extension/version'
5
5
 
6
6
  Gem::Specification.new do |spec|
7
- spec.name = "mongoid_permalink_extension"
7
+ spec.name = 'mongoid_permalink_extension'
8
8
  spec.version = MongoidPermalinkExtension::VERSION
9
- spec.authors = ["Tomas Celizna"]
10
- spec.email = ["tomas.celizna@gmail.com"]
11
- spec.description = %q{Custom field type for Mongoid that automatically converts strings to URL slugs.}
12
- spec.summary = %q{Custom field type for Mongoid that automatically converts strings to URL slugs.}
13
- spec.homepage = "https://github.com/tomasc/mongoid_permalink_extension"
14
- spec.license = "MIT"
9
+ spec.authors = ['Tomas Celizna']
10
+ spec.email = ['tomas.celizna@gmail.com']
11
+ spec.description = 'Custom field type for Mongoid that automatically converts strings to URL slugs.'
12
+ spec.summary = 'Custom field type for Mongoid that automatically converts strings to URL slugs.'
13
+ spec.homepage = 'https://github.com/tomasc/mongoid_permalink_extension'
14
+ spec.license = 'MIT'
15
15
 
16
- spec.files = `git ls-files`.split($/)
16
+ spec.files = `git ls-files`.split($INPUT_RECORD_SEPARATOR)
17
17
  spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
18
18
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
- spec.require_paths = ["lib"]
19
+ spec.require_paths = ['lib']
20
20
 
21
- spec.add_dependency "mongoid", ">= 4.0", "< 6.0"
22
- spec.add_dependency "stringex"
21
+ spec.add_dependency 'mongoid', '>= 4.0'
22
+ spec.add_dependency 'stringex'
23
23
 
24
- spec.add_development_dependency "bundler", "~> 1.3"
25
- spec.add_development_dependency "coveralls"
26
- spec.add_development_dependency "guard"
27
- spec.add_development_dependency "guard-minitest"
28
- spec.add_development_dependency "minitest"
29
- spec.add_development_dependency "rake"
24
+ spec.add_development_dependency 'bundler', '~> 1.3'
25
+ spec.add_development_dependency 'coveralls'
26
+ spec.add_development_dependency 'guard'
27
+ spec.add_development_dependency 'guard-minitest'
28
+ spec.add_development_dependency 'minitest'
29
+ spec.add_development_dependency 'rake', '~> 10.0'
30
30
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mongoid_permalink_extension
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tomas Celizna
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-10-19 00:00:00.000000000 Z
11
+ date: 2016-11-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mongoid
@@ -17,9 +17,6 @@ dependencies:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '4.0'
20
- - - "<"
21
- - !ruby/object:Gem::Version
22
- version: '6.0'
23
20
  type: :runtime
24
21
  prerelease: false
25
22
  version_requirements: !ruby/object:Gem::Requirement
@@ -27,9 +24,6 @@ dependencies:
27
24
  - - ">="
28
25
  - !ruby/object:Gem::Version
29
26
  version: '4.0'
30
- - - "<"
31
- - !ruby/object:Gem::Version
32
- version: '6.0'
33
27
  - !ruby/object:Gem::Dependency
34
28
  name: stringex
35
29
  requirement: !ruby/object:Gem::Requirement
@@ -118,16 +112,16 @@ dependencies:
118
112
  name: rake
119
113
  requirement: !ruby/object:Gem::Requirement
120
114
  requirements:
121
- - - ">="
115
+ - - "~>"
122
116
  - !ruby/object:Gem::Version
123
- version: '0'
117
+ version: '10.0'
124
118
  type: :development
125
119
  prerelease: false
126
120
  version_requirements: !ruby/object:Gem::Requirement
127
121
  requirements:
128
- - - ">="
122
+ - - "~>"
129
123
  - !ruby/object:Gem::Version
130
- version: '0'
124
+ version: '10.0'
131
125
  description: Custom field type for Mongoid that automatically converts strings to
132
126
  URL slugs.
133
127
  email:
@@ -171,7 +165,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
171
165
  version: '0'
172
166
  requirements: []
173
167
  rubyforge_project:
174
- rubygems_version: 2.4.8
168
+ rubygems_version: 2.4.5.1
175
169
  signing_key:
176
170
  specification_version: 4
177
171
  summary: Custom field type for Mongoid that automatically converts strings to URL