ant-design-rails 0.1.0 → 0.2.0

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: '0018bf821e5678e2347ffea2c095c2bd3c7d96655c15716d4d3158a815692800'
4
- data.tar.gz: ade8e43bf58c34370f1eb69f57eafc8385d09e4669eb4c192b0de0d4958ef218
3
+ metadata.gz: 492764161c93c55fcbf998e1dd443b9fb72913081cceb84c8bf4035ef4dce334
4
+ data.tar.gz: be5aa10e0e4d934f2c59fc195ef6fa923189cb6ea13e10445dd2bdfc83a72f55
5
5
  SHA512:
6
- metadata.gz: bf4b454b968d7177816d64b55fc90b6e0aa5af045fd436c97678a10e834293b62b8a8a82035d259cbd3daac460e7448b794a1ad070a67c6a0f9529d9a4253f62
7
- data.tar.gz: ed2fe2b351c257cb814b457d5f8cd09f6a338bf75ad3c4e64079195c6609e86fe6e81c735679741c44cd31344291e3cc982d529a7d18bfeaea54bb93b8d1c396
6
+ metadata.gz: 20e11fae568977b104d22c477662ca88d195d1a83d410d2d2c6907798ca10473d6fbd8128e894f36d2c3c48e62b02fb46e69aa7e6a656f78d759a480226ee2fd
7
+ data.tar.gz: 23f6dd8da460561376ceb923acde1745942cf5c5d298a7ba1db35d7de764aeeb82a1147fbcdd7003f5910f195aee0e78acc4a3ce742dbeb5ebed2222185643b3
data/Gemfile.lock CHANGED
@@ -1,13 +1,39 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ant-design-rails (0.1.0)
4
+ ant-design-rails (0.2.0)
5
5
  execjs (~> 2.8, >= 2.8.1)
6
+ olive_branch (~> 4.0, >= 4.0.1)
6
7
  railties (~> 7.0.4, >= 7.0.4.2)
7
8
 
8
9
  GEM
9
10
  remote: https://rubygems.org/
10
11
  specs:
12
+ actioncable (7.0.4.2)
13
+ actionpack (= 7.0.4.2)
14
+ activesupport (= 7.0.4.2)
15
+ nio4r (~> 2.0)
16
+ websocket-driver (>= 0.6.1)
17
+ actionmailbox (7.0.4.2)
18
+ actionpack (= 7.0.4.2)
19
+ activejob (= 7.0.4.2)
20
+ activerecord (= 7.0.4.2)
21
+ activestorage (= 7.0.4.2)
22
+ activesupport (= 7.0.4.2)
23
+ mail (>= 2.7.1)
24
+ net-imap
25
+ net-pop
26
+ net-smtp
27
+ actionmailer (7.0.4.2)
28
+ actionpack (= 7.0.4.2)
29
+ actionview (= 7.0.4.2)
30
+ activejob (= 7.0.4.2)
31
+ activesupport (= 7.0.4.2)
32
+ mail (~> 2.5, >= 2.5.4)
33
+ net-imap
34
+ net-pop
35
+ net-smtp
36
+ rails-dom-testing (~> 2.0)
11
37
  actionpack (7.0.4.2)
12
38
  actionview (= 7.0.4.2)
13
39
  activesupport (= 7.0.4.2)
@@ -15,12 +41,34 @@ GEM
15
41
  rack-test (>= 0.6.3)
16
42
  rails-dom-testing (~> 2.0)
17
43
  rails-html-sanitizer (~> 1.0, >= 1.2.0)
44
+ actiontext (7.0.4.2)
45
+ actionpack (= 7.0.4.2)
46
+ activerecord (= 7.0.4.2)
47
+ activestorage (= 7.0.4.2)
48
+ activesupport (= 7.0.4.2)
49
+ globalid (>= 0.6.0)
50
+ nokogiri (>= 1.8.5)
18
51
  actionview (7.0.4.2)
19
52
  activesupport (= 7.0.4.2)
20
53
  builder (~> 3.1)
21
54
  erubi (~> 1.4)
22
55
  rails-dom-testing (~> 2.0)
23
56
  rails-html-sanitizer (~> 1.1, >= 1.2.0)
