jap_mag 0.0.4 → 1.3.0

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.
@@ -1,3 +1,3 @@
1
1
  module JapMag
2
- VERSION = "0.0.4"
3
- end
2
+ VERSION = "1.3.0"
3
+ end
metadata CHANGED
@@ -1,71 +1,80 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jap_mag
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
5
- prerelease:
4
+ version: 1.3.0
6
5
  platform: ruby
7
6
  authors:
8
- - Felix Ding
7
+ - DING Yu
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-03-29 00:00:00.000000000 Z
13
- dependencies: []
14
- description: JapMag is the design language created by Felix Ding. This gem helps designers
15
- start a project that follows JapMag.
11
+ date: 2020-06-22 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: will_paginate
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ description: JapMag is a collection of frequently-used Rails controller methods and
28
+ helpers.
16
29
  email:
17
30
  - felixding@gmail.com
18
31
  executables: []
19
32
  extensions: []
20
33
  extra_rdoc_files: []
21
34
  files:
22
- - .gitignore
35
+ - ".gitignore"
23
36
  - Gemfile
24
- - LICENSE
25
37
  - README.md
26
38
  - Rakefile
27
39
  - app/assets/javascripts/jap_mag.js
28
40
  - app/assets/javascripts/jap_mag/base.js
29
41
  - app/assets/stylesheets/jap_mag.css
30
- - app/assets/stylesheets/jap_mag/base.scss
42
+ - app/assets/stylesheets/jap_mag/buttons.css
31
43
  - app/assets/stylesheets/jap_mag/mixins.scss
32
- - app/assets/stylesheets/jap_mag/reset.scss
33
- - app/assets/stylesheets/jap_mag/variables.scss
34
44
  - app/assets/stylesheets/jap_mag/widgets.scss
35
45
  - app/helpers/jap_mag_widgets_helper.rb
36
46
  - app/views/layouts/_flash.erb
37
47
  - app/views/layouts/_footer.erb
38
48
  - app/views/layouts/_header.erb
49
+ - app/views/layouts/_javascript.html
39
50
  - app/views/layouts/_navigation.erb
40
- - app/views/layouts/_rss.erb
41
51
  - app/views/layouts/_tracking.erb
42
- - app/views/layouts/application.erb
52
+ - app/views/layouts/application.haml
43
53
  - config/locales/en.yml
44
54
  - jap_mag.gemspec
45
55
  - lib/jap_mag.rb
46
56
  - lib/jap_mag/version.rb
47
57
  homepage: https://github.com/felixding/JapMag
48
58
  licenses: []
59
+ metadata: {}
49
60
  post_install_message:
50
61
  rdoc_options: []
51
62
  require_paths:
52
63
  - lib
53
64
  required_ruby_version: !ruby/object:Gem::Requirement
54
- none: false
55
65
  requirements:
56
- - - ! '>='
66
+ - - ">="
57
67
  - !ruby/object:Gem::Version
58
68
  version: '0'
59
69
  required_rubygems_version: !ruby/object:Gem::Requirement
60
- none: false
61
70
  requirements:
62
- - - ! '>='
71
+ - - ">="
63
72
  - !ruby/object:Gem::Version
64
73
  version: '0'
65
74
  requirements: []
66
75
  rubyforge_project:
67
- rubygems_version: 1.8.24
76
+ rubygems_version: 2.7.7
68
77
  signing_key:
69
- specification_version: 3
78
+ specification_version: 4
70
79
  summary: jap_mag-
71
80
  test_files: []
