homura 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.
- checksums.yaml +4 -4
- data/{LICENSE → LICENSE.txt} +2 -2
- data/app/views/layouts/homura.html.slim +3 -2
- data/homura.gemspec +26 -21
- data/lib/homura/version.rb +1 -1
- data/spec/dummy/config/environments/development.rb +2 -2
- data/spec/dummy/config/environments/production.rb +6 -0
- data/spec/dummy/config/environments/test.rb +4 -2
- data/spec/dummy/config/initializers/secret_token.rb +1 -1
- data/spec/helpers/homura/layout_helper_spec.rb +6 -4
- metadata +34 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e368997ff9c979abda77779e518ce1f55dd71992
|
4
|
+
data.tar.gz: 222ac9054d0c71d08cdf7045ad1d83cb73d07b93
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2685e11eceeffd8f653a9634ae9e04921ee7145396e33ca5ce977ee2ffcd271bffda69b5afaba90455bf8583e6154fcfb969eb912943c0e5e96505bbc7c47410
|
7
|
+
data.tar.gz: 991ab668cfdcf3f8d757460305d756f492ead5f7e985c7f20f96e74404ef04bb251a8341cae8b9f1674ad1c975ba234357faa61294d8081a1685004adc3655f3
|
data/{LICENSE → LICENSE.txt}
RENAMED
@@ -1,4 +1,4 @@
|
|
1
|
-
Copyright (c)
|
1
|
+
Copyright (c) 2013 ayaya
|
2
2
|
|
3
3
|
MIT License
|
4
4
|
|
@@ -19,4 +19,4 @@ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
19
19
|
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
20
|
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
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.
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
@@ -2,14 +2,15 @@ doctype 5
|
|
2
2
|
html
|
3
3
|
head
|
4
4
|
meta charset='utf-8'
|
5
|
+
meta name='viewport' content='width=device-width, initial-scale=1.0'
|
5
6
|
= page_title_tag
|
6
7
|
= page_description_tag
|
7
8
|
= canonical_link_tag
|
8
9
|
= og_properties_tags
|
9
10
|
= csrf_meta_tags
|
10
|
-
= stylesheet_link_tag 'application', media: :all
|
11
|
+
= stylesheet_link_tag 'application', media: :all, 'data-turbolinks-track' => true
|
11
12
|
= yield(:extra_head)
|
12
13
|
body
|
13
14
|
= content_for?(:content) ? yield(:content) : yield
|
14
|
-
= javascript_include_tag 'application'
|
15
|
+
= javascript_include_tag 'application', 'data-turbolinks-track' => true
|
15
16
|
= yield(:extra_javascripts)
|
data/homura.gemspec
CHANGED
@@ -1,26 +1,31 @@
|
|
1
|
-
#
|
2
|
-
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'homura/version'
|
3
5
|
|
4
|
-
Gem::Specification.new do |
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = 'homura'
|
8
|
+
spec.version = Homura::VERSION
|
9
|
+
spec.authors = ['ayaya']
|
10
|
+
spec.email = ['ayaya@ayaya.tw']
|
11
|
+
spec.description = %q{Homura is a simple layout generator and helpers for rails}
|
12
|
+
spec.summary = %q{Homura is a simple layout generator and helpers for rails}
|
13
|
+
spec.homepage = 'https://github.com/ayamomiji/homura'
|
14
|
+
spec.license = 'MIT'
|
10
15
|
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
gem.require_paths = ['lib']
|
16
|
-
gem.version = Homura::VERSION
|
16
|
+
spec.files = `git ls-files`.split($/)
|
17
|
+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
18
|
+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
|
+
spec.require_paths = ['lib']
|
17
20
|
|
18
|
-
|
19
|
-
|
21
|
+
spec.add_dependency 'rails', '>= 3'
|
22
|
+
spec.add_dependency 'slim-rails'
|
20
23
|
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
24
|
+
spec.add_development_dependency 'bundler', '~> 1.3'
|
25
|
+
spec.add_development_dependency 'rake'
|
26
|
+
spec.add_development_dependency 'rspec', '>= 2'
|
27
|
+
spec.add_development_dependency 'rspec-rails', '>= 2'
|
28
|
+
spec.add_development_dependency 'guard-rspec'
|
29
|
+
spec.add_development_dependency 'capybara'
|
30
|
+
spec.add_development_dependency 'sqlite3'
|
26
31
|
end
|
data/lib/homura/version.rb
CHANGED
@@ -6,8 +6,8 @@ Dummy::Application.configure do
|
|
6
6
|
# since you don't have to restart the webserver when you make code changes.
|
7
7
|
config.cache_classes = false
|
8
8
|
|
9
|
-
#
|
10
|
-
config.
|
9
|
+
# Do not eager load code on boot.
|
10
|
+
config.eager_load = false
|
11
11
|
|
12
12
|
# Show full error reports and disable caching
|
13
13
|
config.consider_all_requests_local = true
|
@@ -5,6 +5,12 @@ Dummy::Application.configure do
|
|
5
5
|
# Code is not reloaded between requests
|
6
6
|
config.cache_classes = true
|
7
7
|
|
8
|
+
# Eager load code on boot. This eager loads most of Rails and
|
9
|
+
# your application in memory, allowing both thread web servers
|
10
|
+
# and those relying on copy on write to perform better.
|
11
|
+
# Rake tasks automatically ignore this option for performance.
|
12
|
+
config.eager_load = true
|
13
|
+
|
8
14
|
# Full error reports are disabled and caching is turned on
|
9
15
|
config.consider_all_requests_local = false
|
10
16
|
config.action_controller.perform_caching = true
|
@@ -7,8 +7,10 @@ Dummy::Application.configure do
|
|
7
7
|
# and recreated between test runs. Don't rely on the data there!
|
8
8
|
config.cache_classes = true
|
9
9
|
|
10
|
-
#
|
11
|
-
|
10
|
+
# Do not eager load code on boot. This avoids loading your whole application
|
11
|
+
# just for the purpose of running a single test. If you are using a tool that
|
12
|
+
# preloads Rails for running tests, you may have to set it to true.
|
13
|
+
config.eager_load = false
|
12
14
|
|
13
15
|
# Show full error reports and disable caching
|
14
16
|
config.consider_all_requests_local = true
|
@@ -4,4 +4,4 @@
|
|
4
4
|
# If you change this key, all old signed cookies will become invalid!
|
5
5
|
# Make sure the secret is at least 30 characters and all random,
|
6
6
|
# no regular words or you'll be exposed to dictionary attacks.
|
7
|
-
Dummy::Application.config.
|
7
|
+
Dummy::Application.config.secret_key_base = '86cb455c4df276e3134772b90d6c12c80be606777b4b5d701deb934afa8ab74899a91691d870b3c42b0b2905fabdab15ceed7fa1a7c49c588264079e43d1e350'
|
@@ -26,8 +26,9 @@ describe Homura::LayoutHelper do
|
|
26
26
|
end
|
27
27
|
|
28
28
|
describe '#page_title' do
|
29
|
-
it 'should default to
|
30
|
-
helper.
|
29
|
+
it 'should default to default page title' do
|
30
|
+
helper.stub(t: 'default page title')
|
31
|
+
helper.page_title.should eq('default page title')
|
31
32
|
end
|
32
33
|
|
33
34
|
it 'should access page title' do
|
@@ -37,8 +38,9 @@ describe Homura::LayoutHelper do
|
|
37
38
|
end
|
38
39
|
|
39
40
|
describe '#page_description' do
|
40
|
-
it 'should default to
|
41
|
-
helper.
|
41
|
+
it 'should default to default page description' do
|
42
|
+
helper.stub(t: 'default page description')
|
43
|
+
helper.page_description.should eq('default page description')
|
42
44
|
end
|
43
45
|
|
44
46
|
it 'should access page description' do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: homura
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ayaya
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-11-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -38,6 +38,34 @@ dependencies:
|
|
38
38
|
- - '>='
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: bundler
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ~>
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '1.3'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ~>
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '1.3'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rake
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - '>='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - '>='
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
41
69
|
- !ruby/object:Gem::Dependency
|
42
70
|
name: rspec
|
43
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -119,7 +147,7 @@ files:
|
|
119
147
|
- .rspec
|
120
148
|
- Gemfile
|
121
149
|
- Guardfile
|
122
|
-
- LICENSE
|
150
|
+
- LICENSE.txt
|
123
151
|
- README.md
|
124
152
|
- Rakefile
|
125
153
|
- app/helpers/homura/layout_helper.rb
|
@@ -171,7 +199,8 @@ files:
|
|
171
199
|
- spec/spec_helper.rb
|
172
200
|
- spec/views/layouts/homura.html.slim_spec.rb
|
173
201
|
homepage: https://github.com/ayamomiji/homura
|
174
|
-
licenses:
|
202
|
+
licenses:
|
203
|
+
- MIT
|
175
204
|
metadata: {}
|
176
205
|
post_install_message:
|
177
206
|
rdoc_options: []
|
@@ -189,7 +218,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
189
218
|
version: '0'
|
190
219
|
requirements: []
|
191
220
|
rubyforge_project:
|
192
|
-
rubygems_version: 2.
|
221
|
+
rubygems_version: 2.1.10
|
193
222
|
signing_key:
|
194
223
|
specification_version: 4
|
195
224
|
summary: Homura is a simple layout generator and helpers for rails
|