57
+ activejob (7.0.4.2)
58
+ activesupport (= 7.0.4.2)
59
+ globalid (>= 0.3.6)
60
+ activemodel (7.0.4.2)
61
+ activesupport (= 7.0.4.2)
62
+ activerecord (7.0.4.2)
63
+ activemodel (= 7.0.4.2)
64
+ activesupport (= 7.0.4.2)
65
+ activestorage (7.0.4.2)
66
+ actionpack (= 7.0.4.2)
67
+ activejob (= 7.0.4.2)
68
+ activerecord (= 7.0.4.2)
69
+ activesupport (= 7.0.4.2)
70
+ marcel (~> 1.0)
71
+ mini_mime (>= 1.1.0)
24
72
  activesupport (7.0.4.2)
25
73
  concurrent-ruby (~> 1.0, >= 1.0.2)
26
74
  i18n (>= 1.6, < 2)
@@ -29,21 +77,59 @@ GEM
29
77
  builder (3.2.4)
30
78
  concurrent-ruby (1.2.0)
31
79
  crass (1.0.6)
80
+ date (3.3.3)
32
81
  erubi (1.12.0)
33
82
  execjs (2.8.1)
83
+ globalid (1.1.0)
84
+ activesupport (>= 5.0)
34
85
  i18n (1.12.0)
35
86
  concurrent-ruby (~> 1.0)
36
87
  loofah (2.19.1)
37
88
  crass (~> 1.0.2)
38
89
  nokogiri (>= 1.5.9)
90
+ mail (2.8.0.1)
91
+ mini_mime (>= 0.1.1)
92
+ net-imap
93
+ net-pop
94
+ net-smtp
95
+ marcel (1.0.2)
39
96
  method_source (1.0.0)
97
+ mini_mime (1.1.2)
40
98
  minitest (5.17.0)
99
+ multi_json (1.15.0)
100
+ net-imap (0.3.4)
101
+ date
102
+ net-protocol
103
+ net-pop (0.1.2)
104
+ net-protocol
105
+ net-protocol (0.2.1)
106
+ timeout
107
+ net-smtp (0.3.3)
108
+ net-protocol
109
+ nio4r (2.5.8)
41
110
  nokogiri (1.14.0-arm64-darwin)
42
111
  racc (~> 1.4)
112
+ olive_branch (4.0.1)
113
+ multi_json
114
+ rails (>= 4.0)
43
115
  racc (1.6.2)
44
116
  rack (2.2.6.2)
45
117
  rack-test (2.0.2)
46
118
  rack (>= 1.3)
119
+ rails (7.0.4.2)
120
+ actioncable (= 7.0.4.2)
121
+ actionmailbox (= 7.0.4.2)
122
+ actionmailer (= 7.0.4.2)
123
+ actionpack (= 7.0.4.2)
124
+ actiontext (= 7.0.4.2)
125
+ actionview (= 7.0.4.2)
126
+ activejob (= 7.0.4.2)
127
+ activemodel (= 7.0.4.2)
128
+ activerecord (= 7.0.4.2)
129
+ activestorage (= 7.0.4.2)
130
+ activesupport (= 7.0.4.2)
131
+ bundler (>= 1.15.0)
132
+ railties (= 7.0.4.2)
47
133
  rails-dom-testing (2.0.3)
48
134
  activesupport (>= 4.2.0)
49
135
  nokogiri (>= 1.6)
@@ -58,8 +144,12 @@ GEM
58
144
  zeitwerk (~> 2.5)
59
145
  rake (13.0.6)
60
146
  thor (1.2.1)
147
+ timeout (0.3.1)
61
148
  tzinfo (2.0.5)
62
149
  concurrent-ruby (~> 1.0)
150
+ websocket-driver (0.7.5)
151
+ websocket-extensions (>= 0.1.0)
152
+ websocket-extensions (0.1.5)
63
153
  zeitwerk (2.6.6)
64
154
 
65
155
  PLATFORMS
@@ -26,6 +26,7 @@ Gem::Specification.new do |spec|
26
26
  (f == __FILE__) || f.match(%r{\A(?:(?:bin|test|spec|features)/|\.(?:git|circleci)|appveyor)})
27
27
  end
28
28
  end
