hyphenify 0.0.6 → 0.0.7
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/MIT-LICENSE +1 -1
- data/README.rdoc +1 -1
- data/lib/hyphenify/action_view/base.rb +1 -1
- data/lib/hyphenify/version.rb +1 -1
- data/test/dummy/log/test.log +42 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
- metadata +20 -20
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 14b01552e86923ac958c8bd2509b34a35f4cb933
|
|
4
|
+
data.tar.gz: 764e17fc46694e771ed23283351a0ef22fd143e2
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0ac0d72c8d5b251640300b8ac32c9983a627b51d0247c76c558e569aa583ad6844369ef9df405612c5c19ea2137dfdc912a783a5235a7ca3576e769f9c347d26
|
|
7
|
+
data.tar.gz: 03cee98772f520b9e30eef6ddf21ecffeb0e77b3ec15d2414cfa0b27c01e01a9624445b0642406fb7bff0e0e064ba5ad147acbae622f54ba4405664b7264905e
|
data/MIT-LICENSE
CHANGED
data/README.rdoc
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
{<img src="https://codeclimate.com/github/
|
|
1
|
+
{<img src="https://badge.fury.io/rb/hyphenify.png" alt="Gem Version" />}[http://badge.fury.io/rb/hyphenify] {<img src="https://codeclimate.com/github/museways/hyphenify.png" />}[https://codeclimate.com/github/museways/hyphenify] {<img src="https://travis-ci.org/museways/hyphenify.png?branch=master" alt="Build Status" />}[https://travis-ci.org/museways/hyphenify] {<img src="https://gemnasium.com/museways/hyphenify.png" alt="Dependency Status" />}[https://gemnasium.com/museways/hyphenify]
|
|
2
2
|
|
|
3
3
|
= Hyphenify
|
|
4
4
|
|
|
@@ -9,7 +9,7 @@ module Hyphenify
|
|
|
9
9
|
|
|
10
10
|
private
|
|
11
11
|
|
|
12
|
-
def tag_options_with_hyphen(options, escape
|
|
12
|
+
def tag_options_with_hyphen(options, escape=true)
|
|
13
13
|
options.stringify_keys!
|
|
14
14
|
%w[id class for].each { |key| options[key] = options[key].to_s.dasherize if options.has_key? key }
|
|
15
15
|
tag_options_without_hyphen options, escape
|
data/lib/hyphenify/version.rb
CHANGED
data/test/dummy/log/test.log
CHANGED
|
@@ -37,3 +37,45 @@ Started GET "/" for 127.0.0.1 at 2013-08-18 22:39:00 -0300
|
|
|
37
37
|
Processing by PagesController#index as HTML
|
|
38
38
|
Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)
|
|
39
39
|
[1m[35m (0.1ms)[0m rollback transaction
|
|
40
|
+
[1m[36m (0.3ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
|
41
|
+
[1m[35m (0.1ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
|
42
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
|
43
|
+
[1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('0')
|
|
44
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
45
|
+
-----------------------------------------------------------------
|
|
46
|
+
TagsTest: test_forms_tags_should_return_id_and_class_with_hyphens
|
|
47
|
+
-----------------------------------------------------------------
|
|
48
|
+
Started GET "/form" for 127.0.0.1 at 2013-11-30 14:46:12 -0200
|
|
49
|
+
Processing by PagesController#form as HTML
|
|
50
|
+
Rendered pages/form.html.erb within layouts/application (8.4ms)
|
|
51
|
+
Completed 200 OK in 45ms (Views: 44.6ms | ActiveRecord: 0.0ms)
|
|
52
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
|
53
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
54
|
+
-----------------------------------------------------------
|
|
55
|
+
TagsTest: test_tags_should_return_id_and_class_with_hyphens
|
|
56
|
+
-----------------------------------------------------------
|
|
57
|
+
Started GET "/" for 127.0.0.1 at 2013-11-30 14:46:12 -0200
|
|
58
|
+
Processing by PagesController#index as HTML
|
|
59
|
+
Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)
|
|
60
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
|
61
|
+
[1m[36m (0.3ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
|
62
|
+
[1m[35m (0.1ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
|
63
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
|
64
|
+
[1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('0')
|
|
65
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
66
|
+
-----------------------------------------------------------------
|
|
67
|
+
TagsTest: test_forms_tags_should_return_id_and_class_with_hyphens
|
|
68
|
+
-----------------------------------------------------------------
|
|
69
|
+
Started GET "/form" for 127.0.0.1 at 2014-03-01 17:19:48 -0200
|
|
70
|
+
Processing by PagesController#form as HTML
|
|
71
|
+
Rendered pages/form.html.erb within layouts/application (10.1ms)
|
|
72
|
+
Completed 200 OK in 37ms (Views: 36.5ms | ActiveRecord: 0.0ms)
|
|
73
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
|
74
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
75
|
+
-----------------------------------------------------------
|
|
76
|
+
TagsTest: test_tags_should_return_id_and_class_with_hyphens
|
|
77
|
+
-----------------------------------------------------------
|
|
78
|
+
Started GET "/" for 127.0.0.1 at 2014-03-01 17:19:48 -0200
|
|
79
|
+
Processing by PagesController#index as HTML
|
|
80
|
+
Completed 200 OK in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)
|
|
81
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
metadata
CHANGED
|
@@ -1,57 +1,59 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: hyphenify
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.7
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
|
-
-
|
|
7
|
+
- Museways
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2014-03-01 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
|
16
16
|
requirements:
|
|
17
|
-
- -
|
|
17
|
+
- - ">="
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
19
|
version: 3.0.0
|
|
20
20
|
type: :runtime
|
|
21
21
|
prerelease: false
|
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
23
|
requirements:
|
|
24
|
-
- -
|
|
24
|
+
- - ">="
|
|
25
25
|
- !ruby/object:Gem::Version
|
|
26
26
|
version: 3.0.0
|
|
27
27
|
- !ruby/object:Gem::Dependency
|
|
28
28
|
name: sqlite3
|
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
|
30
30
|
requirements:
|
|
31
|
-
- -
|
|
31
|
+
- - ">="
|
|
32
32
|
- !ruby/object:Gem::Version
|
|
33
33
|
version: '0'
|
|
34
34
|
type: :development
|
|
35
35
|
prerelease: false
|
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
|
37
37
|
requirements:
|
|
38
|
-
- -
|
|
38
|
+
- - ">="
|
|
39
39
|
- !ruby/object:Gem::Version
|
|
40
40
|
version: '0'
|
|
41
41
|
description: Hacks tags helpers to always use hyphens.
|
|
42
42
|
email:
|
|
43
|
-
-
|
|
43
|
+
- hello@museways.com
|
|
44
44
|
executables: []
|
|
45
45
|
extensions: []
|
|
46
46
|
extra_rdoc_files: []
|
|
47
47
|
files:
|
|
48
|
+
- MIT-LICENSE
|
|
49
|
+
- README.rdoc
|
|
50
|
+
- Rakefile
|
|
51
|
+
- lib/hyphenify.rb
|
|
48
52
|
- lib/hyphenify/action_view/base.rb
|
|
49
53
|
- lib/hyphenify/railtie.rb
|
|
50
54
|
- lib/hyphenify/version.rb
|
|
51
|
-
-
|
|
52
|
-
-
|
|
53
|
-
- Rakefile
|
|
54
|
-
- README.rdoc
|
|
55
|
+
- test/dummy/README.rdoc
|
|
56
|
+
- test/dummy/Rakefile
|
|
55
57
|
- test/dummy/app/assets/javascripts/application.js
|
|
56
58
|
- test/dummy/app/assets/stylesheets/application.css
|
|
57
59
|
- test/dummy/app/controllers/application_controller.rb
|
|
@@ -63,6 +65,7 @@ files:
|
|
|
63
65
|
- test/dummy/bin/bundle
|
|
64
66
|
- test/dummy/bin/rails
|
|
65
67
|
- test/dummy/bin/rake
|
|
68
|
+
- test/dummy/config.ru
|
|
66
69
|
- test/dummy/config/application.rb
|
|
67
70
|
- test/dummy/config/boot.rb
|
|
68
71
|
- test/dummy/config/database.yml
|
|
@@ -79,7 +82,6 @@ files:
|
|
|
79
82
|
- test/dummy/config/initializers/wrap_parameters.rb
|
|
80
83
|
- test/dummy/config/locales/en.yml
|
|
81
84
|
- test/dummy/config/routes.rb
|
|
82
|
-
- test/dummy/config.ru
|
|
83
85
|
- test/dummy/db/development.sqlite3
|
|
84
86
|
- test/dummy/db/schema.rb
|
|
85
87
|
- test/dummy/log/development.log
|
|
@@ -88,8 +90,6 @@ files:
|
|
|
88
90
|
- test/dummy/public/422.html
|
|
89
91
|
- test/dummy/public/500.html
|
|
90
92
|
- test/dummy/public/favicon.ico
|
|
91
|
-
- test/dummy/Rakefile
|
|
92
|
-
- test/dummy/README.rdoc
|
|
93
93
|
- test/dummy/tmp/cache/assets/test/sprockets/13fe41fee1fe35b49d145bcc06610705
|
|
94
94
|
- test/dummy/tmp/cache/assets/test/sprockets/2f5173deea6c795b8fdde723bb4b63af
|
|
95
95
|
- test/dummy/tmp/cache/assets/test/sprockets/357970feca3ac29060c1e3861e2c0953
|
|
@@ -98,7 +98,7 @@ files:
|
|
|
98
98
|
- test/dummy/tmp/cache/assets/test/sprockets/f7cbd26ba1d28d48de824f0e94586655
|
|
99
99
|
- test/tags_test.rb
|
|
100
100
|
- test/test_helper.rb
|
|
101
|
-
homepage: https://github.com/
|
|
101
|
+
homepage: https://github.com/museways/hyphenify
|
|
102
102
|
licenses:
|
|
103
103
|
- MIT
|
|
104
104
|
metadata: {}
|
|
@@ -108,20 +108,20 @@ require_paths:
|
|
|
108
108
|
- lib
|
|
109
109
|
required_ruby_version: !ruby/object:Gem::Requirement
|
|
110
110
|
requirements:
|
|
111
|
-
- -
|
|
111
|
+
- - ">="
|
|
112
112
|
- !ruby/object:Gem::Version
|
|
113
113
|
version: '0'
|
|
114
114
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
115
115
|
requirements:
|
|
116
|
-
- -
|
|
116
|
+
- - ">="
|
|
117
117
|
- !ruby/object:Gem::Version
|
|
118
118
|
version: '0'
|
|
119
119
|
requirements: []
|
|
120
120
|
rubyforge_project:
|
|
121
|
-
rubygems_version: 2.
|
|
121
|
+
rubygems_version: 2.2.2
|
|
122
122
|
signing_key:
|
|
123
123
|
specification_version: 4
|
|
124
|
-
summary:
|
|
124
|
+
summary: Hyphens for Rails.
|
|
125
125
|
test_files:
|
|
126
126
|
- test/dummy/app/assets/javascripts/application.js
|
|
127
127
|
- test/dummy/app/assets/stylesheets/application.css
|