iconly 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (94) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/README.md +76 -0
  4. data/Rakefile +33 -0
  5. data/app/assets/config/iconly_manifest.js +2 -0
  6. data/app/assets/images/iconly/Noto-Sans-700.eot +0 -0
  7. data/app/assets/images/iconly/Noto-Sans-700.svg +336 -0
  8. data/app/assets/images/iconly/Noto-Sans-700.ttf +0 -0
  9. data/app/assets/images/iconly/Noto-Sans-700.woff +0 -0
  10. data/app/assets/images/iconly/Noto-Sans-700.woff2 +0 -0
  11. data/app/assets/images/iconly/Noto-Sans-regular.eot +0 -0
  12. data/app/assets/images/iconly/Noto-Sans-regular.svg +335 -0
  13. data/app/assets/images/iconly/Noto-Sans-regular.ttf +0 -0
  14. data/app/assets/images/iconly/Noto-Sans-regular.woff +0 -0
  15. data/app/assets/images/iconly/Noto-Sans-regular.woff2 +0 -0
  16. data/app/assets/images/iconly/Source-Sans-Pro-600.eot +0 -0
  17. data/app/assets/images/iconly/Source-Sans-Pro-600.svg +339 -0
  18. data/app/assets/images/iconly/Source-Sans-Pro-600.ttf +0 -0
  19. data/app/assets/images/iconly/Source-Sans-Pro-600.woff +0 -0
  20. data/app/assets/images/iconly/Source-Sans-Pro-600.woff2 +0 -0
  21. data/app/assets/images/iconly/Source-Sans-Pro-regular.eot +0 -0
  22. data/app/assets/images/iconly/Source-Sans-Pro-regular.svg +345 -0
  23. data/app/assets/images/iconly/Source-Sans-Pro-regular.ttf +0 -0
  24. data/app/assets/images/iconly/Source-Sans-Pro-regular.woff +0 -0
  25. data/app/assets/images/iconly/Source-Sans-Pro-regular.woff2 +0 -0
  26. data/app/assets/images/iconly/favicon.png +0 -0
  27. data/app/assets/images/iconly/iconly.eot +0 -0
  28. data/app/assets/images/iconly/iconly.svg +157 -0
  29. data/app/assets/images/iconly/iconly.ttf +0 -0
  30. data/app/assets/images/iconly/iconly.woff +0 -0
  31. data/app/assets/javascripts/iconly/application.js +24 -0
  32. data/app/assets/javascripts/iconly/iconly.coffee +5 -0
  33. data/app/assets/javascripts/iconly/jquery.sticky.js +268 -0
  34. data/app/assets/javascripts/iconly/package.coffee +25 -0
  35. data/app/assets/javascripts/iconly/project.coffee +68 -0
  36. data/app/assets/javascripts/iconly/scroller.coffee +17 -0
  37. data/app/assets/stylesheets/iconly/application.scss +21 -0
  38. data/app/assets/stylesheets/iconly/buttons.scss +314 -0
  39. data/app/assets/stylesheets/iconly/file_input.scss +25 -0
  40. data/app/assets/stylesheets/iconly/header.scss +179 -0
  41. data/app/assets/stylesheets/iconly/iconly.scss.erb +61 -0
  42. data/app/assets/stylesheets/iconly/layout.scss +269 -0
  43. data/app/assets/stylesheets/iconly/overrides.scss +58 -0
  44. data/app/assets/stylesheets/iconly/typography.scss.erb +48 -0
  45. data/app/controllers/iconly/application_controller.rb +8 -0
  46. data/app/controllers/iconly/packages_controller.rb +54 -0
  47. data/app/controllers/iconly/project_icons_controller.rb +24 -0
  48. data/app/controllers/iconly/projects_controller.rb +67 -0
  49. data/app/helpers/iconly/application_helper.rb +35 -0
  50. data/app/helpers/iconly/packages_helper.rb +29 -0
  51. data/app/helpers/iconly/project_icons_helper.rb +4 -0
  52. data/app/helpers/iconly/projects_helper.rb +4 -0
  53. data/app/helpers/iconly/sessions_helper.rb +43 -0
  54. data/app/jobs/iconly/application_job.rb +4 -0
  55. data/app/mailers/iconly/application_mailer.rb +6 -0
  56. data/app/models/iconly/application_record.rb +5 -0
  57. data/app/models/iconly/icon.rb +44 -0
  58. data/app/models/iconly/package.rb +5 -0
  59. data/app/models/iconly/project.rb +5 -0
  60. data/app/models/iconly/project/downloader.rb +50 -0
  61. data/app/models/iconly/project/font_generator.rb +65 -0
  62. data/app/models/iconly/project_icon.rb +23 -0
  63. data/app/models/iconly/user.rb +5 -0
  64. data/app/uploaders/iconly/svg_uploader.rb +51 -0
  65. data/app/views/iconly/packages/_form.html.erb +48 -0
  66. data/app/views/iconly/packages/new.html.erb +5 -0
  67. data/app/views/iconly/projects/_form.html.erb +25 -0
  68. data/app/views/iconly/projects/_packages.html.erb +91 -0
  69. data/app/views/iconly/projects/edit.html.erb +5 -0
  70. data/app/views/iconly/projects/index.html.erb +37 -0
  71. data/app/views/iconly/projects/new.html.erb +5 -0
  72. data/app/views/iconly/projects/show.html.erb +53 -0
  73. data/app/views/layouts/iconly/_footer.html.erb +18 -0
  74. data/app/views/layouts/iconly/_header.html.erb +89 -0
  75. data/app/views/layouts/iconly/application.html.erb +29 -0
  76. data/config/fontcustom/fontcustom_manifest.yml +53 -0
  77. data/config/fontcustom/templates/iconly.css +28 -0
  78. data/config/routes.rb +13 -0
  79. data/db/migrate/20170130210746_enable_uuid_extension.rb +5 -0
  80. data/db/migrate/20170130211049_create_iconly_users.rb +9 -0
  81. data/db/migrate/20170130220400_create_iconly_packages.rb +12 -0
  82. data/db/migrate/20170131002414_create_iconly_icons.rb +13 -0
  83. data/db/migrate/20170131081131_create_iconly_projects.rb +11 -0
  84. data/db/migrate/20170131084626_create_iconly_project_icons.rb +10 -0
  85. data/db/migrate/20170203144731_add_icon_count_to_packages.rb +5 -0
  86. data/lib/iconly.rb +22 -0
  87. data/lib/iconly/concerns/models/package.rb +41 -0
  88. data/lib/iconly/concerns/models/project.rb +27 -0
  89. data/lib/iconly/concerns/models/user.rb +23 -0
  90. data/lib/iconly/engine.rb +5 -0
  91. data/lib/iconly/version.rb +3 -0
  92. data/lib/iconly/zip_file_generator.rb +58 -0
  93. data/lib/tasks/iconly_tasks.rake +4 -0
  94. metadata +374 -0
