ransack-enum 0.1.0 → 0.1.1

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
  SHA256:
3
- metadata.gz: 97f30e49879d033fe4c565d88b0684425231f15f587e8aec3c172733f93933c1
4
- data.tar.gz: ca2b830be92aa094cff2582b3bba3564a39c13a00470c220f2fe74be470491d6
3
+ metadata.gz: c60f8d71b380e42fc9320e53a099dcd425927178279c798de58a099a6b918cc3
4
+ data.tar.gz: d7f375fef86ea2e49890c18a6d2ffd1b9547d254cdfeb9d5aa51a9a35ad7fa41
5
5
  SHA512:
6
- metadata.gz: 8c66bafa64fe674569f78b7221ecd2090d311423e69fe937623aff056134536650bed8283a724ff5cb952e4793578772b330085750b72bf331dd2746f21ecb26
7
- data.tar.gz: f516648b499dbab637d630b237501fc1a357f8d0994e507dcdd7f7ebb49f83b52307580bff7908675ad0c860fcde7ae8ed779337b3105139785ba97735cd7fea
6
+ metadata.gz: 3ffc4bb6e75716af399920df5e7c2ff11aa91bf63404d7becc45c5f1497b481d0dd7e641952590f987c149217b84919ff5d589affb1f365e7a448103ebfefec6
7
+ data.tar.gz: e4251ef53dbead555eba994bd6c22c71ecd1f4f8d441798750c3f2b3ce955f114ab0a8430a9188a54aa7df9f2137cb479e78cde46ded807b670fa6d5e383316c
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 0.1.1 / 2019-11-30
4
+ ### Hotfix
5
+ - Fix dependencies
6
+
3
7
  ## 0.1.0 / 2019-11-30
4
8
  ### New features
5
9
  - create gem
data/README.md CHANGED
@@ -7,9 +7,7 @@ Allow Enum values to be used in [Ransack](https://github.com/activerecord-hacker
7
7
  Add this line to your application's Gemfile:
8
8
 
9
9
  ```ruby
10
- gem 'ransack-enum',
11
- git: 'https://github.com/shoma07/ransack-enum.git',
12
- branch: 'master'
10
+ gem 'ransack-enum'
13
11
  ```
14
12
 
15
13
  And then execute:
@@ -10,7 +10,7 @@ module Ransack
10
10
  # @param [Hash] definitions
11
11
  def enum(definitions)
12
12
  super
13
- enum_ransacker(definitions)
13
+ enum_ransacker(definitions) if respond_to?(:ransacker)
14
14
  end
15
15
 
16
16
  # rubocop:disable Metrics/AbcSize, Metrics/MethodLength
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Ransack
4
4
  module Enum
5
- VERSION = '0.1.0'
5
+ VERSION = '0.1.1'
6
6
  end
7
7
  end
data/ransack-enum.gemspec CHANGED
@@ -11,11 +11,12 @@ Gem::Specification.new do |spec|
11
11
  spec.summary = "Allow Enum values to be used in Ransack searches"
12
12
  spec.description = "Allow Enum values to be used in Ransack searches"
13
13
  spec.homepage = "https://github.com/shoma07/ransack-enum"
14
+ spec.required_ruby_version = ">= 2.3"
14
15
  spec.license = "MIT"
15
16
 
16
17
  spec.metadata["homepage_uri"] = spec.homepage
17
18
  spec.metadata["source_code_uri"] = spec.homepage
18
- spec.metadata["changelog_uri"] = "https://github.com/shoma07/ransack-enum/blob/master/CHANGELOG.md"
19
+ spec.metadata["changelog_uri"] = "https://github.com/shoma07/ransack-enum/blob/v#{spec.version}/CHANGELOG.md"
19
20
 
20
21
  # Specify which files should be added to the gem when it is released.
21
22
  # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
@@ -26,8 +27,7 @@ Gem::Specification.new do |spec|
26
27
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
27
28
  spec.require_paths = ["lib"]
28
29
 
29
- spec.add_dependency "ransack", "~> 2.3"
30
- spec.add_dependency "activesupport", ">= 5.2.1"
30
+ spec.add_development_dependency "ransack", "~> 2.0"
31
31
 
32
32
  spec.add_development_dependency "bundler", "~> 2.0"
33
33
  spec.add_development_dependency "rake", "~> 10.0"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ransack-enum
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - shoma07
@@ -16,28 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '2.3'
20
- type: :runtime
19
+ version: '2.0'
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
- version: '2.3'
27
- - !ruby/object:Gem::Dependency
28
- name: activesupport
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - ">="
32
- - !ruby/object:Gem::Version
33
- version: 5.2.1
34
- type: :runtime
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - ">="
39
- - !ruby/object:Gem::Version
40
- version: 5.2.1
26
+ version: '2.0'
41
27
  - !ruby/object:Gem::Dependency
42
28
  name: bundler
43
29
  requirement: !ruby/object:Gem::Requirement
@@ -124,7 +110,7 @@ licenses:
124
110
  metadata:
125
111
  homepage_uri: https://github.com/shoma07/ransack-enum
126
112
  source_code_uri: https://github.com/shoma07/ransack-enum
127
- changelog_uri: https://github.com/shoma07/ransack-enum/blob/master/CHANGELOG.md
113
+ changelog_uri: https://github.com/shoma07/ransack-enum/blob/v0.1.1/CHANGELOG.md
128
114
  post_install_message:
129
115
  rdoc_options: []
130
116
  require_paths:
@@ -133,7 +119,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
133
119
  requirements:
134
120
  - - ">="
135
121
  - !ruby/object:Gem::Version
136
- version: '0'
122
+ version: '2.3'
137
123
  required_rubygems_version: !ruby/object:Gem::Requirement
138
124
  requirements:
139
125
  - - ">="