data/LICENSE DELETED
@@ -1,22 +0,0 @@
1
- Copyright (c) 2012 Felix Ding
2
-
3
- MIT License
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining
6
- a copy of this software and associated documentation files (the
7
- "Software"), to deal in the Software without restriction, including
8
- without limitation the rights to use, copy, modify, merge, publish,
9
- distribute, sublicense, and/or sell copies of the Software, and to
10
- permit persons to whom the Software is furnished to do so, subject to
11
- the following conditions:
12
-
13
- The above copyright notice and this permission notice shall be
14
- included in all copies or substantial portions of the Software.
15
-
16
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
- LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
- OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
- WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -1,174 +0,0 @@
1
- @import 'variables';
2
- @import "mixins";
3
-
4
- body {
5
- font: 12px / 130% "Lucida Grande", Arial, Helvetica, Verdana, sans-serif;
6
- color: $color_body;
7
- }
8
-
9
- #wrapper {
10
- width: $base_width;
11
- padding: 10px;
12
- margin: 0 auto;
13
- }
14
-
15
- a {
16
- color: $color_blue;
17
- text-decoration: none;
18
-
19
- &.dangerous {
20
- color: red;
21
- }
22
-
23
- &.edit {
24
- color: $color_yellow;
25
- }
26
-
27
- &:hover {
28
- color: #fff;
29
- background-color: #000;
30
- }
31
-
32
- img {
33
- border: none;
34
- }
35
- }
36
-
37
- em {
38
- font-style: italic;
39
- }
40
-
41
- .hidden {
42
- display: none;
43
- }
44
-
45
- h1, h2, h3, h4 {
46
- font-weight: normal;
47
- line-height: 1em;
48
- margin: 0 0 1em;
49
- -webkit-font-smoothing: antialiased;
50
- }
51
-
52
- h1 {
53
- margin: 0 0 15px 0;
54
- font-size: (40px / 12px) * 100%;
55
-
56
- a {
57
- color: black;
58
- }
59
- }
60
-
61
- h2 {
62
- font-size: 1.6em;
63
- line-height: 1.6em;
64
- }
65
-
66
- h3 {
67
- font-size: 1.4em;
68
- line-height: 1.4em;
69
- }
70
-
71
- p {
72
- margin: 0.5em 0;
73
- }
74
-
75
- blockquote {
76
- border-left: 2px solid #ccc;
77
- margin: 0 0 0 3em;
78
- padding: 0 0px 0 1em;
79
- }
80
-
81
- #header {
82
- overflow: hidden;
83
- padding: 0 0 10px;
84
- margin: 0 0 20px;
85
-
86
- .slogan {
87
- font-size: (20px / 12px) * 100%;
88
- }
89
-
90
- .navigation {
91
- overflow: hidden;
92
- margin: 20px 0 0;
93
-
94
- &.left {
95
- float: left;
96
- }
97
-
98
- li {
99
- float: left;
100
- margin: 0 10px 0 0;
101
- padding: 0 10px 0 0;
102
- border-right: 1px solid #ccc;
103
-
104
- &:last-child {
105
- border: none;
106
- margin-right: 0;
107
- padding-right: 0;
108
- }
109
-
110
- .highlight {
111
- color: red;
112
-
113
- &:hover {
114
- color: white;
115
- }
116
- }
117
- }
118
- }
119
-
120
- .admin-navigation {
121
- @extend .navigation;
122
- margin: 10px 0 0;
123
- padding: 10px;
124
- background: #eee;
125
- float: left;
126
-
127
- li {
128
- border: none;
129
- }
130
- }
131
- }
132
-
133
- #body {
134
- margin: 0;
135
- padding: 0;
136
- overflow: hidden;
137
-
138
- .primary {
139
- width: (720px / $base_width) * 100%;
140
- margin-right: 30px;
141
- float: right;
142
- overflow: hidden;
143
- }
144
-
145
- .secondary {
146
- float: left;
147
- width: (150px / $base_width) * 100%;
148
- overflow: hidden;
149
- }
150
- }
151
-
152
- #footer {
153
- margin: 50px 0 10px;
154
- color: #666;
155
-
156
- .languages {
157
- overflow: hidden;
158
- margin: 5px 0 0;
159
-
160
- li {
161
- float: left;
162
- margin: 0 20px 0 0;
163
- padding: 0 0 0 20px;
164
- }
165
-
166
- .zh-CN {
167
- background: url($flag_zh-cn) no-repeat 0 2px;
168
- }
169
-
170
- .en {
171
- background: url($flag_en) no-repeat 0 2px;
172
- }
173
- }
174
- }
@@ -1,48 +0,0 @@
1
- /* http://meyerweb.com/eric/tools/css/reset/
2
- v2.0 | 20110126
3
- License: none (public domain)
4
- */
5
-
6
- html, body, div, span, applet, object, iframe,
7
- h1, h2, h3, h4, h5, h6, p, blockquote, pre,
8
- a, abbr, acronym, address, big, cite, code,
9
- del, dfn, em, img, ins, kbd, q, s, samp,
10
- small, strike, strong, sub, sup, tt, var,
11
- b, u, i, center,
12
- dl, dt, dd, ol, ul, li,
13
- fieldset, form, label, legend,
14
- table, caption, tbody, tfoot, thead, tr, th, td,
15
- article, aside, canvas, details, embed,
16
- figure, figcaption, footer, header, hgroup,
17
- menu, nav, output, ruby, section, summary,
18
- time, mark, audio, video {
19
- margin: 0;
20
- padding: 0;
21
- border: 0;
22
- font-size: 100%;
23
- font: inherit;
24
- vertical-align: baseline;
25
- }
26
- /* HTML5 display-role reset for older browsers */
27
- article, aside, details, figcaption, figure,
28
- footer, header, hgroup, menu, nav, section {
29
- display: block;
30
- }
31
- body {
32
- line-height: 1;
33
- }
34
- ol, ul {
35
- list-style: none;
36
- }
37
- blockquote, q {
38
- quotes: none;
39
- }
40
- blockquote:before, blockquote:after,
41
- q:before, q:after {
42
- content: '';
43
- content: none;
44
- }
45
- table {
46
- border-collapse: collapse;
47
- border-spacing: 0;
48
- }
@@ -1,17 +0,0 @@
1
- $base_width: 800px;
2
-
3
- $color_green: #53a440;
4
- $color_light_green: #7dde66;
5
- $color_lighter_green: #65b453;
6
- $color_even_lighter_green: #e0ffe2;
7
- $color_blue: #3b7fa6; /*#56a1cc;*/
8
- $color_light_blue: #6aa5c6;
9
- $color_lighter_blue: #EBF8F9;
10
- $color_red: #e75151;/*#ff5656;*/
11
- $color_yellow: #fc9729;
12
- $color_pink: #FF7676;
13
- $color_light_pink: #ffe0e0;
14
- $color_body: #000;
15
-
16
- $flag_zh-cn: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAALCAIAAAD5gJpuAAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAFqSURBVHjaYrzOwPAPjJgYQEDAleHVbhADIvgHLPgHiQ0QQCxAlkR9NW8sw+cV/1gV/7Gb/hV4+vfzhj8Mv/78//Pn/+/f/8AkhH1t0yaAAAJp4I37zyz2lDfu79uqv/++/WYz+cuq/vvLxt8gdb+A5K9/v34B2SyyskBLAAII5JAva/7/+/z367a/f3/8ZuT9+//Pr78vQUrB6n4CSSj6/RuoASCAWEDO/fD3ddEfhv9/OE3/sKj8/n7k9/fDQNUIs/+DVf8HawAIIJCT/v38C3Hr95N/GDh/f94AVvT7N8RUBpjxQAVADQABBNLw/y/Ifwy/f/399ufTOpDBEPf8g5sN0QBEDAwAAQTWABEChgOSA9BVA00E2wAQQCANQBbEif/AzoCqgLkbbBYwWP/+//sXqBYggFhAkfL7D7OkJFCOCSj65zfUeFjwg8z++/ffX5AGoGKAAGI8jhSRyIw/SJH9D4aAYQoQYAA6rnMw1jU2vQAAAABJRU5ErkJggg==";
17
- $flag_en: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAALCAIAAAD5gJpuAAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAHzSURBVHjaYkxOP8IAB//+Mfz7w8Dwi4HhP5CcJb/n/7evb16/APL/gRFQDiAAw3JuAgAIBEDQ/iswEERjGzBQLEru97ll0g0+3HvqMn1SpqlqGsZMsZsIe0SICA5gt5a/AGIEarCPtFh+6N/ffwxA9OvP/7//QYwff/6fZahmePeB4dNHhi+fGb59Y4zyvHHmCEAAAW3YDzQYaJJ93a+vX79aVf58//69fvEPlpIfnz59+vDhw7t37968efP3b/SXL59OnjwIEEAsDP+YgY53b2b89++/awvLn98MDi2cVxl+/vl6mituCtBghi9f/v/48e/XL86krj9XzwEEEENy8g6gu22rfn78+NGs5Ofr16+ZC58+fvyYwX8rxOxXr169fPny+fPn1//93bJlBUAAsQADZMEBxj9/GBxb2P/9+S/R8u3vzxuyaX8ZHv3j8/YGms3w8ycQARmi2eE37t4ACCDGR4/uSkrKAS35B3TT////wADOgLOBIaXIyjBlwxKAAGKRXjCB0SOEaeu+/y9fMnz4AHQxCP348R/o+l+//sMZQBNLEvif3AcIIMZbty7Ly6t9ZmXl+fXj/38GoHH/UcGfP79//BBiYHjy9+8/oUkNAAHEwt1V/vI/KBY/QSISFqM/GBg+MzB8A6PfYC5EFiDAABqgW776MP0rAAAAAElFTkSuQmCC";
@@ -1,36 +0,0 @@
1
- <!doctype html>
2
- <!--[if lt IE 9]><html class="ie"><![endif]-->
3
- <!--[if gte IE 9]><!--><html><!--<![endif]-->
4
- <head>
5
- <meta charset="utf-8"/>
6
- <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
7
- <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1, minimum-scale=1,user-scalable=yes" />
8
- <meta name="description" content="<%= t "slogan" %>" />
9
- <meta name="keywords" content="<%= t "logo" %>" />
10
- <title><%= content_for(:title) %></title>
11
- <%= stylesheet_link_tag "application", :media => "all" %>
12
- <%= javascript_include_tag "application" %>
13
- <%= render "layouts/rss" %>
14
- <%= csrf_meta_tags %>
15
- </head>
16
-
17
- <body class="<%= get_body_class %>"<%= " id=\"#{get_body_id}\"".html_safe if get_body_id %>>
18
- <div class="<%= get_wrapper_class %>" id="wrapper">
19
- <%= render :partial => "/layouts/header" %>
20
-
21
- <div id="body">
22
- <div class="gutter">
23
- <%= render :partial => "/layouts/flash", :locals => {:flash => flash} %>
24
- <%= yield %>
25
- </div>
26
- </div>
27
-
28
- <%= render :partial => "/layouts/footer" %>
29
- </div>
30
- <%= render "/layouts/tracking" if Rails.env.production? %>
31
- <!-- layout:application -->
32
- <!--[if lt IE 9]>
33
- <script src="//html5shim.googlecode.com/svn/trunk/html5.js"></script>
34
- <![endif]-->
35
- </body>
36
- </html>