@@ -0,0 +1,58 @@
1
+ require 'zip'
2
+
3
+ module Iconly
4
+ # This is a simple example which uses rubyzip to
5
+ # recursively generate a zip file from the contents of
6
+ # a specified directory. The directory itself is not
7
+ # included in the archive, rather just its contents.
8
+ #
9
+ # Usage:
10
+ # directory_to_zip = "/tmp/input"
11
+ # output_file = "/tmp/out.zip"
12
+ # zf = ZipFileGenerator.new(directory_to_zip, output_file)
13
+ # zf.write()
14
+ class ZipFileGenerator
15
+ # Initialize with the directory to zip and the location of the output archive.
16
+ def initialize(input_dir, output_file)
17
+ @input_dir = input_dir
18
+ @output_file = output_file
19
+ end
20
+
21
+ # Zip the input directory.
22
+ def write
23
+ entries = Dir.entries(@input_dir) - %w(. ..)
24
+
25
+ ::Zip::File.open(@output_file, ::Zip::File::CREATE) do |io|
26
+ write_entries entries, '', io
27
+ end
28
+ end
29
+
30
+ private
31
+
32
+ # A helper method to make the recursion work.
33
+ def write_entries(entries, path, io)
34
+ entries.each do |e|
35
+ zip_file_path = path == '' ? e : File.join(path, e)
36
+ disk_file_path = File.join(@input_dir, zip_file_path)
37
+
38
+ if File.directory? disk_file_path
39
+ recursively_deflate_directory(disk_file_path, io, zip_file_path)
40
+ else
41
+ put_into_archive(disk_file_path, io, zip_file_path)
42
+ end
43
+ end
44
+ end
45
+
46
+ def recursively_deflate_directory(disk_file_path, io, zip_file_path)
47
+ io.mkdir zip_file_path
48
+ subdir = Dir.entries(disk_file_path) - %w(. ..)
49
+ write_entries subdir, zip_file_path, io
50
+ end
51
+
52
+ def put_into_archive(disk_file_path, io, zip_file_path)
53
+ io.get_output_stream(zip_file_path) do |f|
54
+ f.write(File.open(disk_file_path, 'rb').read)
55
+ end
56
+ end
57
+ end
58
+ end
@@ -0,0 +1,4 @@
1
+ # desc "Explaining what the task does"
2
+ # task :iconly do
3
+ # # Task goes here
4
+ # end
metadata ADDED
@@ -0,0 +1,374 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: iconly
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Artan Sinani
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2017-02-28 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rails
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: 5.0.1
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: 5.0.1
27
+ - !ruby/object:Gem::Dependency
28
+ name: coffee-rails
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '4.2'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '4.2'
41
+ - !ruby/object:Gem::Dependency
42
+ name: jquery-rails
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: sass-rails
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '5.0'
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '5.0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: turbolinks
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '5'
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '5'
83
+ - !ruby/object:Gem::Dependency
84
+ name: uglifier
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: 1.3.0
90
+ type: :runtime
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: 1.3.0
97
+ - !ruby/object:Gem::Dependency
98
+ name: bootstrap
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: 4.0.0.alpha6
104
+ type: :runtime
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "~>"
109
+ - !ruby/object:Gem::Version
110
+ version: 4.0.0.alpha6
111
+ - !ruby/object:Gem::Dependency
112
+ name: rails-assets-tether
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: 1.1.0
118
+ type: :runtime
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: 1.1.0
125
+ - !ruby/object:Gem::Dependency
126
+ name: pg
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ">="
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
132
+ type: :runtime
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - ">="
137
+ - !ruby/object:Gem::Version
138
+ version: '0'
139
+ - !ruby/object:Gem::Dependency
140
+ name: friendly_id
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - "~>"
144
+ - !ruby/object:Gem::Version
145
+ version: 5.0.0
146
+ type: :runtime
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - "~>"
151
+ - !ruby/object:Gem::Version
152
+ version: 5.0.0
153
+ - !ruby/object:Gem::Dependency
154
+ name: fontcustom
155
+ requirement: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - "~>"
158
+ - !ruby/object:Gem::Version
159
+ version: 1.3.8
160
+ type: :runtime
161
+ prerelease: false
162
+ version_requirements: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - "~>"
165
+ - !ruby/object:Gem::Version
166
+ version: 1.3.8
167
+ - !ruby/object:Gem::Dependency
168
+ name: listen
169
+ requirement: !ruby/object:Gem::Requirement
170
+ requirements:
171
+ - - "<"
172
+ - !ruby/object:Gem::Version
173
+ version: '3.0'
174
+ type: :runtime
175
+ prerelease: false
176
+ version_requirements: !ruby/object:Gem::Requirement
177
+ requirements:
178
+ - - "<"
179
+ - !ruby/object:Gem::Version
180
+ version: '3.0'
181
+ - !ruby/object:Gem::Dependency
182
+ name: carrierwave
183
+ requirement: !ruby/object:Gem::Requirement
184
+ requirements:
185
+ - - "~>"
186
+ - !ruby/object:Gem::Version
187
+ version: '1.0'
188
+ type: :runtime
189
+ prerelease: false
190
+ version_requirements: !ruby/object:Gem::Requirement
191
+ requirements:
192
+ - - "~>"
193
+ - !ruby/object:Gem::Version
194
+ version: '1.0'
195
+ - !ruby/object:Gem::Dependency
196
+ name: rubyzip
197
+ requirement: !ruby/object:Gem::Requirement
198
+ requirements:
199
+ - - ">="
200
+ - !ruby/object:Gem::Version
201
+ version: 1.0.0
202
+ type: :runtime
203
+ prerelease: false
204
+ version_requirements: !ruby/object:Gem::Requirement
205
+ requirements:
206
+ - - ">="
207
+ - !ruby/object:Gem::Version
208
+ version: 1.0.0
209
+ - !ruby/object:Gem::Dependency
210
+ name: mocha
211
+ requirement: !ruby/object:Gem::Requirement
212
+ requirements:
213
+ - - ">="
214
+ - !ruby/object:Gem::Version
215
+ version: '0'
216
+ type: :development
217
+ prerelease: false
218
+ version_requirements: !ruby/object:Gem::Requirement
219
+ requirements:
220
+ - - ">="
221
+ - !ruby/object:Gem::Version
222
+ version: '0'
223
+ - !ruby/object:Gem::Dependency
224
+ name: rubocop
225
+ requirement: !ruby/object:Gem::Requirement
226
+ requirements:
227
+ - - ">="
228
+ - !ruby/object:Gem::Version
229
+ version: '0'
230
+ type: :development
231
+ prerelease: false
232
+ version_requirements: !ruby/object:Gem::Requirement
233
+ requirements:
234
+ - - ">="
235
+ - !ruby/object:Gem::Version
236
+ version: '0'
237
+ - !ruby/object:Gem::Dependency
238
+ name: puma
239
+ requirement: !ruby/object:Gem::Requirement
240
+ requirements:
241
+ - - "~>"
242
+ - !ruby/object:Gem::Version
243
+ version: '3.0'
244
+ type: :development
245
+ prerelease: false
246
+ version_requirements: !ruby/object:Gem::Requirement
247
+ requirements:
248
+ - - "~>"
249
+ - !ruby/object:Gem::Version
250
+ version: '3.0'
251
+ description: Store SVG and generate your web font icons with Iconly.
252
+ email:
253
+ - artisinani@gmail.com
254
+ executables: []
255
+ extensions: []
256
+ extra_rdoc_files: []
257
+ files:
258
+ - MIT-LICENSE
259
+ - README.md
260
+ - Rakefile
261
+ - app/assets/config/iconly_manifest.js
262
+ - app/assets/images/iconly/Noto-Sans-700.eot
263
+ - app/assets/images/iconly/Noto-Sans-700.svg
264
+ - app/assets/images/iconly/Noto-Sans-700.ttf
265
+ - app/assets/images/iconly/Noto-Sans-700.woff
266
+ - app/assets/images/iconly/Noto-Sans-700.woff2
267
+ - app/assets/images/iconly/Noto-Sans-regular.eot
268
+ - app/assets/images/iconly/Noto-Sans-regular.svg
269
+ - app/assets/images/iconly/Noto-Sans-regular.ttf
270
+ - app/assets/images/iconly/Noto-Sans-regular.woff
271
+ - app/assets/images/iconly/Noto-Sans-regular.woff2
272
+ - app/assets/images/iconly/Source-Sans-Pro-600.eot
273
+ - app/assets/images/iconly/Source-Sans-Pro-600.svg
274
+ - app/assets/images/iconly/Source-Sans-Pro-600.ttf
275
+ - app/assets/images/iconly/Source-Sans-Pro-600.woff
276
+ - app/assets/images/iconly/Source-Sans-Pro-600.woff2
277
+ - app/assets/images/iconly/Source-Sans-Pro-regular.eot
278
+ - app/assets/images/iconly/Source-Sans-Pro-regular.svg
279
+ - app/assets/images/iconly/Source-Sans-Pro-regular.ttf
280
+ - app/assets/images/iconly/Source-Sans-Pro-regular.woff
281
+ - app/assets/images/iconly/Source-Sans-Pro-regular.woff2
282
+ - app/assets/images/iconly/favicon.png
283
+ - app/assets/images/iconly/iconly.eot
284
+ - app/assets/images/iconly/iconly.svg
285
+ - app/assets/images/iconly/iconly.ttf
286
+ - app/assets/images/iconly/iconly.woff
287
+ - app/assets/javascripts/iconly/application.js
288
+ - app/assets/javascripts/iconly/iconly.coffee
289
+ - app/assets/javascripts/iconly/jquery.sticky.js
290
+ - app/assets/javascripts/iconly/package.coffee
291
+ - app/assets/javascripts/iconly/project.coffee
292
+ - app/assets/javascripts/iconly/scroller.coffee
293
+ - app/assets/stylesheets/iconly/application.scss
294
+ - app/assets/stylesheets/iconly/buttons.scss
295
+ - app/assets/stylesheets/iconly/file_input.scss
296
+ - app/assets/stylesheets/iconly/header.scss
297
+ - app/assets/stylesheets/iconly/iconly.scss.erb
298
+ - app/assets/stylesheets/iconly/layout.scss
299
+ - app/assets/stylesheets/iconly/overrides.scss
300
+ - app/assets/stylesheets/iconly/typography.scss.erb
301
+ - app/controllers/iconly/application_controller.rb
302
+ - app/controllers/iconly/packages_controller.rb
303
+ - app/controllers/iconly/project_icons_controller.rb
304
+ - app/controllers/iconly/projects_controller.rb
305
+ - app/helpers/iconly/application_helper.rb
306
+ - app/helpers/iconly/packages_helper.rb
307
+ - app/helpers/iconly/project_icons_helper.rb
308
+ - app/helpers/iconly/projects_helper.rb
309
+ - app/helpers/iconly/sessions_helper.rb
310
+ - app/jobs/iconly/application_job.rb
311
+ - app/mailers/iconly/application_mailer.rb
312
+ - app/models/iconly/application_record.rb
313
+ - app/models/iconly/icon.rb
314
+ - app/models/iconly/package.rb
315
+ - app/models/iconly/project.rb
316
+ - app/models/iconly/project/downloader.rb
317
+ - app/models/iconly/project/font_generator.rb
318
+ - app/models/iconly/project_icon.rb
319
+ - app/models/iconly/user.rb
320
+ - app/uploaders/iconly/svg_uploader.rb
321
+ - app/views/iconly/packages/_form.html.erb
322
+ - app/views/iconly/packages/new.html.erb
323
+ - app/views/iconly/projects/_form.html.erb
324
+ - app/views/iconly/projects/_packages.html.erb
325
+ - app/views/iconly/projects/edit.html.erb
326
+ - app/views/iconly/projects/index.html.erb
327
+ - app/views/iconly/projects/new.html.erb
328
+ - app/views/iconly/projects/show.html.erb
329
+ - app/views/layouts/iconly/_footer.html.erb
330
+ - app/views/layouts/iconly/_header.html.erb
331
+ - app/views/layouts/iconly/application.html.erb
332
+ - config/fontcustom/fontcustom_manifest.yml
333
+ - config/fontcustom/templates/iconly.css
334
+ - config/routes.rb
335
+ - db/migrate/20170130210746_enable_uuid_extension.rb
336
+ - db/migrate/20170130211049_create_iconly_users.rb
337
+ - db/migrate/20170130220400_create_iconly_packages.rb
338
+ - db/migrate/20170131002414_create_iconly_icons.rb
339
+ - db/migrate/20170131081131_create_iconly_projects.rb
340
+ - db/migrate/20170131084626_create_iconly_project_icons.rb
341
+ - db/migrate/20170203144731_add_icon_count_to_packages.rb
342
+ - lib/iconly.rb
343
+ - lib/iconly/concerns/models/package.rb
344
+ - lib/iconly/concerns/models/project.rb
345
+ - lib/iconly/concerns/models/user.rb
346
+ - lib/iconly/engine.rb
347
+ - lib/iconly/version.rb
348
+ - lib/iconly/zip_file_generator.rb
349
+ - lib/tasks/iconly_tasks.rake
350
+ homepage: https://github.com/lugolabs/iconly
351
+ licenses:
352
+ - MIT
353
+ metadata: {}
354
+ post_install_message:
355
+ rdoc_options: []
356
+ require_paths:
357
+ - lib
358
+ required_ruby_version: !ruby/object:Gem::Requirement
359
+ requirements:
360
+ - - ">="
361
+ - !ruby/object:Gem::Version
362
+ version: '0'
363
+ required_rubygems_version: !ruby/object:Gem::Requirement
364
+ requirements:
365
+ - - ">="
366
+ - !ruby/object:Gem::Version
367
+ version: '0'
368
+ requirements: []
369
+ rubyforge_project:
370
+ rubygems_version: 2.5.1
371
+ signing_key:
372
+ specification_version: 4
373
+ summary: Store SVG and generate your web font icons
374
+ test_files: []