handlebars-helpers 0.0.70 → 0.0.75
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +11 -4
- data/STORIES.md +1 -1
- data/USAGE.md +1 -1
- data/handlebars-helpers.gemspec +10 -5
- data/lib/handlebars/helpers/statistics.rb +9 -0
- data/lib/handlebars/helpers/version.rb +1 -1
- metadata +5 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2f3e731d6bec7c72fa08a28e7b1c9f809ec0d45c6791dec2af973c79d6a11333
|
4
|
+
data.tar.gz: 5b999e2998bdd697d27912a0febd8b42d7205d694bfd3d8727877736205b6acd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2653f9d142501232e4e18e24cb05827b72b21e44e430c5e0e89412623966dbcdacee1b390b74414a70be80aee48cbf1cc93b0e3581adaeb66fa6f5d1511bde8a
|
7
|
+
data.tar.gz: 72f244787c379d0f84a1a631610df27e41443c13b84073ca915f06ea309b9ae3765a53f4a1ac0c27061f3895f57c91b76f224276b62066f5904eb7df21c452cd
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Handlebars Helpers
|
2
2
|
|
3
|
-
> Handlebars Helpers is a library that provides <b
|
3
|
+
> Handlebars Helpers is a library that provides <b>42</b> handlebars helpers across <b>5</b> categories, it was built to complement [cowboyd/handlebars.rb](https://github.com/cowboyd/handlebars.rb) with Ruby helpers commonly found in the Javascript community
|
4
4
|
|
5
5
|
This GEM is inspired by the Javascript Library [handlebars-helpers](https://github.com/helpers/handlebars-helpers).
|
6
6
|
|
@@ -63,15 +63,22 @@ You can also run `bin/console` for an interactive prompt that will allow you to
|
|
63
63
|
```bash
|
64
64
|
bin/console
|
65
65
|
|
66
|
-
|
66
|
+
Handlebars::Helpers::Template.render('{{camel .}}', 'david was here')
|
67
67
|
# => "DavidWasHere"
|
68
|
-
|
68
|
+
Handlebars::Helpers::Template.render('{{dasherize .}}', 'david was here')
|
69
69
|
# => "david-was-here"
|
70
70
|
```
|
71
71
|
|
72
72
|
`handlebars-helpers` is setup with Guard, run `guard`, this will watch development file changes and run tests automatically, if successful, it will then run rubocop for style quality.
|
73
73
|
|
74
|
-
To
|
74
|
+
To release a new version, update the version number in `version.rb`, build the gem and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
75
|
+
|
76
|
+
```bash
|
77
|
+
gem build
|
78
|
+
gem push rspec-usecases-?.?.??.gem
|
79
|
+
# or push the latest gem
|
80
|
+
ls *.gem | sort -r | head -1 | xargs gem push
|
81
|
+
```
|
75
82
|
|
76
83
|
## Contributing
|
77
84
|
|
data/STORIES.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Handlebars Helpers
|
2
2
|
|
3
|
-
> Handlebars Helpers is a library that provides <b>
|
3
|
+
> Handlebars Helpers is a library that provides <b>42</b> handlebars helpers across <b>5</b> categories, it was built to complement [cowboyd/handlebars.rb](https://github.com/cowboyd/handlebars.rb) with Ruby helpers commonly found in the Javascript community
|
4
4
|
|
5
5
|
As a Ruby Developer, I want to use HandlebarsJS with useful helpers, so that I have a rich templating experience
|
6
6
|
|
data/USAGE.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Handlebars Helpers
|
2
2
|
|
3
|
-
> Handlebars Helpers is a library that provides <b>
|
3
|
+
> Handlebars Helpers is a library that provides <b>42</b> handlebars helpers across <b>5</b> categories, it was built to complement [cowboyd/handlebars.rb](https://github.com/cowboyd/handlebars.rb) with Ruby helpers commonly found in the Javascript community
|
4
4
|
|
5
5
|
As a Ruby Developer, I want to use HandlebarsJS with useful helpers, so that I have a rich templating experience
|
6
6
|
|
data/handlebars-helpers.gemspec
CHANGED
@@ -1,18 +1,19 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
require_relative 'lib/handlebars/helpers/version'
|
4
|
+
require_relative 'lib/handlebars/helpers/statistics'
|
4
5
|
|
5
6
|
Gem::Specification.new do |spec|
|
7
|
+
description = "Handlebars Helpers provides (#{Handlebars::Helpers::HANDLER_COUNT}) handlebars helpers across (#{Handlebars::Helpers::CATEGORY_COUNT}) categories"
|
8
|
+
|
6
9
|
spec.required_ruby_version = '>= 2.5'
|
7
10
|
spec.name = 'handlebars-helpers'
|
8
11
|
spec.version = Handlebars::Helpers::VERSION
|
9
12
|
spec.authors = ['David Cruwys']
|
10
13
|
spec.email = ['david@ideasmen.com.au']
|
11
14
|
|
12
|
-
spec.summary =
|
13
|
-
spec.description =
|
14
|
-
Handlebars Helpers provides (Nx) handlebars helpers across (Ny) categories
|
15
|
-
TEXT
|
15
|
+
spec.summary = description
|
16
|
+
spec.description = description
|
16
17
|
spec.homepage = 'http://appydave.com/gems/handlebars-helpers'
|
17
18
|
spec.license = 'MIT'
|
18
19
|
|
@@ -25,6 +26,7 @@ Gem::Specification.new do |spec|
|
|
25
26
|
spec.metadata['homepage_uri'] = spec.homepage
|
26
27
|
spec.metadata['source_code_uri'] = 'https://github.com/klueless-io/handlebars-helpers'
|
27
28
|
spec.metadata['changelog_uri'] = 'https://github.com/klueless-io/handlebars-helpers/commits/master'
|
29
|
+
spec.metadata['documentation_uri'] = 'https://rubydoc.info/github/klueless-io/handlebars-helpers/master'
|
28
30
|
|
29
31
|
# Specify which files should be added to the gem when it is released.
|
30
32
|
# The `git ls-files -z` loads the RubyGem files that have been added into git.
|
@@ -33,10 +35,13 @@ Gem::Specification.new do |spec|
|
|
33
35
|
f.match(%r{^(test|spec|features)/})
|
34
36
|
end
|
35
37
|
end
|
38
|
+
|
39
|
+
spec.files.each do |file|
|
40
|
+
puts file
|
41
|
+
end
|
36
42
|
spec.bindir = 'exe'
|
37
43
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
38
44
|
spec.require_paths = ['lib']
|
39
|
-
# spec.extensions = ['ext/handlebars_helpers/extconf.rb']
|
40
45
|
|
41
46
|
spec.extra_rdoc_files = ['README.md', 'STORIES.md', 'USAGE.md']
|
42
47
|
spec.rdoc_options += [
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: handlebars-helpers
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.75
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Cruwys
|
@@ -38,8 +38,7 @@ dependencies:
|
|
38
38
|
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
|
-
description:
|
42
|
-
categories\n"
|
41
|
+
description: Handlebars Helpers provides (42) handlebars helpers across (5) categories
|
43
42
|
email:
|
44
43
|
- david@ideasmen.com.au
|
45
44
|
executables: []
|
@@ -99,6 +98,7 @@ files:
|
|
99
98
|
- lib/handlebars/helpers/misc/noop.rb
|
100
99
|
- lib/handlebars/helpers/misc/safe.rb
|
101
100
|
- lib/handlebars/helpers/register_helpers.rb
|
101
|
+
- lib/handlebars/helpers/statistics.rb
|
102
102
|
- lib/handlebars/helpers/string_formatting/append_if.rb
|
103
103
|
- lib/handlebars/helpers/string_formatting/back_slash.rb
|
104
104
|
- lib/handlebars/helpers/string_formatting/camel.rb
|
@@ -132,6 +132,7 @@ metadata:
|
|
132
132
|
homepage_uri: http://appydave.com/gems/handlebars-helpers
|
133
133
|
source_code_uri: https://github.com/klueless-io/handlebars-helpers
|
134
134
|
changelog_uri: https://github.com/klueless-io/handlebars-helpers/commits/master
|
135
|
+
documentation_uri: https://rubydoc.info/github/klueless-io/handlebars-helpers/master
|
135
136
|
post_install_message:
|
136
137
|
rdoc_options:
|
137
138
|
- "--title"
|
@@ -155,5 +156,5 @@ requirements: []
|
|
155
156
|
rubygems_version: 3.2.7
|
156
157
|
signing_key:
|
157
158
|
specification_version: 4
|
158
|
-
summary: Handlebars Helpers provides (
|
159
|
+
summary: Handlebars Helpers provides (42) handlebars helpers across (5) categories
|
159
160
|
test_files: []
|