shoestrap 1.2.0.pre2 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -1
- data/features/shoestrap/commands/new_command_spec.rb +6 -6
- data/lib/shoestrap/version.rb +1 -1
- data/shoestrap.gemspec +2 -2
- data/templates/application_generator/application.html.haml +20 -21
- data/templates/application_generator/favicons/{favicon-sc-129x129.png → 129x129.png} +0 -0
- data/templates/application_generator/favicons/32x32.ico +0 -0
- data/templates/application_generator/favicons/{favicon-sc-32x32.png → 32x32.png} +0 -0
- metadata +14 -14
- data/templates/application_generator/favicons/favicon-sc-16x16.ico +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 60b923e6b4b219fc3b8c2523ba93f7df17d1f113
|
4
|
+
data.tar.gz: 1c14d0566feccfa005137b7195f88913e036c571
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9e827cc67ce1cec3cc0851575cdde82cabd23a4ffeb95337b8f012745a77fab413e8889b9b16b238b6fc240dc4af92625a7603fba2db577aa4edc4f86e6d14c9
|
7
|
+
data.tar.gz: 06cbb8ed329794768a80a29e00a7db80eb7f527579ce3f121e3d78a2dbbb10a857aa377d47d3a7a5b0d7297653779139c99f3789e4b21ec79c376ba69906399f
|
data/CHANGELOG.md
CHANGED
@@ -1,8 +1,13 @@
|
|
1
1
|
# CHANGELOG
|
2
2
|
|
3
|
-
|
3
|
+
# 1.2 - 2013-12-12
|
4
4
|
|
5
|
+
- google analytics code snippet:
|
6
|
+
- move it up to head tag (just before closing tag), that it matches Google Analytics set up guidelines
|
7
|
+
- render it only on produciton environment
|
5
8
|
- Various bugfixes/tweaks for cms generator
|
9
|
+
- optimize favicon integration for ie10
|
10
|
+
- tested on ie8, ie9, ie10
|
6
11
|
|
7
12
|
## 1.1.1 - 2013-10-07
|
8
13
|
|
@@ -104,9 +104,9 @@ describe 'application generated with shoestrap new <application_name>' do
|
|
104
104
|
end
|
105
105
|
|
106
106
|
it 'has favicons' do
|
107
|
-
expect(application_layout).to match(/favicon_link_tag\('favicons\/
|
108
|
-
expect(application_layout).to match(/favicon_link_tag\('favicons\/
|
109
|
-
expect(application_layout).to match(/favicon_link_tag\('favicons\/
|
107
|
+
expect(application_layout).to match(/favicon_link_tag\('favicons\/129x129\.png',\ rel:\ 'apple\-touch\-icon',\ type:\ 'image\/png'\)/)
|
108
|
+
expect(application_layout).to match(/favicon_link_tag\('favicons\/32x32\.png',\ rel:\ 'icon',\ type:\ 'image\/png'\)/)
|
109
|
+
expect(application_layout).to match(/favicon_link_tag\('favicons\/32x32\.ico'\)/)
|
110
110
|
end
|
111
111
|
|
112
112
|
it 'has an application stylehseet link' do
|
@@ -150,15 +150,15 @@ describe 'application generated with shoestrap new <application_name>' do
|
|
150
150
|
|
151
151
|
context 'favicons' do
|
152
152
|
it 'has a favicon' do
|
153
|
-
expect(application_file('app/assets/images/favicons/
|
153
|
+
expect(application_file('app/assets/images/favicons/32x32.png')).not_to be_nil
|
154
154
|
end
|
155
155
|
|
156
156
|
it 'has a favicon for iDevices' do
|
157
|
-
expect(application_file('app/assets/images/favicons/
|
157
|
+
expect(application_file('app/assets/images/favicons/129x129.png')).not_to be_nil
|
158
158
|
end
|
159
159
|
|
160
160
|
it 'has a favicton for IE' do
|
161
|
-
expect(application_file('app/assets/images/favicons/
|
161
|
+
expect(application_file('app/assets/images/favicons/32x32.ico')).not_to be_nil
|
162
162
|
end
|
163
163
|
end
|
164
164
|
|
data/lib/shoestrap/version.rb
CHANGED
data/shoestrap.gemspec
CHANGED
@@ -44,8 +44,8 @@ Gem::Specification.new do |spec|
|
|
44
44
|
spec.add_development_dependency "launchy"
|
45
45
|
end
|
46
46
|
|
47
|
-
spec.add_dependency 'rails', '4.0.
|
47
|
+
spec.add_dependency 'rails', '~> 4.0.2'
|
48
48
|
spec.add_dependency 'airbrake'
|
49
49
|
spec.add_dependency 'thor'
|
50
|
-
spec.add_dependency 'blazing', '0.4.0.beta3'
|
50
|
+
spec.add_dependency 'blazing', '~> 0.4.0.beta3'
|
51
51
|
end
|
@@ -21,11 +21,9 @@
|
|
21
21
|
%meta{ name: 'viewport', content: 'width=device-width, initial-scale=1.0' }
|
22
22
|
|
23
23
|
-# Favicons
|
24
|
-
= favicon_link_tag('favicons/
|
25
|
-
= favicon_link_tag('favicons/
|
26
|
-
|
27
|
-
= favicon_link_tag('favicons/favicon-sc-16x16.ico')
|
28
|
-
<![endif]-->
|
24
|
+
= favicon_link_tag('favicons/129x129.png', rel: 'apple-touch-icon', type: 'image/png')
|
25
|
+
= favicon_link_tag('favicons/32x32.png', rel: 'icon', type: 'image/png')
|
26
|
+
= favicon_link_tag('favicons/32x32.ico')
|
29
27
|
|
30
28
|
-# Typekit
|
31
29
|
= render 'layouts/typekit'
|
@@ -38,6 +36,23 @@
|
|
38
36
|
= javascript_include_tag 'modernizr', 'data-turbolinks-track' => true
|
39
37
|
= csrf_meta_tags
|
40
38
|
|
39
|
+
-# Google Analytics
|
40
|
+
- if Rails.env.production?
|
41
|
+
:javascript
|
42
|
+
((b, o, i, l, e, r) ->
|
43
|
+
b.GoogleAnalyticsObject = l
|
44
|
+
b[l] or (b[l] = ->
|
45
|
+
(b[l].q = b[l].q or []).push arguments_
|
46
|
+
)
|
47
|
+
b[l].l = +new Date
|
48
|
+
e = o.createElement(i)
|
49
|
+
r = o.getElementsByTagName(i)[0]
|
50
|
+
e.src = "//www.google-analytics.com/analytics.js"
|
51
|
+
r.parentNode.insertBefore e, r
|
52
|
+
) window, document, "script", "ga"
|
53
|
+
ga "create", "UA-XXXXX-X"
|
54
|
+
ga "send", "pageview"
|
55
|
+
|
41
56
|
%body{ class: body_class }
|
42
57
|
%header{role: "banner"}
|
43
58
|
= render 'partials/header'
|
@@ -56,19 +71,3 @@
|
|
56
71
|
<!--[if lte IE 8]>
|
57
72
|
= javascript_include_tag 'selectivizr'
|
58
73
|
<![endif]-->
|
59
|
-
|
60
|
-
-# Google Analytics
|
61
|
-
:javascript
|
62
|
-
((b, o, i, l, e, r) ->
|
63
|
-
b.GoogleAnalyticsObject = l
|
64
|
-
b[l] or (b[l] = ->
|
65
|
-
(b[l].q = b[l].q or []).push arguments_
|
66
|
-
)
|
67
|
-
b[l].l = +new Date
|
68
|
-
e = o.createElement(i)
|
69
|
-
r = o.getElementsByTagName(i)[0]
|
70
|
-
e.src = "//www.google-analytics.com/analytics.js"
|
71
|
-
r.parentNode.insertBefore e, r
|
72
|
-
) window, document, "script", "ga"
|
73
|
-
ga "create", "UA-XXXXX-X"
|
74
|
-
ga "send", "pageview"
|
File without changes
|
Binary file
|
File without changes
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: shoestrap
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.0
|
4
|
+
version: 1.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Felipe Kaufmann
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-12-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -112,16 +112,16 @@ dependencies:
|
|
112
112
|
name: rails
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
114
114
|
requirements:
|
115
|
-
- -
|
115
|
+
- - ~>
|
116
116
|
- !ruby/object:Gem::Version
|
117
|
-
version: 4.0.
|
117
|
+
version: 4.0.2
|
118
118
|
type: :runtime
|
119
119
|
prerelease: false
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
121
121
|
requirements:
|
122
|
-
- -
|
122
|
+
- - ~>
|
123
123
|
- !ruby/object:Gem::Version
|
124
|
-
version: 4.0.
|
124
|
+
version: 4.0.2
|
125
125
|
- !ruby/object:Gem::Dependency
|
126
126
|
name: airbrake
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|
@@ -154,14 +154,14 @@ dependencies:
|
|
154
154
|
name: blazing
|
155
155
|
requirement: !ruby/object:Gem::Requirement
|
156
156
|
requirements:
|
157
|
-
- -
|
157
|
+
- - ~>
|
158
158
|
- !ruby/object:Gem::Version
|
159
159
|
version: 0.4.0.beta3
|
160
160
|
type: :runtime
|
161
161
|
prerelease: false
|
162
162
|
version_requirements: !ruby/object:Gem::Requirement
|
163
163
|
requirements:
|
164
|
-
- -
|
164
|
+
- - ~>
|
165
165
|
- !ruby/object:Gem::Version
|
166
166
|
version: 0.4.0.beta3
|
167
167
|
description: SC Bootstrapper and Generators
|
@@ -238,9 +238,9 @@ files:
|
|
238
238
|
- templates/application_generator/application.html.haml
|
239
239
|
- templates/application_generator/application_helper.rb
|
240
240
|
- templates/application_generator/application_template.rb
|
241
|
-
- templates/application_generator/favicons/
|
242
|
-
- templates/application_generator/favicons/
|
243
|
-
- templates/application_generator/favicons/
|
241
|
+
- templates/application_generator/favicons/129x129.png
|
242
|
+
- templates/application_generator/favicons/32x32.ico
|
243
|
+
- templates/application_generator/favicons/32x32.png
|
244
244
|
- templates/application_generator/modernizr.js
|
245
245
|
- templates/bdd_generator/active_record_spec_helper.rb
|
246
246
|
- templates/bdd_generator/dotrspec
|
@@ -291,12 +291,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
291
291
|
version: '0'
|
292
292
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
293
293
|
requirements:
|
294
|
-
- - '
|
294
|
+
- - '>='
|
295
295
|
- !ruby/object:Gem::Version
|
296
|
-
version:
|
296
|
+
version: '0'
|
297
297
|
requirements: []
|
298
298
|
rubyforge_project:
|
299
|
-
rubygems_version: 2.
|
299
|
+
rubygems_version: 2.1.10
|
300
300
|
signing_key:
|
301
301
|
specification_version: 4
|
302
302
|
summary: Rails App Bootstrapper and Generator used at Screen Concept
|
Binary file
|