cytoplasm 0.2.0 → 0.2.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.
- data/app/controllers/cytoplasm/fonts_controller.rb +1 -1
- data/lib/cytoplasm.rb +12 -8
- data/lib/cytoplasm/version.rb +1 -1
- data/test/dummy/Gemfile +1 -0
- data/test/dummy/Gemfile.lock +1 -1
- data/test/dummy/log/development.log +126 -0
- metadata +3 -3
|
@@ -88,7 +88,7 @@ module Cytoplasm
|
|
|
88
88
|
|
|
89
89
|
# Fetch imported GoogleWebFonts fonts
|
|
90
90
|
yaml = fetch_yaml(@@gwf_file)
|
|
91
|
-
yaml["imported"].each {|f| imported["googlewebfonts"][f] = fetch_gwf_family(f)} unless yaml["imported"].nil?
|
|
91
|
+
yaml["imported"].each {|f| imported["googlewebfonts"][f] = fetch_gwf_family(f)} unless yaml["imported"].nil? or !yaml["imported"].any?
|
|
92
92
|
|
|
93
93
|
return imported
|
|
94
94
|
end
|
data/lib/cytoplasm.rb
CHANGED
|
@@ -325,14 +325,18 @@ module Cytoplasm
|
|
|
325
325
|
puts "Failed to parse YAML in public/fonts/enabled.yml!"
|
|
326
326
|
enabled = {}
|
|
327
327
|
end
|
|
328
|
-
enabled.
|
|
329
|
-
|
|
330
|
-
if
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
328
|
+
if enabled.any?
|
|
329
|
+
enabled.each do |dir,fonts|
|
|
330
|
+
if fonts.any?
|
|
331
|
+
fonts.each do |fam,variants|
|
|
332
|
+
if dir == "fontsquirrel"
|
|
333
|
+
sheets << "/fonts/"+fam+"/stylesheet.css"
|
|
334
|
+
elsif dir == "googlewebfonts"
|
|
335
|
+
sheet = "http://fonts.googleapis.com/css?family="+fam
|
|
336
|
+
sheet += ":" + variants.join(",") if variants.any?
|
|
337
|
+
sheets << sheet
|
|
338
|
+
end
|
|
339
|
+
end
|
|
336
340
|
end
|
|
337
341
|
end
|
|
338
342
|
end
|
data/lib/cytoplasm/version.rb
CHANGED
data/test/dummy/Gemfile
CHANGED
data/test/dummy/Gemfile.lock
CHANGED
|
@@ -617026,3 +617026,129 @@ Processing by Cytoplasm::SettingsController#fetch as */*
|
|
|
617026
617026
|
WARNING: Can't verify CSRF token authenticity
|
|
617027
617027
|
Rendered text template (0.0ms)
|
|
617028
617028
|
Completed 200 OK in 6ms (Views: 0.4ms | ActiveRecord: 0.0ms)
|
|
617029
|
+
|
|
617030
|
+
|
|
617031
|
+
Started GET "/" for 127.0.0.1 at 2013-01-24 13:13:40 -0500
|
|
617032
|
+
Connecting to database specified by database.yml
|
|
617033
|
+
Processing by HomeController#index as HTML
|
|
617034
|
+
Rendered home/index.html.erb within layouts/application (2.5ms)
|
|
617035
|
+
Completed 200 OK in 80ms (Views: 79.2ms | ActiveRecord: 0.0ms)
|
|
617036
|
+
|
|
617037
|
+
|
|
617038
|
+
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-01-24 13:13:41 -0500
|
|
617039
|
+
Served asset /application.css - 304 Not Modified (16ms)
|
|
617040
|
+
|
|
617041
|
+
|
|
617042
|
+
Started GET "/assets/about.css?body=1" for 127.0.0.1 at 2013-01-24 13:13:41 -0500
|
|
617043
|
+
Served asset /about.css - 304 Not Modified (1ms)
|
|
617044
|
+
|
|
617045
|
+
|
|
617046
|
+
Started GET "/assets/docs.css?body=1" for 127.0.0.1 at 2013-01-24 13:13:41 -0500
|
|
617047
|
+
Served asset /docs.css - 304 Not Modified (2ms)
|
|
617048
|
+
|
|
617049
|
+
|
|
617050
|
+
Started GET "/assets/demos.css?body=1" for 127.0.0.1 at 2013-01-24 13:13:41 -0500
|
|
617051
|
+
Served asset /demos.css - 304 Not Modified (3ms)
|
|
617052
|
+
|
|
617053
|
+
|
|
617054
|
+
Started GET "/assets/downloads.css?body=1" for 127.0.0.1 at 2013-01-24 13:13:41 -0500
|
|
617055
|
+
Served asset /downloads.css - 304 Not Modified (1ms)
|
|
617056
|
+
|
|
617057
|
+
|
|
617058
|
+
Started GET "/assets/home.css?body=1" for 127.0.0.1 at 2013-01-24 13:13:41 -0500
|
|
617059
|
+
Served asset /home.css - 304 Not Modified (1ms)
|
|
617060
|
+
|
|
617061
|
+
|
|
617062
|
+
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-01-24 13:13:41 -0500
|
|
617063
|
+
Served asset /jquery.js - 304 Not Modified (6ms)
|
|
617064
|
+
|
|
617065
|
+
|
|
617066
|
+
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-01-24 13:13:41 -0500
|
|
617067
|
+
Served asset /jquery_ujs.js - 304 Not Modified (2ms)
|
|
617068
|
+
|
|
617069
|
+
|
|
617070
|
+
Started GET "/assets/demos.js?body=1" for 127.0.0.1 at 2013-01-24 13:13:41 -0500
|
|
617071
|
+
Served asset /demos.js - 304 Not Modified (3ms)
|
|
617072
|
+
|
|
617073
|
+
|
|
617074
|
+
Started GET "/assets/about.js?body=1" for 127.0.0.1 at 2013-01-24 13:13:41 -0500
|
|
617075
|
+
Served asset /about.js - 304 Not Modified (1ms)
|
|
617076
|
+
|
|
617077
|
+
|
|
617078
|
+
Started GET "/assets/docs.js?body=1" for 127.0.0.1 at 2013-01-24 13:13:41 -0500
|
|
617079
|
+
Served asset /docs.js - 304 Not Modified (1ms)
|
|
617080
|
+
|
|
617081
|
+
|
|
617082
|
+
Started GET "/assets/downloads.js?body=1" for 127.0.0.1 at 2013-01-24 13:13:41 -0500
|
|
617083
|
+
Served asset /downloads.js - 304 Not Modified (1ms)
|
|
617084
|
+
|
|
617085
|
+
|
|
617086
|
+
Started GET "/assets/home.js?body=1" for 127.0.0.1 at 2013-01-24 13:13:41 -0500
|
|
617087
|
+
Served asset /home.js - 304 Not Modified (1ms)
|
|
617088
|
+
|
|
617089
|
+
|
|
617090
|
+
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-01-24 13:13:41 -0500
|
|
617091
|
+
Served asset /application.js - 304 Not Modified (12ms)
|
|
617092
|
+
|
|
617093
|
+
|
|
617094
|
+
Started GET "/assets/cytoplasm/less-1.3.1.min.js?body=1" for 127.0.0.1 at 2013-01-24 13:13:41 -0500
|
|
617095
|
+
Served asset /cytoplasm/less-1.3.1.min.js - 304 Not Modified (2ms)
|
|
617096
|
+
|
|
617097
|
+
|
|
617098
|
+
Started GET "/assets/cytoplasm/cytoplasm.js?body=1" for 127.0.0.1 at 2013-01-24 13:13:41 -0500
|
|
617099
|
+
Served asset /cytoplasm/cytoplasm.js - 304 Not Modified (16ms)
|
|
617100
|
+
|
|
617101
|
+
|
|
617102
|
+
Started GET "/assets/cytoplasm/jquery.ba-throttle-debounce.min.js?body=1" for 127.0.0.1 at 2013-01-24 13:13:41 -0500
|
|
617103
|
+
Served asset /cytoplasm/jquery.ba-throttle-debounce.min.js - 304 Not Modified (3ms)
|
|
617104
|
+
|
|
617105
|
+
|
|
617106
|
+
Started GET "/assets/cytoplasm/jquery.color.js?body=1" for 127.0.0.1 at 2013-01-24 13:13:41 -0500
|
|
617107
|
+
Served asset /cytoplasm/jquery.color.js - 304 Not Modified (25ms)
|
|
617108
|
+
|
|
617109
|
+
|
|
617110
|
+
Started GET "/assets/cytoplasm/cytoAjax.js?body=1" for 127.0.0.1 at 2013-01-24 13:13:41 -0500
|
|
617111
|
+
Served asset /cytoplasm/cytoAjax.js - 304 Not Modified (2ms)
|
|
617112
|
+
|
|
617113
|
+
|
|
617114
|
+
Started GET "/assets/cytoplasm/cytoSelect.js?body=1" for 127.0.0.1 at 2013-01-24 13:13:41 -0500
|
|
617115
|
+
Served asset /cytoplasm/cytoSelect.js - 304 Not Modified (2ms)
|
|
617116
|
+
|
|
617117
|
+
|
|
617118
|
+
Started GET "/assets/cytoplasm/cytoRadio.js?body=1" for 127.0.0.1 at 2013-01-24 13:13:41 -0500
|
|
617119
|
+
Served asset /cytoplasm/cytoRadio.js - 304 Not Modified (2ms)
|
|
617120
|
+
|
|
617121
|
+
|
|
617122
|
+
Started GET "/assets/cytoplasm/cytoSlider.js?body=1" for 127.0.0.1 at 2013-01-24 13:13:41 -0500
|
|
617123
|
+
Served asset /cytoplasm/cytoSlider.js - 304 Not Modified (2ms)
|
|
617124
|
+
|
|
617125
|
+
|
|
617126
|
+
Started GET "/assets/cytoplasm/cytoUpload.js?body=1" for 127.0.0.1 at 2013-01-24 13:13:41 -0500
|
|
617127
|
+
Served asset /cytoplasm/cytoUpload.js - 304 Not Modified (1ms)
|
|
617128
|
+
|
|
617129
|
+
|
|
617130
|
+
Started GET "/assets/cytoplasm/cytoColorPicker.js?body=1" for 127.0.0.1 at 2013-01-24 13:13:41 -0500
|
|
617131
|
+
Served asset /cytoplasm/cytoColorPicker.js - 304 Not Modified (2ms)
|
|
617132
|
+
|
|
617133
|
+
|
|
617134
|
+
Started GET "/assets/cytoplasm/cytoField.js?body=1" for 127.0.0.1 at 2013-01-24 13:13:41 -0500
|
|
617135
|
+
Served asset /cytoplasm/cytoField.js - 304 Not Modified (1ms)
|
|
617136
|
+
|
|
617137
|
+
|
|
617138
|
+
Started GET "/assets/cytoplasm/cytoTable.js?body=1" for 127.0.0.1 at 2013-01-24 13:13:41 -0500
|
|
617139
|
+
Served asset /cytoplasm/cytoTable.js - 304 Not Modified (1ms)
|
|
617140
|
+
|
|
617141
|
+
|
|
617142
|
+
Started GET "/assets/cytoplasm/cytoLogo.js?body=1" for 127.0.0.1 at 2013-01-24 13:13:41 -0500
|
|
617143
|
+
Served asset /cytoplasm/cytoLogo.js - 304 Not Modified (2ms)
|
|
617144
|
+
|
|
617145
|
+
|
|
617146
|
+
Started GET "/assets/jquery-ui.js?_=1359051221549" for 127.0.0.1 at 2013-01-24 13:13:41 -0500
|
|
617147
|
+
Served asset /jquery-ui.js - 200 OK (4ms)
|
|
617148
|
+
|
|
617149
|
+
|
|
617150
|
+
Started POST "/cytoplasm/settings/fetch" for 127.0.0.1 at 2013-01-24 13:13:41 -0500
|
|
617151
|
+
Processing by Cytoplasm::SettingsController#fetch as */*
|
|
617152
|
+
WARNING: Can't verify CSRF token authenticity
|
|
617153
|
+
Rendered text template (0.0ms)
|
|
617154
|
+
Completed 200 OK in 7ms (Views: 1.8ms | ActiveRecord: 0.0ms)
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: cytoplasm
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.1
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -389,7 +389,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
389
389
|
version: '0'
|
|
390
390
|
segments:
|
|
391
391
|
- 0
|
|
392
|
-
hash:
|
|
392
|
+
hash: 152095801228446096
|
|
393
393
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
394
394
|
none: false
|
|
395
395
|
requirements:
|
|
@@ -398,7 +398,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
398
398
|
version: '0'
|
|
399
399
|
segments:
|
|
400
400
|
- 0
|
|
401
|
-
hash:
|
|
401
|
+
hash: 152095801228446096
|
|
402
402
|
requirements: []
|
|
403
403
|
rubyforge_project:
|
|
404
404
|
rubygems_version: 1.8.24
|