enju_seed 0.4.0.beta.2 → 0.4.0.beta.3

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: 24825e1b1fec92ac49f176547038b8034a5372a7b0532a2c933b763d46922b92
4
- data.tar.gz: 6c83e33b4c0ad82842533b569c6ff3e6bdffd43b3c97420bb2ee3ed1a9ecf02f
3
+ metadata.gz: 0d3a1ee384ad98faa19b82e1de3cdfdce2e034c80855252ff6045a75bdb02cb2
4
+ data.tar.gz: e2078c669c9d3c1d8b2760f9bca744676ce36cae8676bcd7f6f8a2cbe107ee14
5
5
  SHA512:
6
- metadata.gz: c789d9f750e4cd24cee9676a24239ec4e0fe87247fa4ef82d49ad6f760ab479afbad06e20a2a5c476aa4d6cf6ee534950555fbc29cd21e01fd74b559459f03bf
7
- data.tar.gz: 1bb53c986224cb240009fde3421b02ff066a58bff58090ac32346befb9a95e91ed4947ec6e937ece13e5fd6db80a795be7ebfbd049bc8ef4c3409535a8bdb735
6
+ metadata.gz: e242c8711948c6a1f3f039a616eb85759d44830e7a83f9bfa58b1c995b06f1d62dd9d85204fb7b771983b124d4c1c96f6c506afa74dd13232f63e3198b677583
7
+ data.tar.gz: 216f5084a048468c75b8ff18bb5d570cb821810efb827df61ebfa1bdbf3f3666cc5d11b71c74d39a2d1c7fc16828524f2d9ce335e4ca29c13ac04ccec8d120b9
data/README.md CHANGED
@@ -1,5 +1,5 @@
1
1
  # EnjuSeed
2
- [![CircleCI](https://circleci.com/gh/next-l/enju_seed/tree/2.x.svg?style=svg)](https://circleci.com/gh/next-l/enju_seed/tree/2.x)
2
+ ![](https://github.com/next-l/enju_seed/workflows/Ruby/badge.svg?branch=2.x)
3
3
  [![Coverage Status](https://coveralls.io/repos/github/next-l/enju_seed/badge.svg?branch=2.x)](https://coveralls.io/github/next-l/enju_seed?branch=2.x)
4
4
 
5
5
  This project rocks and uses MIT-LICENSE.
@@ -1,3 +1,3 @@
1
1
  module EnjuSeed
2
- VERSION = "0.4.0.beta.2"
2
+ VERSION = "0.4.0.beta.3"
3
3
  end
@@ -5,4 +5,23 @@ namespace :enju_seed do
5
5
  ActiveRecord::FixtureSet.create_fixtures('db/fixtures/enju_seed', File.basename(file, '.*'))
6
6
  end
7
7
  end
8
+
9
+ desc "upgrade enju_seed to enju_leaf 2.0"
10
+ task upgrade: :environment do
11
+ sql = 'UPDATE users SET profile_id = profiles.id FROM profiles WHERE profiles.user_id = users.id;'
12
+ ActiveRecord::Base.connection.execute(sql)
13
+
14
+ class_names = [
15
+ Role
16
+ ]
17
+ class_names.each do |klass|
18
+ klass.find_each do |record|
19
+ I18n.available_locales.each do |locale|
20
+ next unless record.respond_to?("display_name_#{locale}")
21
+ record.update("display_name_#{locale}": YAML.safe_load(record[:display_name])[locale.to_s])
22
+ end
23
+ end
24
+ end
25
+ puts 'enju_seed: The upgrade completed successfully.'
26
+ end
8
27
  end
@@ -0,0 +1,3 @@
1
+ //= link_tree ../images
2
+ //= link_directory ../javascripts .js
3
+ //= link_directory ../stylesheets .css
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: enju_seed
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0.beta.2
4
+ version: 0.4.0.beta.3
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-08-15 00:00:00.000000000 Z
11
+ date: 2019-11-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -30,56 +30,56 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '5.2'
33
+ version: '5.3'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '5.2'
40
+ version: '5.3'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: devise
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '4.6'
47
+ version: '4.7'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '4.6'
54
+ version: '4.7'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: pundit
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '2.0'
61
+ version: '2.1'
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
- version: '2.0'
68
+ version: '2.1'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: acts_as_list
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: '0.9'
75
+ version: '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
- version: '0.9'
82
+ version: '1.0'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: strip_attributes
85
85
  requirement: !ruby/object:Gem::Requirement
@@ -268,14 +268,14 @@ dependencies:
268
268
  requirements:
269
269
  - - "~>"
270
270
  - !ruby/object:Gem::Version
271
- version: 1.4.0.beta.1
271
+ version: 2.0.0.beta.1
272
272
  type: :development
273
273
  prerelease: false
274
274
  version_requirements: !ruby/object:Gem::Requirement
275
275
  requirements:
276
276
  - - "~>"
277
277
  - !ruby/object:Gem::Version
278
- version: 1.4.0.beta.1
278
+ version: 2.0.0.beta.1
279
279
  - !ruby/object:Gem::Dependency
280
280
  name: pg
281
281
  requirement: !ruby/object:Gem::Requirement
@@ -496,6 +496,7 @@ files:
496
496
  - spec/controllers/roles_controller_spec.rb
497
497
  - spec/dummy/README.rdoc
498
498
  - spec/dummy/Rakefile
499
+ - spec/dummy/app/assets/config/manifest.js
499
500
  - spec/dummy/app/assets/javascripts/application.js
500
501
  - spec/dummy/app/assets/stylesheets/application.css
501
502
  - spec/dummy/app/controllers/application_controller.rb
@@ -799,6 +800,7 @@ test_files:
799
800
  - spec/dummy/app/models/user.rb
800
801
  - spec/dummy/app/controllers/application_controller.rb
801
802
  - spec/dummy/app/views/layouts/application.html.erb
803
+ - spec/dummy/app/assets/config/manifest.js
802
804
  - spec/dummy/app/assets/javascripts/application.js
803
805
  - spec/dummy/app/assets/stylesheets/application.css
804
806
  - spec/dummy/app/helpers/application_helper.rb