29
- spec.add_dependency "railties", '~> 7.0.4', '>= 7.0.4.2'
30
- spec.add_dependency "execjs", '~> 2.8', '>= 2.8.1'
31
- end
29
+ spec.add_dependency 'railties', '~> 7.0.4', '>= 7.0.4.2'
30
+ spec.add_dependency 'execjs', '~> 2.8', '>= 2.8.1'
31
+ spec.add_dependency 'olive_branch', '~> 4.0', '>= 4.0.1'
32
+ end
data/exe/antd CHANGED
@@ -1,6 +1,7 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
3
  $LOAD_PATH.unshift("#{__dir__}/../lib")
4
-
5
4
  require 'ant/design/rails'
6
- puts Ant::Design::Rails.hi(ARGV[0])
5
+
6
+ # Todo: placeholder for project generation based on the template of https://github.com/pmq20/ant-design-rails
7
+ puts ::Ant::Design::Rails.hi(ARGV[0])
@@ -0,0 +1,17 @@
1
+ require 'olive_branch'
2
+
3
+ module Ant
4
+ module Design
5
+ module Rails
6
+ class Railtie < ::Rails::Railtie
7
+ initializer "ant_design_rails.configure_rails_initialization" do
8
+ ::Rails.application.middleware.use UmiDevProxy if ::Rails.env.development?
9
+ ::Rails.application.middleware.use OliveBranch::Middleware,
10
+ inflection: 'camel',
11
+ exclude_params: ->(env) { !env['PATH_INFO'].match(%r{^/api}) },
12
+ exclude_response: ->(env) { !env['PATH_INFO'].match(%r{^/api}) }
13
+ end
14
+ end
15
+ end
16
+ end
17
+ end
@@ -31,7 +31,7 @@ end
31
31
  module ActionDispatch::Routing
32
32
  class Mapper
33
33
  def antd_pages(routes_ts_path)
34
- antd_routes_reader = Ant::Design::Rails::Routes.new(routes_ts_path)
34
+ antd_routes_reader = ::Ant::Design::Rails::Routes.new(routes_ts_path)
35
35
  antd_api = {}
36
36
  antd_routes_reader.each do |antd_route|
37
37
  next if antd_route["path"] == "*"
@@ -3,7 +3,7 @@
3
3
  module Ant
4
4
  module Design
5
5
  module Rails
6
- VERSION = "0.1.0".freeze
6
+ VERSION = "0.2.0".freeze
7
7
  end
8
8
  end
9
9
  end
@@ -2,8 +2,9 @@
2
2
 
3
3
  require_relative "rails/version"
4
4
  require_relative "rails/routes"
5
+ require_relative "rails/railties"
5
6
 
6
- # Todo
7
+ # Todo: placeholder methods for project generation based on the template of https://github.com/pmq20/ant-design-rails
7
8
  module Ant
8
9
  module Design
9
10
  module Rails
@@ -15,4 +16,3 @@ module Ant
15
16
  end
16
17
  end
17
18
  end
18
-
@@ -0,0 +1,3 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "ant/design/rails"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ant-design-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Minqi Pan
@@ -50,6 +50,26 @@ dependencies:
50
50
  - - ">="
51
51
  - !ruby/object:Gem::Version
52
52
  version: 2.8.1
53
+ - !ruby/object:Gem::Dependency
54
+ name: olive_branch
55
+ requirement: !ruby/object:Gem::Requirement
56
+ requirements:
57
+ - - "~>"
58
+ - !ruby/object:Gem::Version
59
+ version: '4.0'
60
+ - - ">="
61
+ - !ruby/object:Gem::Version
62
+ version: 4.0.1
63
+ type: :runtime
64
+ prerelease: false
65
+ version_requirements: !ruby/object:Gem::Requirement
66
+ requirements:
67
+ - - "~>"
68
+ - !ruby/object:Gem::Version
69
+ version: '4.0'
70
+ - - ">="
71
+ - !ruby/object:Gem::Version
72
+ version: 4.0.1
53
73
  description: 'Ant Design on Rails: pairing world''s best backend framework with the
54
74
  best frontend framework, without wrapping everything in API!'
55
75
  email: pmq2001@gmail.com
@@ -62,7 +82,9 @@ files:
62
82
  - Rakefile
63
83
  - ant-design-rails.gemspec
64
84
  - exe/antd
85
+ - lib/ant-design-rails.rb
65
86
  - lib/ant/design/rails.rb
87
+ - lib/ant/design/rails/railties.rb
66
88
  - lib/ant/design/rails/routes.rb
67
89
  - lib/ant/design/rails/version.rb
68
90
  homepage: https://github.com/pmq20/ant-design-rails