tida_template 0.0.1 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -4,6 +4,24 @@ module TidaTemplate #:nodoc:
4
4
 
5
5
  source_root File.expand_path('../templates', __FILE__)
6
6
 
7
+ def modify_some_files
8
+ # modify application.rb
9
+ autoload_path_line = 'config.autoload_paths += %W(#{config.root}/extras)'
10
+ gsub_file 'config/application.rb', /(#{Regexp.escape(autoload_path_line)})/mi do |match|
11
+ "#{match}\n\tconfig.autoload_paths += %W(\#{config.root}/lib)\n"
12
+ end
13
+
14
+ time_zone_line = "config.time_zone = 'Central Time (US & Canada)'"
15
+ gsub_file 'config/application.rb', /(#{Regexp.escape(time_zone_line)})/mi do |match|
16
+ "#{match}\n\tconfig.time_zone = 'Beijing'\n"
17
+ end
18
+
19
+ locale_line = 'config.i18n.default_locale = :de'
20
+ gsub_file 'config/application.rb', /(#{Regexp.escape(locale_line)})/mi do |match|
21
+ "#{match}\n\tconfig.i18n.locale = 'zh-CN'\n\tconfig.i18n.default_locale = 'zh-CN'\n"
22
+ end
23
+ end
24
+
7
25
  def copy_stuff #:nodoc:
8
26
  # copy layouts
9
27
  copy_file 'app/views/layouts/single.html.erb', 'app/views/layouts/single.html.erb'
@@ -18,6 +36,9 @@ module TidaTemplate #:nodoc:
18
36
  copy_file 'app/views/shared/components/_page_title.html.erb', 'app/views/shared/components/_page_title.html.erb'
19
37
  copy_file 'app/views/shared/components/_toolbar.html.erb', 'app/views/shared/components/_toolbar.html.erb'
20
38
 
39
+ # copy devise view
40
+ copy_file 'app/views/devise/sessions/new.html.erb', 'app/views/devise/sessions/new.html.erb'
41
+
21
42
  # copy rails template files
22
43
  copy_file 'rails_templates/erb/scaffold/_form.html.erb', 'lib/templates/erb/_form.html.erb'
23
44
  copy_file 'rails_templates/erb/scaffold/index.html.erb', 'lib/templates/erb/index.html.erb'
@@ -1,3 +1,3 @@
1
1
  module TidaTemplate
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tida_template
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -48,225 +48,225 @@ dependencies:
48
48
  requirement: !ruby/object:Gem::Requirement
49
49
  none: false
50
50
  requirements:
51
- - - ~>
51
+ - - ! '>='
52
52
  - !ruby/object:Gem::Version
53
- version: 3.0.1
53
+ version: '0'
54
54
  type: :runtime
55
55
  prerelease: false
56
56
  version_requirements: !ruby/object:Gem::Requirement
57
57
  none: false
58
58
  requirements:
59
- - - ~>
59
+ - - ! '>='
60
60
  - !ruby/object:Gem::Version
61
- version: 3.0.1
61
+ version: '0'
62
62
  - !ruby/object:Gem::Dependency
63
63
  name: jquery-ui-rails
64
64
  requirement: !ruby/object:Gem::Requirement
65
65
  none: false
66
66
  requirements:
67
- - - ~>
67
+ - - ! '>='
68
68
  - !ruby/object:Gem::Version
69
- version: 4.0.3
69
+ version: '0'
70
70
  type: :runtime
71
71
  prerelease: false
72
72
  version_requirements: !ruby/object:Gem::Requirement
73
73
  none: false
74
74
  requirements:
75
- - - ~>
75
+ - - ! '>='
76
76
  - !ruby/object:Gem::Version
77
- version: 4.0.3
77
+ version: '0'
78
78
  - !ruby/object:Gem::Dependency
79
79
  name: bootstrap-sass
80
80
  requirement: !ruby/object:Gem::Requirement
81
81
  none: false
82
82
  requirements:
83
- - - ~>
83
+ - - ! '>='
84
84
  - !ruby/object:Gem::Version
85
- version: 2.3.2.0
85
+ version: '0'
86
86
  type: :runtime
87
87
  prerelease: false
88
88
  version_requirements: !ruby/object:Gem::Requirement
89
89
  none: false
90
90
  requirements:
91
- - - ~>
91
+ - - ! '>='
92
92
  - !ruby/object:Gem::Version
93
- version: 2.3.2.0
93
+ version: '0'
94
94
  - !ruby/object:Gem::Dependency
95
95
  name: font-awesome-rails
96
96
  requirement: !ruby/object:Gem::Requirement
97
97
  none: false
98
98
  requirements:
99
- - - ~>
99
+ - - ! '>='
100
100
  - !ruby/object:Gem::Version
101
- version: 3.2.0.0
101
+ version: '0'
102
102
  type: :runtime
103
103
  prerelease: false
104
104
  version_requirements: !ruby/object:Gem::Requirement
105
105
  none: false
106
106
  requirements:
107
- - - ~>
107
+ - - ! '>='
108
108
  - !ruby/object:Gem::Version
109
- version: 3.2.0.0
109
+ version: '0'
110
110
  - !ruby/object:Gem::Dependency
111
111
  name: bootstrap-datetimepicker-rails
112
112
  requirement: !ruby/object:Gem::Requirement
113
113
  none: false
114
114
  requirements:
115
- - - ~>
115
+ - - ! '>='
116
116
  - !ruby/object:Gem::Version
117
- version: 0.0.11
117
+ version: '0'
118
118
  type: :runtime
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  none: false
122
122
  requirements:
123
- - - ~>
123
+ - - ! '>='
124
124
  - !ruby/object:Gem::Version
125
- version: 0.0.11
125
+ version: '0'
126
126
  - !ruby/object:Gem::Dependency
127
127
  name: bootstrap-x-editable-rails
128
128
  requirement: !ruby/object:Gem::Requirement
129
129
  none: false
130
130
  requirements:
131
- - - ~>
131
+ - - ! '>='
132
132
  - !ruby/object:Gem::Version
133
- version: 1.4.4
133
+ version: '0'
134
134
  type: :runtime
135
135
  prerelease: false
136
136
  version_requirements: !ruby/object:Gem::Requirement
137
137
  none: false
138
138
  requirements:
139
- - - ~>
139
+ - - ! '>='
140
140
  - !ruby/object:Gem::Version
141
- version: 1.4.4
141
+ version: '0'
142
142
  - !ruby/object:Gem::Dependency
143
143
  name: simple-navigation
144
144
  requirement: !ruby/object:Gem::Requirement
145
145
  none: false
146
146
  requirements:
147
- - - ~>
147
+ - - ! '>='
148
148
  - !ruby/object:Gem::Version
149
- version: 3.11.0
149
+ version: '0'
150
150
  type: :runtime
151
151
  prerelease: false
152
152
  version_requirements: !ruby/object:Gem::Requirement
153
153
  none: false
154
154
  requirements:
155
- - - ~>
155
+ - - ! '>='
156
156
  - !ruby/object:Gem::Version
157
- version: 3.11.0
157
+ version: '0'
158
158
  - !ruby/object:Gem::Dependency
159
159
  name: simple_form
160
160
  requirement: !ruby/object:Gem::Requirement
161
161
  none: false
162
162
  requirements:
163
- - - ~>
163
+ - - ! '>='
164
164
  - !ruby/object:Gem::Version
165
- version: 2.1.0
165
+ version: '0'
166
166
  type: :runtime
167
167
  prerelease: false
168
168
  version_requirements: !ruby/object:Gem::Requirement
169
169
  none: false
170
170
  requirements:
171
- - - ~>
171
+ - - ! '>='
172
172
  - !ruby/object:Gem::Version
173
- version: 2.1.0
173
+ version: '0'
174
174
  - !ruby/object:Gem::Dependency
175
175
  name: paperclip
176
176
  requirement: !ruby/object:Gem::Requirement
177
177
  none: false
178
178
  requirements:
179
- - - ~>
179
+ - - ! '>='
180
180
  - !ruby/object:Gem::Version
181
- version: 3.4.2
181
+ version: '0'
182
182
  type: :runtime
183
183
  prerelease: false
184
184
  version_requirements: !ruby/object:Gem::Requirement
185
185
  none: false
186
186
  requirements:
187
- - - ~>
187
+ - - ! '>='
188
188
  - !ruby/object:Gem::Version
189
- version: 3.4.2
189
+ version: '0'
190
190
  - !ruby/object:Gem::Dependency
191
191
  name: kaminari
192
192
  requirement: !ruby/object:Gem::Requirement
193
193
  none: false
194
194
  requirements:
195
- - - ~>
195
+ - - ! '>='
196
196
  - !ruby/object:Gem::Version
197
- version: 0.14.1
197
+ version: '0'
198
198
  type: :runtime
199
199
  prerelease: false
200
200
  version_requirements: !ruby/object:Gem::Requirement
201
201
  none: false
202
202
  requirements:
203
- - - ~>
203
+ - - ! '>='
204
204
  - !ruby/object:Gem::Version
205
- version: 0.14.1
205
+ version: '0'
206
206
  - !ruby/object:Gem::Dependency
207
207
  name: uuid
208
208
  requirement: !ruby/object:Gem::Requirement
209
209
  none: false
210
210
  requirements:
211
- - - ~>
211
+ - - ! '>='
212
212
  - !ruby/object:Gem::Version
213
- version: 2.3.7
213
+ version: '0'
214
214
  type: :runtime
215
215
  prerelease: false
216
216
  version_requirements: !ruby/object:Gem::Requirement
217
217
  none: false
218
218
  requirements:
219
- - - ~>
219
+ - - ! '>='
220
220
  - !ruby/object:Gem::Version
221
- version: 2.3.7
221
+ version: '0'
222
222
  - !ruby/object:Gem::Dependency
223
223
  name: wice_grid
224
224
  requirement: !ruby/object:Gem::Requirement
225
225
  none: false
226
226
  requirements:
227
- - - ~>
227
+ - - ! '>='
228
228
  - !ruby/object:Gem::Version
229
- version: 3.2.1
229
+ version: '0'
230
230
  type: :runtime
231
231
  prerelease: false
232
232
  version_requirements: !ruby/object:Gem::Requirement
233
233
  none: false
234
234
  requirements:
235
- - - ~>
235
+ - - ! '>='
236
236
  - !ruby/object:Gem::Version
237
- version: 3.2.1
237
+ version: '0'
238
238
  - !ruby/object:Gem::Dependency
239
239
  name: devise
240
240
  requirement: !ruby/object:Gem::Requirement
241
241
  none: false
242
242
  requirements:
243
- - - ~>
243
+ - - ! '>='
244
244
  - !ruby/object:Gem::Version
245
- version: 2.2.4
245
+ version: '0'
246
246
  type: :runtime
247
247
  prerelease: false
248
248
  version_requirements: !ruby/object:Gem::Requirement
249
249
  none: false
250
250
  requirements:
251
- - - ~>
251
+ - - ! '>='
252
252
  - !ruby/object:Gem::Version
253
- version: 2.2.4
253
+ version: '0'
254
254
  - !ruby/object:Gem::Dependency
255
255
  name: settingslogic
256
256
  requirement: !ruby/object:Gem::Requirement
257
257
  none: false
258
258
  requirements:
259
- - - ~>
259
+ - - ! '>='
260
260
  - !ruby/object:Gem::Version
261
- version: 2.0.9
261
+ version: '0'
262
262
  type: :runtime
263
263
  prerelease: false
264
264
  version_requirements: !ruby/object:Gem::Requirement
265
265
  none: false
266
266
  requirements:
267
- - - ~>
267
+ - - ! '>='
268
268
  - !ruby/object:Gem::Version
269
- version: 2.0.9
269
+ version: '0'
270
270
  description: Rails Template of Tida App Group
271
271
  email:
272
272
  - babaru.trinit@gmail.com
@@ -352,7 +352,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
352
352
  version: '0'
353
353
  segments:
354
354
  - 0
355
- hash: 1181671144379801286
355
+ hash: 1259449233101700201
356
356
  required_rubygems_version: !ruby/object:Gem::Requirement
357
357
  none: false
358
358
  requirements:
@@ -361,7 +361,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
361
361
  version: '0'
362
362
  segments:
363
363
  - 0
364
- hash: 1181671144379801286
364
+ hash: 1259449233101700201
365
365
  requirements: []
366
366
  rubyforge_project:
367
367
  rubygems_version: 1.8.24