locale_kit 1.0.0 → 1.0.1

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
- SHA1:
3
- metadata.gz: fafe0ff1d4b53488d966dc6ea25f7ba96945eac7
4
- data.tar.gz: dba3501d8a7a49aefd76a8b975f64cd93a362e98
2
+ SHA256:
3
+ metadata.gz: 40b6a82e6a2a0073cf9cedeb363abbb214ec3beea1b66bdf72e1961ebefdff46
4
+ data.tar.gz: 730550c69d05b6dc9d4e3eb1df434303a2304a220f67adc1c98a0f59d5390e4d
5
5
  SHA512:
6
- metadata.gz: 9b228afa982ac0d93bd9bd69326f44ec55d4df3e798d5ba7d1956ab038f815b13c4c9615a2ec97a3b3f2a6a4d1ad2167e35f6a38b7eb06d48b291d971a83a845
7
- data.tar.gz: b947476fac25f3d86e90060b0fd5d8d9623ba91d3f91ed102e483a50254493178779d46e4b09b24ae2c5e5c7bbd2238eff3d145eaecc529d96bf4ef2d8897509
6
+ metadata.gz: d9ae5faf0ea0eaba4a1e86b275c011b9ca7a83f780c1ea15b7b3829e472045f2572c394d645130dd774e5c15d0cf1de74fca92f655b1cd87c0560222d0ea3df3
7
+ data.tar.gz: 508ce58b87f6054b5f91d8e1b9666a5dd58ae3ac3a74919bba169c463cd3b11b200d3872718b1f8588905628293aa840d92c36f7f4da4441a74f0e7eed15a2a0
data/Rakefile CHANGED
@@ -16,7 +16,7 @@ RDoc::Task.new(:rdoc) do |rdoc|
16
16
  rdoc.rdoc_files.include('lib/**/*.rb')
17
17
  end
18
18
 
19
- APP_RAKEFILE = File.expand_path('../test/dummy/Rakefile', __FILE__)
19
+ APP_RAKEFILE = File.expand_path('test/dummy/Rakefile', __dir__)
20
20
  load 'rails/tasks/engine.rake'
21
21
 
22
22
  load 'rails/tasks/statistics.rake'
@@ -1,7 +1,7 @@
1
1
  require 'generators/locale_kit'
2
2
 
3
3
  class LocaleKit::Generators::ControllerGenerator < LocaleKit::Generators::Base
4
- source_root File.expand_path('../templates', __FILE__)
4
+ source_root File.expand_path('templates', __dir__)
5
5
 
6
6
  argument(:actions, type: :array, default: [], banner: 'action action')
7
7
 
@@ -1,7 +1,7 @@
1
1
  require 'generators/locale_kit'
2
2
 
3
3
  class LocaleKit::Generators::InstallGenerator < ::Rails::Generators::Base
4
- source_root File.expand_path('../templates', __FILE__)
4
+ source_root File.expand_path('templates', __dir__)
5
5
 
6
6
  def create_locale_dir
7
7
  empty_directory(locale_dir)
@@ -1,7 +1,7 @@
1
1
  require 'generators/locale_kit'
2
2
 
3
3
  class LocaleKit::Generators::MailerGenerator < LocaleKit::Generators::Base
4
- source_root File.expand_path('../templates', __FILE__)
4
+ source_root File.expand_path('templates', __dir__)
5
5
 
6
6
  argument(:actions, type: :array, default: [], banner: 'method method')
7
7
 
@@ -1,7 +1,7 @@
1
1
  require 'generators/locale_kit'
2
2
 
3
3
  class LocaleKit::Generators::ModelGenerator < LocaleKit::Generators::Base
4
- source_root File.expand_path('../templates', __FILE__)
4
+ source_root File.expand_path('templates', __dir__)
5
5
 
6
6
  argument(:attributes, type: :array, default: [], banner: 'field:type field:type')
7
7
 
@@ -14,7 +14,7 @@ class LocaleKit::Engine < ::Rails::Engine
14
14
 
15
15
  config.locale_kit = LocaleKit.config
16
16
 
17
- initializer 'draper.setup_action_controller' do
17
+ initializer 'locale_kit.setup_action_controller' do
18
18
  ActiveSupport.on_load :action_controller do
19
19
  instance_eval do
