enju_library 0.3.6 → 0.3.7

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: 4802d463a39344f22ebe0ee2c4b1450a2331eef57c580e30ea6d95591ee1dfb9
4
- data.tar.gz: 60f7c600d830f4d00904a229499084ff9c5a4b2569bb6573219326aaa91d8952
3
+ metadata.gz: 6281daed741bd1cc79341eccf54fa5f12335277b8ca176ba932f4d80ece97552
4
+ data.tar.gz: acc7e4eb25d44495444425463c0b5f8e327c8d793d6f9788cfa5d4f058158c8a
5
5
  SHA512:
6
- metadata.gz: f165c06c251c2d2ec85647e7182c413604983d1016042195f72e2535f320788f7abd5c71d851c3f15bab49e6855614f3299820eefe83ed802b4f4597ca93e170
7
- data.tar.gz: 0d8f350edd67f0bfa842c241dcac23cf90b0ef4f57af3797e3f9ebb6be2855067183888e0259c913af3f0c167d255f1b57da50f64a81707b5dfdd08cd4b3df09
6
+ metadata.gz: 1d5e70ea6107e81b239df5beea6a1e24dd5957ccadbe54cd2a5a81595577f904eb4737c5e97cfb095f19ea0b225359d1c361a7981b930b63a5cdc84ffd3bcfbb
7
+ data.tar.gz: 6c8fd058c37819d5a7a7f8aecd1064bb20bade05b17b39f41f63ccef4c9975aa83d4898a07b30ff2cd4d5827b640f9d3b766effd6f14fb8cc16b36db2f3d7ab4
@@ -1,3 +1,3 @@
1
1
  module EnjuLibrary
2
- VERSION = "0.3.6"
2
+ VERSION = "0.3.7"
3
3
  end
@@ -5,8 +5,13 @@ class EnjuLibrary::SetupGenerator < Rails::Generators::Base
5
5
  def copy_setup_files
6
6
  directory("db/fixtures", "db/fixtures/enju_library")
7
7
  return if file == 'fixture'
8
- inject_into_file 'app/controllers/application_controller.rb',
9
- " include EnjuLibrary::Controller\n", after: "include EnjuLeaf::Controller\n"
8
+ inject_into_class 'app/controllers/application_controller.rb', ApplicationController,
9
+ " include EnjuLibrary::Controller\n"
10
10
  append_to_file("app/models/user.rb", "Item.include(EnjuLibrary::EnjuItem)\n")
11
+ gsub_file 'app/models/user.rb', /, :validatable$/, <<EOS
12
+ , # :validatable,
13
+ :lockable, lock_strategy: :none, unlock_strategy: :none
14
+ include EnjuSeed::EnjuUser
15
+ EOS
11
16
  end
12
17
  end
@@ -11,7 +11,7 @@ abort("The Rails environment is running in production mode!") if Rails.env.produ
11
11
  require 'spec_helper'
12
12
  require 'rspec/rails'
13
13
  # Add additional requires below this line. Rails is not loaded until this point!
14
- require 'factory_bot'
14
+ require 'factory_bot_rails'
15
15
  require 'rspec/active_model/mocks'
16
16
  Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
17
17
 
@@ -66,7 +66,3 @@ RSpec.configure do |config|
66
66
  end
67
67
  end
68
68
  end
69
-
70
- FactoryBot.definition_file_paths << "#{::Rails.root}/../../spec/factories"
71
- FactoryBot.find_definitions
72
-
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: enju_library
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.6
4
+ version: 0.3.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kosuke Tanabe
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-12-28 00:00:00.000000000 Z
11
+ date: 2019-12-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: enju_seed
@@ -98,16 +98,16 @@ dependencies:
98
98
  name: globalize
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - "<"
101
+ - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: '5.3'
103
+ version: '5.2'
104
104
  type: :runtime
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
- - - "<"
108
+ - - "~>"
109
109
  - !ruby/object:Gem::Version
110
- version: '5.3'
110
+ version: '5.2'
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: enju_leaf
113
113
  requirement: !ruby/object:Gem::Requirement
@@ -136,20 +136,6 @@ dependencies:
136
136
  - - "~>"
137
137
  - !ruby/object:Gem::Version
138
138
  version: 0.3.7
139
- - !ruby/object:Gem::Dependency
140
- name: enju_manifestation_viewer
141
- requirement: !ruby/object:Gem::Requirement
142
- requirements:
143
- - - "~>"
144
- - !ruby/object:Gem::Version
145
- version: 0.3.2
146
- type: :development
147
- prerelease: false
148
- version_requirements: !ruby/object:Gem::Requirement
149
- requirements:
150
- - - "~>"
151
- - !ruby/object:Gem::Version
152
- version: 0.3.2
153
139
  - !ruby/object:Gem::Dependency
154
140
  name: enju_ndl
155
141
  requirement: !ruby/object:Gem::Requirement
@@ -170,28 +156,28 @@ dependencies:
170
156
  requirements:
171
157
  - - "~>"
172
158
  - !ruby/object:Gem::Version
173
- version: 0.3.1
159
+ version: 0.3.3
174
160
  type: :development
175
161
  prerelease: false
176
162
  version_requirements: !ruby/object:Gem::Requirement
177
163
  requirements:
178
164
  - - "~>"
179
165
  - !ruby/object:Gem::Version
180
- version: 0.3.1
166
+ version: 0.3.3
181
167
  - !ruby/object:Gem::Dependency
182
168
  name: enju_circulation
183
169
  requirement: !ruby/object:Gem::Requirement
184
170
  requirements:
185
171
  - - "~>"
186
172
  - !ruby/object:Gem::Version
187
- version: 0.3.5
173
+ version: 0.3.7
188
174
  type: :development
189
175
  prerelease: false
190
176
  version_requirements: !ruby/object:Gem::Requirement
191
177
  requirements:
192
178
  - - "~>"
193
179
  - !ruby/object:Gem::Version
194
- version: 0.3.5
180
+ version: 0.3.7
195
181
  - !ruby/object:Gem::Dependency
196
182
  name: sqlite3
197
183
  requirement: !ruby/object:Gem::Requirement
@@ -339,9 +325,6 @@ dependencies:
339
325
  - - "~>"
340
326
  - !ruby/object:Gem::Version
341
327
  version: '3.11'
342
- - - "<"
343
- - !ruby/object:Gem::Version
344
- version: '3.27'
345
328
  type: :development
346
329
  prerelease: false
347
330
  version_requirements: !ruby/object:Gem::Requirement
@@ -349,9 +332,6 @@ dependencies:
349
332
  - - "~>"
350
333
  - !ruby/object:Gem::Version
351
334
  version: '3.11'
352
- - - "<"
353
- - !ruby/object:Gem::Version
354
- version: '3.27'
355
335
  - !ruby/object:Gem::Dependency
356
336
  name: selenium-webdriver
357
337
  requirement: !ruby/object:Gem::Requirement