furltility-activeresource 0.0.2 → 0.0.3
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/.travis.yml +5 -0
- data/Gemfile +4 -0
- data/Rakefile +8 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/build.sh +1 -1
- data/furltility-activeresource.gemspec +2 -2
- data/lib/furltility-activeresource.rb +1 -1
- metadata +8 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7491e30e166cf926f707bf44b8ae9e39d603fe6a
|
|
4
|
+
data.tar.gz: aebdf2893f8924c690578852663f5d1a3040e2f7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1e6edc069d16119aad82aa33552e5d3161227730f91806ba530077b0ac6f93d389fc989b09d933936dc4736a5fd168eba3c0356fb852f03237434f0b05c8e4e9
|
|
7
|
+
data.tar.gz: e0f3008f1f803e400fe1ba3267606a342f293603164074ab1712d67a9f661e6ef9fca622f6d5d89ddd7da807cba6868acd2967ed91d2a266bdc02fa1d85cce9f
|
data/.travis.yml
ADDED
data/Gemfile
ADDED
data/Rakefile
ADDED
data/bin/console
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
#!/usr/bin/env ruby
|
|
2
|
+
|
|
3
|
+
require "bundler/setup"
|
|
4
|
+
require "test"
|
|
5
|
+
|
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
|
8
|
+
|
|
9
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
|
10
|
+
# require "pry"
|
|
11
|
+
# Pry.start
|
|
12
|
+
|
|
13
|
+
require "irb"
|
|
14
|
+
IRB.start
|
data/bin/setup
ADDED
data/build.sh
CHANGED
|
@@ -3,8 +3,8 @@ $:.push File.expand_path("../lib", __FILE__)
|
|
|
3
3
|
|
|
4
4
|
Gem::Specification.new do |gem|
|
|
5
5
|
gem.name = "furltility-activeresource"
|
|
6
|
-
gem.version = "0.0.
|
|
7
|
-
gem.date = "
|
|
6
|
+
gem.version = "0.0.3"
|
|
7
|
+
gem.date = "2018-08-17"
|
|
8
8
|
gem.summary = "Friendly URLs"
|
|
9
9
|
gem.description = "A simple yet very effective library to get awesome-looking URLs in Ruby on Rails with ActiveResource, without a database table to handle it."
|
|
10
10
|
gem.authors = ["Björn Lennartsson"]
|
|
@@ -10,7 +10,7 @@ module FurltilityActiveResource
|
|
|
10
10
|
define_method :to_param do
|
|
11
11
|
param = id.to_i.to_s
|
|
12
12
|
if respond_to?(furl_field_met) && furl_field = send(furl_field_met)
|
|
13
|
-
furl_field = furl_field.to_slug.normalize.to_s
|
|
13
|
+
furl_field = furl_field.unpack('U*').reject{ |e| e.between?(0x1F600, 0x1F6FF) }.pack('U*').to_slug.normalize.to_s
|
|
14
14
|
param << "-#{furl_field}" unless furl_field.blank?
|
|
15
15
|
end
|
|
16
16
|
param
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: furltility-activeresource
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Björn Lennartsson
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2018-08-17 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: railties
|
|
@@ -130,7 +130,12 @@ extensions: []
|
|
|
130
130
|
extra_rdoc_files: []
|
|
131
131
|
files:
|
|
132
132
|
- ".gitignore"
|
|
133
|
+
- ".travis.yml"
|
|
134
|
+
- Gemfile
|
|
133
135
|
- README.md
|
|
136
|
+
- Rakefile
|
|
137
|
+
- bin/console
|
|
138
|
+
- bin/setup
|
|
134
139
|
- build.sh
|
|
135
140
|
- furltility-activeresource.gemspec
|
|
136
141
|
- lib/furltility-activeresource.rb
|
|
@@ -153,7 +158,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
153
158
|
version: '0'
|
|
154
159
|
requirements: []
|
|
155
160
|
rubyforge_project:
|
|
156
|
-
rubygems_version: 2.
|
|
161
|
+
rubygems_version: 2.6.11
|
|
157
162
|
signing_key:
|
|
158
163
|
specification_version: 4
|
|
159
164
|
summary: Friendly URLs
|