20
20
  use(LocaleKit::Reloader) if LocaleKit.config.reload
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module LocaleKit
4
- VERSION = '1.0.0'.freeze
4
+ VERSION = '1.0.1'.freeze
5
5
  end
metadata CHANGED
@@ -1,51 +1,45 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: locale_kit
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sho Kusano
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-08-03 00:00:00.000000000 Z
11
+ date: 2018-04-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: rails
14
+ name: i18n
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 5.0.2
20
- - - "<"
21
- - !ruby/object:Gem::Version
22
- version: '5.2'
19
+ version: '0'
23
20
  type: :runtime
24
21
  prerelease: false
25
22
  version_requirements: !ruby/object:Gem::Requirement
26
23
  requirements:
27
24
  - - ">="
28
25
  - !ruby/object:Gem::Version
29
- version: 5.0.2
30
- - - "<"
31
- - !ruby/object:Gem::Version
32
- version: '5.2'
26
+ version: '0'
33
27
  - !ruby/object:Gem::Dependency
34
- name: i18n
28
+ name: rails
35
29
  requirement: !ruby/object:Gem::Requirement
36
30
  requirements:
37
31
  - - ">="
38
32
  - !ruby/object:Gem::Version
39
- version: '0'
33
+ version: 5.0.2
40
34
  type: :runtime
41
35
  prerelease: false
42
36
  version_requirements: !ruby/object:Gem::Requirement
43
37
  requirements:
44
38
  - - ">="
45
39
  - !ruby/object:Gem::Version
46
- version: '0'
40
+ version: 5.0.2
47
41
  - !ruby/object:Gem::Dependency
48
- name: sqlite3
42
+ name: coveralls
49
43
  requirement: !ruby/object:Gem::Requirement
50
44
  requirements:
51
45
  - - ">="
@@ -87,7 +81,7 @@ dependencies:
87
81
  - !ruby/object:Gem::Version
88
82
  version: '0'
89
83
  - !ruby/object:Gem::Dependency
90
- name: coveralls
84
+ name: sqlite3
91
85
  requirement: !ruby/object:Gem::Requirement
92
86
  requirements:
93
87
  - - ">="
@@ -110,11 +104,6 @@ files:
110
104
  - MIT-LICENSE
111
105
  - README.md
112
106
  - Rakefile
113
- - app/assets/config/locale_kit_manifest.js
114
- - app/assets/stylesheets/locale_kit/application.css
115
- - app/controllers/locale_kit/application_controller.rb
116
- - app/helpers/locale_kit/application_helper.rb
117
- - app/views/layouts/locale_kit/application.html.erb
118
107
  - config/routes.rb
119
108
  - lib/generators/locale_kit.rb
120
109
  - lib/generators/locale_kit/controller/USAGE
@@ -159,7 +148,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
159
148
  version: '0'
160
149
  requirements: []
161
150
  rubyforge_project:
162
- rubygems_version: 2.6.8
151
+ rubygems_version: 2.7.6
163
152
  signing_key:
164
153
  specification_version: 4
165
154
  summary: Improve locales convention of Rails
@@ -1 +0,0 @@
1
- //= link_directory ../stylesheets/locale_kit .css
@@ -1,15 +0,0 @@
1
- /*
2
- * This is a manifest file that'll be compiled into application.css, which will include all the files
3
- * listed below.
4
- *
5
- * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
6
- * or any plugin's vendor/assets/stylesheets directory can be referenced here using a relative path.
7
- *
8
- * You're free to add application-wide styles to this file and they'll appear at the bottom of the
9
- * compiled file so the styles you add here take precedence over styles defined in any other CSS/SCSS
10
- * files in this directory. Styles in this file should be added after the last require_* statement.
11
- * It is generally better to create a new file per style scope.
12
- *
13
- *= require_tree .
14
- *= require_self
15
- */
@@ -1,5 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- class LocaleKit::ApplicationController < ActionController::Base
4
- protect_from_forgery with: :exception
5
- end
@@ -1,4 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module LocaleKit::ApplicationHelper
4
- end
@@ -1,14 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <title>Locale kit</title>
5
- <%= stylesheet_link_tag "locale_kit/application", media: "all" %>
6
- <%= javascript_include_tag "locale_kit/application" %>
7
- <%= csrf_meta_tags %>
8
- </head>
9
- <body>
10
-
11
- <%= yield %>
12
-
13
- </body>
14
- </html>